@import url('https://fonts.googleapis.com/css2?family=Rubik+Dirt&family=Poppins:wght@400;500;600;700&display=swap');

/* Modern Color Variables */
:root {
    --neon-blue: #00f7ff;
    --neon-purple: #bc13fe;
    --cyber-yellow: #ffd700;
    --tech-green: #0cff0c;
    --dark-bg: #0a0a0a;
    --cyber-gradient: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
}

/* Body and Background Styles */
body {
    background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    color: #ffffff;
}

/* Enhanced cyber grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(0, 247, 255, 0.03) 1px, transparent 1px),
        linear-gradient(0deg, rgba(0, 247, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 20% 30%, rgba(0, 247, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(188, 19, 254, 0.05) 0%, transparent 50%);
    background-size: 50px 50px, 50px 50px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: -1;
    animation: backgroundShift 15s ease-in-out infinite alternate;
}

/* Add some subtle noise texture */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
    mix-blend-mode: overlay;
}

/* Enhance the background animation */
@keyframes backgroundShift {
    0% {
        background-position: 0% 0%, 0% 0%, 0% 0%, 100% 100%;
    }
    100% {
        background-position: 100px 0%, 0% 100px, 100% 100%, 0% 0%;
    }
}

/* Hero Section Styles */
.video-header {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.video-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1;
}

.video-hero {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 20vh;
}

.hero-title {
    font-size: 4rem;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero-title .highlight {
    color: #ff6b6b;
}

/* Common Section Background */
.overview-box-section,
.course-content-section,
.career-opportunities-section,
.software-section {
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(0, 247, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Enhanced Overview Section */
.overview-box-section {
    display: flex;
    gap: 3rem;
    padding: 4rem 2rem;
    position: relative;
    overflow: hidden;
    max-width: 1400px;
    margin: 0 auto;
}

.overview-box-text {
    flex: 1;
    color: #ffffff;
    padding: 2rem;
}

.overview-box-text h2 {
    font-family: "Rubik Dirt", system-ui;
    color: var(--neon-blue);
    text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    animation: glowText 2s ease-in-out infinite alternate;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.overview-box-text h4 {
    color: var(--neon-purple);
    text-shadow: 0 0 8px rgba(188, 19, 254, 0.5);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.overview-box-text p {
    color: #ccc;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
    font-family: 'Poppins', sans-serif;
}

.overview-box-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.overview-box-image video {
    width: 100%;
    max-width: 500px;
    border: 2px solid rgba(0, 247, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
    transition: transform 0.3s ease;
}

.overview-cta-btn {
    padding: 1rem 2rem;
    background: var(--cyber-gradient);
    border: 2px solid var(--neon-blue);
    color: #ffffff;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.overview-cta-btn:hover {
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    box-shadow: 0 0 20px var(--neon-blue);
    transform: translateY(-2px) scale(1.05);
}

/* Course Content Section Styles */
.course-content-section {
    padding: 4rem 2rem;
    color: #ffffff;
}

.section-title {
    font-family: "Rubik Dirt", system-ui;
    color: #ffc107;
    font-size: 36px;
    text-align: center;
    margin-bottom: 2rem;
}

.term-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.term {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border: 1px solid rgba(0, 247, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.term:hover {
    border-color: var(--neon-blue);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
    transform: translateY(-5px);
}

.term h3 {
    color: var(--neon-blue);
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
    font-family: "Rubik Dirt", system-ui;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.term ul {
    list-style: none;
    padding: 0;
}

.term li {
    color: #ccc;
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.term li:before {
    content: "▸";
    color: var(--neon-purple);
    text-shadow: 0 0 5px rgba(188, 19, 254, 0.5);
    position: absolute;
    left: 0;
}

/* Career Section Styles */
.career-opportunities-section {
    padding: 4rem 2rem;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
}

.career-title {
    font-family: "Rubik Dirt", system-ui;
    color: var(--cyber-yellow);
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 800;
    text-align: center;
}

.career-subtitle {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 40px;
    text-align: center;
}

.career-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.career-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

/* Career Card Styles */
.career-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border: 1px solid rgba(0, 247, 255, 0.1);
    background: rgba(10, 10, 10, 0.8);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    will-change: transform;
    transform: translateZ(0);
}

.career-card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.career-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.career-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
    color: white;
    font-family: "Rubik Dirt", system-ui;
    font-size: 1.5rem;
    z-index: 2;
    margin: 0;
}
.career-card p {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
    color: #fff;
    line-height: 1.6;
    transition: bottom 0.3s ease;
    z-index: 2;
}

/* Hover Effects */
.career-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.2);
}

.career-card:hover .career-card-image img {
    transform: scale(1.1);
}

.career-card:hover p {
    bottom: 0;
}

/* Software Section Enhancements */
.software-section {
    padding: 4rem 2rem;
    background: #1a1a1a;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.software-item {
    border: 1px solid rgba(188, 19, 254, 0.2);
    background: rgba(10, 10, 10, 0.8);
    color: var(--neon-blue);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    will-change: transform;
    transform: translateZ(0);
}

.software-item:hover {
    border-color: var(--neon-purple);
    box-shadow: 0 0 20px rgba(188, 19, 254, 0.3);
    background: linear-gradient(145deg, rgba(10, 10, 10, 0.9), rgba(20, 20, 20, 0.9));
}

/* Enquiry Section Styles */
.enquiry-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid rgba(0, 247, 255, 0.1);
}

.enquiry-container {
    max-width: 1200px;
    margin: 0 auto;
}

.enquiry-subtitle {
    text-align: center;
    color: #ccc;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.enquiry-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.enquiry-info {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    border: 1px solid rgba(0, 247, 255, 0.1);
}

.enquiry-info h3 {
    color: var(--neon-blue);
    margin-bottom: 1.5rem;
    font-family: "Rubik Dirt", system-ui;
}

.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    color: #fff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.benefits-list i {
    color: var(--neon-blue);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: black;
    border: 1px solid rgba(0, 247, 255, 0.2);
    border-radius: 8px;
    color: #fdfbfb;
    font-family: 'Poppins', sans-serif;
}

.form-group select {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid rgba(0, 247, 255, 0.2);
    cursor: pointer;
}

.form-group select option {
    background-color: #0a0a0a;
    color: #fff;
    padding: 10px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--neon-blue);
    box-shadow: 0 0 10px rgba(0, 247, 255, 0.2);
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.submit-btn {
    background: var(--cyber-gradient);
    color: #fff;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 247, 255, 0.2);
}

@media (max-width: 768px) {
    .overview-box-section {
        flex-direction: column;
        padding: 2rem 1rem;
    }

    .overview-box-text {
        padding: 1rem;
        text-align: center;
    }

    .overview-box-text h2 {
        font-size: 2rem;
    }

    .overview-box-text p {
        font-size: 1rem;
    }

    .overview-box-image {
        margin-top: 2rem;
    }

    .overview-cta-btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 28px;
    }

    .term-container {
        grid-template-columns: 1fr;
    }

    .career-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .software-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .term, .career-card, .software-item {
        padding: 1.5rem;
    }
    
    .career-title {
        font-size: 28px;
    }
    
    .career-subtitle {
        font-size: 16px;
        padding: 0 15px;
    }
    
    .software-item {
        font-size: 14px;
        padding: 0.8rem;
    }

    .enquiry-content {
        grid-template-columns: 1fr;
    }
    
    .enquiry-info {
        order: 2;
    }
    
    .enquiry-form {
        order: 1;
    }
}

/* Animation Classes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}

/* Animation Enhancement */
.animation-course-block {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.6s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* New Animations */
@keyframes glowText {
    from {
        text-shadow: 0 0 10px rgba(0, 247, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 247, 255, 0.8),
                     0 0 30px rgba(0, 247, 255, 0.6);
    }
}

@keyframes borderGlow {
    0% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
    }
    50% {
        border-color: var(--neon-purple);
        box-shadow: 0 0 30px rgba(188, 19, 254, 0.3);
    }
    100% {
        border-color: var(--neon-blue);
        box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
    }
}

/* Add these classes to elements for animated borders */
.tech-border {
    animation: borderGlow 4s ease-in-out infinite;
}

/* Accessibility Improvements */
.career-card:focus-visible,
.software-item:focus-visible {
    outline: 2px solid #ffc107;
    outline-offset: 2px;
}