html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
}

/* Hero Background */
.hero-bg {
    background: linear-gradient(135deg, rgba(27,42,74,0.92) 0%, rgba(27,42,74,0.8) 50%, rgba(27,42,74,0.7) 100%),
                url('/images/hero-bg.jpg') center/cover no-repeat;
    background-color: #1B2A4A;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Counter */
.counter-value {
    font-variant-numeric: tabular-nums;
}

/* Project Cards */
.project-card {
    transition: transform 0.3s ease;
}
.project-card:hover {
    transform: translateY(-8px);
}

/* Client Cards */
.client-card {
    transition: transform 0.3s ease;
}
.client-card:hover {
    transform: translateY(-4px);
}

/* Nav Links */
.nav-link {
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #F5A623;
    transition: width 0.3s ease;
}
.nav-link:hover::after {
    width: 100%;
}

/* Buttons */
.btn-primary {
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
.btn-outline:hover {
    transform: translateY(-2px);
}

/* Navbar */
#navbar {
    transition: background-color 0.3s ease;
}

/* Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
}
.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}
.carousel-slide {
    min-width: 100%;
    height: 280px;
    object-fit: cover;
}
img.carousel-slide {
    display: block;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(27,42,74,0.7);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 2;
}
.carousel-btn:hover {
    background: #F5A623;
}
.carousel-btn.prev {
    left: 12px;
}
.carousel-btn.next {
    right: 12px;
}
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
}
.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: background 0.3s ease;
}
.carousel-dot.active {
    background: #F5A623;
}

/* Celebration Animation */
.celebrate-wrapper {
    padding: 30px;
}

.celebrate-glow {
    position: absolute;
    inset: -8px;
    border-radius: 9999px;
    background: radial-gradient(ellipse, rgba(245,166,35,0.15) 0%, transparent 70%);
    animation: celebrate-pulse 2s ease-in-out infinite;
    z-index: 0;
}
@keyframes celebrate-pulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.celebrate-star {
    position: absolute;
    color: #F5A623;
    font-size: 14px;
    opacity: 0;
    pointer-events: none;
    z-index: 5;
    animation: star-pop 2.5s ease-in-out infinite;
}
.celebrate-star.s1 { top: 0;    left: 8%;   animation-delay: 0s;   font-size: 16px; }
.celebrate-star.s2 { top: -6px;  left: 25%;  animation-delay: 0.3s; font-size: 10px; color: #FFD700; }
.celebrate-star.s3 { top: 2px;   left: 45%;  animation-delay: 0.6s; font-size: 14px; }
.celebrate-star.s4 { top: -4px;  left: 68%;  animation-delay: 0.9s; font-size: 12px; color: #FFD700; }
.celebrate-star.s5 { top: 0;    left: 88%;  animation-delay: 1.2s; font-size: 16px; }
.celebrate-star.s6 { bottom: 0; left: 12%;  animation-delay: 1.5s; font-size: 12px; color: #FFD700; }
.celebrate-star.s7 { bottom: -4px; left: 50%; animation-delay: 1.8s; font-size: 16px; }
.celebrate-star.s8 { bottom: 0; left: 78%;  animation-delay: 2.1s; font-size: 10px; color: #FFD700; }

@keyframes star-pop {
    0%   { opacity: 0; transform: scale(0) rotate(0deg); }
    15%  { opacity: 1; transform: scale(1.2) rotate(20deg); }
    30%  { opacity: 1; transform: scale(1) rotate(0deg); }
    60%  { opacity: 0.7; transform: scale(0.9) rotate(-10deg); }
    100% { opacity: 0; transform: scale(0) rotate(0deg); }
}
