/* === HERO SECTION RESPONSIVE OPTIMIZATION === */
.hero {
    min-height: 100vh;
    width: 100vw;
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    padding: 0;
}

.hero-bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
}
.hero-bg-media video {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    min-width: 100vw;
    min-height: 100vh;
    max-width: 100vw;
    max-height: 100vh;
    display: block;
}
.hero-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
    pointer-events: none;
    overflow: hidden;
}
.hero-main {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.2rem;
    box-sizing: border-box;
    padding: 2rem 1rem;
}

@media (max-width: 1024px) {
    .hero,
    .hero-bg-media,
    .hero-floating-icons {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }
    .hero-main {
        max-width: 98vw;
        padding: 1.5rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .hero,
    .hero-bg-media,
    .hero-floating-icons {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }
    .hero-main {
        max-width: 100vw;
        padding: 1rem 0.2rem;
        gap: 1.2rem;
    }
    .hero-main h1 {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
    }
}

@media (max-width: 480px) {
    .hero,
    .hero-bg-media,
    .hero-floating-icons {
        width: 100vw;
        height: 100vh;
        min-width: 100vw;
        min-height: 100vh;
        max-width: 100vw;
        max-height: 100vh;
    }
    .hero-main {
        max-width: 100vw;
        padding: 0.5rem 0.1rem;
        gap: 0.7rem;
    }
    .hero-main h1 {
        font-size: clamp(1.1rem, 7vw, 1.7rem);
    }
}
/* Index Page Specific Responsive Fixes */
/* This file addresses the index page responsive issues */

/* ===== INDEX PAGE RESPONSIVE FRAMEWORK ===== */

/* Preloader Responsiveness */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a365d 0%, #2c5aa0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Instant hide for immediate access */
.preloader.instant-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.1s ease, visibility 0.1s ease !important;
}

.preloader-content {
    text-align: center;
    padding: 2rem;
    max-width: 90%;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    text-align: center;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .preloader-content {
        padding: 1rem;
    }
    
    .preloader-logo img {
        width: 200px !important;
        margin-bottom: 1rem !important;
    }
    
    .welcome-header h1 {
        font-size: 1.8rem !important;
    }
    
    .welcome-description p {
        font-size: 1rem !important;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .preloader-logo img {
        width: 160px !important;
    }
    
    .welcome-header h1 {
        font-size: 1.5rem !important;
    }
    
    .welcome-description p {
        font-size: 0.9rem !important;
    }
}

/* Hero Section Comprehensive Responsiveness */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero-container {
        padding: 2rem;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        padding: 3rem 2rem;
    }
}

/* Hero Content Responsiveness */
.hero-content {
    order: 2;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        order: 1;
        text-align: left;
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
        gap: 0.3rem;
    }
    
    .hero-badge span {
        display: none;
    }
    
    .hero-badge::after {
        content: "Since 2015";
    }
}

.hero-title {
    font-size: clamp(1.75rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.hero-title .highlight-text {
    display: block;
    background: linear-gradient(135deg, var(--secondary-color), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0.5rem 0;
}

@media (max-width: 768px) {
    .hero-title {
        margin-bottom: 1rem;
    }
}

.hero-description {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
}

@media (min-width: 1024px) {
    .hero-description {
        margin-bottom: 2.5rem;
    }
}

/* Hero Buttons Responsiveness */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        gap: 1.5rem;
        justify-content: center;
    }
}

@media (min-width: 1024px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
    justify-content: center;
    width: 100%;
    max-width: 250px;
}

@media (min-width: 640px) {
    .btn-primary,
    .btn-secondary {
        width: auto;
        max-width: none;
    }
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 54, 93, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
    border: 2px solid rgba(26, 54, 93, 0.2);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(26, 54, 93, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Credentials Responsive Grid */
.hero-credentials {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .hero-credentials {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
        max-width: 600px;
    }
}

@media (min-width: 1024px) {
    .hero-credentials {
        margin: 0;
        max-width: none;
    }
}

.credential {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.credential-number {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.credential-text {
    font-size: clamp(0.75rem, 2vw, 0.875rem);
    color: #64748b;
    font-weight: 500;
}

/* Hero Visual Section */
.hero-visual {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-visual {
        order: 2;
    }
}

.hero-image-container {
    width: 100%;
    max-width: 400px;
    position: relative;
}

@media (min-width: 1024px) {
    .hero-image-container {
        max-width: 500px;
    }
}

.hero-card {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(250, 252, 255, 0.85));
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 
        0 10px 30px rgba(15, 23, 42, 0.08),
        0 4px 12px rgba(71, 85, 105, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(226, 232, 240, 0.5);
    backdrop-filter: blur(10px);
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    transform: translateY(0);
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(99, 102, 241, 0.6), rgba(139, 92, 246, 0.6));
    border-radius: 20px 20px 0 0;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.02) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 15px 40px rgba(15, 23, 42, 0.12),
        0 8px 20px rgba(71, 85, 105, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(139, 92, 246, 0.15);
}

@media (max-width: 768px) {
    .hero-card {
        padding: 2rem;
        border-radius: 16px;
        box-shadow: 
            0 8px 25px rgba(15, 23, 42, 0.08),
            0 4px 12px rgba(71, 85, 105, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.7);
    }
    
    .hero-card:hover {
        transform: translateY(-3px);
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }
}

.card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #6366f1;
    font-size: 1.75rem;
    position: relative;
    z-index: 1;
    box-shadow: 
        0 6px 18px rgba(99, 102, 241, 0.15),
        0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.card-icon::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.08));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-card:hover .card-icon::before {
    opacity: 1;
}

.hero-card:hover .card-icon {
    transform: scale(1.05);
    box-shadow: 
        0 8px 22px rgba(99, 102, 241, 0.2),
        0 4px 12px rgba(15, 23, 42, 0.12);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.2));
}

@media (max-width: 768px) {
    .card-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
}

.hero-card h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    line-height: 1.3;
}

.hero-card p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    font-weight: 400;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 480px) {
    .card-features {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #475569;
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.card-features span:hover {
    background: rgba(99, 102, 241, 0.05);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateY(-1px);
    color: #3730a3;
}

.card-features i {
    color: #6366f1;
    font-size: 0.8rem;
    filter: drop-shadow(0 1px 2px rgba(99, 102, 241, 0.2));
}

/* About Section Responsiveness */
.about {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .about {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .about {
        padding: 6rem 0;
    }
}

.about-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .about-content {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .section-header {
        text-align: left;
        margin-bottom: 2rem;
    }
}

.section-tag {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.text-highlight {
    background: linear-gradient(135deg, var(--secondary-color), #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Floating Elements Animation - Responsive */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.element {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}

.element-1 {
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, var(--secondary-color), #f59e0b);
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.element-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-color), #2c5aa0);
    bottom: 30%;
    right: 15%;
    animation: float 8s ease-in-out infinite reverse;
}

.element-3 {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #10b981, #059669);
    top: 60%;
    left: 70%;
    animation: float 10s ease-in-out infinite;
}

@media (max-width: 768px) {
    .element-1 {
        width: 60px;
        height: 60px;
    }
    
    .element-2 {
        width: 80px;
        height: 80px;
    }
    
    .element-3 {
        width: 50px;
        height: 50px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Hero Background Responsive */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(26, 54, 93, 0.05) 0%,
        rgba(212, 175, 55, 0.03) 50%,
        rgba(26, 54, 93, 0.05) 100%
    );
    z-index: -1;
}

/* Responsive Navigation Enhancements for Index */
@media (max-width: 1024px) {
    .nav-menu.active {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        overflow-y: auto;
        z-index: 999;
        transform: translateX(0);
        visibility: visible;
        opacity: 1;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}

/* Ensure proper spacing for mobile navigation */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
}

/* Print Styles */
@media print {
    .preloader,
    .floating-elements,
    .hero-buttons {
        display: none;
    }
    
    .hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .element,
    .floating-elements,
    .hero-visual {
        animation: none;
    }
    
    .hero-content {
        transform: none;
        transition: none;
    }
}

/* Subtle Card Enhancement */
/* Remove floating animation and keep it simple */

/* Disable animations on mobile for better performance */
@media (max-width: 768px) {
    .hero-card {
        animation: none;
    }
}

/* Additional card styling for better visibility */
.hero-card {
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.98), 
        rgba(248, 250, 252, 0.95),
        rgba(241, 245, 249, 0.9));
}
