:root {
    --navy: #1a2456;         /* Primary navy from logo icon */
    --purple: #6b3b8f;       /* Purple from logo icon */
    --silver: #8a8fa8;       /* Silver/gray from logo text */
    --light-gray: #f4f5f8;   /* Soft off-white background */
    --mid-gray: #e8eaf0;     /* Card/divider background */
    --text-dark: #1a1a2e;    /* Near-black text */
    --text-body: #3d3d5c;    /* Body text */
    --white: #ffffff;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 16px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--mid-gray);
    transition: box-shadow 0.3s ease, padding 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 2px 20px rgba(26, 36, 86, 0.12);
    padding: 12px 50px;
}

.logo img {
    max-width: 200px;
    height: auto;
    display: block;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    margin-left: 30px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--purple);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(160deg, var(--white) 0%, var(--light-gray) 100%);
    text-align: center;
    border-bottom: 3px solid var(--mid-gray);
}

.hero-logo {
    margin-bottom: 40px;
    background: var(--white);
    padding: 24px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(26,36,86,0.10);
    border: 1px solid var(--mid-gray);
    display: inline-block;
}

.hero-logo img {
    max-width: 380px;
    width: 80vw;
    height: auto;
    display: block;
    margin: 0 auto;
    animation: logoFadeIn 1.2s ease both;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.hero-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--navy), var(--purple));
    margin: 0 auto 35px;
    border-radius: 2px;
}

.contact-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 1.15rem;
}

.contact-link {
    color: var(--text-body);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 22px;
    border: 1.5px solid var(--mid-gray);
    border-radius: 50px;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(26,36,86,0.06);
}

.contact-link i {
    color: var(--purple);
}

.contact-link:hover {
    color: var(--navy);
    border-color: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26,36,86,0.12);
}

.divider {
    color: var(--mid-gray);
    font-size: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: var(--silver);
    font-size: 1.8rem;
    transition: color 0.3s;
    text-decoration: none;
}

.scroll-indicator a:hover {
    color: var(--navy);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
    60% { transform: translateY(-10px); }
}

/* Sections General */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 20px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 50px;
    text-align: center;
    color: var(--navy);
}

/* Services */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 28px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-dark);
    transition: all 0.4s ease;
    border: 1.5px solid var(--mid-gray);
    border-top: 4px solid var(--navy);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(26,36,86,0.04);
}

.service-card:hover {
    transform: translateY(-8px);
    border-top-color: var(--purple);
    box-shadow: 0 16px 40px rgba(107,59,143,0.14);
}

.service-card .icon {
    font-size: 2.2rem;
    color: var(--navy);
    margin-bottom: 20px;
    transition: color 0.3s;
}

.service-card:hover .icon {
    color: var(--purple);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.service-card p.card-desc {
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    flex-grow: 1;
}

.service-card p.card-link {
    color: var(--silver);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
    font-weight: 600;
    margin-top: auto;
}

.service-card:hover p.card-link {
    color: var(--purple);
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 36, 86, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    padding: 50px;
    border-radius: 14px;
    max-width: 820px;
    width: 100%;
    position: relative;
    border-top: 5px solid var(--navy);
    box-shadow: 0 20px 60px rgba(26,36,86,0.25);
}

.modal-box .section-title {
    font-size: 2rem;
    margin-bottom: 30px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: 1.5px solid var(--mid-gray);
    color: var(--silver);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    font-weight: 600;
}

.close-modal:hover {
    color: var(--navy);
    border-color: var(--navy);
}

.modal-content h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--navy);
    font-weight: 700;
    margin: 30px 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mid-gray);
}

.modal-content ul {
    list-style: none;
    padding: 0;
}

.modal-content ul li {
    padding: 10px 0;
    border-bottom: 1px solid var(--mid-gray);
    color: var(--text-body);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-content ul li strong {
    color: var(--navy);
}

/* Bio Section */
.bio {
    background: var(--white);
    border-top: 1px solid var(--mid-gray);
}

.bio-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: start;
}

.bio-portrait {
    text-align: center;
    position: sticky;
    top: 100px;
}

.bio-portrait img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
    border: 3px solid var(--mid-gray);
    box-shadow: 0 8px 30px rgba(26,36,86,0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.bio-portrait img:hover {
    box-shadow: 0 14px 40px rgba(107,59,143,0.2);
    transform: translateY(-4px);
}

.portrait-caption {
    margin-top: 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.bio-content {
    max-width: 820px;
    margin: 0 auto;
}

.bio .subtitle {
    color: var(--silver);
    font-style: normal;
    margin-bottom: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.bio-text p {
    margin-bottom: 25px;
    font-size: 1.05rem;
    color: var(--text-body);
    text-align: justify;
    line-height: 1.85;
}

/* Footer */
footer {
    background: var(--navy);
    text-align: center;
    padding: 24px 0;
    border-top: 3px solid var(--purple);
}

footer p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }

/* Responsive */
@media (max-width: 900px) {
    .bio-layout {
        grid-template-columns: 1fr;
    }
    .bio-portrait {
        position: static;
    }
    .bio-portrait img {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .hero-logo { padding: 16px 24px; }
    .hero-logo img { max-width: 260px; }
    .contact-info { flex-direction: column; gap: 12px; }
    .divider { display: none; }
    nav { padding: 14px 20px; }
    .nav-links { display: none; }
    .section-title { font-size: 2rem; }
    .services-grid { grid-template-columns: 1fr; }
}
