/* ==============================================================================
   ESFANDIAR KIANI — MODERN HIGH-PERFORMANCE STYLESHEET
   100% RESPONSIVE | GPU-OPTIMIZED | STICKY FOOTER | ZERO-LAG CARDS
   ============================================================================== */

:root {
    --esk-bg: #f8fafc;
    --esk-text: #0f172a;
    --esk-text-muted: #475569;
    --esk-card-bg: rgba(255, 255, 255, 0.88);
    --esk-card-border: rgba(226, 232, 240, 0.9);
    --esk-card-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --esk-border: rgba(226, 232, 240, 0.8);
    --esk-footer-bg: rgba(255, 255, 255, 0.75);
    
    --esk-primary: #7c3aed;
    --esk-primary-hover: #6d28d9;
    --esk-accent: #fbbf24;
    --esk-radius: 20px;
    --esk-header-height: 72px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --esk-bg: #060a12;
        --esk-text: #f8fafc;
        --esk-text-muted: #94a3b8;
        --esk-card-bg: rgba(15, 23, 42, 0.88);
        --esk-card-border: rgba(255, 255, 255, 0.1);
        --esk-card-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
        --esk-border: rgba(255, 255, 255, 0.08);
        --esk-footer-bg: rgba(6, 10, 18, 0.85);
        
        --esk-primary: #9d6bff;
        --esk-primary-hover: #b48eff;
        --esk-accent: #facc15;
    }
}

/* ==============================================================================
   RESET & BASE
   ============================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--esk-text);
    background-color: var(--esk-bg);
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1)), url("/assets/images/bg-01.webp");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
    body {
        background-image: linear-gradient(to bottom, rgba(6, 10, 18, 0.45), rgba(6, 10, 18, 0.25)), url("/assets/images/bg-01dark.webp");
    }
}

/* Mobile background: use scroll to prevent touch stutter */
@media (max-width: 820px) {
    body {
        background-attachment: scroll;
    }
}

.esk-main-wrap {
    flex: 1 0 auto;
    width: 100%;
    padding-top: var(--esk-header-height);
}

.esk-container {
    width: 100%;
    max-width: 1120px;
    margin: 2rem auto;
    padding: 0 1.25rem;
    position: relative;
    z-index: 2;
}

/* ==============================================================================
   HEADER & NAVIGATION
   ============================================================================== */
.esk-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--esk-header-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--esk-border);
    z-index: 1000;
}

@media (prefers-color-scheme: dark) {
    .esk-header {
        background: rgba(6, 10, 18, 0.85);
    }
}

.esk-header-inner {
    max-width: 1120px;
    height: 100%;
    margin: 0 auto;
    padding: 0 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.esk-header-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.esk-header-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--esk-text);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.esk-header-role {
    font-size: 0.78rem;
    color: var(--esk-text-muted);
    font-weight: 500;
}

.esk-header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.esk-nav {
    padding: 0.45rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--esk-text-muted);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.15s ease, background 0.15s ease;
}

.esk-nav:hover,
.esk-nav.active {
    color: var(--esk-primary);
    background: rgba(124, 58, 237, 0.08);
}

.esk-burger {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--esk-text);
    cursor: pointer;
    padding: 0.4rem;
    line-height: 1;
}

/* Mobile Drawer */
.esk-mobile-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: var(--esk-header-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--esk-border);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0.5rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

@media (prefers-color-scheme: dark) {
    .esk-mobile-menu {
        background: rgba(11, 17, 32, 0.98);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    }
}

.esk-mobile-menu.show {
    display: flex;
}

.esk-mobile-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--esk-text);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.03);
    transition: background 0.15s ease, color 0.15s ease;
}

@media (prefers-color-scheme: dark) {
    .esk-mobile-menu a {
        background: rgba(255, 255, 255, 0.04);
    }
}

.esk-mobile-menu a.active,
.esk-mobile-menu a:hover {
    color: #fff;
    background: var(--esk-primary);
}

@media (max-width: 860px) {
    .esk-header-nav {
        display: none;
    }
    .esk-burger {
        display: block;
    }
}

/* ==============================================================================
   CARDS & CONTAINERS (ZERO-LAG HIGH PERFORMANCE)
   ============================================================================== */
.esk-card {
    background: var(--esk-card-bg);
    border: 1px solid var(--esk-card-border);
    border-radius: var(--esk-radius);
    padding: 1.75rem;
    box-shadow: var(--esk-card-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esk-card-featured {
    border-color: rgba(124, 58, 237, 0.35);
}

@media (prefers-color-scheme: dark) {
    .esk-card-featured {
        border-color: rgba(157, 107, 255, 0.35);
    }
}

.esk-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
}

@media (prefers-color-scheme: dark) {
    .esk-card:hover {
        box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    }
}

/* ==============================================================================
   TYPOGRAPHY & HEADINGS
   ============================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--esk-text);
    margin-top: 0;
    line-height: 1.25;
}

.esk-title {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    margin-bottom: 0.6rem;
    letter-spacing: -0.015em;
}

.esk-subtitle {
    font-size: 1rem;
    color: var(--esk-text-muted);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

a {
    color: var(--esk-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.esk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.6rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.esk-btn-primary {
    background: linear-gradient(135deg, var(--esk-primary), #6366f1);
    color: #ffffff !important;
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.28);
}

.esk-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    text-decoration: none;
}

.esk-btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: var(--esk-text);
    border: 1px solid var(--esk-border);
}

@media (prefers-color-scheme: dark) {
    .esk-btn-secondary {
        background: rgba(255, 255, 255, 0.06);
    }
}

.esk-btn-secondary:hover {
    background: rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
    text-decoration: none;
}

/* ==============================================================================
   GRIDS & LAYOUT SYSTEMS
   ============================================================================== */
.esk-grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.esk-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Hero Section */
.esk-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3.5rem;
    padding-top: 1rem;
}

@media (max-width: 860px) {
    .esk-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.esk-hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

/* Quicknav */
.esk-quicknav {
    margin: 3.5rem 0;
}

.esk-quicknav-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
}

.esk-qnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 0.75rem;
    background: var(--esk-card-bg);
    border: 1px solid var(--esk-card-border);
    border-radius: 16px;
    color: var(--esk-text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: var(--esk-card-shadow);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.esk-qnav-item:hover {
    transform: translateY(-3px);
    border-color: var(--esk-primary);
    text-decoration: none;
}

.esk-qnav-icon {
    font-size: 1.6rem;
}

/* Experience / Certificate Items */
.esk-exp-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.esk-exp-item {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--esk-card-bg);
    border: 1px solid var(--esk-card-border);
    border-radius: 16px;
    box-shadow: var(--esk-card-shadow);
}

@media (max-width: 720px) {
    .esk-exp-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

.esk-exp-left h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.esk-exp-time {
    font-size: 0.85rem;
    color: var(--esk-text-muted);
}

.esk-exp-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.esk-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    font-size: 0.78rem;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--esk-primary);
}

.esk-issuer {
    font-size: 0.85rem;
    color: var(--esk-text-muted);
    font-weight: 500;
}

.esk-exp-detail {
    font-size: 0.92rem;
    color: var(--esk-text-muted);
    line-height: 1.65;
}

/* CTA Card */
.esk-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.25rem;
    border-radius: var(--esk-radius);
    background: var(--esk-card-bg);
    border: 1px solid var(--esk-card-border);
    box-shadow: var(--esk-card-shadow);
    flex-wrap: wrap;
    margin: 3.5rem 0;
}

.esk-cta-text h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
}

.esk-cta-text p {
    color: var(--esk-text-muted);
    margin: 0;
    max-width: 680px;
}

/* ==============================================================================
   PHOTOGRAPHY GALLERIES & SLIDER
   ============================================================================== */
.esk-photo-collections {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.esk-photo-category {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.esk-photo-cat-title {
    font-size: 1.5rem;
    font-weight: 700;
}

.esk-photo-cat-desc {
    color: var(--esk-text-muted);
    max-width: 720px;
    margin-bottom: 1rem;
}

.esk-slider {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    background: var(--esk-card-bg);
    border: 1px solid var(--esk-card-border);
    padding: 1rem;
}

.esk-slider-track {
    display: flex;
    gap: 1.25rem;
    transition: transform 0.35s ease;
    align-items: center;
}

.esk-slider-track img {
    height: 380px;
    width: auto;
    max-width: 85vw;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .esk-slider-track img {
        height: 260px;
    }
}

.esk-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}

.esk-slider-btn:hover {
    background: rgba(0, 0, 0, 0.85);
    transform: translateY(-50%) scale(1.08);
}

.esk-slider-btn.prev { left: 1.5rem; }
.esk-slider-btn.next { right: 1.5rem; }

/* ==============================================================================
   STICKY FOOTER (DOCKED AT BOTTOM ON SCROLL / SHORT PAGES)
   ============================================================================== */
.esk-footer {
    margin-top: auto;
    width: 100%;
    padding: 2.25rem 0;
    text-align: center;
    background: var(--esk-footer-bg);
    border-top: 1px solid var(--esk-border);
    z-index: 10;
    position: relative;
}

.esk-footer .esk-container {
    margin: 0 auto;
    padding: 0 1.25rem;
}

.esk-footer-copy {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--esk-text);
    opacity: 0.9;
}

.esk-footer-sub {
    margin: 0.5rem 0 0;
    font-size: 0.85rem;
    color: var(--esk-text-muted);
}

.esk-footer-link {
    color: var(--esk-primary);
    font-weight: 500;
    margin-left: 0.4rem;
}

/* ==============================================================================
   LEGAL / PRIVACY POLICY
   ============================================================================== */
.esk-legal {
    max-width: 920px;
    margin: 0 auto;
    padding: 2rem 1.25rem 4rem;
}

.esk-legal h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.esk-legal h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 2.2rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--esk-border);
    padding-bottom: 0.4rem;
}

.esk-legal p,
.esk-legal li {
    color: var(--esk-text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.esk-legal ul {
    padding-left: 1.4rem;
}
