:root {
    /* Colors - Dark Theme */
    --bg-color: #0f0f13;
    /* Dark background */
    --text-color: #ffffff;
    /* Light text */
    --primary-color: #6c5ce7;
    --secondary-color: #00cec9;
    --accent-color: #fd79a8;
    --surface-color: rgba(30, 30, 40, 0.8);
    /* Dark surface */
    --gradient-main: linear-gradient(135deg, var(--primary-color), var(--secondary-color));

    /* Fonts */
    --font-main: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-speed: 0.3s;
}

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

body {
    font-family: var(--font-main);
    background-color: transparent;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    background-color: var(--bg-color);
}

h1,
h2,
h3,
.logo {
    font-family: var(--font-display);
    color: var(--text-color);
}

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

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.btn-primary {
    background: var(--gradient-main);
    color: #fff;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(0, 206, 201, 0.1);
    transform: translateY(-2px);
}

/* Header */
.site-header {
    padding: var(--spacing-md) 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 15, 19, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .dot {
    color: var(--secondary-color);
}

.logo-prefix {
    font-size: 0.7em;
    font-weight: 300;
    margin-right: 5px;
    opacity: 1;
    font-family: var(--font-main);
    /* Use main font for contrast or keep display */
    letter-spacing: 1px;
    color: var(--secondary-color);
    /* Different color */
}

.main-nav ul {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Background handled by ::before for opacity */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: url('strangeloop_bg.png');
    background-size: contain;
    background-repeat: repeat;
    background-position: center center;
    opacity: 0.05;
    /* Transparency */
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-color), transparent);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-color), transparent);
    z-index: 1;
}

.hero-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 5s ease infinite;
}

@keyframes gradient-flow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    max-width: 500px;
    font-weight: 300;
}

.hero-note {
    font-size: 0.9rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--spacing-sm);
}

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

.glowing-orb {
    width: 400px;
    height: 400px;
    background: conic-gradient(from 180deg at 50% 50%, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: spin 10s linear infinite;
    position: absolute;
}

.orb-core {
    width: 200px;
    height: 200px;
    background: #fff;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
    position: absolute;
    z-index: 2;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* Sections General */
section {
    padding: var(--spacing-lg) 0;
    scroll-margin-top: 100px;
    /* Offset for fixed header */
}

/* Footer */
.site-footer {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: var(--spacing-lg);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.copyright {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .main-nav {
        display: none;
        /* Hide for now, will implement toggle later */
    }

    .mobile-menu-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* About Section */
.about-section {
    background-color: var(--surface-color);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.about-card {
    background: rgba(30, 30, 40, 0.6);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), background var(--transition-speed);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-card:hover {
    transform: translateY(-10px);
    background: rgba(40, 40, 50, 0.9);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
}

.about-card p {
    line-height: 1.6;
}

/* Features Section */
.features-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.features-content h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-list {
    margin: var(--spacing-md) 0;
}

.feature-list li {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.check-icon {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.2rem;
}

.feature-list strong {
    color: var(--text-color);
    display: block;
    margin-bottom: 0.2rem;
}

.feature-list p {
    font-size: 0.95rem;
    opacity: 0.7;
}

.code-window {
    background: #1e1e24;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform var(--transition-speed);
}

.code-window:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.window-header {
    background: #2d2d3a;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.window-body {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #a9b7c6;
    overflow-x: auto;
}

.language-python {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .features-section .container {
        grid-template-columns: 1fr;
    }

    .code-window {
        transform: none;
        margin-top: var(--spacing-md);
    }
}

/* Courses Section */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.course-card {
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--transition-speed);
}

.course-card:hover {
    transform: translateY(-10px);
}

.course-image {
    height: 200px;
    width: 100%;
}

.course-content {
    padding: var(--spacing-md);
}

.course-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.8rem;
    margin-bottom: var(--spacing-sm);
}

.course-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.course-card p {
    margin-bottom: var(--spacing-md);
    font-size: 0.95rem;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-text:hover {
    gap: 10px;
}

/* Footer Section */
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-col h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    opacity: 0.7;
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.social-links a {
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.footer-bottom {
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        align-items: center;
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Objectives Section */
.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.objective-card {
    background: rgba(30, 30, 40, 0.6);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--transition-speed), background var(--transition-speed);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.objective-card:hover {
    transform: translateY(-5px);
    background: rgba(40, 40, 50, 0.9);
    border-color: rgba(108, 92, 231, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.obj-number {
    font-size: 3rem;
    font-weight: 700;
    color: rgba(108, 92, 231, 0.1);
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
}

.objective-card h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
    position: relative;
    z-index: 1;
}

.objective-card p {
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .objective-card.full-width {
        grid-column: span 3;
        text-align: center;
    }

    .objective-card.full-width .obj-number {
        right: 50%;
        transform: translateX(50%);
        top: 50%;
        transform: translate(50%, -50%);
        font-size: 8rem;
        opacity: 0.05;
    }
}

/* Admission Section */
.process-steps {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.step-card {
    background: rgba(30, 30, 40, 0.6);
    padding: var(--spacing-md);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    text-align: center;
    position: relative;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient-main);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    margin: 0 auto var(--spacing-sm);
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.3);
}

.step-card h3 {
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

.step-card p {
    font-size: 0.95rem;
}

.admission-cta {
    text-align: center;
}

/* Utility Classes */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: inline-block;
    }

    .desktop-only {
        display: none;
    }
}