/* STREAMING_CHUNK: Initializing CSS variables... */
:root {
    --bg-primary: #ffffff;
    --text-main: #1e293b;
    --accent: #3b82f6;
    --section-bg: #f8fafc;
    --card-shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition-speed: 0.8s;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --text-main: #f1f5f9;
    --accent: #60a5fa;
    --section-bg: #1e293b;
    --card-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

/* STREAMING_CHUNK: Styling layout and navigation... */
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* THE ENLARGE ILLUSION */
section {
    min-height: 100vh;
    padding: 100px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: transform var(--transition-speed) cubic-bezier(0.17, 0.67, 0.83, 0.67), opacity var(--transition-speed);
    transform: scale(0.9);
    opacity: 0;
}

section.is-visible {
    transform: scale(1);
    opacity: 1;
}

/* MARQUEE HEADER */
.scrolling-header {
    background: #000;
    color: white;
    height: 44px;
    position: fixed;
    top: 0; width: 100%; z-index: 1001;
    display: flex; align-items: center; overflow: hidden;
}

.marquee-content {
    white-space: nowrap;
    animation: marquee-scroll 25s linear infinite;
    display: flex;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* RIBBON & DROPDOWNS */
.ribbon {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    position: fixed; top: 44px;
    width: 100%; z-index: 1000;
    padding: 12px 5%; display: flex;
    justify-content: space-between; align-items: center;
}

.dropdown { position: relative; display: inline-block; }
.dropdown-content {
    display: none; position: absolute;
    background-color: var(--section-bg);
    min-width: 200px; border-radius: 12px;
    padding: 8px; z-index: 1001; top: 100%;
}
.dropdown:hover .dropdown-content { display: block; }

/* SKILL BUTTONS */
.skill-grid-btn {
    background: var(--section-bg);
    border: 2px solid var(--accent);
    padding: 30px; border-radius: 20px;
    transition: 0.4s; text-align: center; color: inherit;
    text-decoration: none;
}
.skill-grid-btn:hover {
    transform: translateY(-10px) scale(1.05);
    background: var(--accent); color: white;
}

/* STREAMING_CHUNK: Styling carousel... */
.carousel-track { display: flex; transition: transform 0.6s ease; }
.carousel-slide {
    min-width: 100%; height: 450px;
    background: #cbd5e1; border-radius: 24px;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
}

/* SECTION SPECIFIC PALETTES */
#it-showcase { --accent: #3b82f6; }
#design-showcase { --accent: #ec4899; }
#electronics-showcase { --accent: #10b981; }
#soft-showcase { --accent: #f59e0b; }

/*Footer */
/* STREAMING_CHUNK: Styling the footer and jump animation... */
.site-footer {
    padding: 40px 20px;
    background: var(--bg-secondary);
    border-top: 1px solid rgba(128, 128, 128, 0.1);
    margin-top: 100px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-item {
    flex: 1;
    min-width: 200px;
    text-align: center;
}

.footer-left { text-align: left; }
.footer-right { text-align: right; }

/* Responsive adjustments for mobile */
@media (max-width: 768px) {
    .footer-container { flex-direction: column; }
    .footer-item { text-align: center; }
}

.footer-link {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer-link:hover {
    opacity: 1;
    color: var(--accent);
}

/* THE EASTER EGG: Heart Style & Animation */
#heart-emoji {
display: inline-block;
cursor: pointer;
transition: transform 0.2s ease;
user-select: none;
}

#heart-emoji:hover {
transform: scale(1.3);
}

/* This class is toggled by JavaScript */
.jump-animation {
    animation: heartJump 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heartJump {
    0%, 100% { transform: translateY(0) scale(1.3); }
    50% { transform: translateY(-20px) scale(1.5); }
}

/* Templates */

/* STREAMING_CHUNK: Styling the 12 template layouts... */

/* General Image Placeholder Style */
.img-placeholder {
    background: rgba(128, 128, 128, 0.1);
    border: 2px dashed var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    color: var(--accent);
    font-weight: bold;
}


.template-grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}


.template-hero-gallery {
    display: flex;
    gap: 20px;
}
.template-hero-gallery .large { flex: 2; min-height: 320px; }
.template-hero-gallery .side-gallery { flex: 1; display: flex; flex-direction: column; gap: 20px; }


.template-split {
    display: flex;
    gap: 40px;
    align-items: center;
}
.template-split .img-placeholder, .template-split .text-content { flex: 1; }
.template-split.reverse { flex-direction: row-reverse; }


.template-columns-3 {
    display: flex;
    gap: 20px;
    text-align: center;
}
.template-columns-3 .col {
    flex: 1;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: 15px;
}


.template-terminal {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    font-family: monospace;
    color: #00ff00;
}
.terminal-header { background: #333; padding: 10px; display: flex; gap: 8px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-body { padding: 20px; }
.prompt { color: var(--accent); }

/* 11. Stats */
.stat-row { margin-bottom: 15px; }
.progress-bg { background: rgba(128, 128, 128, 0.2); height: 10px; border-radius: 5px; margin-top: 5px; }
.progress-fill { background: var(--accent); height: 100%; border-radius: 5px; box-shadow: 0 0 10px var(--accent); }

/* Responsive adjustments */
@media (max-width: 768px) {
    .template-split, .template-hero-gallery, .template-columns-3 { flex-direction: column; }
}

/* New Carousel Thing (This is so janky lmao) */

/* --- CAROUSEL REFINEMENTS --- */
.carousel-track {
    display: flex;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

/* --- LIGHTBOX & WINDOW STYLE --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-active {
    opacity: 1 !important;
    pointer-events: auto !important;
}

.window-content {
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-active .window-content {
    transform: scale(1);
}

#lightboxDisplay img, #lightboxDisplay video {
max-width: 100%;
max-height: 100%;
object-contain: contain;
}

/* PDF Viewer Styles */
#pdf-container.open {
max-height: 1200px; /* High enough to contain the aspect-ratio height */
opacity: 1;
}

.pdf-rotate {
    transform: rotate(180deg);
}

#pdf-iframe {
background-color: #333;
color-scheme: light; /* Ensures PDF controls stay readable */
}

/* Ensure section visibility if using the 'is-visible' logic */
#document-viewer {
opacity: 1;
transform: scale(1);
}
