/* Welcome page specific styles */

@keyframes fadeInUp {
    0% { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes slideIn {
    0% { transform: translateX(-30px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes scaleIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.hero-bg {
    background: linear-gradient(135deg, #ac1e06 0%, #dc2626 50%, #daf9fc 100%);
    position: relative;
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    width: 100vw;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/sample1.jpg') center center/cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    opacity: 0.3;
    z-index: 1;
    transform: translateZ(0);
    will-change: transform;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: calc(100vh - 160px);
    min-height: calc(var(--vh, 1vh) * 100 - 160px);
    height: calc(100vh - 160px);
    height: calc(var(--vh, 1vh) * 100 - 160px);
    box-sizing: border-box;
}

/* Logo positioning and sizing - REMOVED */
/* Logo styles removed as logo is no longer displayed in hero section */

/* Ensure hero section doesn't overlap with fixed navbar */
.hero-bg {
    position: relative;
    z-index: 10;
    padding-top: 80px; /* Account for navbar */
    margin-top: 0;
    top: 0;
}

/* Desktop and large screen optimizations */
@media (min-width: 1200px) {
    .hero-bg {
        padding-top: 100px;
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-bg::before {
        background-attachment: fixed;
        background-position: center center;
        background-size: cover;
    }
    
    .hero-content {
        padding: 3rem 2rem;
        min-height: calc(100vh - 200px);
        height: calc(100vh - 200px);
    }
}

@media (min-width: 1024px) {
    .hero-bg {
        padding-top: 90px;
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-content {
        min-height: calc(100vh - 180px);
        height: calc(100vh - 180px);
    }
}

@media (min-width: 768px) {
    .hero-bg {
        padding-top: 85px;
        background-attachment: fixed;
        height: 100vh;
        min-height: 100vh;
    }
    
    .hero-bg::before {
        background-attachment: fixed;
        opacity: 0.3;
        background-position: center center;
    }
    
    .hero-content {
        padding: 2.5rem 2rem;
        min-height: calc(100vh - 170px);
        height: calc(100vh - 170px);
    }
}

/* Tablet responsive */
@media (min-width: 641px) and (max-width: 1023px) {
    .hero-bg {
        padding-top: 80px;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .hero-bg::before {
        opacity: 0.3;
        background-attachment: scroll;
        background-position: center center;
    }
    
    .hero-content {
        padding: 2rem 1.5rem;
        min-height: calc(100vh - 160px);
        min-height: calc(var(--vh, 1vh) * 100 - 160px);
    }
}

/* Mobile-first responsive design */
@media (max-width: 640px) {
    .hero-bg {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        padding-top: 70px;
        padding-bottom: 0;
        background-attachment: scroll;
    }
    
    .hero-bg::before {
        background-attachment: scroll;
        background-position: center center;
        background-size: cover;
        opacity: 0.25;
        transform: none;
        will-change: auto;
    }
    
    .hero-content {
        padding: 1.5rem 1rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        min-height: calc(100vh - 140px);
        min-height: calc(var(--vh, 1vh) * 100 - 140px);
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-bg {
        padding-top: 60px;
        padding-bottom: 0;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .hero-bg::before {
        opacity: 0.2;
        background-size: cover;
        background-position: center 30%;
    }
    
    .hero-content {
        padding: 1rem 0.75rem;
        min-height: calc(100vh - 120px);
        min-height: calc(var(--vh, 1vh) * 100 - 120px);
    }
}

@media (max-width: 360px) {
    .hero-bg {
        padding-top: 50px;
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .hero-bg::before {
        opacity: 0.15;
        background-position: center 25%;
    }
    
    .hero-content {
        padding: 0.75rem 0.5rem;
        min-height: calc(100vh - 100px);
        min-height: calc(var(--vh, 1vh) * 100 - 100px);
    }
}

/* Landscape mobile fixes */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero-bg {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
        padding-top: 40px;
        padding-bottom: 0;
    }
    
    .hero-bg::before {
        opacity: 0.2;
        background-position: center center;
    }
    
    .hero-content {
        padding: 0.5rem 1rem;
        min-height: calc(100vh - 80px);
        min-height: calc(var(--vh, 1vh) * 100 - 80px);
        justify-content: center;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .hero-bg {
        padding-top: 110px;
    }
    
    .hero-content {
        min-height: calc(100vh - 220px);
        padding: 4rem 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg::before {
        background-image: url('../images/sample1.jpg');
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .hero-bg {
        min-height: -webkit-fill-available;
    }
    
    @media (max-width: 640px) {
        .hero-bg {
            min-height: -webkit-fill-available;
        }
        
        .hero-bg::before {
            background-attachment: scroll;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        
        .hero-content {
            min-height: calc(-webkit-fill-available - 140px);
        }
    }
}

/* Android Chrome specific fixes */
@media screen and (max-width: 640px) {
    .hero-bg {
        min-height: 100vh;
        min-height: calc(var(--vh, 1vh) * 100);
    }
    
    .hero-content {
        min-height: calc(100vh - 140px);
        min-height: calc(var(--vh, 1vh) * 100 - 140px);
    }
}

/* Prevent content overflow */
.hero-bg {
    box-sizing: border-box;
}

.hero-content * {
    box-sizing: border-box;
}

/* Ensure proper aspect ratio maintenance */
@media (aspect-ratio: 16/9) {
    .hero-bg::before {
        background-position: center center;
    }
}

@media (aspect-ratio: 4/3) {
    .hero-bg::before {
        background-position: center 40%;
    }
}

@media (aspect-ratio: 3/2) {
    .hero-bg::before {
        background-position: center 35%;
    }
}

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    will-change: transform;
}

.parallax-container .parallax-bg {
    opacity: 0.1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

.navbar-blur {
    background: linear-gradient(135deg, #ac1e06 0%, #dc2626 50%, #daf9fc 100%);
    border-bottom: none;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(172, 30, 6, 0.1);
}

.modern-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, #dc2626 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intersection-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.intersection-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced Carousel Styles */
.carousel-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-image.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
    visibility: visible;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav:hover {
    background: rgba(172, 30, 6, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav i {
    font-size: 18px;
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 12;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ac1e06, #d32f2f);
    width: 0;
    transition: width 0.1s linear;
}

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 12;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #ac1e06;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(172, 30, 6, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(172, 30, 6, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

/* Image Counter */
.carousel-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 12;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(172, 30, 6, 0.05), rgba(218, 249, 252, 0.05));
    z-index: 8;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        gap: 10px;
        padding: 8px 15px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

.parallax-container {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 300%;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.1;
    will-change: transform;
}

.parallax-container .parallax-bg {
    opacity: 0.1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-in {
    animation: slideIn 0.8s ease-out forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease-out forwards;
}

.navbar-blur {
    background: linear-gradient(135deg, #ac1e06 0%, #dc2626 50%, #daf9fc 100%);
    border-bottom: none;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.card-hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border-color: rgba(172, 30, 6, 0.1);
}

.modern-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.text-gradient {
    background: linear-gradient(135deg, #dc2626 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intersection-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.intersection-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    min-width: 200px;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enhanced Carousel Styles */
.carousel-container {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.1);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-image.active {
    opacity: 1;
    transform: scale(1);
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-container:hover .carousel-nav {
    opacity: 1;
    visibility: visible;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-nav:hover {
    background: rgba(172, 30, 6, 0.9);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav i {
    font-size: 18px;
}

/* Progress Bar */
.carousel-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 12;
}

.carousel-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ac1e06, #d32f2f);
    width: 0;
    transition: width 0.1s linear;
}

/* Dots Navigation */
.carousel-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 12;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: #ac1e06;
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(172, 30, 6, 0.6);
    border-color: rgba(255, 255, 255, 0.8);
}

.carousel-dot.active::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(172, 30, 6, 0.3);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

/* Image Counter */
.carousel-counter {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 12;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(172, 30, 6, 0.05), rgba(218, 249, 252, 0.05));
    z-index: 8;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav i {
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .carousel-dots {
        gap: 10px;
        padding: 8px 15px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .carousel-counter {
        top: 10px;
        right: 10px;
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Perfect Screen Fit - Additional Enhancements */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Ensure hero section takes exact viewport dimensions */
.hero-bg {
    position: relative;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

/* Perfect fit for all screen sizes */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }
    
    .hero-bg {
        width: 100vw !important;
        max-width: 100vw !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        height: 100vh !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        min-height: 100vh !important;
        min-height: calc(var(--vh, 1vh) * 100) !important;
        max-height: 100vh !important;
        max-height: calc(var(--vh, 1vh) * 100) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .hero-bg::before {
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
    
    .hero-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
        height: calc(100vh - 140px) !important;
        height: calc(var(--vh, 1vh) * 100 - 140px) !important;
        min-height: calc(100vh - 140px) !important;
        min-height: calc(var(--vh, 1vh) * 100 - 140px) !important;
        max-height: calc(100vh - 140px) !important;
        max-height: calc(var(--vh, 1vh) * 100 - 140px) !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Tablet perfect fit */
@media (min-width: 641px) and (max-width: 1023px) {
    .hero-bg {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-content {
        height: calc(100vh - 160px) !important;
        min-height: calc(100vh - 160px) !important;
        max-height: calc(100vh - 160px) !important;
    }
}

/* Desktop perfect fit */
@media (min-width: 1024px) {
    .hero-bg {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-content {
        height: calc(100vh - 180px) !important;
        min-height: calc(100vh - 180px) !important;
        max-height: calc(100vh - 180px) !important;
    }
}

/* Ultra-wide perfect fit */
@media (min-width: 1440px) {
    .hero-bg {
        height: 100vh !important;
        min-height: 100vh !important;
        max-height: 100vh !important;
    }
    
    .hero-content {
        height: calc(100vh - 220px) !important;
        min-height: calc(100vh - 220px) !important;
        max-height: calc(100vh - 220px) !important;
    }
}

/* Force hardware acceleration for smooth performance */
.hero-bg,
.hero-bg::before,
.hero-content {
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Prevent any layout shifts */
.hero-bg * {
    box-sizing: border-box;
}

/* Ensure perfect aspect ratio maintenance */
@media (aspect-ratio: 16/9) {
    .hero-bg::before {
        background-position: center center !important;
    }
}

@media (aspect-ratio: 4/3) {
    .hero-bg::before {
        background-position: center 40% !important;
    }
}

@media (aspect-ratio: 3/2) {
    .hero-bg::before {
        background-position: center 35% !important;
    }
}

@media (aspect-ratio: 21/9) {
    .hero-bg::before {
        background-position: center center !important;
    }
}
/* Hero Logo Styles - Very Small Compact Logo */
.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 0.5rem;
}

.hero-logo {
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    object-fit: cover;
    object-position: center;
}

.hero-logo:hover {
    transform: scale(1.05) translateZ(0);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Desktop and large screens - Very small compact logo */
@media (min-width: 1200px) {
    .hero-logo {
        width: 32px;
        height: 32px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.75rem;
    }
}

/* Desktop */
@media (min-width: 1024px) and (max-width: 1199px) {
    .hero-logo {
        width: 30px;
        height: 30px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.75rem;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-logo {
        width: 28px;
        height: 28px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.5rem;
    }
}

/* Mobile large */
@media (min-width: 641px) and (max-width: 767px) {
    .hero-logo {
        width: 26px;
        height: 26px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.5rem;
    }
}

/* Mobile */
@media (max-width: 640px) {
    .hero-logo {
        width: 24px;
        height: 24px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.5rem;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .hero-logo {
        width: 22px;
        height: 22px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.5rem;
    }
}

/* Very small mobile */
@media (max-width: 360px) {
    .hero-logo {
        width: 20px;
        height: 20px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.25rem;
    }
}

/* Landscape mobile */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero-logo {
        width: 20px;
        height: 20px;
    }
    
    .hero-logo-container {
        margin-bottom: 0.25rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1440px) {
    .hero-logo {
        width: 36px;
        height: 36px;
    }
    
    .hero-logo-container {
        margin-bottom: 1rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-logo {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Animation enhancements for very small logo */
.hero-logo-container.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Very small logo loading optimization */
.hero-logo {
    loading: eager;
    decoding: async;
}
/* Hero Logo Animation States - Very Small Compact Logo */
.hero-logo-container {
    opacity: 0;
    transform: translateY(5px);
    transition: all 0.5s ease-out;
}

.hero-logo-container.animate-in,
.hero-logo-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo-container.logo-loaded .hero-logo {
    animation: verySmallLogoFadeIn 0.4s ease-out forwards;
}

@keyframes verySmallLogoFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateZ(0);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateZ(0);
    }
}

/* Very small logo loading state */
.hero-logo {
    opacity: 0;
    transition: opacity 0.25s ease;
}

.logo-loaded .hero-logo {
    opacity: 1;
}

/* Enhanced very small logo shadow for visibility */
.hero-logo {
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

/* Very small logo hover animation */
.hero-logo:hover {
    animation: verySmallLogoPulse 0.3s ease-in-out;
}

@keyframes verySmallLogoPulse {
    0%, 100% {
        transform: scale(1) translateZ(0);
    }
    50% {
        transform: scale(1.05) translateZ(0);
    }
}

/* Responsive very small logo container spacing adjustments */
@media (max-width: 640px) {
    .hero-logo-container {
        margin-bottom: 0.5rem;
    }
    
    .hero-content h1 {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .hero-logo-container {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 360px) {
    .hero-logo-container {
        margin-bottom: 0.25rem;
    }
}

/* Landscape mobile adjustments for very small logo */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 500px) {
    .hero-logo-container {
        margin-bottom: 0.25rem;
    }
}