:root {
    --bg-main: #FAFAFA;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --accent: #2563EB;
    --accent-hover: #1D4ED8;
    --border-color: rgba(229, 231, 235, 0.5); /* Lighter border for glass */
    --card-bg: rgba(255, 255, 255, 0.65); /* Glassmorphic card */
    --glow-gradient: conic-gradient(from 180deg at 50% 50%, #2a8af6 0deg, #a853ba 180deg, #e92a67 360deg);
}

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-main);
    background-image: radial-gradient(#d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

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

/* Logos */
.brand-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.footer-brand-logo {
    height: 100px;
    width: auto;
    object-fit: contain;
    margin-bottom: 1.5rem;
    mix-blend-mode: multiply;
}

/* Top Bar */
.top-bar {
    background-color: var(--text-primary);
    color: #fff;
    padding: 0.6rem 0;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-contact {
    color: #10B981;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1.5rem;
}

.logo {
    display: flex;
    align-items: center;
}

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

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 8rem 0 10rem 0;
    text-align: center;
    overflow: hidden;
}

.mesh-bg {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(ellipse at 40% 50%, rgba(37, 99, 235, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 70%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    z-index: 0;
    pointer-events: none;
    animation: auroraFlow 25s ease-in-out infinite alternate;
}

@keyframes auroraFlow {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); }
    50% { transform: scale(1.1) translate(-2%, 3%) rotate(5deg); }
    100% { transform: scale(1.2) translate(2%, -3%) rotate(-5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    animation: float 6s ease-in-out infinite;
}

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

.badge {
    background-color: rgba(37, 99, 235, 0.1);
    color: var(--accent);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.text-gradient {
    background: linear-gradient(to right, #2563EB, #9333EA, #2563EB);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to { background-position: 200% center; }
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn-primary:hover {
    background-color: #000;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.btn-outline:hover {
    background-color: #f3f4f6;
}

/* Courses Section */
.courses-section {
    padding: 5rem 0 8rem 0;
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
}

/* Clean Card Wrapper */
.course-card-wrapper {
    position: relative;
    border-radius: 16px;
    z-index: 1;
    transition: transform 0.4s ease;
}

.course-card-wrapper:hover {
    transform: translateY(-4px);
    z-index: 10;
}

/* Static Glow */
.course-card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--glow-gradient);
    border-radius: 16px;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.course-card-wrapper:hover .course-card-glow {
    opacity: 0.6;
}

/* The Card Itself (Glassmorphism) */
.course-card {
    background-color: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(255,255,255,0.5);
    overflow: hidden; /* Contains the image */
}

.course-card-wrapper:hover .course-card {
    border-color: rgba(255,255,255,0.8);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Card Image Section */
.card-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.course-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.course-code-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(5px);
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Card Content Section */
.card-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
}

.course-duration {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    background-color: rgba(37, 99, 235, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

.course-title {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.course-syllabus {
    flex-grow: 1;
}

.course-syllabus ul {
    list-style: none;
    margin-bottom: 2rem;
}

.course-syllabus ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.7rem;
    padding-left: 1.5rem;
    position: relative;
}

.course-syllabus ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 6px;
    height: 6px;
    background-color: var(--accent);
    border-radius: 50%;
}

.btn-text {
    color: var(--accent);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}

.btn-text:hover {
    opacity: 0.7;
}

/* Footer Section */
.footer {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    padding: 5rem 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-about p, .footer-contact address, .branch-name {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: normal;
}

.branch-name {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-links ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.menu-toggle-checkbox {
    display: none;
}

.menu-toggle-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1001;
}

.menu-toggle-label span {
    width: 28px;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

@media (max-width: 768px) {
    /* Mobile Nav */
    .menu-toggle-label {
        display: flex;
    }
    
    .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        opacity: 0;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
        z-index: 999;
    }

    .menu-toggle-checkbox:checked ~ .nav-links {
        transform: translateY(0);
        opacity: 1;
    }

    .menu-toggle-checkbox:checked + .menu-toggle-label span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle-checkbox:checked + .menu-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle-checkbox:checked + .menu-toggle-label span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    /* Adjust Layout */
    .hero {
        padding: 5rem 0 7rem 0;
    }
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    .hero-text {
        align-items: center;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .course-grid {
        grid-template-columns: 1fr;
    }
    .section-heading h2 {
        font-size: 2rem;
    }
    .brand-logo {
        height: 55px;
    }
    .footer-brand-logo {
        height: 75px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .phone-float {
        width: 50px;
        height: 50px;
        bottom: 80px;
        right: 20px;
    }
    .phone-float svg {
        width: 22px;
        height: 22px;
    }
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-green 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    animation: none;
    color: #FFF;
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Phone Float */
.phone-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 105px;
    right: 30px;
    background-color: var(--accent);
    color: #FFF;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: pulse-blue 2s infinite;
    animation-delay: 1s; /* stagger animation with WhatsApp */
}

.phone-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    animation: none;
    color: #FFF;
}

@keyframes pulse-blue {
    0% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0); }
}
