/* ===== Custom Styles for Deepak Vadhan, MD ===== */

/* Base */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== Geometric Shapes ===== */
.geometric-shape {
    position: absolute;
    opacity: 0.6;
    pointer-events: none;
}

.shape-circle-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    background: #d14324;
    border-radius: 50%;
    opacity: 0.08;
    animation: float 8s ease-in-out infinite;
}

.shape-square-1 {
    top: 30%;
    right: 15%;
    width: 80px;
    height: 80px;
    background: #e2a852;
    border-radius: 16px;
    opacity: 0.12;
    transform: rotate(15deg);
    animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-2 {
    bottom: 20%;
    left: 10%;
    width: 60px;
    height: 60px;
    background: #d14324;
    border-radius: 50%;
    opacity: 0.06;
    animation: float 10s ease-in-out infinite;
}

.shape-triangle-1 {
    top: 60%;
    right: 8%;
    width: 0;
    height: 0;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid #d14324;
    opacity: 0.06;
    transform: rotate(-15deg);
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(var(--rotate, 0deg)); }
    50% { transform: translateY(-20px) rotate(var(--rotate, 0deg)); }
}

.shape-square-1 { --rotate: 15deg; }
.shape-triangle-1 { --rotate: -15deg; }

/* ===== Hero Animations ===== */
.hero-tag {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-image {
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Service Cards ===== */
.service-card {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== Navbar ===== */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(253, 248, 240, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

#mobileMenu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Selection ===== */
::selection {
    background: #d14324;
    color: white;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #FDF8F0;
}

::-webkit-scrollbar-thumb {
    background: #d14324;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b8321a;
}

/* ===== Focus States ===== */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #d14324;
    outline-offset: 2px;
}

/* ===== Smooth Image Loading ===== */
img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img.loaded {
    opacity: 1;
}

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 60px;
        height: 60px;
    }
    
    .shape-square-1 {
        width: 40px;
        height: 40px;
    }
    
    .shape-triangle-1 {
        border-left-width: 20px;
        border-right-width: 20px;
        border-bottom-width: 35px;
    }
}
