/* ===========================
   ANIL SHARMA - SITE STYLES
   =========================== */

:root {
    --clr-ink: #1a1a2e;
    --clr-ink-mid: #2e2e4a;
    --clr-accent: #c8963e;
    --clr-accent-light: #e8b96a;
    --clr-surface: #ffffff;
    --clr-surface-alt: #f5f4f0;
    --clr-muted: #6b6b80;
    --clr-border: #e0ddd6;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', system-ui, sans-serif;
    --max-w: 1140px;
    --radius: 8px;
    --transition: 0.25s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; overflow-y: auto; }

/* Override template's height:100% lockout so the page can actually scroll */
html, body { height: auto !important; overflow-x: hidden; }
body { overflow-y: auto !important; }

body {
    font-family: var(--font-body);
    color: var(--clr-ink);
    background: var(--clr-surface);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--clr-muted); }

/* ---- LAYOUT ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 6rem 0; }
.bg-alt { background: var(--clr-surface-alt); }
.center { text-align: center; }
.section-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 0.75rem;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 768px) { .two-col { grid-template-columns: 1fr; gap: 2rem; } }

/* ---- BUTTONS ---- */
.btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.btn-primary {
    background: var(--clr-accent);
    color: #fff;
    border-color: var(--clr-accent);
}
.btn-primary:hover { background: var(--clr-accent-light); border-color: var(--clr-accent-light); }
.btn-outline {
    background: transparent;
    color: var(--clr-ink);
    border-color: var(--clr-ink);
}
.btn-outline:hover { background: var(--clr-ink); color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* ---- HEADER ---- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--clr-border);
}
.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.brand { font-family: var(--font-display); font-size: 1.4rem; font-weight: 900; }
.brand-first { color: var(--clr-ink); }
.brand-last { color: var(--clr-accent); }
.main-nav { display: flex; align-items: center; gap: 2rem; }
.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--clr-muted);
    transition: color var(--transition);
}
.main-nav a:hover { color: var(--clr-ink); }
.main-nav a.nav-cta {
    background: var(--clr-ink);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
}
.main-nav a.nav-cta:hover { background: var(--clr-accent); }

/* Mobile nav toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--clr-ink); transition: all var(--transition); }
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        display: none; flex-direction: column; gap: 0;
        position: absolute; top: 70px; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--clr-border);
        padding: 1.5rem 2rem;
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 0.6rem 0; border-bottom: 1px solid var(--clr-border); color: var(--clr-ink); }
    .main-nav a.nav-cta { border-radius: var(--radius); text-align: center; margin-top: 0.5rem; }
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--clr-ink) 0%, var(--clr-ink-mid) 60%, #1a1a2e 100%);
}
.hero-bg::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(200,150,62,0.15) 0%, transparent 60%);
}
.hero-content {
    position: relative;
    z-index: 1;
    padding-top: 4rem;
    padding-bottom: 4rem;
}
.hero-eyebrow {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--clr-accent);
    margin-bottom: 1rem;
}
.hero-title { color: #fff; margin-bottom: 1rem; }
.hero-title .accent { color: var(--clr-accent); }
.hero-subtitle { font-size: 1.2rem; color: rgba(255,255,255,0.65); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.hero .btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: rgba(255,255,255,0.4);
    font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ---- PAGE HERO ---- */
.page-hero {
    background: var(--clr-ink);
    padding: 5rem 0 4rem;
    color: #fff;
}
.page-hero .section-label { color: var(--clr-accent); }
.page-hero h1 { color: #fff; }

/* ---- ABOUT TEASER ---- */
.visual-card {
    background: var(--clr-ink);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.stat .num {
    display: block;
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    color: var(--clr-accent);
}
.stat .label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.05em;
}

/* ---- SERVICES GRID ---- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0 3rem;
}
.service-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2rem;
    transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.08); transform: translateY(-3px); }
.service-icon { font-size: 2rem; margin-bottom: 1rem; }
.service-card h3 { color: var(--clr-ink); }

/* ---- SERVICES DETAIL ---- */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-detail-card {
    border: 1px solid var(--clr-border);
    border-radius: 12px;
    padding: 2.5rem;
    transition: box-shadow var(--transition);
}
.service-detail-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.07); }
.service-icon-lg { font-size: 2.5rem; margin-bottom: 1.25rem; }
.service-detail-card h2 { font-size: 1.3rem; color: var(--clr-ink); }
.service-detail-card ul { list-style: none; margin-top: 1rem; }
.service-detail-card ul li { padding: 0.3rem 0; color: var(--clr-muted); font-size: 0.9rem; }
.service-detail-card ul li::before { content: '→ '; color: var(--clr-accent); font-size: 0.85rem; }

/* ---- PORTFOLIO ---- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.portfolio-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--clr-border);
    transition: box-shadow var(--transition), transform var(--transition);
}
.portfolio-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.1); transform: translateY(-4px); }
.portfolio-thumb {
    height: 200px;
    background-size: cover;
    background-position: center;
}
.portfolio-thumb-1 { background: linear-gradient(135deg, #1a1a2e, #3a3a5e); }
.portfolio-thumb-2 { background: linear-gradient(135deg, #2e1a1a, #5e3a3a); }
.portfolio-thumb-3 { background: linear-gradient(135deg, #1a2e1a, #3a5e3a); }
.portfolio-thumb-4 { background: linear-gradient(135deg, #2e2a1a, #5e553a); }
.portfolio-thumb-5 { background: linear-gradient(135deg, #1a2a2e, #3a555e); }
.portfolio-thumb-6 { background: linear-gradient(135deg, #2a1a2e, #553a5e); }
.portfolio-info { padding: 1.5rem; }
.portfolio-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--clr-accent);
    background: rgba(200,150,62,0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}
.portfolio-info h3 { color: var(--clr-ink); }

/* ---- SKILLS ---- */
.skills-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.skill-item { display: flex; flex-direction: column; gap: 0.35rem; }
.skill-name { font-size: 0.9rem; font-weight: 500; color: var(--clr-ink); }
.skill-bar { height: 6px; background: var(--clr-border); border-radius: 3px; overflow: hidden; }
.skill-fill { height: 100%; background: var(--clr-accent); border-radius: 3px; transition: width 1s ease; }

/* ---- CTA BAND ---- */
.cta-band {
    background: var(--clr-ink);
    padding: 5rem 0;
    text-align: center;
}
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 2rem; }

/* ---- CONTACT ---- */
.contact-layout { align-items: start; }
.contact-details { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; }
.contact-icon { font-size: 1.25rem; margin-top: 2px; }
.contact-item div { display: flex; flex-direction: column; }
.contact-item strong { font-size: 0.85rem; font-weight: 600; color: var(--clr-ink); }
.contact-item span, .contact-item a { font-size: 0.9rem; color: var(--clr-muted); }
.contact-item a:hover { color: var(--clr-accent); }

/* ---- FORM ---- */
.contact-form-wrap { background: var(--clr-surface-alt); border-radius: 16px; padding: 2.5rem; }
.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--clr-ink); margin-bottom: 0.4rem; }
.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--clr-ink);
    background: var(--clr-surface);
    transition: border-color var(--transition);
}
.form-control:focus { outline: none; border-color: var(--clr-accent); }
textarea.form-control { resize: vertical; }
.field-error { font-size: 0.8rem; color: #c0392b; margin-top: 0.3rem; display: block; }
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: 0.9rem; }
.alert-success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }

/* ---- ERROR PAGE ---- */
.error-page { padding: 8rem 0; text-align: center; }
.error-page h1 { margin-bottom: 1rem; }
.error-page .request-id { font-size: 0.8rem; color: var(--clr-muted); margin: 1rem 0; }
.error-page .btn { margin-top: 1.5rem; }

/* ---- FOOTER ---- */
.site-footer {
    background: var(--clr-ink);
    color: rgba(255,255,255,0.6);
    padding: 4rem 0 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer-brand .brand { font-size: 1.5rem; display: block; margin-bottom: 0.75rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.9rem; }
.footer-links h4, .footer-contact h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}
.footer-links a { display: block; font-size: 0.9rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer-links a:hover { color: var(--clr-accent); }
.footer-contact p, .footer-contact a { font-size: 0.9rem; display: block; color: rgba(255,255,255,0.6); margin-bottom: 0.5rem; }
.footer-contact a:hover { color: var(--clr-accent); }
.footer-bottom { padding-top: 2rem; text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3); }

/* ---- ANIMATIONS ---- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: calc(50% - 10px);
    padding: 15px;
    border: 1px solid rgba(255, 175, 3, 0.25);
    background: rgba(255,255,255,0.04);
    border-radius: 8px;
    transition: all 0.3s ease;
}

    .cert-item:hover {
        border-color: #ffaf03;
        transform: translateY(-2px);
    }

.cert-logo {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    padding: 5px;
}

    .cert-logo img {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

.cert-fallback {
    font-size: 24px;
    color: #ffaf03;
}

.cert-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.language-box {
    margin-top: 20px;
}

.language-item {
    margin-bottom: 25px;
}

    .language-item h5 {
        color: #ffffff;
        margin-bottom: 10px;
        font-size: 15px;
        font-weight: 600;
    }

.progress {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    overflow: hidden;
}

.progress-bar {
    background: #ffaf03;
    line-height: 8px;
    font-size: 0;
}

@media only screen and (max-width: 767px) {

    .cert-list {
        display: block;
    }

    .cert-item {
        width: 100%;
        margin-bottom: 15px;
    }

    .cert-name {
        font-size: 13px;
        line-height: 20px;
    }

    .cert-logo {
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
}