/* @import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&family=Space+Mono&display=swap"); */
@import url('https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

@font-face {
    font-family: "Manrope", sans-serif;
    src: url(https://fonts.googleapis.com/css2?family=Albert+Sans:ital,wght@0,100..900;1,100..900&family=Manrope:wght@200..800&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap);
}
:root{
    --nav-height: 67px;
    --filter-height: 70px;
    --bg-deep: #030303;
      --accent-cyan: #00f2fe;
      --accent-purple: #7000ff;
}
body {
    font-family: "Manrope", sans-serif;
    background-color: #050505;
    color: #f5f5f5;
    overflow-x: hidden;
}
button{
    cursor: pointer;
}
.mono {
    font-family: 'Space Mono', monospace;
}

.gradient-text {
    background: linear-gradient(90deg, #00E8FF, #8A00FF, #00E8FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: shine 4s linear infinite;
    filter: drop-shadow(0 0 15px rgba(0, 232, 255, 0.6));
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4facfe;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}
.nav-link.active{
    color: var(--color-cyan-400);
}
#slider-wrapper {
    position: relative;
    width: 100%;
    /* background: #030303; */
}

#hero-slider {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 1;
}

.content-box {
    position: relative;
    z-index: 10;
    max-width: 50%;
}

.visual-cue {
    position: relative;
    width: 40vw;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.logo-y {
    width: 60%;
}

.phone-mockup {
    width: 200px;
    height: 400px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    background: #000;
    position: relative;
    overflow: hidden;
}

.mockup-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.browser-mockup {
    width: 400px;
    height: 280px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    position: absolute;
    transform: translateX(-40px) translateY(-20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    z-index: 1;
}

.phone-mockup {
    width: 140px;
    height: 280px;
    border: 4px solid #222;
    border-radius: 24px;
    background: #000;
    position: absolute;
    transform: translateX(120px) translateY(40px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    z-index: 2;
}

.browser-top {
    height: 24px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 10px;
    gap: 4px;
}

.code-terminal {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px;
    font-family: 'Space Mono', monospace;
    border-radius: 10px;
    color: #4facfe;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 0 50px rgba(79, 172, 254, 0.1);
}

.slider-progress {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p-dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.3s ease, transform 0.3s ease;
}

.p-dot.active {
    background: #4facfe;
    transform: scale(2);
    box-shadow: 0 0 10px #4facfe;
}

/* New Gear Animations */
@keyframes gear-rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes gear-rotate-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

.gear-ccw {
    animation: gear-rotate-reverse 15s linear infinite;
    transform-origin: center;
}

.gear-cw {
    animation: gear-rotate 10s linear infinite;
    transform-origin: center;
}


.logo-segment {
    fill: url(#neon-grad);
    opacity: 0.1;
    /* Base "off" state still has a neon ghost */
    stroke: var(--glass-border);
    stroke-width: 0.5;
    backdrop-filter: blur(10px);
}

.drawing-path {
    fill: none;
    stroke: var(--neon-cyan);
    stroke-width: 2;
    opacity: 0;
    filter: drop-shadow(0 0 12px var(--neon-cyan)) drop-shadow(0 0 20px var(--neon-cyan));
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(79, 172, 254, 0.3);
    pointer-events: none;
}

/* Fixed Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: #050505;
}

.section-padding {
    padding: 120px 10%;
}

/* Modal Styling */
#gallery-modal {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#gallery-modal.show {
    display: flex;
    opacity: 1;
}

/* Portfolio Image Container */
.portfolio-img-container {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
}

.portfolio-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-img-container img.active {
    opacity: 1;
}

/* Zig Zag Layout Logic */
@media (min-width: 768px) {
    .zigzag-item:nth-child(even) {
        transform: translateY(60px);
    }

    .zigzag-item:nth-child(3n+2) {
        transform: translateY(30px);
    }
}

/* 3D Hover Tilt Effect */
.glass-card {
    transition: transform 0.2s ease-out, border-color 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-content-wrap {
    transition: transform 0.1s ease-out;
    pointer-events: none;
}

  /* Stacking Card Effect */
    .stack-card {
      position: sticky;
      top: calc(var(--nav-height) + var(--filter-height) + 20px);
      margin-bottom: 15vh;
      width: 100%;
      transform-origin: center top;
      transition: filter 0.5s ease;
    }

    .glass-panel {
      background: #0a0a0a; 
      backdrop-filter: blur(25px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 32px;
      overflow: hidden;
      box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9);
      position: relative;
    }

    .img-container {
      position: relative;
      aspect-ratio: 16/12;
      overflow: hidden;
      background: #000;
    }

    .img-container img {
      position: absolute;
      top: 0; left: 0;
      width: 100%; height: 100%;
      object-fit: cover;
      opacity: 0;
      transform: scale(1.1);
      transition: opacity 0.8s ease, transform 1.5s ease;
    }

    .img-container img.active {
      opacity: 1;
      transform: scale(1);
    }
    .hover-progress {
      position: absolute;
      bottom: 0;
      left: 0;
      height: 2px;
      background: var(--accent-cyan);
      width: 0%;
      z-index: 10;
      transition: width 0.1s linear;
    }

    /* Filter Buttons Styles */
    .filter-btn {
      padding: 8px 24px;
      border-radius: 99px;
      border: 1px solid rgba(255,255,255,0.1);
      transition: all 0.4s ease;
      color: rgba(255,255,255,0.4);
      background: rgba(10, 10, 10, 0.5);
    }
    .filter-btn.active {
      border-color: var(--accent-cyan);
      color: var(--accent-cyan);
      background: rgba(0, 242, 254, 0.05);
      box-shadow: 0 0 20px rgba(0, 242, 254, 0.1);
    }

    /* Sticky Filter Section */
    .sticky-filter {
      position: sticky;
      top: var(--nav-height);
      z-index: 40;
      padding: 15px 0;
      background: rgba(3, 3, 3, 0.7);
      backdrop-filter: blur(15px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Modal Gallery Overlay */
    #gallery-modal {
      display: none;
      opacity: 0;
      transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      background: rgba(3, 3, 3, 0.98); 
      backdrop-filter: blur(20px);
    }
    #gallery-modal.show {
      display: flex;
      opacity: 1;
    }

    .modal-view-container {
      width: 100%;
      height: 100%;
      overflow: hidden;
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      background: #000;
      position: relative;
      display: flex;
    }

    #modal-img {
      width: 100%;
      height: auto;
      display: block;
      /* transition: transform 6s cubic-bezier(0.45, 0, 0.55, 1), opacity 0.4s ease;  */
      transform: translateY(0);
      will-change: transform;
      object-fit: cover;
      object-position: top center;
      transition: all 3s ease-in-out;
    }

    .modal-view-container:hover #modal-img {
      /* transform: translateY(var(--scroll-dist, 0)); */
      object-position: bottom center;
    }

    .nav-arrow {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.15);
      width: 56px;
      height: 56px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.3s ease;
      z-index: 150;
    }
    
    .nav-arrow:hover {
      background: var(--accent-cyan);
      color: black;
      transform: translateY(0%) scale(1.25);
      box-shadow: 0 0 30px rgba(0, 242, 254, 0.4);
      border-color: transparent;
    }