/* ==========================================================================
   KAMBIZ KHOSRAVI HOME PAGE STYLESHEET
   File: css/pages/home.css
   ========================================================================== */

/* ==========================================================================
   [SECTION 1] HERO — Enhanced
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: calc(var(--header-height) * -1);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    will-change: transform, filter;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(10, 10, 15, 0.5) 0%, transparent 70%),
        linear-gradient(to bottom,
            rgba(10, 10, 15, 0.7) 0%,
            rgba(10, 10, 15, 0.35) 35%,
            rgba(10, 10, 15, 0.6) 65%,
            rgba(10, 10, 15, 0.97) 100%);
    z-index: 2;
}

/* --- Corner Frames --- */
.hero-frame {
    position: absolute;
    width: 120px;
    height: 120px;
    z-index: 4;
    pointer-events: none;
    opacity: 0;
    animation: frameIn 1.5s 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-frame-tl {
    top: 60px;
    left: 40px;
    border-top: 1px solid rgba(201, 168, 76, 0.4);
    border-left: 1px solid rgba(201, 168, 76, 0.4);
}

.hero-frame-br {
    bottom: 100px;
    right: 40px;
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    border-right: 1px solid rgba(201, 168, 76, 0.4);
}

@keyframes frameIn {
    from {
        opacity: 0;
        width: 0;
        height: 0;
    }

    to {
        opacity: 1;
        width: 120px;
        height: 120px;
    }
}

/* --- Vertical Side Text --- */
.hero-side-text {
    position: absolute;
    right: 45px;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 1s 1.8s forwards;
}

.hero-side-text span {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: rgba(255, 255, 255, 0.25);
}

.side-line {
    width: 50px;
    height: 1px;
    background: rgba(201, 168, 76, 0.3);
}

/* --- Hero Content Layout --- */
.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5vh;
}

/* --- Eyebrow Label --- */
.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    opacity: 0;
    animation: fadeInUp 1s 0.3s forwards;
}

.hero-eyebrow span {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--accent);
    white-space: nowrap;
}

.eyebrow-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: lineShimmer 3s infinite;
}

@keyframes lineShimmer {

    0%,
    100% {
        opacity: 0.4;
    }

    50% {
        opacity: 1;
    }
}

/* --- Name / H1 --- */
.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 700;
    line-height: 0.92;
    color: #fff;
    margin: 0;
    letter-spacing: -0.03em;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.name-line {
    display: block;
    overflow: hidden;
}

.name-reveal {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: nameSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.name-line:nth-child(1) .name-reveal {
    animation-delay: 0.5s;
}

.name-line:nth-child(2) .name-reveal {
    animation-delay: 0.7s;
}

.name-line-accent .name-reveal {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    text-stroke: 1.5px var(--accent);
}

@keyframes nameSlideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Decorative Divider --- */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 30px 0;
    opacity: 0;
    animation: fadeInUp 0.8s 1s forwards;
}

.divider-diamond {
    width: 6px;
    height: 6px;
    background: var(--accent);
    transform: rotate(45deg);
}

.divider-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(201, 168, 76, 0.2));
}

/* --- Tagline --- */
.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    color: rgba(255, 255, 255, 0.5);
    font-weight: 300;
    margin: 0 auto;
    max-width: 500px;
    line-height: 1.7;
    letter-spacing: 0.02em;
    opacity: 0;
    animation: fadeInUp 1s 1.1s forwards;
}

/* --- CTA Glass Card --- */
.hero-cta-card {
    position: relative;
    margin-top: 50px;
    opacity: 0;
    animation: fadeInUp 1s 1.3s forwards;
}

.cta-card-inner {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
    z-index: 2;
}

.cta-card-label {
    font-family: 'Courier New', monospace;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.3);
    writing-mode: vertical-lr;
    transform: rotate(180deg);
    padding-right: 15px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    margin-right: 10px;
}

.cta-card-accent {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    z-index: 3;
}

.hero-btn {
    padding: 14px 30px;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.hero-btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: var(--bg-color);
    border: none;
}

.hero-btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.hero-btn-primary:hover::after {
    left: 100%;
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(201, 168, 76, 0.35);
}

.hero-btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-3px);
    background: rgba(201, 168, 76, 0.05);
}

/* --- Scroll Indicator (kept) --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: max-content;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    opacity: 0;
    animation: fadeInUp 1s 2s forwards;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        height: 40px;
    }

    50% {
        opacity: 1;
        height: 55px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile --- */
@media (max-width: 768px) {
    .hero-frame {
        display: none;
    }

    .hero-side-text {
        display: none;
    }

    .hero-content {
        text-align: center;
        padding-top: 12vh;
    }

    .hero-name {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .hero-eyebrow {
        flex-direction: column;
        gap: 10px;
    }

    .eyebrow-line {
        width: 40px;
    }

    .cta-card-inner {
        flex-direction: column;
        padding: 25px;
        gap: 12px;
    }

    .cta-card-label {
        writing-mode: horizontal-tb;
        transform: none;
        padding-right: 0;
        border-right: none;
        margin-right: 0;
        padding-bottom: 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 5px;
    }

    .hero-btn {
        padding: 14px 25px;
        font-size: 0.78rem;
        width: 100%;
        justify-content: center;
    }

    .scroll-indicator {
        bottom: 25px;
    }
}

/* ==========================================================================
   [SECTION 2] ABOUT INTRO
   ========================================================================== */
.intro-section {
    padding: 160px 0;
    background: #060609;
    overflow: hidden;
}

.intro-grid {
    display: grid;
    grid-template-columns: 7fr 3fr;
    gap: 80px;
    align-items: center;
}

.intro-text-col {
    display: flex;
    flex-direction: column;
}

.intro-label {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.intro-label::before {
    content: '';
    width: 25px;
    height: 1px;
    background: var(--accent);
}

.intro-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
    margin: 0 0 30px 0;
}

.intro-heading .highlight {
    color: var(--accent);
}

.intro-body {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 15px;
}

.intro-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-block {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 5px;
    display: block;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.intro-image-col {
    position: relative;
    aspect-ratio: 5 / 8;
}

.intro-image-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.9) contrast(1.05);
}

.intro-image-accent {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.accent-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-color);
    line-height: 1;
}

.accent-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(10, 10, 15, 0.7);
    font-weight: 600;
    margin-top: 5px;
}

@media (max-width: 1024px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .intro-image-col {
        aspect-ratio: 5 / 8;
    }

    .intro-image-accent {
        width: 150px;
        height: 150px;
        bottom: -15px;
        left: -15px;
    }

    .accent-number {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .intro-section {
        padding: 100px 0;
    }

    .intro-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .intro-image-col {
        aspect-ratio: 5 / 8;
    }
}


/* ==========================================================================
   [SECTION 3] SERVICES / SPECIALITIES
   ========================================================================== */
.services-section {
    padding: 160px 0;
    background: var(--bg-color);
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-header .intro-label {
    justify-content: center;
}

.services-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
}

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

.service-card {
    background: #0c0c12;
    padding: 50px 40px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.service-card:hover {
    background: #0f0f16;
    transform: translateY(-5px);
    border-color: rgba(201, 168, 76, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.service-icon {
    width: 55px;
    height: 55px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent);
    color: var(--bg-color);
    border-color: var(--accent);
    transform: scale(1.1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 15px 0;
}

.service-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section {
        padding: 100px 0;
    }

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

    .service-card {
        padding: 40px 25px;
    }
}


/* ==========================================================================
   [SECTION 4] FEATURED AREAS / COVERAGE
   ========================================================================== */
.areas-section,
.featured-section {
    padding: 160px 0;
    background: #060609;
    overflow: hidden;
}

.areas-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.areas-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    max-width: 600px;
}

.areas-desc {
    font-size: 1rem;
    color: #666;
    max-width: 400px;
    text-align: right;
    line-height: 1.6;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.area-card {
    position: relative;
    height: 450px;
    overflow: hidden;
    cursor: pointer;
}

.area-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
    filter: brightness(0.6) saturate(0.8);
}

.area-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.8) saturate(1);
}

.area-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(10, 10, 15, 0.95) 0%, transparent 100%);
    z-index: 2;
    transition: all 0.4s ease;
}

.area-card h4 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 5px 0;
}

.area-card span {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
}

@media (max-width: 1024px) {
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .areas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .areas-desc {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .areas-section {
        padding: 100px 0;
    }

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

    .area-card {
        height: 300px;
    }
}


/* ==========================================================================
   [SECTION 5] TESTIMONIAL / TRUST SECTION
   ========================================================================== */
.trust-section {
    padding: 160px 0;
    background: var(--bg-color);
    text-align: center;
    overflow: hidden;
}

.trust-quote {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.4;
    max-width: 900px;
    margin: 0 auto 40px auto;
    position: relative;
}

.trust-quote::before {
    content: '"';
    font-size: 6rem;
    color: var(--accent);
    opacity: 0.3;
    position: absolute;
    top: -40px;
    left: -20px;
    font-family: var(--font-heading);
    line-height: 1;
}

.trust-author {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    font-weight: 500;
}

.trust-role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #555;
    margin-top: 5px;
}

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.trust-badge i {
    font-size: 2rem;
    color: var(--accent);
    opacity: 0.6;
}

.trust-badge span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #555;
}

@media (max-width: 768px) {
    .trust-section {
        padding: 100px 0;
    }

    .trust-badges {
        gap: 40px;
    }

    .trust-quote::before {
        font-size: 4rem;
        top: -25px;
        left: 0;
    }
}