@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #00d1b2;
    --primary-dark: #00b89c;
    --primary-light: rgba(0, 209, 178, 0.1);
    --dark: #050b1a;
    --dark-lighter: #0a1329;
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: #1e293b;
    line-height: 1.6;
    overflow-x: hidden;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

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

@keyframes slowFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

.hero-content h1 {
    animation: fadeInRight 0.8s ease-out forwards;
}

.hero-content p {
    animation: fadeInRight 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-btns {
    animation: fadeInRight 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
header {
    background: transparent;
    padding: 2rem 0; /* Increased for better spacing */
    position: absolute;
    width: 100%;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-5px);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: translateY(-50%) scale(1.1);
}

.whatsapp-float i {
    margin-top: 0;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.nav-links a:hover {
    color: var(--primary);
}

.header-auth {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
}

.btn-login {
    color: var(--text-white);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--dark);
}

/* Hero Section */
.hero {
    background: #0b0f19;
    padding: 13rem 0 7rem; /* Perfect middle ground */
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 209, 178, 0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    z-index: 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 150px; /* Increased significantly to ensure gap visibility with floating header */
}

.hero-content .badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.hero-content h1 span {
    background: linear-gradient(to right, var(--primary), #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.hero-btns .btn {
    padding: 1rem 2rem;
    font-size: 1.05rem;
}

.social-proof {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.proof-item {
    display: flex;
    flex-direction: column;
}

.proof-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-white);
}

.proof-label {
    font-size: 0.85rem;
    color: var(--text-gray);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding-right: 120px; /* Space for the sidebar cards */
}

.hero-img {
    height: 600px; /* Slightly smaller to prevent overlap */
    width: auto;
    max-width: 100%;
    position: relative;
    z-index: 5;
    object-fit: cover;
    mask-image: linear-gradient(to right, rgba(0,0,0,1) 85%, rgba(0,0,0,0));
    animation: fadeInUp 1s ease-out;
}

.hero-sidebar {
    position: absolute;
    right: -40px; /* Moved further out to avoid image overlap */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
}

.sidebar-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 220px;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInRight 0.8s ease-out forwards;
}

.sidebar-card:nth-child(1) { animation-delay: 0.5s; }
.sidebar-card:nth-child(2) { animation-delay: 0.7s; }
.sidebar-card:nth-child(3) { animation-delay: 0.9s; }
.sidebar-card:nth-child(4) { animation-delay: 1.1s; }

.skill-tag {
    position: absolute;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    z-index: 6;
    animation: slowFloat 4s ease-in-out infinite;
}

.tag-python { top: 20%; left: -20px; animation-delay: 0.5s; }
.tag-react { bottom: 30%; left: 10%; animation-delay: 1.5s; }
.tag-ai { top: 10%; right: 40%; animation-delay: 2.5s; }

/* Course Grid */
.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 2rem 0;
}

.sidebar-card:hover {
    background: rgba(22, 28, 45, 0.9);
    transform: translateX(-10px);
    border-color: var(--primary);
}

.sidebar-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.sidebar-text h4 {
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
}

.sidebar-text p {
    color: var(--text-gray);
    font-size: 0.7rem;
}

.learners-avatars {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.learners-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--dark);
    margin-left: -15px;
}

.learners-avatars img:first-child { margin-left: 0; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Brands Section */
.brands {
    padding: 4rem 0;
    background-color: var(--white);
    border-bottom: 1px solid #f1f5f9;
}

.brands-title {
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
}

.brands-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
    opacity: 0.6;
}

.brands-grid img {
    height: 30px;
    filter: grayscale(1);
    transition: var(--transition);
}

.brands-grid img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* Features Section - Reworked */
.features {
    padding: 8rem 0;
    background: var(--white);
}

.features-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: flex-end;
}

.features-header-left span {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1.5rem;
}

.features-header-left h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--navy);
}

.features-header-left h2 em {
    font-style: normal;
    color: var(--primary);
}

.features-header-right p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--white);
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    transition: var(--transition);
    text-align: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--navy);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Mentors & Testimonials Spacing */
.testimonials {
    padding: 8rem 0;
    background: #ffffff;
    color: #1e293b;
}

.testimonials h2 {
    color: var(--dark);
}

.testimonials .feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.mentors {
    padding: 8rem 0;
    background: #0b0f19;
}

.mentors-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.mentor-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
    padding-bottom: 2rem;
}

.mentor-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.mentor-image-wrapper {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.mentor-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.mentor-card:hover .mentor-image-wrapper img {
    transform: scale(1.1);
}

.mentor-info h3 {
    font-size: 1.4rem;
    color: white;
    margin-bottom: 0.5rem;
}

.mentor-info p {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.mentor-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.mentor-social a {
    color: var(--text-gray);
    transition: var(--transition);
    font-size: 1.1rem;
}

.mentor-social a:hover {
    color: white;
}

.header-logo-img {
    height: 85px; /* Increased for better visibility as requested */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

/* Stats Summary - Enhanced Background */
.stats-summary {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 4rem 0;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.stats-summary::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.stat-box p {
    color: var(--text-gray);
    font-weight: 500;
}

/* Courses Section - Reworked */
.courses {
    padding: 8rem 0;
    background: var(--bg-light);
}

.courses-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.courses-header-left span {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 1rem;
}

.courses-header-left h2 {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--navy);
}

.courses-header-left h2 em {
    font-style: normal;
    color: var(--primary);
}

.view-all-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.view-all-link:hover {
    gap: 0.8rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.course-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid #f1f5f9;
    padding: 0.75rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary);
}

.course-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 140px;
}

.course-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.course-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.65rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    z-index: 5;
}

.course-content {
    padding: 1.25rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.course-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2.8rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.course-level {
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1rem;
}

.course-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-gray);
    margin-bottom: 1.5rem;
}

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-rating i { color: #f59e0b; }
.course-rating span { font-weight: 700; color: var(--navy); }

.course-duration {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.course-btn {
    margin-top: auto;
    width: 100%;
    padding: 0.6rem;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    text-align: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition);
}

.course-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

@media (max-width: 1200px) {
    .course-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 992px) {
    .course-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-content h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .courses-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
    .courses-header-left h2 { font-size: 2rem; }
    .hero-content h1 { font-size: 2.5rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
    .features-grid { grid-template-columns: 1fr; }
    .mentors-grid { grid-template-columns: repeat(2, 1fr); }
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .course-grid { grid-template-columns: 1fr; }
    .mentors-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero-content h1 { font-size: 2rem; }
    .container { padding: 0 1.5rem; }
    section { padding: 4rem 0 !important; }
}
