/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4fc3f7;
    --secondary-color: #0277bd;
    --accent-color: #00acc1;
    --background-dark: #0d1b2a;
    --background-light: #1b263b;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --border-color: #2c3e50;
    --glow-color: #4fc3f7;
    --card-bg: rgba(27, 38, 59, 0.9);
    --glass-bg: rgba(79, 195, 247, 0.1);
}

body {
    font-family: 'Source Code Pro', monospace;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--glow-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Source Code Pro', monospace;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.nav-logo i {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 30%, #2c3e50 70%, #0d1b2a 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(79, 195, 247, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 172, 193, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(2, 119, 189, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero-text {
    text-align: left;
}

.hero-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.glitch {
    position: relative;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--glow-color);
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 2s infinite;
    color: var(--secondary-color);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 2s infinite;
    color: var(--accent-color);
    z-index: -2;
}

.hero-subtitle {
    font-size: 2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

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

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 195, 247, 0.5);
}

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

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(20px);
    animation: float 6s ease-in-out infinite;
}

.code-header {
    background: var(--background-light);
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

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

.code-dot.red { background: #ff5f56; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green { background: #27ca3f; }

.code-content {
    padding: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.code-content code {
    color: var(--primary-color);
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    font-family: 'Source Code Pro', monospace;
    font-size: 2rem;
    color: var(--primary-color);
    opacity: 0.3;
    animation: float-slow 8s ease-in-out infinite;
}

.floating-element:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.floating-element:nth-child(2) { top: 60%; left: 80%; animation-delay: 2s; }
.floating-element:nth-child(3) { top: 80%; left: 20%; animation-delay: 4s; }
.floating-element:nth-child(4) { top: 30%; left: 70%; animation-delay: 6s; }

/* Content Sections */
.content-section {
    padding: 6rem 0;
    position: relative;
}

.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

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

.section-title {
    font-family: 'Source Code Pro', monospace;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(79, 195, 247, 0.3);
}

.section-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    margin: 0 auto;
    border-radius: 2px;
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.content-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Source Code Pro', monospace;
}

.content-text h4 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 1.5rem 0 1rem 0;
}

.content-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(79, 195, 247, 0.1);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.feature-list i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 20px;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.2);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.tech-item span {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Syntax Container and Navigation */
.syntax-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    align-items: start;
}

.syntax-nav {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    position: sticky;
    top: 120px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}

.syntax-nav h3 {
    color: var(--primary-color);
    font-family: 'Source Code Pro', monospace;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.syntax-nav-list {
    list-style: none;
}

.syntax-nav-list li {
    margin-bottom: 0.8rem;
}

.syntax-nav-link {
    display: block;
    padding: 0.8rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    border: 1px solid transparent;
}

.syntax-nav-link:hover {
    color: var(--primary-color);
    background: rgba(79, 195, 247, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.syntax-nav-link.active {
    color: var(--primary-color);
    background: rgba(79, 195, 247, 0.15);
    border-color: var(--primary-color);
}

/* Syntax Grid */
.syntax-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.syntax-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.syntax-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.2);
}

.syntax-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Source Code Pro', monospace;
    flex-shrink: 0;
}

.code-example {
    background: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.code-example pre {
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-primary);
    overflow-x: auto;
    flex: 1;
    margin: 0;
}

.code-example code {
    color: var(--primary-color);
    display: block;
    width: 100%;
}

.run-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.run-btn:hover {
    background: var(--glow-color);
}

/* I/O Demo */
.io-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.io-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.io-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Source Code Pro', monospace;
}

.demo-window {
    background: var(--background-light);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.demo-header {
    background: var(--background-dark);
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.demo-content {
    padding: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 0.8rem;
    background: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

.demo-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.demo-output {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-dark);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 60px;
    color: var(--text-primary);
}

/* Control Demo */
.control-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.control-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.control-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Source Code Pro', monospace;
}

.interactive-demo {
    text-align: center;
}

.demo-controls {
    margin-bottom: 2rem;
}

.demo-controls label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

#score-slider {
    width: 100%;
    margin-bottom: 1rem;
}

#score-value {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: 700;
}

.grade-display {
    text-align: center;
}

.grade {
    font-size: 4rem;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.grade-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

/* Switch Demo */
.switch-demo {
    text-align: center;
}

.operation-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.op-btn {
    width: 60px;
    height: 60px;
    border: 2px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.op-btn:hover,
.op-btn.active {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(0, 212, 255, 0.1);
}

.calculation {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
}

.calculation span {
    margin: 0 0.5rem;
}

#calc-result {
    color: var(--primary-color);
}

/* Loops Demo */
.loops-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.loop-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.loop-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Source Code Pro', monospace;
}

.loop-visualization {
    text-align: center;
}

.loop-controls {
    margin-bottom: 2rem;
}

.loop-btn {
    padding: 0.8rem 1.5rem;
    margin: 0 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.loop-counter {
    font-size: 3rem;
    color: var(--primary-color);
    font-weight: 900;
    margin-bottom: 1rem;
}

.loop-output {
    min-height: 100px;
    background: var(--background-light);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Functions Demo */
.functions-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.function-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.function-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Source Code Pro', monospace;
}

.function-demo {
    text-align: center;
}

.demo-inputs {
    margin-bottom: 2rem;
}

.function-results {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--background-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-height: 80px;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
}

/* Arrays Demo */
.arrays-demo {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.array-card,
.pointer-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
}

.array-card h3,
.pointer-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Orbitron', monospace;
}

.array-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.array-element {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.array-element:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(79, 195, 247, 0.5);
}

.array-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.array-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Pointer Demo */
.pointer-visual {
    text-align: center;
}

.memory-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.memory-cell {
    background: var(--background-light);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    min-width: 120px;
    text-align: center;
}

.cell-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.cell-value {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.pointer-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

.pointer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.pointer-btn {
    padding: 0.8rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Scroll to Top Button */
.scroll-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.scroll-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top-btn:hover {
    background: var(--glow-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(79, 195, 247, 0.4);
}

/* Footer */
.footer {
    background: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

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

.footer-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Source Code Pro', monospace;
}

.footer-section p,
.footer-section ul {
    color: var(--text-secondary);
}

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

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

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

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

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

@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(180deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(2px, -2px); }
    40% { transform: translate(2px, 2px); }
    60% { transform: translate(-2px, -2px); }
    80% { transform: translate(-2px, 2px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(13, 27, 42, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .syntax-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .syntax-nav {
        position: static;
        max-height: none;
        order: -1;
    }
    
    .syntax-nav-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .syntax-nav-list li {
        margin-bottom: 0;
    }
    
    .syntax-nav-link {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .syntax-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .syntax-card {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .code-example pre {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .io-demo,
    .control-demo,
    .loops-demo,
    .functions-demo,
    .arrays-demo {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .floating-elements {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .code-content {
        padding: 1rem;
        font-size: 0.8rem;
    }
    
    .syntax-card {
        padding: 1rem;
    }
    
    .code-example pre {
        padding: 0.8rem;
        font-size: 0.75rem;
    }
    
    .syntax-nav {
        padding: 1rem;
    }
    
    .syntax-nav h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .syntax-nav-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    .scroll-to-top-btn {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Focus styles */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Quick Navigation Section */
.quick-nav-section {
    padding: 4rem 0;
    background: var(--background-light);
}

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

.quick-nav-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.quick-nav-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.2);
    color: var(--text-primary);
}

.quick-nav-card i {
    font-size: 3rem;
    color: var(--primary-color);
}

.quick-nav-card h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Source Code Pro', monospace;
    margin: 0;
}

.quick-nav-card p {
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Example Cards */
.io-examples,
.control-examples,
.loops-examples,
.functions-examples,
.arrays-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.io-example-card,
.control-example-card,
.loop-example-card,
.function-example-card,
.array-example-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.io-example-card:hover,
.control-example-card:hover,
.loop-example-card:hover,
.function-example-card:hover,
.array-example-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(79, 195, 247, 0.2);
}

.io-example-card h3,
.control-example-card h3,
.loop-example-card h3,
.function-example-card h3,
.array-example-card h3 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: 'Source Code Pro', monospace;
}
