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

html {
    scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f0f3f9;
}
::-webkit-scrollbar-thumb {
    background: #d49a1a;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b37d12;
}

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
}

.circle-1 {
    top: 8%;
    right: 5%;
    width: 400px;
    height: 400px;
    border: 3px solid rgba(212, 154, 26, 0.12);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.circle-2 {
    top: 45%;
    right: 15%;
    width: 120px;
    height: 120px;
    background: rgba(212, 154, 26, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.triangle-1 {
    bottom: 20%;
    left: 5%;
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(26, 36, 56, 0.06);
    animation: rotate 12s linear infinite;
}

.square-1 {
    top: 30%;
    left: 8%;
    width: 80px;
    height: 80px;
    border: 3px solid rgba(212, 154, 26, 0.15);
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.dot-cluster {
    top: 60%;
    right: 3%;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(circle, rgba(212, 154, 26, 0.2) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0.6;
}

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

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Hero Animations */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.hero-image {
    opacity: 0;
    transform: translateX(30px);
    animation: slideRight 0.8s ease 0.2s forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Navigation */
.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

.mobile-menu-open .mobile-link {
    animation: fadeInUp 0.4s ease forwards;
}

.mobile-menu-open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu-open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu-open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu-open .mobile-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Service Cards */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.service-card:nth-child(1).visible { animation-delay: 0.05s; }
.service-card:nth-child(2).visible { animation-delay: 0.1s; }
.service-card:nth-child(3).visible { animation-delay: 0.15s; }
.service-card:nth-child(4).visible { animation-delay: 0.2s; }
.service-card:nth-child(5).visible { animation-delay: 0.25s; }
.service-card:nth-child(6).visible { animation-delay: 0.3s; }

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

/* Community Cards */
.community-card {
    opacity: 0;
    transform: translateY(20px);
}

.community-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.community-card:nth-child(1).visible { animation-delay: 0.1s; }
.community-card:nth-child(2).visible { animation-delay: 0.2s; }
.community-card:nth-child(3).visible { animation-delay: 0.3s; }

/* About Images */
.about-images {
    opacity: 0;
    transform: scale(0.95);
}

.about-images.visible {
    animation: scaleIn 0.8s ease forwards;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Navbar Scroll State */
.navbar-scrolled {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 20px rgba(26, 36, 56, 0.08);
}

.navbar-scrolled .nav-link {
    color: #1a2438;
}

.navbar-scrolled .menu-line {
    background: #1a2438;
}

/* Focus Styles */
input:focus, textarea:focus, button:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .geo-shape, .navbar-scrolled, #mobileMenu {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
