/* -------------------------------------------------------------
   DEVIC PORTFOLIO™ BRAND STYLING
   ------------------------------------------------------------- */

/* Variables & Theme Setup - Light Theme (Default) */
:root {
    --bg-main: #ffffff;
    --bg-main-rgb: 255, 255, 255;
    --bg-secondary: #f8f6fc;
    --bg-card: rgba(245, 242, 255, 0.8);
    --border-glass: rgba(139, 92, 246, 0.12);
    --border-glass-active: rgba(139, 92, 246, 0.25);
    
    --accent-primary: #6d28d9;
    --accent-primary-rgb: 109, 40, 217;
    --accent-secondary: #8b5cf6;
    --accent-secondary-rgb: 139, 92, 246;

    --accent-violet: #6d28d9;
    --accent-violet-rgb: 109, 40, 217;
    --accent-cyan: #7c3aed;
    --accent-cyan-rgb: 124, 58, 237;
    --accent-orange: #8b5cf6;
    --accent-orange-rgb: 139, 92, 246;

    --text-white: #2c2b2b;
    --text-silver: #374151;
    --text-muted: #6b7280;
    --text-dark: #ffffff;

    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-glow-violet: 0 0 30px rgba(109, 40, 217, 0.08);
    --shadow-glow-cyan: 0 0 30px rgba(124, 58, 237, 0.08);
    --shadow-card: 0 10px 30px -10px rgba(109, 40, 217, 0.1);
    --shadow-header: 0 10px 30px rgba(109, 40, 217, 0.05);
}

/* Dark Theme Setup */
[data-theme="dark"] {
    --bg-main: #0a0a0a;
    --bg-main-rgb: 10, 10, 10;
    --bg-secondary: #121212;
    --bg-card: rgba(22, 22, 22, 0.65);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-active: rgba(255, 255, 255, 0.2);
    
    --accent-primary: #ffffff;
    --accent-primary-rgb: 255, 255, 255;
    --accent-secondary: #a3a3a3;
    --accent-secondary-rgb: 163, 163, 163;

    --accent-violet: #ffffff;
    --accent-violet-rgb: 255, 255, 255;
    --accent-cyan: #e5e7eb;
    --accent-cyan-rgb: 229, 229, 229;
    --accent-orange: #a3a3a3;
    --accent-orange-rgb: 163, 163, 163;

    --text-white: #ffffff;
    --text-silver: #e5e7eb;
    --text-muted: #888888;
    --text-dark: #000000;
    
    --shadow-glow-violet: 0 0 30px rgba(255, 255, 255, 0.05);
    --shadow-glow-cyan: 0 0 30px rgba(255, 255, 255, 0.05);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
    --shadow-header: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-main);
    color: var(--text-silver);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    background-color: var(--bg-main);
    color: var(--text-silver);
}

/* Smooth Theme Transitions */
body, header, section, footer, .portfolio-card, .btn, .nav-link, .filter-btn, .theme-toggle-btn, .contact-box, .contact-channel, .visual-card, .skill-tag, .slider-button-circle {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: var(--accent-secondary);
    border-radius: 5px;
    border: 2px solid var(--bg-main);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* Typography Details */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-white);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Global Elements & Badge */
.tm {
    font-size: 0.45em;
    vertical-align: super;
    font-weight: 600;
    margin-left: 3px;
    opacity: 0.6;
}

/* Inside hero-title .tm needs special treatment since hero-title clips text */
.hero-title .tm {
    -webkit-text-fill-color: var(--text-muted);
    opacity: 0.5;
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

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

.section-header.align-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
}

.section-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-violet));
    margin-top: 16px;
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 8px;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--text-dark);
    border: 1px solid var(--accent-primary);
    box-shadow: 0 4px 20px rgba(var(--accent-primary-rgb), 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    background: transparent;
    color: var(--accent-primary);
    box-shadow: 0 10px 25px rgba(var(--accent-primary-rgb), 0.25);
}

.btn-secondary {
    background: rgba(var(--accent-primary-rgb), 0.03);
    color: var(--text-white);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(var(--accent-primary-rgb), 0.08);
    border-color: var(--border-glass-active);
    transform: translateY(-3px);
}

/* -------------------------------------------------------------
   HEADER / NAVBAR
   ------------------------------------------------------------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-normal);
}

.header-glass {
    background: rgba(var(--bg-main-rgb), 0.75);
    border-bottom: 1px solid var(--border-glass);
    backdrop-filter: blur(16px);
}

header.scrolled {
    background: rgba(var(--bg-main-rgb), 0.9);
    box-shadow: var(--shadow-header);
}

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

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.03em;
    color: var(--text-white);
}
//
/* Animated Gradient Text Animation */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #6d28d9, #8b5cf6, #a3a3a3, #ffffff, #6d28d9);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

.gradient-text:hover {
    animation-duration: 3s;
}
//
.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
    margin-right: 32px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.15rem;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    border: 1px solid transparent;
}

.theme-toggle-btn:hover {
    background: rgba(var(--accent-primary-rgb), 0.08);
    border-color: var(--border-glass-active);
    transform: scale(1.05);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
    padding: 6px 0;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    transition: var(--transition-fast);
}

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

.nav-link.active {
    color: var(--text-white);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

/* -------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 60px;
    background-color: var(--bg-main);
    z-index: 1;
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.08) 0%, rgba(var(--accent-primary-rgb), 0.02) 50%, transparent 100%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: pulseGlow 10s infinite alternate ease-in-out;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-45%, -55%) scale(1.2);
        opacity: 1;
    }
}

.hero-content {
    max-width: 800px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    background: rgba(var(--accent-primary-rgb), 0.05);
    border: 1px solid var(--border-glass-active);
    color: var(--text-white);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.05);
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--text-white) 40%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-bottom: 40px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* -------------------------------------------------------------
   PORTFOLIO GALLERY
   ------------------------------------------------------------- */
.portfolio {
    background-color: var(--bg-secondary);
    position: relative;
}

.filter-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition-normal);
}

.filter-btn:hover {
    color: var(--text-white);
    border-color: var(--border-glass-active);
    background: rgba(255, 255, 255, 0.05);
}

.filter-btn.active {
    color: var(--text-dark);
    background: var(--accent-primary);
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(var(--accent-primary-rgb), 0.15);
}

/* Grid Layout */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    transition: var(--transition-normal);
}

.portfolio-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    transition: var(--transition-normal);
    box-shadow: var(--shadow-card);
    position: relative;
}

/* Show/Hide classes for filter JS animation */
.portfolio-card.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    border: none;
    margin: 0;
    padding: 0;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(var(--bg-main-rgb), 0.95) 0%, rgba(var(--bg-main-rgb), 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: var(--transition-normal);
    backdrop-filter: blur(4px);
}

.card-category {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
    transform: translateY(15px);
    transition: var(--transition-normal);
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-white);
    transform: translateY(15px);
    transition: var(--transition-normal);
    transition-delay: 0.05s;
}

.btn-view-project {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 0.95rem;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition-normal);
    transition-delay: 0.1s;
    backdrop-filter: blur(10px);
}

/* Card Hover States */
.portfolio-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glass-active);
    box-shadow: 0 20px 40px -10px rgba(var(--accent-primary-rgb), 0.15);
}

/* Specific glows depending on category */
.portfolio-card.streamers:hover,
.portfolio-card.irl:hover,
.portfolio-card.social:hover {
    box-shadow: 0 20px 40px -10px rgba(var(--accent-primary-rgb), 0.15);
}

.portfolio-card:hover .card-img {
    transform: scale(1.08);
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
}

.portfolio-card:hover .card-category,
.portfolio-card:hover .card-title {
    transform: translateY(0);
}

.portfolio-card:hover .btn-view-project {
    opacity: 1;
    transform: scale(1);
}

.btn-view-project:hover {
    background: var(--text-white);
    color: var(--text-dark);
}

/* Custom visual coloring inside overlays depending on tag */
.portfolio-card.irl .card-category {
    color: var(--accent-orange);
}
.portfolio-card.social .card-category {
    color: var(--accent-cyan);
}

/* -------------------------------------------------------------
   BEFORE / AFTER COMPARISON SLIDER
   ------------------------------------------------------------- */
.comparison-section {
    background-color: var(--bg-main);
    position: relative;
    border-bottom: 1px solid var(--border-glass);
}

.comparison-section .section-container {
    padding-top: 40px;
    padding-bottom: 60px;
}

.section-subtitle-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin-top: 16px;
    text-align: center;
    line-height: 1.6;
}

.comparison-slider-container {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    margin: 40px auto 0;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 40px rgba(var(--accent-primary-rgb), 0.05);
    user-select: none;
    -webkit-user-select: none;
}

.comparison-slider-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
    transition: none;
}

.slider-label {
    position: absolute;
    bottom: 24px;
    background: rgba(6, 7, 9, 0.85);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--text-white);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: 5;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    pointer-events: none;
}

.before-label {
    left: 24px;
    border-left: 2px solid var(--accent-secondary);
}

.after-label {
    right: 24px;
    border-right: 2px solid var(--accent-primary);
}

/* Invisible Range Input spanning the container */
.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 10;
    cursor: ew-resize;
}

/* Visual Handle Bar representing the divider */
.slider-button {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
    transform: translateX(-50%);
    z-index: 9;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(var(--accent-primary-rgb), 0.15);
}

.slider-button-line {
    flex-grow: 1;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

.slider-button-circle {
    width: 48px;
    height: 48px;
    background: var(--bg-main);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(var(--accent-primary-rgb), 0.15), inset 0 0 8px rgba(var(--accent-primary-rgb), 0.1);
    margin: 12px 0;
    transition: var(--transition-fast);
}

/* Glow handles based on mouse drag/hover focus */
.slider-input:hover ~ .slider-button .slider-button-circle {
    transform: scale(1.1);
    border-color: var(--accent-secondary);
    box-shadow: 0 0 25px rgba(var(--accent-primary-rgb), 0.3);
}

.slider-input:active ~ .slider-button .slider-button-circle {
    transform: scale(1.15);
    background: var(--accent-primary);
    color: var(--text-dark);
    box-shadow: 0 0 30px rgba(var(--accent-primary-rgb), 0.4);
}

/* Responsive adjust for mobile */
@media (max-width: 768px) {
    .comparison-slider-container {
        aspect-ratio: 4 / 3; /* slightly taller ratio for smaller viewports */
    }
}

/* -------------------------------------------------------------
   ABOUT SECTION
   ------------------------------------------------------------- */
.about {
    background-color: var(--bg-main);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.about-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-glass);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-silver);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.skill-tag i {
    color: var(--accent-primary);
}

.skill-tag:hover {
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-color: var(--border-glass-active);
    color: var(--text-white);
}

.about-visual {
    position: relative;
}

.visual-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.visual-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 24px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

.visual-card:hover {
    transform: translateX(8px);
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-color: var(--border-glass-active);
}

.visual-card-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.visual-icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.visual-card:nth-child(2) .visual-icon {
    color: var(--accent-secondary);
}

.visual-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

.visual-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.contact-box {
    position: relative;
    background: rgba(var(--bg-main-rgb), 0.5);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 60px 40px;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.contact-card-glow {
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(var(--accent-primary-rgb), 0.08) 0%, transparent 70%);
    filter: blur(50px);
    z-index: 1;
}

.contact-intro {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-top: 16px;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.contact-channel {
    background: rgba(var(--accent-primary-rgb), 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: var(--transition-normal);
    position: relative;
}

.channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: rgba(var(--accent-primary-rgb), 0.04);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.channel-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.channel-details p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.channel-arrow {
    position: absolute;
    right: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    opacity: 0;
    transform: translate(-10px, 10px);
    transition: var(--transition-normal);
}

/* Hover effects for contact channels */
.contact-channel:hover {
    transform: translateY(-5px);
    background: rgba(var(--accent-primary-rgb), 0.04);
    border-color: var(--border-glass-active);
    box-shadow: 0 10px 25px -10px rgba(var(--accent-primary-rgb), 0.15);
}

.contact-channel:hover .channel-icon {
    background: var(--accent-primary);
    color: var(--text-dark);
}

.contact-channel:hover .channel-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

/* -------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------- */
footer {
    background-color: var(--bg-main);
    border-top: 1px solid var(--border-glass);
    padding: 40px 24px;
}

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

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.animate-heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes heartbeat {
    0%   { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4)); }
    10%  { transform: scale(1.35); filter: drop-shadow(0 0 12px rgba(239, 68, 68, 0.85)); }
    20%  { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4)); }
    30%  { transform: scale(1.2);  filter: drop-shadow(0 0 9px rgba(239, 68, 68, 0.7)); }
    40%  { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4)); }
    100% { transform: scale(1);    filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.4)); }
}

/* -------------------------------------------------------------
   LIGHTBOX MODAL
   ------------------------------------------------------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 5, 7, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    color: var(--text-white);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    z-index: 2002;
}

.lightbox-close:hover {
    background: var(--text-white);
    color: var(--text-dark);
    transform: scale(1.1) rotate(90deg);
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2001;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content-wrapper {
    transform: scale(1);
}

.lightbox-image-container {
    width: 100%;
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.9);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.lightbox-image-container img {
    display: block;
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 20px;
    text-align: center;
    width: 100%;
}

.lightbox-cat {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.lightbox-title-label {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 4px;
}

/* -------------------------------------------------------------
   RESPONSIVE STYLES (MEDIA QUERIES)
   ------------------------------------------------------------- */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-channels {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.05rem;
    }
    
    /* Navigation drawer for mobile */
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(var(--bg-main-rgb), 0.98);
        border-left: 1px solid var(--border-glass);
        flex-direction: column;
        justify-content: center;
        gap: 40px;
        transition: var(--transition-normal);
        backdrop-filter: blur(20px);
        margin: 0;
    }
    
    .nav-menu.open {
        right: 0;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-box {
        padding: 40px 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        text-align: center;
    }
}

/* -------------------------------------------------------------
   CONTENT PROTECTION
   ------------------------------------------------------------- */

/* Disable selection and drag on all images */
img {
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events only on interactive UI elements that contain imgs */
.slider-input,
.btn-view-project,
.portfolio-card,
.comparison-slider-container {
    pointer-events: auto;
}

/* Protection Dialog Overlay */
#protection-dialog {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

#protection-dialog.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.protection-dialog-inner {
    background: var(--bg-secondary);
    border: 1px solid var(--border-glass-active);
    border-radius: 20px;
    padding: 28px 36px;
    text-align: center;
    max-width: 380px;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.protection-icon {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 12px;
    opacity: 0.85;
}

.protection-dialog-inner h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 8px;
}

.protection-dialog-inner p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

#protection-dialog-close {
    background: var(--accent-primary);
    color: var(--text-dark);
    border: none;
    padding: 10px 28px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

#protection-dialog-close:hover {
    opacity: 0.85;
    transform: scale(1.03);
}

/* -------------------------------------------------------------
   DEVTOOLS OVERLAY
   ------------------------------------------------------------- */

/* Disable text selection on the whole page */
body {
    -webkit-user-select: none;
    user-select: none;
}

/* DevTools full-page overlay */
#devtools-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.devtools-overlay-inner {
    text-align: center;
    padding: 48px 40px;
    max-width: 460px;
}

.devtools-icon {
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 24px;
    opacity: 0.9;
}

.devtools-overlay-inner h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.devtools-overlay-inner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin-bottom: 8px;
}

.devtools-sub {
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.35) !important;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 16px;
}
