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

:root {
    --bg-dark: #0D0D0D;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --accent-color: #FF5722;
    --color-blue: #7B61FF;
    --color-yellow: #FFC000;
    --color-green: #CCFF00;
    --header-height: 60px;
}

body {
    font-family: "Hanken Grotesk", sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-optical-sizing: auto;
    height: 1200vh; /* Ensure enough scroll space for all animations */
}

/* Hide main content initially until loading screen completes */
body:not(.loaded) .header,
body:not(.loaded) main {
    opacity: 0;
    visibility: hidden;
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #0D0D0D 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
}

.loading-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.loading-grid {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background-image: 
        linear-gradient(rgba(123, 97, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(123, 97, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    animation: gridPulse 3s ease-in-out infinite;
}

@keyframes gridPulse {
    0%, 100% { opacity: 0.1; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.3; transform: translate(-50%, -50%) scale(1.05); }
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    z-index: 1;
}

.loading-logo {
    display: flex;
    gap: 6px;
    align-items: center;
}

.loading-digit-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    opacity: 0;
    transform: translateY(30px) rotateX(-90deg);
}

.loading-digit-wrapper:nth-child(1) {
    background: linear-gradient(135deg, #FF8A65 0%, #FF7043 100%);
    border-radius: 50%;
}

.loading-digit-wrapper:nth-child(2) {
    background: linear-gradient(135deg, #81C8E8 0%, #64B5F6 100%);
    border-radius: 50%;
}

.loading-digit-wrapper:nth-child(3) {
    background: linear-gradient(135deg, #81C784 0%, #66BB6A 100%);
    border-radius: 10px;
}

.loading-digit-wrapper:nth-child(4) {
    background: linear-gradient(135deg, #FFD54F 0%, #FFCA28 100%);
    border-radius: 50%;
}

.loading-digit {
    font-size: 30px;
    font-weight: 900;
    color: #1a1a1a;
    line-height: 1;
    letter-spacing: 0;
    opacity: 1;
    transform: none;
    display: block;
    text-shadow: none;
}

.digit-glow {
    display: none;
}

.loading-text {
    font-family: "Lilita One", sans-serif;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF;
    opacity: 0;
}

.loading-bar-container {
    display: flex;
    align-items: center;
    gap: 20px;
    opacity: 0;
}

.loading-bar {
    width: 300px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 
        0 0 10px rgba(123, 97, 255, 0.1),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
}

.loading-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        var(--color-blue) 0%, 
        var(--color-yellow) 33%, 
        var(--color-green) 66%, 
        var(--accent-color) 100%);
    border-radius: 10px;
    box-shadow: 
        0 0 20px rgba(123, 97, 255, 0.6),
        0 0 40px rgba(255, 87, 34, 0.4);
    position: relative;
}

.loading-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}

.loading-percentage {
    font-family: "Lilita One", sans-serif;
    font-size: 20px;
    color: var(--color-blue);
    min-width: 55px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Fixed Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: var(--header-height);
    background-color: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(10px);
    z-index: 2000;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.header-container {
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 32px;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -2px;
    gap: 2px;
}

.logo-digit {
    display: inline-block;
    color: var(--accent-color);
    transition: color 0.3s ease;
    line-height: 1;
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
}

.logo-digit.digit-1,
.logo-digit.digit-2 {
    transform: translateY(-1px);
}

.logo-digit.digit-3,
.logo-digit.digit-4 {
    transform: translateY(1px);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
}

.menu-list {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
}

.menu-item {
    position: relative;
}

.menu-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 6px 0;
    display: flex;
    align-items: center;
    transition: color 0.3s ease;
    position: relative;
}

.menu-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

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

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

.menu-link.icon-link {
    padding: 6px;
}

.menu-link.icon-link::after {
    display: none;
}

.menu-link svg {
    transition: transform 0.3s ease, stroke 0.3s ease;
}

.menu-link:hover svg {
    transform: translateY(-2px);
    stroke: var(--accent-color);
}

/* Music Toggle Button */
.music-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.music-toggle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, var(--color-blue), var(--color-green));
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.music-toggle:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.music-toggle i {
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.music-toggle:hover {
    transform: scale(1.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.music-toggle:hover i {
    color: #FFFFFF;
}

.music-toggle.active {
    background: linear-gradient(135deg, var(--color-blue) 0%, var(--color-green) 100%);
    border-color: var(--color-blue);
    box-shadow: 0 0 20px rgba(123, 97, 255, 0.5);
    animation: musicPulse 2s ease-in-out infinite;
}

.music-toggle.active::before {
    transform: translate(-50%, -50%) scale(1);
}

.music-toggle.active i {
    color: #FFFFFF;
    animation: musicNote 1.5s ease-in-out infinite;
}

@keyframes musicPulse {
    0%, 100% { box-shadow: 0 0 20px rgba(123, 97, 255, 0.5); }
    50% { box-shadow: 0 0 30px rgba(123, 97, 255, 0.8), 0 0 40px rgba(204, 255, 0, 0.4); }
}

@keyframes musicNote {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(-5deg); }
    75% { transform: translateY(2px) rotate(5deg); }
}

/* Main Content */
main {
    margin-top: 0;
    position: relative;
    height: 500vh; /* Increased for 2 scroll sections */
}

/* Fixed Shapes Layer */
.shapes-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    pointer-events: none;
    transform: translateY(-80px);
}

.shapes-spacer {
    height: 0px;
    width: 100%;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

/* Home Section */
.home-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.home-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    justify-content: center;
    width: 100%;
    transform: translateY(100px);
}

/* Logo Shapes Container */
.logo-shapes {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    transform-style: preserve-3d;
    position: relative;
    z-index: 100;
}

.shape-container {
    display: inline-block;
    position: relative;
    z-index: 100;
}

.digit-shape {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
    border: 1px solid #0D0D0D;
    font-size: 180px;
}

.shape-digit {
    font-size: 150px;
    font-weight: 900;
    color: #1A1A1A;
    line-height: 1;
    z-index: 2;
    position: relative;
    -webkit-text-stroke: 5px #1A1A1A;
    font-stretch: condensed;
}

/* Shape Styles */
.square {
    border-radius: 24px;
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

.circle {
    border-radius: 50%;
    background: linear-gradient(135deg, #5DADE2, #3498DB);
}

/* Productions Text */
.productions-text {
    font-size: 86px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
    perspective: 1000px;
    transform-style: preserve-3d;
}

/* Tagline */
.tagline {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0;
    letter-spacing: 0px;
}

/* About Section */
.about-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 50;
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px;
    opacity: 0;
    pointer-events: none;
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.about-title {
    font-size: 56px;
    font-weight: 900;
    color: #0D0D0D;
    margin-bottom: 18px;
    line-height: 1.15;
}

.about-text {
    font-size: 32px;
    font-weight: 900;
    color: #0D0D0D;
    line-height: 1.55;
}

.impact-line {
    display: inline-block;
    margin-top: 14px;
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: #0D0D0D;
}

.highlight-pill {
    background: none;
    padding: 0;
    border-radius: 0;
    color: inherit;
}

.icon-target {
    display: inline-block;
    width: 52px;
    height: 52px;
    vertical-align: middle;
    margin: 0 6px;
    position: relative;
}

.shape-icon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    opacity: 0;
    z-index: 2;
    color: #000;
    font-size: 2em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.word {
    display: inline-block;
    opacity: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        top: 12px;
    }

    .header-container {
        padding: 0 16px;
        gap: 20px;
    }

    .menu-list {
        gap: 16px;
    }

    .menu-link {
        font-size: 12px;
    }

    .logo {
        font-size: 20px;
    }

    /* Hero Section */
    .logo-shapes {
        gap: 12px;
    }

    .digit-shape {
        width: 120px;
        height: 120px;
        font-size: 120px;
    }

    .shape-digit {
        font-size: 80px;
    }

    .productions-text {
        font-size: 80px;
        letter-spacing: 6px;
    }

    .tagline {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .menu-list {
        gap: 12px;
    }

    .menu-link:not(.icon-link) {
        display: none;
    }

    .logo {
        font-size: 18px;
    }

    /* Hero Section */
    .logo-shapes {
        gap: 8px;
    }

    .digit-shape {
        width: 85px;
        height: 85px;
        font-size: 85px;
    }

    .shape-digit {
        font-size: 54px;
    }

    .productions-text {
        font-size: 52px;
        letter-spacing: 2px;
    }

    .tagline {
        font-size: 15px;
        padding: 0 20px;
    }

    /* About Section */
    .about-title {
        font-size: 32px;
        margin-bottom: 18px;
    }

    .about-text {
        font-size: 22px;
    }

    .impact-line {
        font-size: 32px;
    }

    .icon-target {
        width: 52px;
        height: 52px;
    }

    .shape-icon {
        font-size: 40px;
    }

    .about-container {
        padding: 0 20px;
    }

    .hero-logo {
        gap: 30px;
    }
}

/* Projects Section */
.projects-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #111;
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-container {
    width: 100%;
    max-width: 1200px;
    padding: 0 40px;
    color: #fff;
}

/* Old Projects CSS removed */

/* Services Section */
.services-section {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #0D0D0D;
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.services-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 0;
}

.services-title {
    font-family: "Lilita One", sans-serif;
    font-size: 48px;
    text-align: center;
    color: #fff;
    margin: 40px 0 20px;
    position: relative;
    z-index: 1; /* Lower z-index than tiles */
}

.services-scroll-wrapper {
    flex: 1;
    overflow: visible; /* Allow tiles to scale without clipping */
    position: relative;
    display: flex;
    align-items: center;
    z-index: 10; /* Ensure tiles are above the title */
}

.services-track {
    display: flex;
    gap: 40px;
    padding: 0 50px;
    will-change: transform;
}

.service-tile {
    flex-shrink: 0;
    width: 300px;
    height: 480px;
    background: #050505;
    border: 2px solid var(--tile-color, #FF6B35);
    border-radius: 24px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.8), inset 0 0 20px rgba(0,0,0,0.5);
    transition: box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform, opacity;
    background-size: cover;
    background-position: center;
}

/* Background image layer for tiles with data-bg-image */
.service-tile[data-bg-image]::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: var(--bg-image-url);
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Ensure content is above background image */
.service-tile[data-bg-image] .tile-icon,
.service-tile[data-bg-image] .tile-title,
.service-tile[data-bg-image] .tile-desc {
    position: relative;
    z-index: 2;
}

/* '2020' text for normal tiles */
.service-tile:not([data-bg-image])::before {
    content: '2020';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translate(-50%, -50%) rotate(-90deg);
    color: var(--tile-color);
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0.6;
    font-weight: 700;
    width: 100px;
    text-align: center;
    z-index: 1;
}

.service-tile::after {
    content: attr(data-category);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translate(50%, -50%) rotate(90deg);
    color: var(--tile-color);
    font-size: 10px;
    letter-spacing: 3px;
    opacity: 0.6;
    text-transform: uppercase;
    font-weight: 700;
    width: 100px;
    text-align: center;
}

.service-tile:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 0 30px var(--tile-color);
}

.service-tile:hover .tile-icon i {
    transform: scale(1.2);
    animation: shakeIcon 0.5s ease-in-out infinite;
}

@keyframes shakeIcon {
    0%, 100% { transform: scale(1.2) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    75% { transform: scale(1.2) rotate(5deg); }
}

.tile-icon {
    font-size: 80px;
    color: var(--tile-color);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: transform 0.3s ease;
}

.tile-icon i {
    transition: transform 0.3s ease;
}

.tile-title {
    font-family: "Hanken Grotesk", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: var(--tile-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    order: -1; /* Move to top */
}

.tile-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #fff;
    font-weight: 400;
    opacity: 0.9;
    max-width: 80%;
}

/* Floating Icons Background */
.tile-floating-icons {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 0;
    pointer-events: none;
    animation: rotateWheel 120s linear infinite;
}

@keyframes rotateWheel {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.floating-icon {
    position: absolute;
    color: var(--tile-color);
    opacity: 0.2;
    font-size: 18px;
    animation: floatIcon 15s infinite ease-in-out, counterRotate 120s linear infinite;
    will-change: transform;
    transition: opacity 0.3s ease;
}

.floating-icon:nth-child(even) {
    animation-duration: 18s, 120s;
}

.floating-icon:nth-child(3n) {
    animation-duration: 20s, 120s;
}

.floating-icon:nth-child(4n) {
    animation-duration: 22s, 120s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
    25% {
        transform: translate(-50%, -50%) translateY(-8px) scale(1.1);
    }
    50% {
        transform: translate(-50%, -50%) translateY(-15px) scale(1.15);
    }
    75% {
        transform: translate(-50%, -50%) translateY(-8px) scale(1.1);
    }
}

@keyframes counterRotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(-360deg);
    }
}

/* Transition Canvas */
.transition-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    pointer-events: none;
    opacity: 1;
}
/* Projects Section */
.projects-section {
    position: absolute;
    left: 0;
    width: 100%;
    min-height: 100vh;
    height: auto;
    --bg-opacity: 0;
    background-color: rgba(13, 13, 13, var(--bg-opacity));
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
}

.projects-container {
    width: 90%;
    max-width: 1200px;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 100px;
}

.projects-title {
    font-family: "Lilita One", sans-serif;
    font-size: 4rem;
    color: #fff;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.projects-grid {
    flex: none;
    overflow: visible;
    width: 100%;
}

.portfolio-footer {
    font-family: "Hanken Grotesk", sans-serif;
    font-size: 1.5rem;
    color: #4a4a4a;
    text-align: center;
    margin-top: 3rem;
    font-weight: 700;
    font-style: italic;
}

.masonry-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    width: 100%;
    position: relative;
    z-index: 1;
}

.projects-grid::-webkit-scrollbar {
    width: 6px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.project-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
    border: 2px solid rgba(30, 30, 30, 1);
    aspect-ratio: 1 / 1;
    width: 100%;
}

/* Static background for portfolio tiles */
.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: inherit;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    filter: saturate(0.6);
    transition: filter 0.3s ease;
}

.project-item:hover {
    transform: scale(1.05) !important;
    z-index: 100 !important;
    border: 2px solid #FFD700 !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.4), 0 0 30px rgba(255, 215, 0, 0.2) !important;
    position: relative !important;
}

.project-item:hover::before {
    animation-play-state: paused;
    filter: saturate(1) brightness(1.1);
    z-index: 0;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.3s ease;
    z-index: 1;
}

.project-item:hover .project-overlay {
    background: rgba(0, 0, 0, 0);
}

.project-info {
    display: none; /* Hidden by default */
}

/* Portfolio Tooltip */
.portfolio-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    z-index: 10000;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: tooltipFadeIn 0.2s ease;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Special Tile Styling */
.service-tile.special-tile {
    background: #0d0d0d;
    border-color: #FFD700; /* Golden border always */
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); /* Strong golden glow always */
}

.service-tile.special-tile:hover {
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.8); /* Even stronger on hover */
}

.service-tile.special-tile .tile-title,
.service-tile.special-tile .tile-desc,
.service-tile.special-tile .tile-icon {
    color: #fff;
}

.service-tile.special-tile::before,
.service-tile.special-tile::after {
    color: #fff;
}
/* Scroll Hint Arrow */
.scroll-hint-arrow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 24px;
    margin-right: 0;
    animation: pulseArrow 2s infinite;
    flex-shrink: 0;
    width: 80px; /* Fixed width for calculation */
    pointer-events: none; /* Ensure it doesn't block hover on adjacent tile */
}

.scroll-hint-arrow i {
    font-size: 40px;
    margin-bottom: 10px;
}

.scroll-hint-arrow span {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes pulseArrow {
    0%, 100% { opacity: 0.3; transform: translateX(0); }
    50% { opacity: 0.8; transform: translateX(-10px); }
}
/* Floating Arrow */
.floating-arrow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    color: #fff;
    font-size: 80px;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Ensure it renders sharply */
    -webkit-font-smoothing: antialiased;
    backface-visibility: hidden;
}

/* Dynamic Divider Section */
.divider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    padding: 50px 0;
    z-index: 10;
}

.divider-wrapper {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.divider-row {
    display: flex;
    width: 200%; /* Wide enough to scroll */
    height: 120px;
    position: relative;
}

.divider-bar {
    flex: 1;
    height: 100%;
    position: relative;
    /* Chevron shape: notch on left, point on right */
    clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%, 5% 50%);
    margin-left: -4%; /* Overlap to fit the notch */
}

.divider-bar:first-child {
    margin-left: 0;
    /* First one flat on left? Or just let it flow off screen */
}

.blue-bar { background-color: #7B61FF; }
.yellow-bar { background-color: #FFC000; }
.green-bar { background-color: #CCFF00; }
.orange-bar { background-color: #FF5722; }

.row-top {
    transform: translateX(-20%); /* Start offset */
}

.row-bottom {
    margin-top: -2px; /* Tight fit */
    transform: translateX(-50%); /* Different start offset */
}

/* If bottom row points left */
.row-bottom .divider-bar {
    clip-path: polygon(5% 0%, 100% 0%, 95% 50%, 100% 100%, 5% 100%, 0% 50%);
    margin-left: -4%;
    margin-right: 0;
}

/* Contact Section */
.contact-section {
    position: relative;
    background-color: #0D0D0D; /* Dark background */
    color: #FFFFFF;
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.contact-container {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-title {
    font-family: "Lilita One", sans-serif;
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 20px;
}

.contact-desc {
    font-size: 1.2rem;
    color: #CCCCCC;
    margin-bottom: 60px;
    max-width: 600px;
}

/* Contact Highlight Pills */
.contact-highlight {
    width: 100%;
    max-width: 820px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 18px;
    border-radius: 24px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
}

.contact-pill:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
}

.contact-pill__icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #0D0D0D;
}

.contact-pill--email .contact-pill__icon {
    background: var(--color-blue);
}

.contact-pill--phone .contact-pill__icon {
    background: var(--color-green);
}

.contact-pill__icon i {
    font-size: 20px;
}

.contact-pill__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 0;
    text-align: left;
}

.contact-pill__label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

.contact-pill__value {
    font-family: "Lilita One", sans-serif;
    font-size: 22px;
    line-height: 1.1;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-pill__toast {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #0D0D0D;
    background: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.contact-pill.is-copied .contact-pill__toast {
    opacity: 1;
    transform: translateY(0);
}

/* Cursor Trail Particles */
.cursor-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.cursor-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: cursorParticleFade 0.8s ease-out forwards;
}

@keyframes cursorParticleFade {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
}

@media (max-width: 768px) {
    .contact-title {
        font-size: 3rem;
    }

    .contact-highlight {
        grid-template-columns: 1fr;
    }

    .contact-pill__value {
        font-size: 18px;
    }
}
