/* ==========================================================================
   INTERNADDA 2.0 - MASTERPIECE EDITION (MOBILE FIXED)
   ========================================================================== */

:root {
    --primary: #0f172a;       /* Midnight Blue */
    --secondary: #4f46e5;     /* Electric Indigo */
    --bg-body: #f8fafc;       /* Crisp Grey */
    --surface: #ffffff;       /* Pure White */
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-lg: 0 15px 30px -5px rgba(0,0,0,0.1);
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* --- 1. STRICT RESET (Fixes "Idhar Udhar" Layout Issues) --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* CRITICAL: Stops horizontal scroll */
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Poppins', sans-serif; font-weight: 700; line-height: 1.1; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { display: block; max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- 2. HEADER (Glassmorphism) --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-inner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 40px; width: auto; border-radius: 8px; }
.brand-name { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* Desktop Nav */
.nav-desktop { display: flex; gap: 30px; align-items: center; }
.nav-link { font-weight: 500; color: var(--text-muted); font-size: 0.95rem; cursor: pointer; }
.nav-link:hover { color: var(--secondary); }

.nav-item.dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.dropdown-content {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 240px;
    padding: 12px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
}
.nav-item.dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-link { display: block; padding: 10px 16px; font-size: 0.9rem; border-radius: 8px; color: var(--text-main); }
.dropdown-link:hover { background: #f8fafc; color: var(--secondary); }

.header-actions { display: flex; align-items: center; gap: 20px; }
.search-container { position: relative; }
.search-input {
    background: #f1f5f9; border: 1px solid transparent; padding: 10px 40px;
    border-radius: 99px; width: 240px; font-size: 0.9rem; transition: width 0.3s;
}
.search-input:focus { width: 300px; background: white; border-color: var(--secondary); outline: none; }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }

/* Mobile Hamburger */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 26px; height: 2.5px; background: var(--primary); border-radius: 2px; transition: 0.3s; }
.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(5px, -6px); }

/* Mobile Nav Overlay */
.nav-mobile {
    display: none;
    position: fixed;
    top: 80px; left: 0; width: 100%;
    height: calc(100vh - 80px);
    background: white;
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    z-index: 999;
    border-top: 1px solid #f1f5f9;
}
.nav-mobile.active { display: flex; }
.nav-mobile .nav-link { font-size: 1.1rem; padding: 12px 0; border-bottom: 1px solid #f1f5f9; width: 100%; }

/* --- 3. HERO SECTION --- */
.hero-section { padding: 80px 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center; }

.hero-tag { 
    display: inline-block; background: #eef2ff; color: var(--secondary); 
    padding: 8px 16px; border-radius: 20px; font-weight: 600; font-size: 0.85rem; margin-bottom: 24px; 
}
.hero-title { font-size: 3.8rem; margin-bottom: 20px; color: var(--primary); letter-spacing: -1px; }
.hero-desc { font-size: 1.2rem; color: var(--text-muted); margin-bottom: 40px; max-width: 90%; }

.hero-image-wrapper {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    transform: rotate(2deg);
    border: 8px solid white;
    overflow: hidden;
    transition: transform 0.5s ease;
}
.hero-image-wrapper:hover { transform: rotate(0deg) scale(1.02); }

/* --- 4. PARTNER MARQUEE (Colorful & Smooth) --- */
.marquee-section { padding: 60px 0; background: white; border-bottom: 1px solid #f1f5f9; overflow: hidden; }
.marquee-title { text-align: center; font-weight: 700; color: var(--text-muted); letter-spacing: 1.5px; font-size: 0.8rem; margin-bottom: 40px; text-transform: uppercase; }

.marquee-container { width: 100%; overflow: hidden; white-space: nowrap; position: relative; }
.marquee-track {
    display: inline-flex;
    gap: 80px;
    animation: scroll 35s linear infinite; /* Smooth linear infinite scroll */
}
/* Logos are now COLORFUL by default */
.partner-logo { 
    height: 40px; 
    width: auto; 
    object-fit: contain; 
    filter: grayscale(0%); /* FORCE COLOR */
    opacity: 1; 
    transition: transform 0.3s;
}
.partner-logo:hover { transform: scale(1.2); }

@keyframes scroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- 5. BENTO CARDS & GRIDS --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

.card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: #e2e8f0; }
.icon-box { width: 60px; height: 60px; background: #f0fdf4; border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #16a34a; margin-bottom: 20px; }

/* Course Cards */
.course-card { padding: 0; overflow: hidden; }
.course-img { height: 200px; width: 100%; object-fit: cover; transition: transform 0.5s; }
.course-card:hover .course-img { transform: scale(1.05); }
.course-body { padding: 24px; flex-grow: 1; display: flex; flex-direction: column; }
.badge.free { background: #dcfce7; color: #15803d; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }

/* Buttons */
.btn { padding: 12px 28px; border-radius: 99px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--secondary); transform: translateY(-2px); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.btn-white { background: white; color: var(--primary); }

/* Footer */
footer { background: #020617; color: #cbd5e1; padding: 80px 0 30px; margin-top: 100px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }

/* --- 6. MOBILE RESPONSIVE FIXES --- */
@media (max-width: 1024px) {
    /* Hide Desktop Elements */
    .nav-desktop, .header-actions .btn, .search-container { display: none !important; }
    .hamburger { display: flex !important; } /* Show Hamburger */
    
    /* Fix Hero Layout */
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-title { font-size: 2.5rem; }
    .hero-desc { margin: 0 auto 30px; font-size: 1rem; }
    .hero-image-wrapper { transform: none; margin-top: 20px; } /* Reset 3D effect on mobile */
    
    /* Fix Grids */
    .grid-3 { grid-template-columns: 1fr; gap: 24px; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    
    /* Fix Marquee on Mobile */
    .marquee-track { gap: 40px; padding-left: 20px; animation: scroll 20s linear infinite; }
    .partner-logo { height: 30px; }
}
