/* ==========================================
   SECTIONS V2 - Premium Redesign
   Terminal-style + Clean Grid Layouts
   ========================================== */

/* ==========================================
   GLOBAL VISUAL FLOW - Connecting Elements
   ========================================== */

/* Continuous vertical accent line on left edge */
main {
    position: relative;
}

main::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(169, 17, 1, 0.04) 10%,
        rgba(169, 17, 1, 0.08) 30%,
        rgba(169, 17, 1, 0.08) 70%,
        rgba(169, 17, 1, 0.04) 90%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 10;
}

[data-theme="dark"] main::before {
    width: 3px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(196, 26, 8, 0.15) 10%,
        rgba(196, 26, 8, 0.25) 30%,
        rgba(196, 26, 8, 0.25) 70%,
        rgba(196, 26, 8, 0.15) 90%,
        transparent 100%
    );
    box-shadow: 0 0 20px 2px rgba(196, 26, 8, 0.15);
}

/* ==========================================
   SUBTLE VISUAL PATTERNS - Awwwards Inspired
   ========================================== */

/* Dot Grid Pattern - Ultra subtle background texture */
.pattern-dot-grid {
    position: relative;
}

.pattern-dot-grid::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at center, rgba(169, 17, 1, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .pattern-dot-grid::before {
    background-image: radial-gradient(circle at center, rgba(169, 17, 1, 0.05) 1px, transparent 1px);
}

/* Noise Texture Overlay - Premium tactile feel */
.texture-noise {
    position: relative;
}

.texture-noise::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.015;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 1;
}

[data-theme="dark"] .texture-noise::after {
    opacity: 0.03;
}

/* Gradient Mesh - Subtle warm glow */
.gradient-mesh {
    position: relative;
}

.gradient-mesh::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(169, 17, 1, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(169, 17, 1, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .gradient-mesh::before {
    background:
        radial-gradient(ellipse 80% 50% at 20% 40%, rgba(169, 17, 1, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(169, 17, 1, 0.04) 0%, transparent 50%);
}

/* Horizontal Dotted Divider - Section separator */
.divider-dotted {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(to right, transparent 0%, rgba(169, 17, 1, 0.08) 20%, rgba(169, 17, 1, 0.08) 80%, transparent 100%);
    background-size: 100% 1px;
    margin: 0;
    border: none;
}

.divider-dotted-pattern {
    width: 100%;
    height: 1px;
    background-image: linear-gradient(to right, rgba(169, 17, 1, 0.06) 0 3px, transparent 3px);
    background-size: 12px 1px;
    background-repeat: repeat-x;
    background-position: center;
    margin: 2rem 0;
}

[data-theme="dark"] .divider-dotted {
    background-image: linear-gradient(to right, transparent 0%, rgba(169, 17, 1, 0.12) 20%, rgba(169, 17, 1, 0.12) 80%, transparent 100%);
}

[data-theme="dark"] .divider-dotted-pattern {
    background-image: linear-gradient(to right, rgba(169, 17, 1, 0.1) 0 3px, transparent 3px);
}

/* ==========================================
   SUBTLE DEPTH EFFECTS
   ========================================== */

/* Inner shadow at top of sections for depth */
.section-alt {
    box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .section-alt {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Soft vignette effect */
.section-depth {
    background-image:
        radial-gradient(ellipse 100% 100% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.02) 100%),
        radial-gradient(ellipse 100% 100% at 50% 100%, transparent 60%, rgba(0, 0, 0, 0.02) 100%);
}

[data-theme="dark"] .section-depth {
    background-image:
        radial-gradient(ellipse 100% 100% at 50% 0%, transparent 60%, rgba(0, 0, 0, 0.15) 100%),
        radial-gradient(ellipse 100% 100% at 50% 100%, transparent 60%, rgba(0, 0, 0, 0.15) 100%);
}

/* Soft top edge highlight */
.section-base::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.04) 20%,
        rgba(0, 0, 0, 0.04) 80%,
        transparent 100%
    );
    z-index: 1;
}

[data-theme="dark"] .section-base::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 20%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent 100%
    );
}

/* Subtle gradient fade between sections */
.section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.01));
    pointer-events: none;
    z-index: 0;
}

[data-theme="dark"] .section::after {
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));
}

/* Layered card depth */
.project-card,
.service-card-v2,
.skill-card-v2 {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .project-card,
[data-theme="dark"] .service-card-v2,
[data-theme="dark"] .skill-card-v2 {
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ==========================================
   SUBTLE SCROLL REVEAL ANIMATIONS
   ========================================== */

/* Base reveal - subtle fade up */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Reveal from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal from right */
.reveal-right {
    opacity: 0;
    transform: translateX(25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Reveal with scale */
.reveal-scale {
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Delay classes */
.reveal-on-scroll.delay-1, .reveal-left.delay-1, .reveal-right.delay-1, .reveal-scale.delay-1 { transition-delay: 0.1s; }
.reveal-on-scroll.delay-2, .reveal-left.delay-2, .reveal-right.delay-2, .reveal-scale.delay-2 { transition-delay: 0.2s; }
.reveal-on-scroll.delay-3, .reveal-left.delay-3, .reveal-right.delay-3, .reveal-scale.delay-3 { transition-delay: 0.3s; }
.reveal-on-scroll.delay-4, .reveal-left.delay-4, .reveal-right.delay-4, .reveal-scale.delay-4 { transition-delay: 0.4s; }

/* Stagger children animation - subtle */
.stagger-children > * {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.08s; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.16s; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.24s; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.32s; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.4s; }

.stagger-children.revealed > * {
    opacity: 1;
    transform: translateY(0);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll,
    .reveal-left,
    .reveal-right,
    .reveal-scale,
    .stagger-children > * {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ==========================================
   ABOUT SECTION - Clean & Minimal
   ========================================== */
.about-section-v2 {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.about-grid-v2 {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 250, 248, 0.75) 50%, rgba(169, 17, 1, 0.06) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(169, 17, 1, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] .about-grid-v2 {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(35, 25, 25, 0.65) 50%, rgba(169, 17, 1, 0.1) 100%);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 12px rgba(169, 17, 1, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-photo-v2 {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.about-photo-v2 img {
    width: 200px;
    height: 200px;
    min-width: 200px;
    min-height: 200px;
    border-radius: 12px !important;
    -webkit-border-radius: 12px !important;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    aspect-ratio: 1 / 1;
}

.about-content-v2 {
    text-align: center;
}

.about-content-v2 .section-label {
    margin-bottom: 0.5rem;
    color: var(--accent-primary);
}

.about-content-v2 .about-title {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.about-text-v2 {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 1.5rem;
}

/* About Award Badge */
.about-award-badge {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    max-width: 280px;
    padding: 0.625rem 0.875rem;
    background: rgba(169, 17, 1, 0.05);
    border: 1px solid rgba(169, 17, 1, 0.15);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.about-award-badge:hover {
    background: rgba(169, 17, 1, 0.08);
    border-color: rgba(169, 17, 1, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(169, 17, 1, 0.15);
}

[data-theme="dark"] .about-award-badge {
    background: rgba(169, 17, 1, 0.08);
    border-color: rgba(169, 17, 1, 0.2);
}

[data-theme="dark"] .about-award-badge:hover {
    background: rgba(169, 17, 1, 0.12);
    border-color: rgba(169, 17, 1, 0.3);
}

.award-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--accent-primary);
    stroke-width: 1.5;
}

.award-content {
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
    flex: 1;
}

.award-intro {
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.award-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.award-meta {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    line-height: 1.4;
}

.award-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--accent-primary);
    stroke-width: 2;
    transition: transform 0.3s ease;
}

.about-award-badge:hover .award-arrow {
    transform: translate(2px, -2px);
}

@media (min-width: 768px) {
    .about-section-v2 {
        padding: 5rem 0;
    }

    .about-grid-v2 {
        grid-template-columns: auto 1fr;
        gap: 3rem;
        padding: 2.5rem;
    }

    .about-photo-v2 img {
        width: 280px;
        height: 280px;
        min-width: 280px;
        min-height: 280px;
    }

    .about-content-v2 {
        text-align: left;
    }

    .about-text-v2 {
        margin: 0 0 1.5rem;
    }
}

@media (max-width: 767px) {
    .about-award-badge {
        position: relative;
        bottom: auto;
        right: auto;
        max-width: 100%;
        margin: 1.5rem auto 0;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }

    .award-icon {
        width: 24px;
        height: 24px;
    }

    .award-intro {
        font-size: 0.5625rem;
    }

    .award-title {
        font-size: 0.6875rem;
    }

    .award-meta {
        font-size: 0.625rem;
    }

    .award-arrow {
        width: 14px;
        height: 14px;
    }
}

@media (min-width: 1024px) {
    .about-grid-v2 {
        padding: 3rem;
    }

    .about-photo-v2 img {
        width: 320px;
        height: 320px;
        min-width: 320px;
        min-height: 320px;
    }

    .about-text-v2 {
        font-size: 1.125rem;
    }
}

/* ==========================================
   ABOUT EXPERTISE CARDS
   ========================================== */
.about-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.about-info-card {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    overflow: hidden;
}

[data-theme="dark"] .about-info-card {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.about-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    transition: height 0.3s ease;
}

.about-info-card:hover::before {
    height: 100%;
}

.about-info-card:hover {
    border-color: rgba(169, 17, 1, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

[data-theme="dark"] .about-info-card:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

/* Staggered accent colors */
.about-info-card:nth-child(1)::before { background: var(--accent-primary); }
.about-info-card:nth-child(2)::before { background: linear-gradient(180deg, var(--accent-primary), rgba(169, 17, 1, 0.6)); }
.about-info-card:nth-child(3)::before { background: linear-gradient(180deg, rgba(169, 17, 1, 0.8), var(--accent-primary)); }
.about-info-card:nth-child(4)::before { background: var(--accent-primary); }

.about-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.about-card-icon {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.about-card-header h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.about-card-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.about-card-list li {
    padding: 0.375rem 0;
    border-bottom: 1px solid var(--border-color);
}

.about-card-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.about-card-list li.current {
    position: relative;
    padding-left: 0.75rem;
}

.about-card-list li.current::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: var(--accent-primary);
    border-radius: 2px;
}

.list-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.list-meta {
    display: block;
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    margin-top: 0.125rem;
}

.about-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.chip-item {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .chip-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.chip-item:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(169, 17, 1, 0.1);
}

/* Card description for services */
.about-card-desc {
    font-size: 0.75rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

/* Tablet: 2x2 cards */
@media (min-width: 640px) {
    .about-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop: 4 cards in row */
@media (min-width: 1024px) {
    .about-cards-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.25rem;
    }
}

/* Services grid: 3 cards, larger and centered - MUST come after about-cards-grid */
.services-cards-grid {
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.services-cards-grid .about-info-card {
    padding: 1.5rem;
}

.services-cards-grid .about-card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
}

.services-cards-grid .about-card-header h3 {
    font-size: 1rem;
}

.services-cards-grid .about-card-desc {
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.services-cards-grid .chip-item {
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
}

/* Tablet: 3 columns starting at 768px for better readability */
@media (min-width: 768px) {
    .services-cards-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .services-cards-grid .about-info-card {
        padding: 1.25rem;
    }

    .services-cards-grid .about-card-desc {
        font-size: 0.8125rem;
    }
}

@media (min-width: 1024px) {
    .services-cards-grid {
        gap: 1.5rem;
    }

    .services-cards-grid .about-info-card {
        padding: 1.75rem;
    }

    .services-cards-grid .about-card-desc {
        font-size: 0.875rem;
    }
}

/* ==========================================
   SECTION CONNECTOR - Vertical red line design
   with diagram/flowchart background
   ========================================== */
.section-connector-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    position: relative;
    overflow: hidden;
}

/* Flowchart background container */
.section-connector-vertical::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

/* SVG Flowchart Background */
.connector-flowchart {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

.connector-flowchart svg {
    width: 100%;
    height: 100%;
}

/* Minimal dotted connector pattern - inspired by Awwwards minimal sites */
.connector-flowchart::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 1px;
    background-image: linear-gradient(to right, rgba(169, 17, 1, 0.06) 0 2px, transparent 2px);
    background-size: 8px 1px;
    background-repeat: repeat-x;
}

/* Subtle end nodes - almost invisible */
.connector-flowchart::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 20px;
    background-image:
        radial-gradient(circle at 10% 50%, rgba(169, 17, 1, 0.04) 0%, rgba(169, 17, 1, 0.04) 2px, transparent 2px),
        radial-gradient(circle at 90% 50%, rgba(169, 17, 1, 0.04) 0%, rgba(169, 17, 1, 0.04) 2px, transparent 2px);
}

/* Dark theme - slightly more visible */
[data-theme="dark"] .connector-flowchart::before {
    background-image: linear-gradient(to right, rgba(169, 17, 1, 0.1) 0 2px, transparent 2px);
}

[data-theme="dark"] .connector-flowchart::after {
    background-image:
        radial-gradient(circle at 10% 50%, rgba(169, 17, 1, 0.08) 0%, rgba(169, 17, 1, 0.08) 2px, transparent 2px),
        radial-gradient(circle at 90% 50%, rgba(169, 17, 1, 0.08) 0%, rgba(169, 17, 1, 0.08) 2px, transparent 2px);
}

/* Vertical red gradient lines */
.connector-line-v {
    width: 2px;
    height: 25px;
    border-radius: 1px;
}

.connector-line-v-top {
    background: linear-gradient(180deg, rgba(169, 17, 1, 0.1) 0%, #a91101 100%);
}

.connector-line-v-bottom {
    background: linear-gradient(180deg, #a91101 0%, rgba(169, 17, 1, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

/* Animated glow moving down */
.connector-line-v-bottom::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -2px;
    width: 6px;
    height: 15px;
    background: radial-gradient(ellipse at center, #a91101 0%, transparent 70%);
    animation: connectorGlow 2s ease-in-out infinite;
}

@keyframes connectorGlow {
    0% {
        top: -15px;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        top: 25px;
        opacity: 0;
    }
}

.connector-text-v {
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 0.5rem 0;
    background: var(--bg-primary);
}

@media (min-width: 768px) {
    .section-connector-vertical {
        padding: 2rem 1rem;
    }

    .connector-line-v {
        height: 30px;
    }

    .connector-text-v {
        font-size: 0.6875rem;
    }

    @keyframes connectorGlow {
        0% {
            top: -15px;
            opacity: 0;
        }
        20% {
            opacity: 1;
        }
        80% {
            opacity: 1;
        }
        100% {
            top: 30px;
            opacity: 0;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    .connector-line-v-bottom::before {
        animation: none;
        top: 0;
        opacity: 0.5;
    }
}

/* ==========================================
   EXPERIENCE SECTION
   ========================================== */
.experience-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .experience-section {
        padding: 5rem 0;
    }
}

/* ==========================================
   HORIZONTAL CAROUSEL - Base Styles
   ========================================== */
.carousel-section {
    padding: 4rem 0;
    overflow: hidden;
}

.carousel-header {
    text-align: center;
    margin-bottom: 2rem;
}

.carousel-container {
    position: relative;
    margin: 0 -1rem;
    padding: 0 1rem;
}

.carousel-wrapper {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 1rem;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    flex: 0 0 280px;
    scroll-snap-align: start;
}

/* Carousel Navigation */
.carousel-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.carousel-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.carousel-btn svg {
    width: 18px;
    height: 18px;
}

/* Progress Indicator */
.carousel-progress {
    display: flex;
    gap: 0.375rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
    transition: all 0.2s ease;
}

.carousel-dot.active {
    width: 24px;
    border-radius: 4px;
    background: var(--accent-primary);
}

/* Desktop Nav */
@media (min-width: 768px) {
    .carousel-container {
        margin: 0;
        padding: 0;
    }

    .carousel-item {
        flex: 0 0 320px;
    }
}

@media (min-width: 1024px) {
    .carousel-item {
        flex: 0 0 360px;
    }
}

/* ==========================================
   SERVICES CAROUSEL
   ========================================== */
.services-carousel .carousel-item {
    flex: 0 0 300px;
}

.service-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.service-card-v2:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(169, 17, 1, 0.1);
}

.service-card-v2 .service-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.12) 0%, rgba(169, 17, 1, 0.02) 100%);
    border-radius: 10px;
    margin-bottom: 1.25rem;
}

.service-card-v2 .service-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-primary);
}

.service-card-v2 .service-title {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-card-v2 .service-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.service-card-v2 .service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card-v2 .service-features li {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    padding: 0.375rem 0;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-card-v2 .service-features li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
}

@media (min-width: 768px) {
    .services-carousel .carousel-item {
        flex: 0 0 340px;
    }
}

/* ==========================================
   PROJECTS CAROUSEL
   ========================================== */
.projects-carousel .carousel-item {
    flex: 0 0 260px;
}

.project-card-v2 {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.project-card-v2:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(169, 17, 1, 0.12);
}

.project-card-v2 .project-image {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0.5rem;
}

.project-card-v2 .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card-v2:hover .project-image img {
    transform: scale(1.05);
}

.project-card-v2 .project-badge {
    padding: 0.2rem 0.5rem;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--accent-primary);
    color: white;
    border-radius: 4px;
}

.project-card-v2 .project-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-card-v2 .project-company {
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    margin-bottom: 0.25rem;
}

.project-card-v2 .project-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.project-card-v2 .project-description {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.project-card-v2 .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.project-card-v2 .project-tag {
    font-size: 0.625rem;
    padding: 0.2rem 0.4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--text-tertiary);
}

/* Project Metrics Mini */
.project-metrics-mini {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.5rem;
}

.project-metric-tag {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.12) 0%, rgba(169, 17, 1, 0.04) 100%);
    border: 1px solid rgba(169, 17, 1, 0.2);
    border-radius: 3px;
    color: var(--accent-primary);
}

@media (min-width: 768px) {
    .projects-carousel .carousel-item {
        flex: 0 0 280px;
    }
}

@media (min-width: 1024px) {
    .projects-carousel .carousel-item {
        flex: 0 0 300px;
    }
}

/* ==========================================
   PROJECT CARDS (Same style as Testimonials)
   ========================================== */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }

    .projects-grid .project-card {
        padding: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1.5rem;
    }

    .projects-grid .project-card {
        flex: 0 0 320px;
        max-width: 320px;
        padding: 1.75rem;
    }
}

@media (min-width: 1280px) {
    .projects-grid .project-card {
        flex: 0 0 320px;
        max-width: 320px;
    }
}

.project-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--accent-primary);
    transition: height 0.3s ease;
    border-radius: 0.75rem 0 0 0;
}

.project-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.project-card:hover::before {
    height: 100%;
    border-radius: 0.75rem 0 0 0.75rem;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.project-logo {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--bg-tertiary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
    overflow: hidden;
}

.project-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.25rem;
}

.project-logo .logo-fallback {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-title-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.project-client {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-role {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.project-description {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 0.75rem 0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.project-tech .tech-tag {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    font-size: 0.6875rem;
    color: var(--text-secondary);
}

.project-metric {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.project-metric .metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
}

.project-metric .metric-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

/* Project Metrics Row - 3 metrics layout */
.project-metrics-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.project-metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.project-metric-item .metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1.2;
    white-space: nowrap;
}

.project-metric-item .metric-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-top: 0.125rem;
}

/* ==========================================
   IMPACT CARDS - Branch-based proven results
   ========================================== */

.impact-card {
    display: flex;
    flex-direction: column;
}

.impact-card .impact-icon {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary, var(--accent-primary)));
    color: white;
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb, 99, 102, 241), 0.25);
}

.impact-card .impact-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.impact-headline {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.75rem 0 0.5rem;
    line-height: 1.3;
}

.impact-card .project-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: auto;
    flex-grow: 1;
}

/* Impact Card Bottom Section */
.impact-card-bottom {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Impact Metrics - Horizontal stat chips */
.impact-card .project-metrics-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
    padding: 0;
    border: none;
    background: none;
}

.impact-card .project-metric-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary, rgba(0,0,0,0.03));
    border-radius: 8px;
    flex: 1;
    min-width: 0;
}

.impact-card .project-metric-item .metric-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--accent-primary);
    line-height: 1;
    white-space: nowrap;
}

.impact-card .project-metric-item .metric-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
}

/* Impact Tags - Inline subtle style */
.impact-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem;
}

.impact-tag {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    padding: 0.25rem 0.625rem;
    border-radius: 4px;
    background: transparent;
    color: var(--text-tertiary);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.impact-tag:hover {
    color: var(--accent-primary);
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb, 99, 102, 241), 0.05);
}

/* Dark mode */
[data-theme="dark"] .impact-card .project-metric-item {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .impact-tag {
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

[data-theme="dark"] .impact-tag:hover {
    background: rgba(var(--accent-primary-rgb, 99, 102, 241), 0.15);
}

/* Mobile adjustments */
@media (max-width: 640px) {
    .impact-card .project-metrics-row {
        flex-wrap: nowrap;
        gap: 0.25rem;
        justify-content: space-between;
    }

    .impact-card .project-metric-item {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.25rem 0.35rem;
        text-align: center;
    }

    .impact-card .project-metric-item .metric-value {
        font-size: 0.75rem;
    }

    .impact-card .project-metric-item .metric-label {
        font-size: 0.5rem;
        line-height: 1.2;
    }

    .impact-tags {
        gap: 0.25rem;
    }

    .impact-tag {
        font-size: 0.625rem;
        padding: 0.2rem 0.5rem;
    }
}

/* ==========================================
   COMPACT PROJECTS - ACCORDION STYLE (Legacy)
   ==========================================

.project-card-compact {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    overflow: hidden;
}

.project-card-compact:hover {
    border-color: rgba(169, 17, 1, 0.4);
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-hover);
}

.project-card-compact.expanded {
    border-color: var(--accent-primary);
    box-shadow: var(--card-shadow-hover);
}

/* Header - clickable button area */
.project-compact-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
    cursor: pointer;
    transition: background 0.2s ease;
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.project-compact-header:hover {
    background: var(--bg-secondary);
}

.project-compact-header-main {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

@media (min-width: 768px) {
    .project-compact-header-main {
        align-items: center;
    }
}

.project-compact-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.project-compact-icon svg {
    width: 20px;
    height: 20px;
}

.project-compact-header:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: -2px;
    border-radius: 0.75rem;
}

/* Mobile preview */
.project-mobile-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

@media (min-width: 768px) {
    .project-mobile-preview {
        display: none;
    }
}

.project-compact-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.project-info-compact {
    flex: 1;
    min-width: 0;
}

.project-info-compact h3 {
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.2rem;
    color: var(--text-primary);
}

.project-meta-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.project-divider {
    opacity: 0.3;
}

.project-role-compact {
    color: var(--text-secondary);
    font-weight: 400;
}

.project-period-compact {
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Metric chips with icons */
.project-metrics-inline {
    display: none;
    gap: 0.375rem;
}

.metric-chip {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.35rem 0.6rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 2rem;
}

.metric-chip-icon {
    width: 14px;
    height: 14px;
    color: var(--accent-primary);
    opacity: 0.8;
    flex-shrink: 0;
}

.metric-chip-content {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.metric-chip-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    line-height: 1;
}

.metric-chip-label {
    font-size: 0.625rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Expand icon */
.project-expand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-secondary);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.project-card-compact:hover .project-expand-icon {
    background: var(--accent-primary);
    color: #fff;
}

.project-expand-icon svg {
    transition: transform 0.3s ease;
}

.project-card-compact.expanded .project-expand-icon svg {
    transform: rotate(180deg);
}

/* Expandable details */
.project-compact-details {
    display: none;
    padding: 0 1.25rem;
}

.project-card-compact.expanded .project-compact-details {
    display: block;
    padding: 0 1.25rem 1.25rem;
}

.project-details-inner {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

/* Compact Facts Layout - Clean card style */
.project-facts-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.project-fact-inline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(169, 17, 1, 0.04);
    border: 1px solid rgba(169, 17, 1, 0.08);
    border-radius: 0.5rem;
}

[data-theme="dark"] .project-fact-inline {
    background: rgba(169, 17, 1, 0.08);
    border-color: rgba(169, 17, 1, 0.15);
}

.project-fact-label {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
}

.project-fact-label::after {
    content: ':';
}

.project-fact-value {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* Delivered Section - Clean list */
.project-delivered-section {
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.625rem;
}

[data-theme="dark"] .project-delivered-section {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.project-delivered-label {
    display: block;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--accent-primary);
    margin-bottom: 0.625rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(169, 17, 1, 0.1);
}

.project-delivered-list-compact {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.5rem 1.5rem;
}

.project-delivered-list-compact li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding-left: 1.125rem;
    position: relative;
    line-height: 1.6;
}

.project-delivered-list-compact li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gradient);
    box-shadow: 0 0 0 2px rgba(169, 17, 1, 0.15);
}

.project-tags-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tag-compact {
    display: inline-block;
    padding: 0.3rem 0.625rem;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* External Link Button */
.project-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0.625rem 1rem;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(169, 17, 1, 0.2);
}

.project-external-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(169, 17, 1, 0.3);
}

.project-external-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Load More Button */
.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

.load-more-container .btn {
    gap: 0.625rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 250, 248, 0.75) 50%, rgba(169, 17, 1, 0.06) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(169, 17, 1, 0.04);
    color: var(--text-primary);
    font-weight: 500;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.load-more-container .btn:hover {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.08) 0%, rgba(169, 17, 1, 0.04) 100%);
    border-color: rgba(169, 17, 1, 0.2);
    color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(169, 17, 1, 0.08);
    transform: translateY(-2px);
}

.load-more-container .btn svg {
    transition: transform 0.3s ease;
}

.load-more-container .btn:hover svg {
    transform: translateY(3px);
}

.load-more-count-wrapper {
    font-size: 0.8125rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Dark mode */
[data-theme="dark"] .load-more-container .btn {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.6) 0%, rgba(35, 25, 25, 0.65) 50%, rgba(169, 17, 1, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .load-more-container .btn:hover {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.15) 0%, rgba(169, 17, 1, 0.08) 100%);
    border-color: rgba(169, 17, 1, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(169, 17, 1, 0.12);
}

/* Desktop layout */
@media (min-width: 768px) {
    .project-compact-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.5rem;
    }

    .project-metrics-inline {
        display: flex;
    }

    .project-compact-details {
        padding: 0 1.5rem 1.5rem;
    }

    .project-facts-compact {
        gap: 0.75rem;
    }

    .project-delivered-section {
        padding: 1.25rem;
    }

    .project-delivered-list-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem 2rem;
    }
}

/* Dark mode for compact projects */
[data-theme="dark"] .project-card-compact {
    background: rgba(30, 30, 30, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-card-compact:hover {
    background: rgba(40, 40, 40, 0.7);
    border-color: rgba(169, 17, 1, 0.4);
}

[data-theme="dark"] .project-card-compact.expanded {
    border-color: var(--accent-primary);
}

[data-theme="dark"] .project-compact-header:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .project-compact-icon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .metric-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .project-expand-icon {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .project-detail-item {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-tag-compact {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   OPEN SOURCE SECTION
   ========================================== */
.opensource-section {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.opensource-showcase {
    max-width: 600px;
    margin: 0 auto;
}

.opensource-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 250, 248, 0.85) 50%, rgba(169, 17, 1, 0.08) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(169, 17, 1, 0.06);
    transition: all 0.3s ease;
}

.opensource-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 8px 24px rgba(169, 17, 1, 0.1);
}

.opensource-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.opensource-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-gradient);
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 4px 12px rgba(169, 17, 1, 0.25);
}

.opensource-icon svg {
    width: 28px;
    height: 28px;
}

.opensource-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: rgba(169, 17, 1, 0.06);
    border: 1px solid rgba(169, 17, 1, 0.12);
    border-radius: 2rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.opensource-badge svg {
    color: var(--accent-primary);
}

.opensource-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.opensource-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.opensource-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(169, 17, 1, 0.03);
    border-radius: 0.75rem;
}

.opensource-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.opensource-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.125rem;
}

.opensource-stat-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.opensource-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    margin-bottom: 1.5rem;
}

.opensource-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.opensource-feature svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

.opensource-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    background: var(--accent-gradient);
    color: #fff;
    border-radius: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(169, 17, 1, 0.25);
}

.opensource-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(169, 17, 1, 0.35);
}

.opensource-cta svg {
    width: 18px;
    height: 18px;
}

/* Dark mode */
[data-theme="dark"] .opensource-card {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.7) 0%, rgba(35, 25, 25, 0.75) 50%, rgba(169, 17, 1, 0.12) 100%);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 4px 16px rgba(169, 17, 1, 0.1);
}

[data-theme="dark"] .opensource-card:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(169, 17, 1, 0.15);
}

[data-theme="dark"] .opensource-badge {
    background: rgba(169, 17, 1, 0.12);
    border-color: rgba(169, 17, 1, 0.2);
}

[data-theme="dark"] .opensource-stats {
    background: rgba(169, 17, 1, 0.08);
}

/* Responsive */
@media (max-width: 640px) {
    .opensource-card {
        padding: 1.5rem;
    }

    .opensource-card-header {
        flex-direction: column;
        gap: 1rem;
    }

    .opensource-title {
        font-size: 1.25rem;
    }

    .opensource-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .opensource-stat {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==========================================
   DARK MODE ADJUSTMENTS
   ========================================== */

/* About Section Dark Mode */
[data-theme="dark"] .about-photo-v2 img {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Terminal - Works in both themes (dark by design) */
[data-theme="dark"] .terminal-window {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

/* Carousel Navigation Dark Mode */
[data-theme="dark"] .carousel-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .carousel-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

[data-theme="dark"] .carousel-dot {
    background: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .carousel-dot.active {
    background: var(--accent-primary);
}

/* Service Cards Dark Mode */
[data-theme="dark"] .service-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .service-card-v2:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .service-card-v2 .service-icon {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.2) 0%, rgba(169, 17, 1, 0.05) 100%);
}

[data-theme="dark"] .service-card-v2 .service-features li {
    border-color: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.6);
}

/* Project Cards Dark Mode */
[data-theme="dark"] .project-card-v2 {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .project-card-v2:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .project-card-v2 .project-image {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
}

[data-theme="dark"] .project-card-v2 .project-tag {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .project-metric-tag {
    background: linear-gradient(135deg, rgba(169, 17, 1, 0.25) 0%, rgba(169, 17, 1, 0.1) 100%);
    border-color: rgba(169, 17, 1, 0.3);
}

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.carousel-item {
    animation: slideInFromRight 0.5s ease forwards;
    animation-delay: calc(var(--item-index, 0) * 0.1s);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-item {
        animation: none;
    }

    .service-card-v2:hover,
    .project-card-v2:hover,
    .skill-card:hover {
        transform: none;
    }
}

/* ==========================================
   ANIMATED SKILL BARS
   ========================================== */
.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.skill-bar-item {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.skill-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skill-bar-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-primary);
}

.skill-bar-percent {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent-primary);
}

.skill-bar-track {
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

[data-theme="dark"] .skill-bar-track {
    background: rgba(255, 255, 255, 0.1);
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--accent-gradient);
    border-radius: 3px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.skill-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 100%
    );
    animation: skillBarShine 2s ease-in-out infinite;
    animation-delay: 1.2s;
}

@keyframes skillBarShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Animated state - applied via JS when in view */
.skill-bar-item.animated .skill-bar-fill {
    width: var(--skill-level, 0%);
}

/* Staggered animation delays */
.skill-bar-item:nth-child(1) .skill-bar-fill { transition-delay: 0s; }
.skill-bar-item:nth-child(2) .skill-bar-fill { transition-delay: 0.1s; }
.skill-bar-item:nth-child(3) .skill-bar-fill { transition-delay: 0.2s; }
.skill-bar-item:nth-child(4) .skill-bar-fill { transition-delay: 0.3s; }
.skill-bar-item:nth-child(5) .skill-bar-fill { transition-delay: 0.4s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .skill-bar-fill {
        transition: none;
    }

    .skill-bar-fill::after {
        animation: none;
    }

    .skill-bar-item .skill-bar-fill {
        width: var(--skill-level, 0%);
    }
}

/* ==========================================
   PROJECT LOADING SKELETON
   ========================================== */
.project-skeleton {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.75rem;
    padding: 1.25rem;
    overflow: hidden;
}

[data-theme="dark"] .project-skeleton {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skeleton-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-shine) 50%, var(--skeleton-base) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-text-group {
    flex: 1;
}

.skeleton-title {
    height: 1rem;
    width: 60%;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-shine) 50%, var(--skeleton-base) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-meta {
    height: 0.75rem;
    width: 40%;
    border-radius: 0.25rem;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-shine) 50%, var(--skeleton-base) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    animation-delay: 0.1s;
}

.skeleton-metrics {
    display: flex;
    gap: 0.375rem;
    margin-top: 1rem;
}

.skeleton-chip {
    height: 1.75rem;
    width: 5rem;
    border-radius: 2rem;
    background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-shine) 50%, var(--skeleton-base) 100%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
}

.skeleton-chip:nth-child(2) { animation-delay: 0.15s; }
.skeleton-chip:nth-child(3) { animation-delay: 0.3s; }

/* Skeleton color variables */
:root {
    --skeleton-base: rgba(0, 0, 0, 0.06);
    --skeleton-shine: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --skeleton-base: rgba(255, 255, 255, 0.06);
    --skeleton-shine: rgba(255, 255, 255, 0.12);
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Hide skeleton when projects are loaded */
.projects-grid:not(:empty) + .skeleton-container,
.projects-grid.loaded ~ .skeleton-container {
    display: none;
}

@media (prefers-reduced-motion: reduce) {
    .skeleton-icon,
    .skeleton-title,
    .skeleton-meta,
    .skeleton-chip {
        animation: none;
        background: var(--skeleton-base);
    }
}
