/* ============================================
   Dr. Jagan S. Akella — Medical Practice
   Clean Minimalist | Terracotta + Sand
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
}

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

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #FAF6F0;
}
::-webkit-scrollbar-thumb {
    background: #DCC4AA;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #B56C4F;
}

/* --- Selection --- */
::selection {
    background: #EAD9CE;
    color: #4D2B22;
}

/* --- Navigation --- */
#navbar {
    background: rgba(253, 252, 250, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(212, 212, 206, 0.5);
}

#navbar.scrolled {
    background: rgba(253, 252, 250, 0.95);
    box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #B56C4F;
    transition: width 0.3s ease;
}

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

/* --- Mobile Menu --- */
.menu-line {
    display: block;
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.active .menu-line:first-child {
    transform: translateY(6px) rotate(45deg);
}

#mobile-menu.active .menu-line:last-child {
    transform: translateY(-6px) rotate(-45deg);
    width: 24px;
}

.mobile-nav-link {
    position: relative;
}

/* --- Hero --- */
.hero-eyebrow {
    opacity: 1;
    animation: fadeDown 0.8s ease forwards;
}

.hero-headline {
    opacity: 1;
    animation: fadeUp 0.9s ease 0.15s forwards;
    opacity: 0;
}

.hero-subtitle {
    opacity: 1;
    animation: fadeUp 0.9s ease 0.3s forwards;
    opacity: 0;
}

.hero-ctas {
    opacity: 1;
    animation: fadeUp 0.9s ease 0.45s forwards;
    opacity: 0;
}

.hero-image-wrap {
    opacity: 1;
    animation: fadeLeft 1s ease 0.3s forwards;
    opacity: 0;
}

.hero-image-frame {
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.hero-image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(77, 43, 34, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.hero-image {
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hero-image-wrap:hover .hero-image {
    transform: scale(1.02);
}

.hero-accent {
    opacity: 0.6;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: #B56C4F;
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(181, 108, 79, 0.25);
}

.btn-primary:hover {
    background: #9A553D;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(181, 108, 79, 0.35);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #5C5C53;
    padding: 14px 28px;
    border-radius: 2px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #D4D4CE;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    border-color: #B56C4F;
    color: #B56C4F;
}

.btn-cta {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.btn-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.2);
}

.btn-submit {
    box-shadow: 0 4px 16px rgba(181, 108, 79, 0.25);
}

.btn-submit:hover {
    box-shadow: 0 6px 24px rgba(181, 108, 79, 0.35);
}

/* --- Scroll Indicator --- */
.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

/* --- Reveal Animations --- */
.reveal-section {
    opacity: 1;
}

.reveal-item {
    opacity: 1;
}

/* --- Approach Items --- */
.approach-item {
    border-left: 1px solid rgba(181, 108, 79, 0.2);
    padding-left: 20px;
    transition: border-color 0.3s ease;
}

.approach-item:hover {
    border-left-color: rgba(181, 108, 79, 0.6);
}

/* --- Input Focus --- */
input:focus,
textarea:focus {
    background: #ffffff;
}

/* --- Divider --- */
h2 em,
h1 em {
    font-style: italic;
    font-weight: 400;
}

/* --- Animations --- */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(0.6);
        transform-origin: top;
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .hero-headline,
    .hero-subtitle,
    .hero-ctas,
    .hero-image-wrap {
        opacity: 1;
        animation: none;
    }
    
    .scroll-line {
        animation: none;
        opacity: 0.6;
    }
}

/* --- Responsive --- */
@media (max-width: 767px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 16px;
        display: inline-flex;
    }
    
    .hero-accent {
        display: none;
    }
    
    .approach-item {
        border-left: none;
        padding-left: 0;
        padding-top: 16px;
        border-top: 1px solid rgba(181, 108, 79, 0.15);
    }
    
    .approach-item:first-child {
        padding-top: 0;
        border-top: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hero-headline {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-headline {
        font-size: 4.25rem;
    }
}

@media (min-width: 1280px) {
    .hero-headline {
        font-size: 5rem;
    }
}
