/* ============================================
   NK Group Presentation - Programming Theme
   ============================================ */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a25;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-purple: #a855f7;
    --accent-blue: #3b82f6;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --accent-yellow: #eab308;
    --accent-orange: #f97316;
    --accent-red: #ef4444;
    --code-bg: #1e1e2e;
    --border-color: #27272a;
    --glow-purple: rgba(168, 85, 247, 0.5);
    --glow-blue: rgba(59, 130, 246, 0.5);
    --glow-pink: rgba(236, 72, 153, 0.5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animated Background Bubbles */
.bg-bubbles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #0a0a0f 100%);
}

.bubble {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 20s infinite ease-in-out;
}

.bubble-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.bubble-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue), transparent 70%);
    top: 30%;
    right: -150px;
    animation-delay: -5s;
}

.bubble-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    bottom: 10%;
    left: 10%;
    animation-delay: -10s;
}

.bubble-4 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -15s;
}

.bubble-5 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, var(--accent-purple), transparent 70%);
    bottom: -50px;
    right: 20%;
    animation-delay: -7s;
}

.bubble-6 {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-pink), transparent 70%);
    top: 10%;
    left: 50%;
    animation-delay: -12s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(50px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-30px, 30px) scale(0.9);
    }
    75% {
        transform: translate(-50px, -30px) scale(1.05);
    }
}

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

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-brand {
    font-family: 'Fira Code', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
}
.nav_log {
    width: 40px;
    height:40px;
    background-image: url(img/logo_ai.png);
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin-right: 20px;
    transition: all 0.3s ease;
    box-shadow: 
        0 0 40px rgb(74, 68, 239),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}
.nav_log:hover {
    transform: scale(2);
}

.brand-bracket {
    color: var(--accent-purple);
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
}

.nav-link.active {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.4);
}

.nav-icon {
    font-size: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 20px;
    z-index: 999;
}

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

.mobile-link {
    display: block;
    padding: 15px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-link:hover,
.mobile-link.active {
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.logo-placeholder {
    width: 100%;
    max-width: 1200px;
    height: 650px;
    margin: 0 auto;
    /* border: 3px solid var(--accent-red); */
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 400px rgb(0, 0, 0),
        inset 0 0 100px rgba(0, 0, 0, 0.5);
}

.logo-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.logo-inner {
    text-align: center;
}

/* .placeholder-text {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--accent-red);
    margin: 20px 0;
} */

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.code-lines .line {
    display: block;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    border-radius: 2px;
    animation: pulse-line 2s infinite;
}

.code-lines .line:nth-child(1) { width: 150px; animation-delay: 0s; }
.code-lines .line:nth-child(2) { width: 200px; animation-delay: 0.2s; }
.code-lines .line:nth-child(3) { width: 120px; animation-delay: 0.4s; }

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.scroll-indicator {
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    margin: 10px auto;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

/* Scroll Section */
.scroll-section {
    padding: 150px 20px;
    text-align: center;
}

.section-content {
    max-width: 800px;
    margin: 0 auto;
}

.code-tag {
    font-family: 'Fira Code', monospace;
    color: var(--text-muted);
    font-size: 1rem;
    margin: 10px 0;
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 20px 0;
    line-height: 1.2;
}
.fakultet{
    font-size: 30px;
}
.yonalish{
    font-size: 25px;
    line-height: 3;
}
.tdiu_log{
    width: 200px;
    height: 200px;
    background-image: url(img/tdiu_log.png);
    background-position: center;
    background-size: cover;
    margin-left: 300px;
}

.title-keyword {
    color: var(--accent-purple);
    text-shadow: 0 0 30px var(--glow-purple);
}

.subtitle {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.comment-style {
    color: var(--accent-green);
}

/* Author Section */
.author-section {
    padding: 100px 20px 20px 5px;
}

.author-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(26, 26, 37, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease;
}
.author-card:hover{
    transform: rotateX(5deg) rotateY(5deg) scale(1.05);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.author-info {
    text-align: left;
    margin-left: 100px;
}

.code-comment {
    font-family: 'Fira Code', monospace;
    color: var(--accent-green);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author-name {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.author-role {
    font-family: 'Fira Code', monospace;
    font-size: 0.95rem;
}

.const-keyword {
    color: var(--accent-purple);
}

.var-name {
    color: var(--accent-cyan);
}

.string-value {
    color: var(--accent-yellow);
}

.profile-placeholder {
    width: 150px;
    height: 150px;
    /* background: #000; */
    /* border: 3px solid var(--accent-red); */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 0 100px rgb(61, 61, 61);
    background-image: url(img/portret2.png);
    background-position: center;
    background-size: cover;
}

.profile-inner {
    text-align: center;
}

.placeholder-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 5px;
}

.placeholder-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--accent-red);
}

/* Team Section */
.team-section {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    font-weight: 500;
}

.function-keyword {
    color: var(--accent-purple);
}

.function-name {
    color: var(--accent-cyan);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

.team-card {
    position: relative;
    background: rgba(26, 26, 37, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.5s ease;
    overflow: hidden;
}

.team-card:hover {
    transform: rotateX(5deg) rotateY(5deg) scale(1.05) translateY(-10px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-pink), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-card:hover .card-glow {
    opacity: 1;
}

.member-avatar {
    margin-bottom: 20px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    /* background: #000; */
    /* border: 3px solid var(--accent-red); */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.2);
    background-image: url(img/profil_ph2.jpg);
    background-position: center;
    background-size: cover;
}
.pr_ph1{background-image: url(img/profil_ph1.jpg);}
.pr_ph3{background-image: url(img/profil_ph3.jpg);}
.pr_ph4{background-image: url(img/profil_ph4.jpg);}
.avatar-icon {
    font-size: 1.5rem;
}

.avatar-label {
    font-family: 'Fira Code', monospace;
    font-size: 0.6rem;
    /* color: var(--accent-red); */
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.name-placeholder,
.desc-placeholder {
    /* background: #000; */
    /* border: 2px solid var(--accent-red); */
    border-radius: 8px;
    padding: 10px;
}

.name-placeholder {
    font-size: 16px;
    color: white;
    font-family:
}

.desc-placeholder {font-size: 13px;}

.card-index {
    position: absolute;
    top: 15px;
    right: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.section-footer {text-align: center;}

.bracket {
    font-family: 'Fira Code', monospace;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

/* Lesson Page Styles */
.lesson-header {
    padding: 150px 20px 80px;
    text-align: center;
}

.lesson-title-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.lesson-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 20px 0;
}

/* Content Section */
.content-section {padding: 50px 20px;}

.content-block {
    background: rgba(26, 26, 37, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(10px);
}

.block-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.block-number {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.block-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.content-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 25px;
}

.highlight {
    color: var(--accent-purple);
    font-weight: 600;
}

.code-inline {
    font-family: 'Fira Code', monospace;
    background: var(--code-bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-cyan);
}

/* Code Block */
.code-block {
    background: var(--code-bg);
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    border: 1px solid var(--border-color);
}

.code-block.small {
    margin: 15px 0;
}

.code-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

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

.code-dot.red { background: #ff5f57; }
.code-dot.yellow { background: #febc2e; }
.code-dot.green { background: #28c840; }

.code-filename {
    margin-left: auto;
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.code-content {
    padding: 20px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
    overflow-x: auto;
}

.code-content .comment { color: var(--accent-green); }
.code-content .variable { color: var(--accent-cyan); }
.code-content .string { color: var(--accent-yellow); }
.code-content .function { color: var(--accent-blue); }
.code-content .method { color: var(--accent-purple); }
.code-content .number { color: var(--accent-orange); }

/* Method Card */
.method-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin: 25px 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.method-card:hover {
    border-color: var(--accent-purple);
    box-shadow: 0 5px 20px rgba(168, 85, 247, 0.1);
}

.method-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(168, 85, 247, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.method-name {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--accent-purple);
    font-weight: 600;
}

.method-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Image Placeholder */
.image-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.image-placeholder-grid .image-placeholder:first-child {
    grid-column: 1 / -1;
}

.image-placeholder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.image-placeholder-grid .image-placeholder:first-child {
    grid-column: 1 / -1;
    height: 300px;
}



.image-placeholder {
    background: #000;
    border: 3px solid var(--accent-red);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
}

.image-placeholder.small {
    height: 150px;
}

.placeholder-inner {
    text-align: center;
}

.placeholder-size {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 5px;
}

/* Video Placeholder */
.video-placeholder {
    /* background: #000; */
    /* border: 3px solid var(--accent-red); */
    border-radius: 15px;
    height: 606px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(239, 68, 68, 0.2);
    position: relative;
    overflow: hidden;
}

.video-inner {
    text-align: center;
}

.play-button {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.2);
    border: 2px solid var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2rem;
    color: var(--accent-red);
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: rgba(239, 68, 68, 0.3);
    transform: scale(1.1);
}

.video-label {
    font-family: 'Fira Code', monospace;
    font-size: 1.2rem;
    color: var(--accent-red);
    margin-bottom: 10px;
}

.video-hint {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Code Editor */
.editor-container {
    background: var(--code-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid var(--border-color);
}

.editor-tabs {
    display: flex;
    gap: 5px;
}

.editor-tab {
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    padding: 8px 15px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 6px;
    color: var(--accent-purple);
}

.editor-actions {
    display: flex;
    gap: 10px;
}

.run-btn,
.clear-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.run-btn {
    background: linear-gradient(135deg, var(--accent-green), #16a34a);
    color: white;
}

.run-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.clear-btn {
    background: rgba(239, 68, 68, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.clear-btn:hover {
    background: rgba(239, 68, 68, 0.2);
}

.editor-body {
    display: flex;
    min-height: 200px;
}

.line-numbers {
    padding: 15px 10px;
    background: rgba(0, 0, 0, 0.2);
    border-right: 1px solid var(--border-color);
    text-align: right;
    user-select: none;
}

.line-numbers span {
    display: block;
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding: 0 5px;
}

.code-textarea {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.6;
    resize: none;
    outline: none;
    min-height: 200px;
}

.code-textarea::placeholder {
    color: var(--text-muted);
}

.output-container {
    border-top: 1px solid var(--border-color);
}

.output-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.2);
    font-family: 'Fira Code', monospace;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.output-content {
    padding: 15px;
    min-height: 100px;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.output-placeholder {
    color: var(--text-muted);
}

.output-success {
    color: var(--accent-green);
}

.output-error {
    color: var(--accent-red);
}

/* Footer */
.footer {
    padding: 60px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 10, 15, 0.8);
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 15px 0 25px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand {
    font-family: 'Fira Code', monospace;
    font-size: 1rem;
    color: var(--text-muted);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .logo-placeholder {
        height: 350px;
    }
    
    /* .placeholder-text {
        font-size: 1.1rem;
    } */
    
    .main-title,
    .lesson-main-title {
        font-size: 2rem;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
    }
    
    .author-info {
        text-align: center;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .content-block {
        padding: 25px;
    }
    
    .block-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .image-placeholder-grid {
        grid-template-columns: 1fr;
    }
    
    .video-placeholder {
        height: 250px;
    }
    
    .editor-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .editor-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 12px 15px;
    }
    
    .nav-brand {
        font-size: 1rem;
    }
    
    .hero-section {
        padding: 80px 15px;
    }
    
    .logo-placeholder {
        height: 280px;
    }
    
    .main-title,
    .lesson-main-title {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .author-name {
        font-size: 1.4rem;
    }
    
    .profile-placeholder {
        width: 120px;
        height: 120px;
    }
    
    .block-title {
        font-size: 1.2rem;
    }
    
    .code-content {
        font-size: 0.8rem;
        padding: 15px;
    }
}




.gallery{
width:90%;
margin:auto;
display:grid;
grid-template-columns:repeat(4,1fr);
gap:40px;
padding:40px 0;
}

.gallery img{
width:100%;
aspect-ratio:1/1;
object-fit:cover;
border-radius:12px;
cursor:pointer;
transition:0.3s;
}

.gallery img:hover{
transform:scale(1.05);
}

/* overlay */

.overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
display:flex;
align-items:center;
justify-content:center;
opacity:0;
pointer-events:none;
transition:0.4s;
}

.overlay.active{
opacity:1;
pointer-events:auto;
}

.overlay img{
max-width:70%;
max-height:80%;
border-radius:16px;
animation:zoom 0.4s ease;
}

@keyframes zoom{
from{
transform:scale(0.7);
opacity:0;
}
to{
transform:scale(1);
opacity:1;
}
}
