/* ================================
   ARYA AZIZI - ATTORNEY WEBSITE
   Inspired by emilyzhao.xyz
   Palette: Navy #1a2332, Off-white #f8f6f3, Gold #c9a961
   ================================ */

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

:root {
    --navy: #1a2332;
    --navy-light: #243044;
    --navy-dark: #0f1620;
    --offwhite: #f8f6f3;
    --offwhite-dark: #efe9e1;
    --gold: #c9a961;
    --gold-light: #d4b978;
    --gold-dark: #b8944a;
    --text-primary: #1a2332;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --white: #ffffff;
    --glass: rgba(255, 255, 255, 0.85);
    --glass-strong: rgba(255, 255, 255, 0.95);
    --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.1);
    --shadow-lg: 0 10px 40px rgba(26, 35, 50, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 35, 50, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--offwhite);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* === NAVIGATION === */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 24px;
    transition: var(--transition);
    background: transparent;
}

#navbar.scrolled {
    background: var(--glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid rgba(201, 169, 97, 0.1);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.02em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: var(--transition);
    border-radius: 2px;
}

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

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

/* === HERO SECTION === */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 120px 24px 80px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(26, 35, 50, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(201, 169, 97, 0.05) 0%, transparent 40%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-photo-wrapper {
    margin-bottom: 32px;
}

.hero-photo-border {
    width: 180px;
    height: 180px;
    margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy), var(--gold), var(--navy-light));
    padding: 4px;
    box-shadow: var(--shadow-lg);
}

.hero-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: var(--offwhite);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 40%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--gold-dark);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-tagline {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--offwhite);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    letter-spacing: 0.01em;
}

.hero-cta:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--navy);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    opacity: 0.6;
}

/* === SECTIONS BASE === */
section:not(#hero) {
    padding: 100px 24px;
}

section:nth-child(odd):not(#hero) {
    background: var(--white);
}

.section-inner {
    max-width: 1100px;
    margin: 0 auto;
}

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

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(201, 169, 97, 0.1);
    border-radius: var(--radius-full);
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* === ABOUT SECTION === */
.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-text .section-label {
    margin-bottom: 20px;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: 28px;
}

.about-description {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

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

.stat-card {
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 97, 0.12);
    border-radius: var(--radius);
    padding: 28px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.25);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.stat-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* === PRACTICE AREAS === */
.practice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.practice-card {
    position: relative;
    background: var(--glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.practice-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(201, 169, 97, 0.25);
}

.practice-card-accent {
    height: 4px;
    background: linear-gradient(135deg, var(--navy), var(--gold));
    transition: height 0.3s ease;
}

.practice-card:hover .practice-card-accent {
    height: 6px;
}

.practice-card-content {
    padding: 36px 32px;
}

.practice-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}

.practice-card:hover .practice-icon {
    transform: scale(1.1);
}

.practice-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.practice-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === APPROACH SECTION === */
.approach-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.approach-step {
    padding: 40px 36px;
    background: var(--glass);
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-radius: var(--radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.approach-step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 169, 97, 0.2);
}

.step-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    line-height: 1;
}

.approach-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.approach-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* === CONTACT SECTION === */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--white);
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.contact-card:hover {
    background: rgba(201, 169, 97, 0.05);
    border-color: rgba(201, 169, 97, 0.25);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.contact-card-icon {
    font-size: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(26, 35, 50, 0.05));
    border-radius: 12px;
    flex-shrink: 0;
}

.contact-card h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Contact Form */
.contact-form {
    background: var(--white);
    border: 1px solid rgba(201, 169, 97, 0.1);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(26, 35, 50, 0.12);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--offwhite);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.15);
    background: var(--white);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: var(--offwhite);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
    color: var(--navy);
    box-shadow: var(--shadow-md);
}

/* === FOOTER === */
footer {
    background: var(--navy);
    color: var(--offwhite);
    padding: 60px 24px 40px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.footer-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--offwhite);
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gold);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(248, 246, 243, 0.6);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-bottom {
    text-align: center;
}

.disclaimer {
    font-size: 0.78rem;
    color: rgba(248, 246, 243, 0.4);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 16px;
}

.copyright {
    font-size: 0.8rem;
    color: rgba(248, 246, 243, 0.5);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

.animate-fade-in,
.animate-fade-up,
.animate-slide-left,
.animate-slide-right {
    opacity: 0;
}

.animate-fade-in.visible { animation: fadeIn 0.8s ease forwards; }
.animate-fade-up.visible { animation: fadeIn 0.8s ease forwards; }
.animate-slide-left.visible { animation: slideLeft 0.8s ease forwards; }
.animate-slide-right.visible { animation: slideRight 0.8s ease forwards; }

.delay-1.visible { animation-delay: 0.15s; }
.delay-2.visible { animation-delay: 0.3s; }
.delay-3.visible { animation-delay: 0.45s; }
.delay-4.visible { animation-delay: 0.6s; }

.animate-bounce { animation: bounce 2.5s ease infinite; }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .section-grid,
    .practice-grid,
    .approach-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .about-text .section-title {
        text-align: center;
    }

    .about-text .section-label {
        display: block;
        text-align: center;
    }

    .about-description {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--glass-strong);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 32px;
        transition: right 0.35s ease;
        box-shadow: -10px 0 40px rgba(0,0,0,0.1);
    }

    .nav-links.open {
        right: 0;
    }

    .hero-photo-border {
        width: 140px;
        height: 140px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    section:not(#hero) {
        padding: 72px 20px;
    }

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

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

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

    .contact-form {
        padding: 28px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-photo-border {
        width: 120px;
        height: 120px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .practice-card-content {
        padding: 28px 24px;
    }

    .approach-step {
        padding: 28px 24px;
    }
}

/* === SCROLL REVEAL HELPERS === */
.section-inner > *,
.hero-content > * {
    will-change: transform, opacity;
}
