.hero-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-section #heroCarousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100vh !important;
    min-height: 600px;
}

.hero-section .carousel-item {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.75) 0%, rgba(102, 16, 242, 0.7) 100%);
    z-index: 1;
}

.hero-section .carousel-item .container {
    position: relative;
    z-index: 2;
}

.hero-section .carousel-item h1 {
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    opacity: 1;
    margin: 0 6px;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.2);
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
    margin: 0 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.hero-section:hover .carousel-control-prev,
.hero-section:hover .carousel-control-next {
    opacity: 1;
}

.hero-section .carousel-control-prev:hover,
.hero-section .carousel-control-next:hover {
    background: rgba(255,255,255,0.25);
}

.carousel-caption-content {
    animation: fadeSlideUp 0.8s ease forwards;
}

.carousel-item .carousel-caption-content {
    opacity: 0;
    transform: translateY(30px);
}

.carousel-item.active .carousel-caption-content {
    animation: fadeSlideUp 0.8s ease forwards;
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroPulse {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.navbar-scrolled {
    background: rgba(33, 37, 41, 0.95) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.unit-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.unit-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(13, 110, 253, 0.15) !important;
}

.unit-icon {
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background: rgba(13, 110, 253, 0.1);
    display: inline-block;
    transition: all 0.3s ease;
}

.unit-card:hover .unit-icon {
    background: rgba(13, 110, 253, 0.2);
    transform: scale(1.1);
}

.card {
    border-radius: 12px;
    overflow: hidden;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

html {
    scroll-behavior: smooth;
}

section {
    scroll-margin-top: 70px;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .hero-section .lead {
        font-size: 1rem;
    }
}

footer a.btn-outline-light {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

footer a.btn-outline-light:hover {
    transform: translateY(-3px);
}

#goToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #0d6efd;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

#goToTop.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#goToTop:hover {
    background: #0b5ed7;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(13, 110, 253, 0.4);
}

html[data-bs-theme="dark"] body {
    background: #1a1a2e;
    color: #e0e0e0;
}

html[data-bs-theme="dark"] .navbar {
    background: #16213e !important;
}

html[data-bs-theme="dark"] .navbar-scrolled {
    background: rgba(22, 33, 62, 0.95) !important;
}

html[data-bs-theme="dark"] .card {
    background: #16213e;
    border-color: #2a2a4a;
}

html[data-bs-theme="dark"] .bg-light {
    background: #1a1a2e !important;
}

html[data-bs-theme="dark"] .text-muted {
    color: #a0a0c0 !important;
}

html[data-bs-theme="dark"] footer.bg-dark {
    background: #0f0f23 !important;
}

section {
    transition: background-color 0.5s ease;
}

[data-aos] {
    transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-aos].aos-animate {
    transition-duration: inherit;
}
