/* =========================================
   VARIABLES & THEME CONFIGURATION (IDE NORD)
   ========================================= */
:root {
    /* Color Palette - IDE Nord / Dracula Inspired */
    --bg-main: #2E3440; /* Nord Polar Night base */
    --bg-darker: #242933; /* Darker Polar Night */
    --bg-card: rgba(59, 66, 82, 0.7); /* Slightly lighter panel */
    --bg-card-hover: rgba(67, 76, 94, 0.9);
    
    --text-primary: #ECEFF4; /* Snow Storm light */
    --text-secondary: #E5E9F0; /* Brighter for contrast */
    --text-muted: #D8DEE9; /* Much brighter for readability */
    
    --accent-primary: #88C0D0; /* Frost light blue */
    --accent-secondary: #5E81AC; /* Frost dark blue */
    --accent-tertiary: #B48EAD; /* Aurora purple */
    
    /* Code Window Colors (Aurora / Dracula vibes) */
    --code-keyword: #B48EAD; /* Purple */
    --code-string: #A3BE8C; /* Green */
    --code-property: #D08770; /* Orange */
    --code-method: #88C0D0; /* Blue */
    --code-comment: #4C566A; /* Grey */

    /* Typography */
    --font-main: 'Outfit', sans-serif;
    --font-code: 'Fira Code', monospace;
    
    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =========================================
   RESET & BASE STYLES
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    width: 100%;
    padding-left: 50px; /* Space for Activity Bar */
    padding-bottom: 25px; /* Space for Status Bar */
}

/* Subtle Scanlines Background (Monitor Effect) */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0),
        rgba(255, 255, 255, 0) 50%,
        rgba(0, 0, 0, 0.03) 50%,
        rgba(0, 0, 0, 0.03)
    );
    background-size: 100% 4px; /* 4px scanlines height */
    z-index: 0;
    pointer-events: none; /* Let clicks pass through */
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-card-hover);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

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

.section {
    padding: var(--section-padding);
    position: relative;
    z-index: 10;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.pb-0 {
    padding-bottom: 0 !important;
}

/* =========================================
   TYPOGRAPHY & UTILITIES
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 600;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

.section-title {
    font-size: 2.5rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

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

.highlight-text {
    font-size: 1.5rem;
    color: var(--accent-primary);
    font-weight: 300;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--accent-primary);
    padding-left: 15px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition-normal);
    gap: 10px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 242, 254, 0.05);
}

.btn-cv {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-tertiary); /* Solid border like btn-secondary but purple */
}

.btn-cv:hover {
    background: rgba(180, 142, 173, 0.1);
    color: var(--accent-tertiary);
    border-color: var(--accent-tertiary);
    box-shadow: 0 0 15px rgba(180, 142, 173, 0.3);
}

/* =========================================
   IDE STRUCTURAL ELEMENTS (Activity & Status Bars)
   ========================================= */
.ide-activity-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 100vh;
    background-color: var(--bg-darker);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 15px;
}

.ide-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s, border-left 0.2s, background 0.2s;
    border-left: 2px solid transparent;
    text-decoration: none;
}

.ide-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.ide-icon.active {
    color: var(--text-primary);
    border-left-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.ide-icon[data-tooltip] {
    position: relative;
}

.ide-icon[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: #4C566A; /* Nord gray */
    color: #ECEFF4;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 3000;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.ide-icon[data-tooltip]:hover::after {
    opacity: 1;
    transform: translateY(-50%) translateX(20px);
}

.ide-icon.bottom {
    margin-top: auto;
    margin-bottom: 25px; /* Fits right above the status bar */
}

/* Slider filter: dim non-matching cards */
.logo-card.dimmed {
    opacity: 0.15;
    transform: scale(0.88);
    filter: grayscale(70%);
    pointer-events: none;
}

/* Branch Picker */
.branch-picker {
    display: none;
    position: fixed;
    bottom: 30px;
    left: 10px;
    width: 260px;
    background: #1a1f2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    z-index: 9999;
    overflow: hidden;
    animation: fadeInUp 0.15s ease;
}

.branch-picker.active { display: block; }

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

.branch-picker-header {
    padding: 8px 14px;
    font-family: var(--font-code);
    font-size: 0.68rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(22, 27, 36, 0.98);
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.branch-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background 0.15s ease;
}

.branch-item:hover {
    background: rgba(136, 192, 208, 0.1);
    color: var(--text-primary);
}

.branch-item.branch-current { color: var(--accent-primary); }

.branch-icon { font-size: 0.7rem; flex-shrink: 0; }
.branch-name { flex: 1; font-weight: 600; }
.branch-desc { font-size: 0.62rem; color: var(--text-muted); }
.branch-check { font-size: 0.6rem; color: var(--accent-primary); margin-left: auto; }

#branch-trigger { cursor: pointer; }
#branch-trigger:hover { background: rgba(136, 192, 208, 0.15); border-radius: 3px; }

/* IDE Status Bar */
.ide-status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background-color: var(--accent-secondary); /* Frost dark blue for that IDE status look */
    color: #ECEFF4;
    z-index: 2001;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    font-family: var(--font-code);
    font-size: 0.75rem;
}

.status-left, .status-right {
    display: flex;
    gap: 15px;
    align-items: center;
    height: 100%;
}

.status-item {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
    padding: 0 5px;
    transition: background 0.2s;
}

.status-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* IDE Command Palette */
.command-palette-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 4000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.command-palette-backdrop.active {
    display: block;
    opacity: 1;
}

.command-palette {
    position: fixed;
    top: 20%;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90%;
    max-width: 500px;
    background: #3B4252; /* Nord dark blue/gray */
    border: 1px solid var(--accent-primary);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 4001;
    display: none;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.command-palette.active {
    display: block;
    transform: translateX(-50%) translateY(0);
}

.palette-header {
    padding: 15px;
    background: var(--bg-darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.palette-input {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-code);
    font-size: 0.9rem;
    outline: none;
}

.palette-list {
    list-style: none;
    padding: 10px 0;
}

.palette-item {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
    text-decoration: none;
}

.palette-item:hover {
    background: var(--accent-primary);
    color: #000;
}

.palette-item .item-label {
    font-family: var(--font-main);
    font-size: 0.95rem;
}

.palette-item .item-shortcut {
    font-family: var(--font-code);
    font-size: 0.8rem;
    opacity: 0.6;
}

.palette-item:hover .item-shortcut {
    opacity: 1;
}

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 5% 20px calc(5% + 50px); /* 50px offset for Activity Bar on desktop */
    background: transparent;
    z-index: 1000;
    transition: var(--transition-normal);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(46, 52, 64, 0.95); /* Nord theme header */
    backdrop-filter: blur(10px);
    padding: 15px 5% 15px calc(5% + 50px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-code);
    letter-spacing: -1px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
    object-fit: cover;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo:hover .logo-img {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 20px var(--accent-primary), inset 0 0 10px rgba(0, 242, 254, 0.5);
    border-color: #fff;
}

.logo-text {
    display: flex;
    align-items: center;
}

.logo-sign { color: var(--text-muted); }
.logo-highlight { color: var(--accent-primary); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
}

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

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

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

.btn-contact {
    padding: 8px 20px;
    border: 1px solid var(--accent-primary);
    border-radius: 5px;
    color: var(--accent-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

.btn-contact:hover {
    background-color: rgba(0, 242, 254, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

/* =========================================
   HAMBURGER MENU (MOBILE)
   ========================================= */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 5px;
    transition: all 0.3s ease;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden; /* Desktop only */
    background-color: transparent; /* Force transparency to show body bg */
    padding: 100px 0 60px; /* Space for navbar and footer */
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0; /* Keep it below content but above body background */
    pointer-events: none;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    z-index: 2;
    padding-top: 60px; /* Offset for navbar */
    position: relative;
    gap: 40px; /* spacing between text and visual */
}

.hero-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.hero-line-numbers {
    position: absolute;
    left: -40px; /* Pull outside text content */
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-code);
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 2; /* Similar height pacing to text lines */
    text-align: right;
    user-select: none;
    opacity: 0.5;
    padding-right: 15px;
    border-right: 1px solid rgba(255,255,255, 0.1);
}

.hero-text-content {
    max-width: 600px;
    position: relative;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent-primary);
    margin-bottom: 25px;
    font-family: var(--font-code);
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary); /* Using updated, brighter variable */
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero-visual {
    flex: 1;
    max-width: 500px;
}

.hero-terminal {
    transform: perspective(1000px) rotateY(-5deg) translateY(-10px);
    transition: transform 0.5s ease;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 242, 254, 0.1);
}

.hero-terminal:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(0);
}

/* Scroll Down Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% { top: 6px; opacity: 1; }
    100% { top: 20px; opacity: 0; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-primary);
    font-family: var(--font-code);
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}

/* Code Window */
.code-window {
    background: var(--bg-darker);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.window-header {
    background: #1a2332;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.window-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-family: var(--font-code);
    margin-left: 15px;
}

.window-body {
    padding: 25px;
    font-family: var(--font-code);
    font-size: 0.95rem;
    line-height: 1.5;
    overflow-x: auto;
}

.keyword { color: var(--code-keyword); }
.string { color: var(--code-string); }
.property { color: var(--code-property); }
.method { color: var(--code-method); }
.comment { color: var(--code-comment); font-style: italic; }

/* =========================================
   SKILLS SECTION
   ========================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.skill-category {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.skill-category:hover::before {
    transform: translateX(100%);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.skill-category h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.skill-category p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-family: var(--font-code);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.skill-tag-logo {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.skill-tag:hover {
    background: rgba(0, 242, 254, 0.1);
    border-color: rgba(0, 242, 254, 0.3);
    color: var(--accent-primary);
}

/* Integrated Navigable Slider - Dark Tech Style */
.navigable-slider-container {
    padding: 0;
    position: relative;
    margin-top: 10px;
    background: rgba(13, 17, 23, 0.7);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.navigable-slider-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 0);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.navigable-slider-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 50%, rgba(136, 192, 208, 0.07) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 50%, rgba(180, 142, 173, 0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}

/* IDE Window Header */
.slider-ide-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: rgba(22, 27, 36, 0.97);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 2;
    flex-wrap: wrap;
}

.ide-traffic-lights {
    display: flex;
    gap: 7px;
    align-items: center;
    flex-shrink: 0;
}

.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.tl-close    { background: #ff5f57; }
.tl-minimize { background: #ffbd2e; }
.tl-maximize { background: #28ca41; }

.ide-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    background: rgba(46, 52, 64, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.ide-tab.active-tab {
    background: rgba(13, 17, 23, 0.8);
    color: var(--accent-primary);
    border-color: rgba(136, 192, 208, 0.25);
}

.ide-header-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ide-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 9px;
    border-radius: 4px;
    font-size: 0.6rem;
    font-family: var(--font-code);
    font-weight: 600;
    letter-spacing: 0.4px;
    white-space: nowrap;
}

.analytics-badge   { background: rgba(136, 192, 208, 0.1); color: #88C0D0; border: 1px solid rgba(136, 192, 208, 0.2); }
.engineering-badge { background: rgba(180, 142, 173, 0.1); color: #B48EAD; border: 1px solid rgba(180, 142, 173, 0.2); }
.dataviz-badge     { background: rgba(163, 190, 140, 0.1); color: #A3BE8C; border: 1px solid rgba(163, 190, 140, 0.2); }

.ide-badge { cursor: pointer; transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.ide-badge:hover { opacity: 0.85; }

.analytics-badge.filter-active   { background: rgba(136, 192, 208, 0.28); border-color: rgba(136, 192, 208, 0.6); box-shadow: 0 0 10px rgba(136, 192, 208, 0.25); }
.engineering-badge.filter-active { background: rgba(180, 142, 173, 0.28); border-color: rgba(180, 142, 173, 0.6); box-shadow: 0 0 10px rgba(180, 142, 173, 0.25); }
.dataviz-badge.filter-active     { background: rgba(163, 190, 140, 0.28); border-color: rgba(163, 190, 140, 0.6); box-shadow: 0 0 10px rgba(163, 190, 140, 0.25); }

.slider-main-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 60px;
    z-index: 1;
}

.slider-track-container {
    overflow-x: auto;
    scroll-behavior: smooth;
    width: 100%;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.slider-track-container::-webkit-scrollbar { display: none; }
.slider-track-container { -ms-overflow-style: none; scrollbar-width: none; }

.slider-track {
    display: flex;
    gap: 20px;
    padding: 30px 8%;
}

.logo-card {
    position: relative;
    flex: 0 0 120px;
    height: 120px;
    background: rgba(46, 52, 64, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: grab;
}

/* Category top-border accents */
.logo-card[data-category="analytics"]   { border-top: 2px solid rgba(136, 192, 208, 0.35); }
.logo-card[data-category="engineering"] { border-top: 2px solid rgba(180, 142, 173, 0.35); }
.logo-card[data-category="dataviz"]     { border-top: 2px solid rgba(163, 190, 140, 0.35); }

.logo-card img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
    transition: transform 0.35s ease;
    filter: none;
}

.logo-card.card-python img {
    max-height: 68px;
    transform: scale(1.05);
}

/* Specific sizing for wider logos */
.logo-card img[src*="metabase"],
.logo-card img[src*="CommandersAct"],
.logo-card img[src*="Google_Cloud"],
.logo-card img[src*="piwik"] {
    max-height: 62px;
}

.logo-card img[src*="js-icon"],
.logo-card img[src*="looker"],
.logo-card img[src*="dbt"],
.logo-card img[src*="google-tag-manager"],
.logo-card img[src*="Ab tasty"] {
    max-height: 62px;
}

.card-name {
    font-size: 0.62rem;
    font-family: var(--font-code);
    font-weight: 500;
    color: var(--text-muted);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    transition: color 0.3s ease;
    letter-spacing: 0.3px;
}

.logo-card:hover {
    background: rgba(59, 66, 82, 0.98);
    transform: translateY(-6px) scale(1.07);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(136, 192, 208, 0.15);
}

/* Category-specific hover borders and glows */
.logo-card[data-category="analytics"]:hover   { border-color: rgba(136, 192, 208, 0.7); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(136,192,208,0.2); }
.logo-card[data-category="engineering"]:hover { border-color: rgba(180, 142, 173, 0.7); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(180,142,173,0.2); }
.logo-card[data-category="dataviz"]:hover     { border-color: rgba(163, 190, 140, 0.7); box-shadow: 0 12px 30px rgba(0,0,0,0.5), 0 0 20px rgba(163,190,140,0.2); }

.logo-card:hover .card-name { color: var(--accent-primary); }
.logo-card[data-category="engineering"]:hover .card-name { color: #B48EAD; }
.logo-card[data-category="dataviz"]:hover .card-name     { color: #A3BE8C; }

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

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(46, 52, 64, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-arrow:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 0 20px rgba(136, 192, 208, 0.4);
}

.slider-arrow.prev { left: 8px; }
.slider-arrow.next { right: 8px; }

/* IDE Status Bar */
.slider-status-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 7px 18px;
    background: rgba(22, 27, 36, 0.97);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    z-index: 2;
}

.status-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-code);
    font-size: 0.6rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-category { color: var(--accent-primary); }
.status-right    { margin-left: auto; }

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .slider-main-wrapper {
        padding: 0 50px;
    }
    .logo-card {
        flex: 0 0 100px;
        height: 100px;
        padding: 12px 10px;
        gap: 6px;
    }
    .logo-card img {
        max-height: 42px;
    }
    .card-name {
        font-size: 0.58rem;
    }
    .slider-arrow {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }
    .ide-header-actions {
        display: none;
    }
    .slider-status-bar {
        gap: 12px;
    }
    .status-right {
        display: none;
    }
}

/* =========================================
   EXPERIENCE / TIMELINE SECTION
   ========================================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2px; /* Thin "circuit" lines between cards */
    margin-bottom: 80px;
    background: rgba(255, 255, 255, 0.05); /* The border color */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden; /* Round the corners of the grid */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.client-logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 140px;
    background: #0d1117; /* Matches IDE background */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 20px;
    text-decoration: none;
}

.client-logo-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-logo-link:hover {
    background: #161b22;
    z-index: 1;
}

.client-logo-link:hover::after {
    opacity: 1;
}

.client-logo {
    height: 45px;
    width: auto;
    max-width: 80%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.client-logo.logo-lg {
    height: 65px; /* Special size for larger logos like BPCE */
}

.client-logo-link:hover .client-logo {
    transform: scale(1.15) translateY(-5px);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
    margin-left: -1px;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 50px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--bg-main);
    border: 3px solid var(--accent-primary);
    border-radius: 50%;
    left: 10px;
    top: 5px;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
    z-index: 2;
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.8);
}

.timeline-content {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-normal);
}

.timeline-item:hover .timeline-content {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.timeline-date {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-title {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.timeline-details {
    margin: 20px 0;
}

.timeline-details li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.timeline-details li i {
    color: var(--accent-primary);
    margin-top: 4px;
    font-size: 0.8rem;
}

.timeline-stack {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-stack span {
    color: var(--text-muted);
    font-family: var(--font-code);
    font-size: 0.85rem;
}

/* =========================================
   TESTIMONIALS SECTION
   ========================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid var(--accent-secondary);
    transition: var(--transition-normal);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: rgba(94, 129, 172, 0.4); /* Nord dark blue */
}

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

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-header h4 {
    margin-bottom: 2px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.testimonial-header span {
    font-size: 0.85rem;
}

.testimonial-body {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-rating {
    color: #EBCB8B; /* Nord yellow */
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* =========================================
   BLOG SECTION
   ========================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.blog-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(100, 255, 218, 0.2);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(10, 25, 47, 0.85);
    color: var(--accent-primary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(100, 255, 218, 0.2);
}

.blog-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-meta {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.blog-title a {
    transition: var(--transition-fast);
}

.blog-title a:hover {
    color: var(--accent-primary);
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-read-more {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.btn-read-more i {
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.blog-card:hover .btn-read-more {
    color: var(--accent-primary);
}

.blog-card:hover .btn-read-more i {
    transform: translateX(5px);
}

/* =========================================
   BLOG PAGE SPECIFICS
   ========================================= */
.blog-header {
    padding-top: 150px;
    padding-bottom: 80px;
}

.blog-hero-body {
    padding: 40px;
}

.blog-hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.6;
}

.blog-hero-code {
    margin-top: 30px;
    font-family: var(--font-code);
    color: var(--accent-primary);
    font-size: 1rem;
}

/* Responsive Blog Header */
@media screen and (max-width: 768px) {
    .blog-header {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .blog-hero-body {
        padding: 25px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-subtitle {
        font-size: 1rem;
    }

    .blog-hero-code {
        font-size: 0.9rem;
        margin-top: 20px;
    }
}

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-card {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-main));
    border-radius: var(--radius-lg);
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

/* Glow effect behind contact card */
.contact-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,242,254,0.05) 0%, rgba(0,0,0,0) 70%);
    z-index: 0;
    pointer-events: none;
}

.contact-info {
    position: relative;
    z-index: 1;
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

/* =========================================
   GTM / DATA LAYER INTERACTIVE EFFECTS
   ========================================= */

.datalayer-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    pointer-events: none; /* Let clicks pass through */
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.datalayer-toast {
    background: rgba(10, 14, 23, 0.95);
    border: 1px solid var(--accent-secondary);
    border-radius: var(--radius-sm);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.2), 0 5px 15px rgba(0,0,0,0.5);
    width: 280px;
    transform: translateX(120%); /* Hidden initially */
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    backdrop-filter: blur(5px);
    overflow: hidden;
}

.datalayer-toast.show {
    transform: translateX(0);
    opacity: 1;
}

.dl-header {
    background: rgba(79, 172, 254, 0.2);
    padding: 8px 12px;
    font-family: var(--font-code);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dl-header .blink {
    animation: blinker 1s linear infinite;
}

@keyframes blinker {
    50% { opacity: 0; }
}

.dl-body {
    padding: 12px;
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: #e2e8f0;
    margin: 0;
    line-height: 1.4;
    white-space: pre-wrap;
}

.dl-key {
    color: var(--code-property);
}

.dl-value {
    color: var(--code-string);
}

/* Click Particles */
.data-node-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    box-shadow: 0 0 8px var(--accent-primary);
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1), opacity 0.6s ease-out;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding: 15px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.02);
    transition: var(--transition-normal);
}

.contact-link:hover {
    background: rgba(0, 242, 254, 0.05);
    border-color: rgba(0, 242, 254, 0.2);
    transform: translateX(10px);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-detail {
    display: flex;
    flex-direction: column;
}

.contact-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Terminal Form */
.contact-terminal {
    background: #0d1117;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    height: 100%;
}

.terminal-body {
    padding: 25px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: #c9d1d9;
    flex-grow: 1;
}

.terminal-line {
    margin-bottom: 10px;
}

.terminal-line.system {
    color: #8b949e;
}

.prompt {
    color: #7ee787;
    margin-right: 10px;
}

.terminal-form {
    margin-top: 20px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: #c9d1d9;
}

.terminal-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #30363d;
    color: #58a6ff;
    font-family: var(--font-code);
    font-size: 1rem;
    padding: 5px 0;
    outline: none;
    transition: var(--transition-fast);
}

.terminal-input:focus {
    border-bottom-color: #58a6ff;
}

.terminal-input::placeholder {
    color: #484f58;
}

textarea.terminal-input {
    resize: vertical;
    min-height: 80px;
}

.terminal-btn {
    background: rgba(126, 231, 135, 0.1);
    border: 1px solid #7ee787;
    border-radius: 4px;
    color: #7ee787;
    font-family: var(--font-code);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    padding: 8px 20px;
    transition: all 0.2s ease;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.terminal-btn:hover {
    background: #3fb950;
    color: #0d1117;
    box-shadow: 0 0 15px rgba(63, 185, 80, 0.4);
}

/* =========================================
   FOOTER
   ========================================= */
footer.ide-terminal-pane {
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 0;
    text-align: left;
    margin-top: 0;
}

.mobile-footer-content {
    display: none;
}

.pane-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    height: 35px;
}

.pane-tabs {
    display: flex;
    gap: 20px;
    height: 100%;
}

.pane-tab {
    font-family: var(--font-main);
    font-size: 11px;
    font-weight: 500;
    color: #8b949e;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    height: 100%;
}

.pane-tab.active {
    color: #f0f6fc;
}

.pane-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #58a6ff;
}

.pane-actions {
    display: flex;
    gap: 15px;
    color: #8b949e;
    font-size: 12px;
}

.pane-actions i {
    cursor: pointer;
    transition: var(--transition-fast);
}

.pane-actions i:hover {
    color: #f0f6fc;
}

.pane-body.terminal-body {
    padding: 20px 30px 40px;
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media screen and (max-width: 768px) {
    .pane-header {
        height: 28px;
        padding: 0 10px;
    }
    .pane-tabs {
        gap: 8px;
    }
    .pane-tab {
        font-size: 8px;
    }
    .pane-actions {
        display: none;
    }
    .pane-body.terminal-body {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    .window-header {
        padding: 6px 10px;
    }
    .window-body {
        padding: 12px;
        font-size: 0.75rem;
    }

    /* === MOBILE FOOTER === */
    footer.ide-terminal-pane .pane-header {
        display: none !important;
    }
    footer.ide-terminal-pane .pane-body.terminal-body {
        padding: 25px 20px !important;
        background: #0d1117;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .desktop-footer-content {
        display: none !important;
    }
    .mobile-footer-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 12px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .mobile-copyright {
        font-size: 0.85rem;
        color: #f0f6fc;
        font-weight: 500;
        text-align: center !important;
        width: 100% !important;
    }
    .mobile-tagline {
        font-size: 0.75rem;
        color: var(--accent-primary);
        font-family: var(--font-code);
        text-align: center !important;
        width: 100% !important;
    }
    .mobile-socials {
        display: flex !important;
        justify-content: center !important;
        gap: 20px;
        margin-top: 5px;
        width: 100% !important;
    }
    .mobile-socials a {
        color: #8b949e;
        font-size: 1.4rem;
        transition: color 0.2s;
        text-decoration: none;
    }
    .mobile-socials a:hover {
        color: var(--accent-primary);
    }
}

/* Visibility utility: hidden on mobile, visible on desktop */
@media screen and (max-width: 992px) {
    .hidden-mobile {
        display: none !important;
    }
}

.terminal-line {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* =========================================
   RESPONSIVE MODIFICATIONS (MOBILE & TABLET)
   ========================================= */
@media screen and (max-width: 992px) {
    body {
        padding: 0;
    }

    .hidden-mobile {
        display: none !important;
    }
    
    .hero {
        height: auto;
        min-height: 100vh;
        overflow: visible;
        padding-bottom: 100px; /* Extra space for the last CTA */
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
        gap: 30px;
    }

    .hero-content-wrapper {
        display: contents; /* Allows children to be reordered in the parent flexbox */
    }
    
    .hero-text-content {
        order: 1;
        padding-right: 0;
        margin-bottom: 20px;
    }

    .hero-visual {
        order: 2;
        max-width: 100%;
        width: 100%;
        padding: 0 10px;
        margin-bottom: 30px;
    }
    
    .hero-cta-group {
        order: 3;
        justify-content: center;
        margin-top: 0;
    }

    .hero-title { font-size: 3.5rem; }
    .about-grid, .contact-card {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .client-logo {
        max-width: 100px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    body {
        padding-left: 0 !important;
        padding-bottom: 0 !important;
    }

    .hidden-mobile {
        display: none !important;
    }

    .navbar {
        padding: 15px 5% !important; /* Remove sidebar padding on mobile */
    }

    .navbar.scrolled {
        padding: 10px 5% !important;
    }
    
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.1rem; }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-card {
        padding: 30px 20px;
        gap: 40px;
    }
    
    .contact-value {
        word-break: break-all;
        font-size: 0.9rem;
    }

    .skill-category {
        padding: 30px 20px;
    }
    
    /* Ensure code blocks and text don't overflow on small screens */
    .about-visual pre, 
    .terminal-body {
        white-space: pre-wrap;
        word-wrap: break-word;
        overflow-x: auto;
    }
    
    /* Ensure grid containers wrap properly without strict truncation */
    .container {
        padding: 0 15px;
        max-width: 100%;
    }
    
    /* Fix CSS Grid overflows gracefully */
    .blog-grid,
    .testimonials-grid,
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    /* Mobile Nav Container: Hamburger extreme left, Logo centered */
    .nav-container {
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        padding: 0;
        margin: 0;
    }

    .logo {
        margin: 0 auto;
    }

    /* Mobile Nav Menu */
    .nav-links {
        position: fixed;
        left: -100%; /* Slide from left instead of right */
        right: auto;
        top: 0;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        background: rgba(46, 52, 64, 0.98); /* Nord dark blue solid background */
        backdrop-filter: blur(10px);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 40px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
        /* Fix: ensure menu is fully inactive when closed */
        visibility: hidden;
        pointer-events: none;
    }
    
    .logo {
        z-index: 1001; /* Keep logo above menu */
    }

    .nav-links.active {
        left: 0; /* Slide in to 0 from left */
        visibility: visible;
        pointer-events: auto;
    }
    
    .nav-links li {
        width: 100%;
        margin: 15px 0;
    }

    .hamburger.toggle .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle .line2 {
        opacity: 0;
    }
    .hamburger.toggle .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    /* Hide scroll indicator on mobile */
    .scroll-indicator {
        display: none !important;
    }
}

/* Animation utility classes for Scroll Reveal JS */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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