/* ============================================
   HEAD UP Consulting — Main Stylesheet
   ============================================ */

/* --- CSS Variables --- */
:root {
    --gold: #D4AF37;
    --gold-light: #e8cc6e;
    --gold-dark: #b8962e;
    --navy: #1E2A38;
    --navy-light: #2a3a4d;
    --navy-dark: #141d28;
    --white: #FFFFFF;
    --pale: #E5FF79;
    --text-gray: #4B5563;
    --light-bg: #F4F5F7;
    --border: #E2E4E8;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 3px rgba(30,42,56,0.08);
    --shadow-md: 0 4px 20px rgba(30,42,56,0.10);
    --shadow-lg: 0 8px 40px rgba(30,42,56,0.14);
    --radius: 8px;
    --radius-lg: 16px;

    --container: 1200px;
    --section-py: 100px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    color: var(--text-gray);
    background: var(--white);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul, ol {
    list-style: none;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    color: var(--navy);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p {
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.text-gold { color: var(--gold); }
.text-navy { color: var(--navy); }
.text-white { color: var(--white); }

/* --- Container --- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Section --- */
.section {
    padding: var(--section-py) 0;
}

.section--navy {
    background: var(--navy);
}

.section--navy h2,
.section--navy h3,
.section--navy h4,
.section--navy p,
.section--navy li {
    color: var(--white);
}

.section--light {
    background: var(--light-bg);
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 12px;
}

.section-title {
    margin-bottom: 20px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    max-width: 600px;
    line-height: 1.8;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header .section-subtitle {
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-family: var(--font);
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.5px;
}

.btn--gold {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn--gold:hover {
    background: var(--gold-dark);
    border-color: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212,175,55,0.35);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--gold);
}

.btn--outline:hover {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
}

.btn--navy {
    background: var(--navy);
    color: var(--white);
    border-color: var(--navy);
}

.btn--navy:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--lg {
    padding: 18px 40px;
    font-size: 1rem;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    transition: all var(--transition);
}

.nav.scrolled {
    background: var(--navy-dark);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav__logo img {
    height: 36px;
    width: auto;
}

.nav__logo-text {
    font-size: 1.7rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
    user-select: none;
}

.nav__logo-head {
    color: var(--white);
}

.nav__logo-up {
    color: var(--gold);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav__link {
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    border-radius: 6px;
    transition: all var(--transition);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--white);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 18px;
    right: 18px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
    transform: scaleX(1);
}

.nav__cta {
    margin-left: 12px;
}

/* Hamburger */
.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    background: none;
    border: none;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: all var(--transition);
    border-radius: 2px;
}

.nav__hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero (Home) --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--navy);
    overflow: hidden;
    padding-top: 80px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(212,175,55,0.06) 0%, transparent 70%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-5%, 3%) rotate(2deg); }
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.hero__label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 28px;
}

.hero__label::before {
    content: '';
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.hero__title {
    color: var(--white);
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero__title .highlight {
    color: var(--gold);
}

.hero__text {
    color: rgba(255,255,255,0.65);
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 560px;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.3);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
}

.hero__scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* Decorative gold line */
.gold-line {
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: 2px;
}

.gold-line--center {
    margin: 0 auto 20px;
}

/* --- Page Hero (inner pages) --- */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--navy);
    overflow: hidden;
    text-align: center;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(212,175,55,0.05) 0%, transparent 70%);
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.page-hero__title {
    color: var(--white);
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    position: relative;
    z-index: 1;
}

.page-hero__subtitle {
    color: rgba(255,255,255,0.55);
    font-size: 1.1rem;
    margin-top: 16px;
    position: relative;
    z-index: 1;
}

/* --- Values / Why Us --- */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.value-card {
    text-align: center;
    padding: 40px 30px;
}

.value-card__icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    transition: all var(--transition);
}

.value-card__icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.value-card:hover .value-card__icon {
    background: var(--gold);
    transform: translateY(-4px);
}

.value-card:hover .value-card__icon svg {
    stroke: var(--navy);
}

.value-card__title {
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.value-card__text {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* --- Stats --- */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
    padding: 60px 0;
}

.stat {
    padding: 20px;
}

.stat__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card__icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.service-card__icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.service-card__title {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.service-card__text {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- Service Detail (services page) --- */
.service-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    padding: 60px 0;
}

.service-detail:nth-child(even) {
    direction: rtl;
}

.service-detail:nth-child(even) > * {
    direction: ltr;
}

.service-detail__content {
    padding: 20px 0;
}

.service-detail__number {
    font-size: 4rem;
    font-weight: 800;
    color: rgba(212,175,55,0.15);
    line-height: 1;
    margin-bottom: 16px;
}

.service-detail__title {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.service-detail__text {
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-detail__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-detail__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-gray);
}

.service-detail__list li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    margin-top: 8px;
}

.service-detail__visual {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-detail__visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(212,175,55,0.05) 0%, rgba(30,42,56,0.03) 100%);
}

.service-detail__visual svg {
    width: 64px;
    height: 64px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1;
    opacity: 0.5;
}

/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.team-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    background: var(--white);
    border: 1px solid transparent;
}

.team-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.team-card__photo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 24px;
    overflow: hidden;
    position: relative;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--light-bg);
    transition: border-color var(--transition);
}

.team-card:hover .team-card__photo {
    border-color: var(--gold);
}

.team-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card__initials {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gold);
    user-select: none;
}

.team-card__name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.team-card__role {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.team-card__bio {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Founder spotlight */
.founder-section {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.founder__photo-wrapper {
    width: 280px;
    height: 340px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
}

.founder__photo-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(30,42,56,0.6), transparent);
}

.founder__photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder__initials {
    font-size: 4rem;
    font-weight: 800;
    color: var(--gold);
}

.founder__content .section-label {
    margin-bottom: 8px;
}

.founder__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.credential-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(212,175,55,0.1);
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

/* --- Portfolio --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 30px;
}

.portfolio-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.portfolio-card__image {
    height: 240px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30,42,56,0.9), rgba(30,42,56,0.7));
    transition: opacity var(--transition);
}

.portfolio-card:hover .portfolio-card__image::after {
    opacity: 0.7;
}

.portfolio-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-card__placeholder {
    position: relative;
    z-index: 1;
    color: var(--gold);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.portfolio-card__body {
    padding: 28px;
}

.portfolio-card__category {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.portfolio-card__title {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.portfolio-card__desc {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

/* Coming soon overlay */
.portfolio-coming-soon {
    text-align: center;
    padding: 80px 40px;
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.portfolio-coming-soon p {
    color: var(--text-gray);
    font-size: 1rem;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    padding: 20px 0;
}

.contact-info__item {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(212,175,55,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info__icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 1.5;
}

.contact-info__label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-info__value {
    font-size: 1.05rem;
    color: var(--navy);
    font-weight: 500;
}

.contact-info__value a:hover {
    color: var(--gold);
}

.contact-social {
    display: flex;
    gap: 12px;
    margin-top: 40px;
}

.contact-social__link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--navy);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.contact-social__link:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

.contact-social__link svg {
    width: 20px;
    height: 20px;
    fill: var(--white);
}

/* --- Forms --- */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form__group {
    display: flex;
    flex-direction: column;
}

.form__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.form__input,
.form__textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 14px 18px;
    background: var(--light-bg);
    border: 2px solid transparent;
    border-radius: var(--radius);
    color: var(--navy);
    transition: all var(--transition);
    outline: none;
}

.form__input:focus,
.form__textarea:focus {
    border-color: var(--gold);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212,175,55,0.1);
}

.form__input::placeholder,
.form__textarea::placeholder {
    color: #9CA3AF;
}

.form__textarea {
    resize: vertical;
    min-height: 140px;
}

.form__honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.form__submit {
    align-self: flex-start;
}

/* Form messages */
.form-message {
    padding: 16px 20px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
}

.form-message--success {
    background: rgba(212,175,55,0.1);
    color: var(--gold-dark);
    border: 1px solid rgba(212,175,55,0.3);
}

.form-message--error {
    background: rgba(220,38,38,0.1);
    color: #DC2626;
    border: 1px solid rgba(220,38,38,0.2);
}

/* --- Map --- */
.contact-map {
    margin-top: 60px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(60%) contrast(1.1);
    transition: filter var(--transition);
}

.contact-map:hover iframe {
    filter: grayscale(0%) contrast(1);
}

/* --- CTA Band --- */
.cta-band {
    background: var(--navy);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.cta-band__title {
    color: var(--white);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    margin-bottom: 16px;
}

.cta-band__text {
    color: rgba(255,255,255,0.5);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

/* --- Footer --- */
.footer {
    background: var(--navy-dark);
    padding: 60px 0 0;
    color: rgba(255,255,255,0.5);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__brand-text {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-top: 20px;
    max-width: 300px;
}

.footer__title {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.footer__link {
    display: block;
    padding: 4px 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
    transition: color var(--transition);
}

.footer__link:hover {
    color: var(--gold);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    font-size: 0.8rem;
}

.footer__social {
    display: flex;
    gap: 12px;
}

.footer__social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.footer__social-link:hover {
    background: var(--gold);
    transform: translateY(-2px);
}

.footer__social-link svg {
    width: 16px;
    height: 16px;
    fill: var(--white);
}

.footer__logo img {
    height: 28px;
    opacity: 0.8;
}

/* --- Scroll Animations --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* --- About Page: Company Story --- */
.story-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.story__text p {
    margin-bottom: 20px;
    line-height: 1.8;
}

.story__visual {
    position: relative;
}

.story__year {
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 900;
    color: var(--light-bg);
    line-height: 1;
    position: absolute;
    top: -20px;
    right: 0;
    z-index: 0;
    user-select: none;
}

.story__highlights {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.story__highlight {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--gold);
}

.story__highlight-text {
    font-weight: 600;
    color: var(--navy);
    font-size: 0.95rem;
    margin-bottom: 0;
}



/* Portfolio card as link */
a.portfolio-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

a.portfolio-card:hover {
    color: inherit;
}

/* Project hero logo fallback (when no logo) */
.project-hero__logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    margin-bottom: 24px;
    display: block;
}

/* --- Project Detail Page --- */
.project-hero {
    position: relative;
    padding: 160px 0 80px;
    background: var(--navy);
    overflow: hidden;
    text-align: center;
}

.project-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}

.project-hero__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin: 0 auto 24px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.08);
    padding: 16px;
}

.project-hero__title {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 12px;
}

.project-hero__category {
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.project-hero__url {
    margin-top: 16px;
}

.project-hero__url a {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.project-hero__url a:hover {
    color: var(--gold);
}

/* Project content */
.project-content {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

.project-description h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.project-description p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-sidebar {
    position: sticky;
    top: 100px;
}

.project-meta {
    background: var(--light-bg);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.project-meta__item {
    margin-bottom: 24px;
}

.project-meta__item:last-child {
    margin-bottom: 0;
}

.project-meta__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 8px;
}

.project-meta__value {
    font-size: 0.95rem;
    color: var(--navy);
    font-weight: 500;
}

.project-meta__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-meta__tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-gray);
}

/* Device mockup showcase */
.project-showcase {
    margin: 60px 0;
}

.project-showcase__image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.project-showcase__image img {
    width: 100%;
    height: auto;
}

/* CSS Device Mockup */
.device-mockup {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.device-laptop {
    background: #1a1a1a;
    border-radius: 12px 12px 0 0;
    padding: 20px 20px 0;
    position: relative;
}

.device-laptop::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
    margin: 0 auto 12px;
}

.device-laptop__screen {
    width: 100%;
    border-radius: 4px 4px 0 0;
    overflow: hidden;
    background: var(--white);
    aspect-ratio: 16 / 9;
    position: relative;
}

.device-laptop__screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.device-laptop__screen iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 900px;
    border: none;
    transform-origin: top left;
    /* Scale is set dynamically by JS */
}

.device-laptop__base {
    background: #2a2a2a;
    height: 16px;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.device-laptop__base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #3a3a3a;
    border-radius: 0 0 4px 4px;
}

/* Portfolio grid - updated */
.portfolio-card__image {
    position: relative;
}

.portfolio-card__logo-container {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.portfolio-card__logo-container img {
    max-width: 85%;
    max-height: 75%;
    object-fit: contain;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-gray);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--gold);
}

.back-link svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    :root {
        --section-py: 80px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .service-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-detail:nth-child(even) {
        direction: ltr;
    }

    .founder-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder__photo-wrapper {
        margin: 0 auto;
    }

    .founder__credentials {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    :root {
        --section-py: 60px;
    }

    .nav__links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 30px 30px;
        gap: 4px;
        transition: right var(--transition);
        box-shadow: -5px 0 30px rgba(0,0,0,0.3);
    }

    .nav__links.open {
        right: 0;
    }

    .nav__link {
        font-size: 1rem;
        width: 100%;
        padding: 12px 16px;
    }

    .nav__cta {
        margin-left: 0;
        margin-top: 16px;
        width: 100%;
    }

    .nav__cta .btn {
        width: 100%;
        justify-content: center;
    }

    .nav__hamburger {
        display: flex;
    }

    .hero__title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
        justify-content: center;
    }

    .hero__scroll {
        display: none;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .story-section {
        grid-template-columns: 1fr;
    }

    .story__year {
        position: static;
        font-size: 5rem;
        text-align: center;
        margin-bottom: 20px;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    .project-sidebar {
        position: static;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .section-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr;
    }

    .btn--lg {
        padding: 14px 28px;
    }
}

/* --- Overlay for mobile menu --- */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

.nav-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* --- Counter Animation --- */
.counter {
    display: inline-block;
}

/* --- Utility --- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.text-left { text-align: left; }
