/* Hero Section */
.hero {
    background: transparent;
    color: white;
    padding: 2rem 0 2rem;
    position: relative;
    margin: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin: 1.5rem 0 1rem;
    background: linear-gradient(90deg, #00ffcc, #00a2ff, #ff00ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
    line-height: 1.2;
    text-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    letter-spacing: -1px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px rgba(0, 255, 204, 0.3), 0 0 20px rgba(0, 255, 204, 0.1); }
    100% { text-shadow: 0 0 20px rgba(0, 255, 204, 0.6), 0 0 30px rgba(0, 255, 204, 0.3), 0 0 40px rgba(0, 255, 204, 0.1); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #a0f0e0;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    animation: subtitleGlow 4s ease-in-out infinite alternate;
}

@keyframes subtitleGlow {
    0% { text-shadow: 0 0 5px rgba(0, 255, 204, 0.3); }
    100% { text-shadow: 0 0 15px rgba(0, 255, 204, 0.7), 0 0 25px rgba(0, 255, 204, 0.3); }
}

.hero-description {
    font-size: 1.1rem;
    color: #ccd6f6;
    line-height: 1.7;
    margin: 0 auto 2rem;
    max-width: 700px;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, #00a2ff, #00ffcc);
    color: #001a14;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
}

.badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.8);
}

.badge:hover::after {
    left: 100%;
}

@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 0.6rem 1.4rem;
        margin-bottom: 0.5rem;
    }
}

/* Base Styles */
:root {
    --primary: #00ffcc;
    --secondary: #00ccaa;
    --dark: #001a14;
    --darker: #000d0a;
    --light: #e6fff9;
    --accent: #00ffcc;
    --neon-pink: #ff00ff;
    --neon-blue: #00ffff;
    --neon-green: #00ff9d;
    --text: #a0f0e0;
    --text-light: #d0fff5;
    --card-bg: #001f1a;
    --transition: all 0.3s ease;
    --glow: 0 0 10px rgba(0, 255, 204, 0.7), 0 0 20px rgba(0, 255, 204, 0.5);
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: linear-gradient(135deg, #001a14 0%, #000d0a 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 255, 204, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(0, 255, 255, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(255, 0, 255, 0.05) 0%, transparent 40%),
        linear-gradient(135deg, #001a14 0%, #000d0a 100%);
    z-index: -2;
    pointer-events: none;
    opacity: 0.95;
    animation: backgroundPulse 20s infinite alternate;
}

@keyframes backgroundPulse {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: #3498db;
}

/* Header Styles */
.cyber-header {
    background: transparent;
    padding: 1.5rem 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Add a subtle border on scroll */
.cyber-header.scrolled {
    background: rgba(0, 20, 16, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 0;
}

.cyber-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjMDAwMDAwIj48L3JlY3Q+CjxwYXRoIGQ9Ik0wIDVMNSAwWk02IDRMNCA2Wk0tMSAxTDEgLTFaIiBzdHJva2U9IiMxMTIyNDAiIHN0cm9rZS13aWR0aD0iMSI+PC9wYXRoPgo8L3N2Zz4=');
    opacity: 0.2;
    z-index: -1; /* Changed from 0 to -1 to ensure it stays behind the content */
}

/* Simplified Navigation */
.simplified-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
    gap: 2rem;
}

.logo-collab {
    display: flex;
    align-items: center;
    gap: 1rem;
    grid-column: 1;
    justify-self: start;
}

.logo-holder {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    transition: all 0.3s ease;
}

.logo-holder:hover {
    background: rgba(0, 255, 204, 0.2);
    transform: translateY(-2px);
}

.header-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.collab-sign {
    color: var(--primary);
    font-size: 0.9rem;
    opacity: 0.7;
    display: flex;
    align-items: center;
}

.cyber-logo {
    grid-column: 2;
    justify-self: center;
    text-align: center;
}

.cyber-nav-links {
    grid-column: 3;
    justify-self: end;
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .simplified-nav {
        grid-template-columns: auto 1fr auto;
        gap: 1rem;
    }
    
    .logo-collab {
        gap: 0.5rem;
    }
    
    .logo-holder {
        width: 36px;
        height: 36px;
    }
    
    .collab-sign {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .logo-collab {
        display: none; /* Hide on mobile */
    }
    
    .simplified-nav {
        grid-template-columns: 1fr auto;
    }
    
    .cyber-logo {
        grid-column: 1;
        justify-self: start;
    }
    
    .cyber-nav-links {
        grid-column: 2;
    }
}

.main-logo {
    color: #fff;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    background: rgba(0, 255, 204, 0.1);
    border: 1px solid rgba(0, 255, 204, 0.1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 0 0 10px rgba(0, 162, 255, 0.3);
    transition: all 0.3s ease;
}

.main-logo:hover {
    color: #00d9ff;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.5);
    transform: scale(1.02);
}

/* .cyber-nav-links moved to .simplified-nav */

.cyber-nav-link {
    display: inline-flex;
    align-items: center;
    color: #fff;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    background: none;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.cyber-nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1.5px;
    bottom: 0;
    left: 0.6rem;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.cyber-nav-link i {
    margin-right: 0.3rem;
    font-size: 0.8rem;
}

.cyber-nav-link:hover {
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.cyber-nav-link:hover::after {
    width: calc(100% - 1.6rem);
}

/* Specific styles for back-to-main to ensure it stays consistent */
.back-to-main {
    display: inline-flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
}

.back-to-main i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

.back-to-main:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #fff;
    border-color: rgba(52, 152, 219, 0.3);
    transform: translateY(-2px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.logo i {
    font-size: 1.8rem;
}

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

.nav-links a {
    color: var(--light);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.hero {
    text-align: center;
    padding: 6rem 0 5rem;
    color: white;
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

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

/* Badge Style */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #00b4a0, #008c7a);
    color: #fff;
    padding: 0.7rem 1.8rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.4) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: 0.6s;
    z-index: -1;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.4);
    background: linear-gradient(135deg, #00c4ad, #009c84);
}

.badge:hover::before {
    left: 100%;
    top: 100%;
}

/* Add subtle pulse animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 204, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 204, 0); }
}

.badge {
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(46, 204, 113, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* Course Grid */
.courses-section {
    padding: 5rem 0;
}

.courses-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--light);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.courses-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 2rem;
}

.course-card {
    background: rgba(0, 10, 8, 0.4);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 204, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    height: 100%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.course-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ffcc, #00a2ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.8;
    z-index: 2;
}

.course-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.course-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 204, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 204, 0.3);
    background: rgba(0, 20, 16, 0.5);
}

.course-card-image {
    height: 160px;
    background: linear-gradient(135deg, #001a14 0%, #00382d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.course-card-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 30%, rgba(0, 255, 204, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.course-card:hover .course-card-image::before {
    opacity: 1;
}

.course-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.3));
    transition: transform 0.3s ease;
}

.course-card:hover .course-card-image img {
    transform: scale(1.05);
}

.course-card-image i {
    font-size: 4rem;
    color: var(--primary);
    transition: transform 0.3s ease;
}

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

.course-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    position: relative;
}

.course-card h3 {
    color: #fff;
    margin: 0 0 0.75rem 0;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.course-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, #00a2ff);
    transition: width 0.3s ease;
}

.course-card:hover h3 {
    color: #00ffcc;
}

.course-card:hover h3::after {
    width: 60px;
}

.course-card p {
    color: #a0f0e0;
    margin: 0 0 1.25rem 0;
    flex-grow: 1;
    font-size: 0.9rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-clamp: 3;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.1);
    transition: color 0.3s ease;
}

.course-card:hover p {
    color: #d0fff5;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    margin: 0.75rem 0 1rem;
    font-size: 0.8rem;
    color: #6b8b8a;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
}

.course-card:hover .course-meta {
    color: #8cc7c5;
    border-top-color: rgba(0, 255, 204, 0.2);
}

.course-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-meta i {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    transition: all 0.3s ease;
}

.course-card:hover .course-meta i {
    color: #00e6b8;
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .course-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .course-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .course-card {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .course-grid {
        padding: 0 1rem;
    }
    
    .course-card-image {
        height: 140px;
    }
    
    .course-card-content {
        padding: 1.25rem;
    }
    
    .course-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .course-actions .btn {
        width: 100%;
        padding: 0.5rem;
    }
    
    .course-card h3 {
        font-size: 1rem;
    }
    
    .course-card p {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.8;
    z-index: 2;
}

.course-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
}

.course-image {
    height: 120px;
    background: linear-gradient(135deg, #001a14 0%, #00382d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 204, 0.1);
}

.course-image:hover {
    transform: scale(1.02);
    background: linear-gradient(135deg, rgba(15, 45, 90, 0.9) 0%, rgba(26, 58, 90, 0.9) 100%);
}

.course-image i {
    font-size: 2.5rem;
    color: #fff;
    z-index: 1;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
    background: linear-gradient(135deg, #00ffcc, #00a2ff);
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.3);
    transition: all 0.3s ease;
}

.course-card:hover .course-image i {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.course-image::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    animation: rotate 20s linear infinite;
    opacity: 0.5;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.course-content {
    padding: 1.25rem;
    padding-top: 0;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.course-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    position: relative;
    padding-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.course-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, #00a2ff);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.course-card:hover .course-title::after {
    width: 40px;
}

.course-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Different icon colors */
.course-icon.blue { background: linear-gradient(135deg, #3498db, #2980b9); }
.course-icon.green { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.course-icon.purple { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.course-icon.orange { background: linear-gradient(135deg, #e67e22, #d35400); }
.course-icon.red { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.course-icon.pink { background: linear-gradient(135deg, #e84393, #fd79a8); }
.course-icon.teal { background: linear-gradient(135deg, #00b894, #00cec9); }
.course-icon.yellow { background: linear-gradient(135deg, #f1c40f, #f39c12); }
.course-icon.cyan { background: linear-gradient(135deg, #00cec9, #0984e3); }
.course-icon.gray { background: linear-gradient(135deg, #636e72, #2d3436); }

.course-description {
    color: #94a3b8;
    margin: 0.4rem 0 1rem;
    flex-grow: 1;
    font-size: 0.85rem;
    line-height: 1.6;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
}

.course-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0 1rem;
    font-size: 0.8rem;
    color: #64748b;
    padding-top: 0.75rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.04);
}

.course-duration,
.course-level {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.course-duration i,
.course-level i {
    color: #6b7c93;
    font-size: 0.9em;
    margin-right: 5px;
}

.course-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.course-actions {
    display: flex;
    gap: 0.8rem;
    margin-top: auto;
}

.course-actions .btn {
    flex: 1;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Primary Button */
.course-actions .btn-primary {
    background: linear-gradient(135deg, #00e6b8, #008080);
    color: #fff;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 230, 184, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Outline Button */
.course-actions .btn-outline {
    background: transparent;
    border: 2px solid #00e6b8;
    color: #00e6b8;
    box-shadow: 0 0 15px rgba(0, 230, 184, 0.1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Hover Effects */
.course-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.course-actions .btn:hover::before {
    left: 100%;
}

.course-actions .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 230, 184, 0.5);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #00f5d0, #009999);
}

.course-actions .btn-outline:hover {
    background: rgba(0, 230, 184, 0.15);
    color: #fff;
    border-color: #00f5d0;
    box-shadow: 0 0 25px rgba(0, 245, 208, 0.4);
    transform: translateY(-3px);
    text-shadow: 0 0 10px rgba(0, 245, 208, 0.5);
}

/* Active/Pressed State */
.course-actions .btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.1s ease;
}

/* Button Glow Effect */
.course-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: 0.5s;
    z-index: -1;
}

.course-actions .btn:hover::before {
    left: 100%;
}

/* Icons in Buttons */
.course-actions .btn i {
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.course-actions .btn:hover i {
    transform: translateX(3px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .course-actions .btn {
        width: 100%;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .course-actions .btn i {
        font-size: 0.9em;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .course-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .course-actions .btn {
        width: 100%;
        padding: 0.8rem 1rem;
    }
}

.course-actions .btn i {
    font-size: 0.9em;
}

.btn-primary {
    background: linear-gradient(135deg, #00ffcc, #00a2ff);
    color: #001a14;
    border: none;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #00e6b8, #0088ff);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 255, 204, 0.5);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-light);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.course-buttons {
    display: flex;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 0.25rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.8rem;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
    font-size: 0.8rem;
    white-space: nowrap;
}

.btn-primary {
    background: #3498db;
    color: white;
    flex: 1;
    border: none;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: none;
    background: #3da5f0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    flex: 1;
    transition: all 0.2s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: none;
    font-size: 0.8rem;
    padding: 0.5rem 0.8rem;
    border-radius: 5px;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: none;
    color: #e2e8f0;
    border-color: rgba(255, 255, 255, 0.15);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: rgba(10, 15, 46, 0.2);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(155, 89, 182, 0.05) 0%, transparent 20%);
    z-index: -1;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #fff;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 3px;
}

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

.feature-card {
    background: rgba(0, 10, 8, 0.4);
    border-radius: 12px;
    padding: 2.2rem 1.8rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 255, 204, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 255, 204, 0.08);
    position: relative;
    overflow: hidden;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ffcc, #00a2ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.8;
    z-index: 2;
}

.feature-card:hover::before {
    transform: scaleX(1);
    opacity: 1;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 255, 204, 0.05), rgba(0, 200, 255, 0.05));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 255, 204, 0.15), 0 5px 15px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 204, 0.3);
    background: rgba(0, 20, 16, 0.5);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    background: linear-gradient(135deg, #001a14 0%, #00382d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.8rem;
    font-size: 2rem;
    color: #00ffcc;
    box-shadow: 0 0 20px rgba(0, 255, 204, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.1);
}

.feature-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(135deg, #00ffcc, #00a2ff);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.6s;
}

.feature-icon:hover::before {
    left: 100%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-card:hover h3 {
    color: #00ffcc;
    text-shadow: 0 0 15px rgba(0, 255, 204, 0.5);
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, #00a2ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.feature-card:hover h3::after {
    transform: scaleX(1);
}

.feature-card p {
    color: #a0f0e0;
    font-size: 1rem;
    line-height: 1.7;
    margin: 0;
    text-shadow: 0 0 5px rgba(0, 255, 204, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover p {
    color: #d0fff5;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.3);
}

.career-prep {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
}

.career-prep p {
    color: #fff;
    font-size: 1.2rem;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Partner Logo Styling */
.partner-logo {
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.partner-logo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    filter: blur(10px);
    z-index: 0;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo::before {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.partner-logo img {
    max-width: 80%;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 1;
    filter: brightness(1.2) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
    transition: all 0.3s ease;
    margin: 0 auto;
    display: block;
}

/* Ensure consistent logo sizing for specific partners */
.partner-logo img[alt="Pakistan Hackers Community"] {
    max-height: 60px;
}

.partner-logo img[alt="TryHackMe"],
.partner-logo img[alt="Hack The Box"] {
    max-height: 50px;
}

.partner-logo img[alt="CrowdStrike"],
.partner-logo img[alt="Fortinet"],
.partner-logo img[alt="Palo Alto Networks"],
.partner-logo img[alt="Wazuh"],
.partner-logo img[alt="IBM"] {
    max-height: 40px;
}

.partner-card:hover .partner-logo img {
    filter: brightness(1.5) drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    transform: scale(1.05);
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 204, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.partner-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.partner-info h3 {
    margin: 1rem 0 0.5rem;
    color: #fff;
    font-size: 1.3rem;
}

.partner-info p {
    color: #a0f0e0;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.partner-link {
    color: #00ffcc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    transition: color 0.3s ease;
}

.partner-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.partner-link:hover {
    color: #00a2ff;
}

.partner-link:hover i {
    transform: translateX(5px);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Footer Styles */
.cyber-footer {
    background: rgba(0, 20, 16, 0.3);
    padding: 4rem 0 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(0, 255, 204, 0.1);
    position: relative;
    z-index: 2;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
}

.cyber-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
}

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

.footer-section h3 {
    color: var(--light);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, #00ffcc, #00a2ff);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.footer-section p {
    color: var(--text);
    margin-bottom: 1rem;
    line-height: 1.7;
}

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

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

.footer-section ul li a {
    color: var(--text);
    transition: var(--transition);
    display: inline-block;
}

.footer-section ul li a {
    color: #a0f0e0;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #00ffcc;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00ffcc;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
    transform: translateX(5px);
}

.footer-section ul li a:hover::after {
    width: 100%;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    color: var(--darker);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
    color: var(--text-light);
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(52, 152, 219, 0.5);
    border-radius: 10px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 152, 219, 0.8);
}

/* Selection Styling */
::selection {
    background: rgba(52, 152, 219, 0.3);
    color: #fff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cyber-header {
        padding: 1rem 0;
    }
    
    .cyber-header.scrolled {
        padding: 0.5rem 0;
    }
    
    .simplified-nav {
        padding: 0 1.5rem;
    }
    
    .main-logo {
        font-size: 1.5rem;
        padding: 0.4rem 0.8rem;
    }
    
    .cyber-nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1200px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .course-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.course-card:hover .course-image i {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effect */
.course-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #3498db, #2980b9, #1a5276, #3498db);
    background-size: 400%;
    z-index: -1;
    border-radius: 12px;
    opacity: 0;
    transition: 0.5s;
    animation: animate 20s linear infinite;
}

.course-card:hover::before {
    opacity: 1;
    filter: blur(5px);
}

@keyframes animate {
    0% { background-position: 0 0; }
    50% { background-position: 300% 0; }
    100% { background-position: 0 0; }
}
