html,
body {
    margin: 0 !important;
    padding: 0 !important;
    background: rgb(0, 0, 0);
    overflow-x: hidden !important;
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

/* NAVBAR */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: silver;
    border-radius: 2px;
}

/* Mobile menu style */
@media (max-width: 768px) {
    .nav-menu {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        transform: translateY(-200%);
        transition: transform 0.4s ease;
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .menu-toggle {
        display: flex;
    }
}

/* Navbar base (already yours) */
.navbar-custom {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 12px 0;
    z-index: 1000;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    isolation: isolate;
}

/* Activated after scrolling */

.navbar-custom.scrolled {
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(10, 10, 20, 0.6);
    /* darker + more saturation helps visibility */
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.5);
}

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

/* Brand/Logo Styling */
.nav-brand .hover-underline {
    font-size: 1rem;
    /* Smaller brand */
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    gap: 30px;
    /* Slightly tighter spacing */
}

/* Menu Items */
.hover-underline {
    color: #ffffff;
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 0.65rem;
    /* Smaller menu text */
    font-weight: 500;
    padding: 6px 0;
    transition: all 0.3s ease;
}

/* Hover Underline Effect */
.hover-underline::after,
.hover-underline::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, silver, silver);
    left: 0;
    transform: scaleX(0);
    transition: transform 0.2s ease-out;
}

.hover-underline::after {
    bottom: -5px;
    transform-origin: right;
}

.hover-underline::before {
    top: -5px;
    transform-origin: left;
}

.hover-underline:hover {
    color: silver;
}

.hover-underline:hover::after,
.hover-underline:hover::before {
    transform: scaleX(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 12px;
    }

    .nav-menu {
        gap: 12px;
    }

    .nav-brand .hover-underline {
        font-size: 1rem;
    }

    .hover-underline {
        font-size: 0.9rem;
    }

}

/* Tablet Responsive (769px – 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {

    .animation-overlay main {
        font-size: clamp(3rem, 6vw, 4.5rem);
        white-space: normal;
        transform: translateY(-2%);
    }

    .static-container {
        font-size: 18px;
        margin-left: 0;
        height: auto;
        justify-content: center;
        text-align: center;
    }

    .typewriter-text {
        min-width: auto;
        max-width: 80vw;
        text-align: center;
    }

    .about-center p {
        margin-left: 0 !important;
        text-align: center;
        max-width: 80%;
        margin-right: auto;
        margin-left: auto;
    }

    .hero-buttons {
        margin-top: 40px;
    }

    .btn {
        padding: 0.7rem 2rem;
        font-size: 1rem;
    }

    .scroll-text {
        font-size: 0.85rem;
    }

}

.nav-link.active {
    color: silver;
}

.nav-link.active::after,
.nav-link.active::before {
    transform: scaleX(1);
}

/* ==========================================================================
/* HOME PAGE */
/* Carousel styling - remove all margins */
#carouselExampleSlidesOnly,
.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img,
.carousel-item video {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    outline: none !important;
}

/* Full screen media (image OR video) */
.carousel-item img,
.carousel-item video {
    width: 100vw !important;
    height: 100vh !important;
    object-fit: cover;
    display: block;
}

/* Animation overlay */
.animation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    margin: 0 !important;
    padding: 0 !important;
}

/* Animation text styling */
@font-face {

    font-family: 'Inconsolata';
    src: url('https://ggayane.github.io/css-experiments/Inconsolata-VF.ttf');
    font-weight: 575 1500;
    font-stretch: 80% 170%;
}

.animation-overlay main {
    position: relative;
    z-index: 1;
    white-space: nowrap;
    width: 80vw;
    text-align: center;
    color: white;
    font-size: clamp(2.5rem, 8vw, 7rem);
    font-family: 'Inconsolata';
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    margin-top: 0 !important;
    padding: 0 !important;
    transform: translateY(-5%);
}

/* WORKLIFE Animation */
.animation-overlay .variable {
    display: flex;
    justify-content: center;
    font-variation-settings: "wght" 225, "wdth" 100;
    text-align: center;
    animation: swapthings 8s infinite both cubic-bezier(0.17, 0.04, 0.04, 0.99);
    margin: 0;
    padding: 0;
}

.animation-overlay .work {
    animation: swapthings2 8s infinite both cubic-bezier(0.17, 0.04, 0.04, 0.99);
}

.animation-overlay main::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 140%;
    height: 140%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle,
            rgba(192, 192, 192, 0.30) 0%,
            rgba(192, 192, 192, 0.12) 40%,
            rgba(192, 192, 192, 0.05) 60%,
            transparent 75%);
    filter: blur(45px);
    z-index: -1;
    animation: heroGlowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes heroGlowPulse {

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

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}


/* Typewriter Container */
.static-container {
    font-size: 20px;
    font-family: 'Inconsolata';
    font-variation-settings: "wght" 900, "wdth" 200;
    margin-top: 2px;
    margin-left: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
    position: relative;
}


.typewriter-text {
    display: inline-block;
    position: relative;
    text-align: center;

    width: 100%;
    max-width: 420px;
    min-width: 320px;
    height: 32px;
}

/* Individual text items */
.text-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    white-space: nowrap;
    overflow: hidden;
}

/* Typewriter Animation */
.text-item:nth-child(1) {
    animation:
        typing1 10s steps(30, end) infinite,
        showText1 10s infinite;
}

.text-item:nth-child(2) {
    animation:
        typing2 10s steps(30, end) infinite,
        showText2 10s infinite;
}

.text-item:nth-child(3) {
    animation:
        typing3 10s steps(30, end) infinite,
        showText3 10s infinite;
}

/* Typing animations */
@keyframes typing1 {
    0% {
        width: 0
    }

    15% {
        width: 100%
    }

    30%,
    100% {
        width: 100%
    }
}

@keyframes typing2 {

    0%,
    30% {
        width: 0
    }

    45% {
        width: 100%
    }

    60%,
    100% {
        width: 100%
    }
}

@keyframes typing3 {

    0%,
    60% {
        width: 0
    }

    75% {
        width: 100%
    }

    90%,
    100% {
        width: 100%
    }
}

/* Text visibility animations */
@keyframes showText1 {

    0%,
    29% {
        opacity: 1
    }

    30%,
    100% {
        opacity: 0
    }
}

@keyframes showText2 {

    0%,
    29% {
        opacity: 0
    }

    30%,
    59% {
        opacity: 1
    }

    60%,
    100% {
        opacity: 0
    }
}

@keyframes showText3 {

    0%,
    59% {
        opacity: 0
    }

    60%,
    89% {
        opacity: 1
    }

    90%,
    100% {
        opacity: 0
    }
}

/* Cursor animation */
.cursor {
    display: inline-block;
    margin-left: 3px;
    animation: blink 0.7s infinite;
    font-weight: bold;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1
    }

    51%,
    100% {
        opacity: 0
    }
}

/* Original WORKLIFE animations */
@keyframes swapthings {
    0% {
        font-variation-settings: "wght" 275, "wdth" 50;
    }

    50% {
        font-variation-settings: "wght" 900, "wdth" 200;
    }

    100% {
        font-variation-settings: "wght" 275, "wdth" 50;
    }
}

@keyframes swapthings2 {
    0% {
        font-variation-settings: "wght" 900, "wdth" 200;
    }

    50% {
        font-variation-settings: "wght" 275, "wdth" 50;
    }

    100% {
        font-variation-settings: "wght" 900, "wdth" 200;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .animation-overlay {
        padding: 0 20px;
        text-align: center;
    }

    .animation-overlay main {
        font-size: clamp(2rem, 10vw, 3rem);
        white-space: normal;
        transform: translateY(0);
    }

    /* ===== Typewriter Section ===== */

    .static-container {
        font-size: 14px;
        margin-left: 0;
        height: 40px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .typewriter-text {
        position: relative;
        width: 280px;
        min-width: 280px;
        max-width: 280px;
        height: 28px;
        margin: 0 auto;
        text-align: center;
    }

    .text-item {
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-align: center;
    }

    /* ===== Hero Paragraph ===== */

    .animation-overlay p {
        font-size: 0.95rem;
        line-height: 1.7;
        padding: 0 10px;
    }

    /* ===== Buttons ===== */

    .btn {
        padding: 0.6rem 1.8rem;
        font-size: 0.9rem;
    }

    /* ===== Scroll Indicator ===== */

    .scroll-text {
        font-size: 0.8rem;
    }

}

.hero-buttons {
    margin-top: 30px;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    opacity: 0.8;
}

.scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid silver;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: silver;
    border-radius: 2px;
    position: absolute;
    top: 2px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollDotMove 2s infinite ease-in-out;
}

.scroll-text {
    font-size: 0.9rem;
    color: rgb(157, 157, 157);
    margin-top: 90px;
    margin-bottom: none;
}

@keyframes scrollDotMove {
    0% {
        opacity: 0;
        transform: translate(-50%, 0);
    }

    40% {
        opacity: 1;
    }

    80% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/* ================= MOBILE IMPROVEMENTS ================= */
@media (max-width: 768px) {

    /* ===== NAVBAR FIX ===== */
    .nav-container {
        flex-direction: row;
        /* keep logo + toggle in one line */
        justify-content: space-between;
        align-items: center;
    }

    .nav-menu {
        position: fixed;
        /* better than absolute */
        top: 60px;
        left: 0;
        width: 100%;
        height: auto;
        transform: translateY(-150%);
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    /* ===== HERO TEXT FIX ===== */
    .animation-overlay main {
        font-size: clamp(1.8rem, 9vw, 2.8rem);
        line-height: 1.2;
        padding: 0 10px;
    }

    /* Prevent overflow issues */
    .animation-overlay {
        overflow: hidden;
    }

    /* ===== TYPEWRITER FIX ===== */
    .static-container {
        font-size: 13px;
        flex-direction: column;
        height: auto;
        margin-top: 10px;
    }

    .typewriter-text {
        max-width: 90%;
    }

    .text-item {
        white-space: normal;
        /* allow wrapping */
        text-align: center;
    }

    /* ===== BUTTONS ===== */
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: center;
        margin-top: 25px;
    }

    .btn {
        width: 80%;
        max-width: 250px;
        text-align: center;
    }

    /* ===== SCROLL INDICATOR ===== */
    .scroll-cue {
        bottom: 15px;
    }

    .scroll-text {
        font-size: 0.75rem;
        margin-top: 70px;
        text-align: center;
    }
}

/* ABOUT PAGE  */

.neon-text {
    font-size: 1.8rem;
    color: silver;
    text-shadow: 0 0 1px silver, 0 0 5px silver, 0 0 10px silver, 0 0 20px silver, 0 0 40px silver;
    animation: glow 1.5s infinite alternate;
    text-align: center;
    width: 100%;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 1px grey, 0 0 5px grey, 0 0 10px grey, 0 0 20px grey, 0 0 40px grey;
    }

    100% {
        text-shadow: 0 0 5px silver, 0 0 10px grey, 0 0 20px silver, 0 0 40px grey, 0 0 80px silver;
    }
}

/* ────────────────────────────────────────
   Main wrapper — mobile first (stacked)
   ──────────────────────────────────────── */
.about-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.about-img-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

.about-img {
    width: 300px;
    /* good mobile size – feel free to change */
    height: auto;
    max-width: 100%;
    border-radius: 18px;
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.7),
        0 0 40px rgba(128, 128, 128, 0.5),
        0 0 60px rgba(105, 105, 105, 0.3);
    border: 2px solid rgba(192, 192, 192, 0.5);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.about-img:hover {
    transform: scale(0.98);
}

.about-img {
    transition: transform 0.9s ease;
}

.about-text-box {
    max-width: 680px;
    text-align: center;
    line-height: 1.65;
}

.about-text-box p {
    color: silver;
    margin-bottom: 1.25rem;
}

.about-section {
    display: flex;
    /* ← this makes children go side by side */
    flex-wrap: wrap;
    /* allows wrapping on small screens */
    gap: 20px;
    /* space between image and text */
    align-items: center;
    /* vertically centers both sides */
    justify-content: center;
    /* or space-between / space-around */
    padding: 0 20px;
    /* optional breathing room */
    max-width: 1400px;
    /* prevent it from becoming too wide */
    margin: 0 auto;
    /* center the whole section */
}

.about-section.flex {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* ← change this value */
    flex-wrap: nowrap;
}

/* Optional: fine-tune per side if needed */
.about-left {
    flex: 0 0 auto;
    margin-right: 15px;
    /* fallback or override */
}

.about-right {
    flex: 1;
    /* let text take remaining space */
    max-width: 600px;
    /* optional: prevent very long lines */
}

.about-right p {
    margin-bottom: 1.2rem;
    /* better paragraph spacing */
    line-height: 1.6;
}

/* ────────────────────────────────────────
   Desktop layout
   ──────────────────────────────────────── */
@media (min-width: 768px) {

    .about-content-wrapper {
        flex-direction: row;
        gap: 4rem;
        align-items: center;
        justify-content: flex-start;
        /* ← important: start from left, no big gap on right */
        padding: 2rem 6%;
    }

    .about-img-box {
        flex: 0 0 400px;
        /* fixed width for image */
    }

    .about-img {
        width: 400px;
        height: 560px;
        /* adjust if your image ratio is different */
        max-width: none;
    }

    .about-text-box {
        flex: 1;
        /* take remaining space */
        max-width: 620px;
        /* comfortable reading width */
        text-align: left;
    }

    /* Remove problematic rules */
    .about-text-box {
        justify-content: initial;
        /* was useless anyway */
        padding: 0;
        /* remove forced padding if it pushes text */
    }
}

/* SKILLS PAGE  */
/* Rotating Cube */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.skills-section {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #242424;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    perspective: 1000px;
}


.skills-container {
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
}


.box-card {
    width: 200px;
    height: 200px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s ease;
    cursor: pointer;
}

.box-card:hover {
    animation: rotate3d 8s infinite linear;
}

.face {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    backface-visibility: visible;
    border-radius: 12px;
    background: linear-gradient(145deg, #2a2a2a, #383838);
    border: 2px solid silver;
    transition: all 0.3s ease;
    overflow: hidden;
}

.face::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    top: -100%;
    left: -100%;
    transition: all 0.5s ease;
    transform: translateZ(20px);
}

.face::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            transparent 0%,
            rgba(255, 255, 255, 0.05) 50%,
            transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.face:hover::before {
    top: 100%;
    left: 100%;
}

.face:hover::after {
    opacity: 1;
}

.front {
    transform: translateZ(100px);
    border-color: grey;
}

.back {
    transform: translateZ(-100px) rotateY(180deg);
    border-color: silver;
}

.right {
    transform: translateX(100px) rotateY(90deg);
    border-color: grey;
}

.left {
    transform: translateX(-100px) rotateY(-90deg);
    border-color: silver;
}

.top {
    transform: translateY(-100px) rotateX(90deg);
    border-color: grey;
}

.bottom {
    transform: translateY(100px) rotateX(-90deg);
    border-color: silver;
}

@keyframes rotate3d {
    from {
        transform: rotateX(0deg) rotateY(0deg);
    }

    to {
        transform: rotateX(360deg) rotateY(720deg);
    }
}


@media (max-width: 768px) {
    .box-card {
        width: 200px;
        height: 200px;
    }

    .front {
        transform: translateZ(75px);
    }

    .back {
        transform: translateZ(-75px) rotateY(180deg);
    }

    .right {
        transform: translateX(75px) rotateY(90deg);
    }

    .left {
        transform: translateX(-75px) rotateY(-90deg);
    }

    .top {
        transform: translateY(-75px) rotateX(90deg);
    }

    .bottom {
        transform: translateY(75px) rotateX(-90deg);
    }
}

/* ================= SKILL CARDS SECTION ================= */

/* Wrapper for ALL 6 skill cards */
.skills-cards-wrapper {
    max-width: 1200px;
    margin: 4rem auto 0 auto;
    padding: 0 2rem;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

/* Individual skill card */
.skill-card {
    background: #242424;
    border-radius: 1.4rem;
    padding: 2rem;
    min-height: 300px;
    text-align: center;

    box-shadow:
        0 0 20px rgba(192, 192, 192, 0.5),
        0 0 40px rgba(128, 128, 128, 0.3);

    border: 1px solid rgba(192, 192, 192, 0.4);

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect */
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 0 25px rgba(192, 192, 192, 0.7),
        0 0 50px rgba(128, 128, 128, 0.4);
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: silver;
    font-family: 'Montserrat', sans-serif;
}

.skill-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #cfcfcf;
}

/* ================= RESPONSIVE ================= */

/* Tablet */
@media (max-width: 992px) {
    .skills-cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 600px) {
    .skills-cards-wrapper {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 1.6rem;
        min-height: auto;
        box-shadow: 0 0 15px rgba(192, 192, 192, 0.4);
    }
}

/* PROJECTS PAGE  */
.projects-section {
    width: 100%;
    padding: 120px 0;
    overflow: hidden;
    background: #1d061a;
}

.projects-carousel {
    display: flex;
    gap: 60px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 60px 50%;
}

/* Hide ugly scrollbar */
.projects-carousel::-webkit-scrollbar {
    height: 8px;
}

.projects-carousel::-webkit-scrollbar-thumb {
    background: silver;
    border-radius: 10px;
}

.project-card {
    position: relative;
    flex: 0 0 320px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    transition: all 0.6s ease;
    filter: blur(4px);
    transform: scale(0.85);
    opacity: 0.5;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: linear-gradient(315deg, silver, grey);
    border-radius: 12px;
    transform: skewX(15deg);
    transition: 0.6s;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 50%;
    height: 100%;
    background: linear-gradient(315deg, silver, grey);
    border-radius: 12px;
    transform: skewX(15deg);
    filter: blur(30px);
    transition: 0.6s;
}

.project-card:hover::before,
.project-card:hover::after {
    transform: skewX(0deg);
    left: 20px;
    width: calc(100% - 90px);
}

.project-card .content {
    position: relative;
    padding: 25px 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    z-index: 2;
    color: #fff;
    text-align: left;
    transition: 0.5s;
}

.project-card .content h2 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: silver;
}

.project-card .content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: #ddd;
}

.project-card .content a {
    display: inline-block;
    padding: 8px 14px;
    background: silver;
    color: #1d061a;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.project-card .content a:hover {
    background: #fff;
    transform: translateY(-2px);
}

.project-card.active {
    filter: blur(0);
    transform: scale(1);
    opacity: 1;
}

.project-card.active .content {
    box-shadow: 0 0 40px rgba(192, 192, 192, 0.35);
}

.project-card span {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.project-card span::before,
.project-card span::after {
    content: '';
    position: absolute;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    animation: float 4s ease-in-out infinite;
}

.project-card span::before {
    width: 80px;
    height: 80px;
    top: -30px;
    left: 40px;
}

.project-card span::after {
    width: 100px;
    height: 100px;
    bottom: -40px;
    right: 30px;
    animation-delay: -7s;
}

.projects-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: silver;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
}

.arrow:hover {
    background: rgba(192, 192, 192, 0.3);
}

.arrow.left {
    left: 20px;
}

.arrow.right {
    right: 20px;
}


@keyframes float {

    0%,
    100% {
        transform: translateY(10px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}


/* SERVICES PAGE  */

#services {
    padding: 4rem 2rem;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
    /* This will work NOW */
}

.service-row>* {
    margin: 0;
    /* Kill hidden margins causing huge spacing */
}

.service-row.reverse {
    flex-direction: row-reverse;
}

/* Image Card */
.service-image-wrapper {
    position: relative;
    flex-shrink: 0;
    overflow: visible;
    /* allow line to stick out */
}

/* The connector line */
.service-image-wrapper::after {
    content: "";
    position: absolute;
    top: 60%;
    transform: translateY(-50%);
    right: -70px;
    width: 100px;
    height: 2px;
    background: linear-gradient(to right, rgba(191, 191, 191, 0.5), transparent);
}

/* When layout is reversed */
.service-row.reverse .service-image-wrapper::after {
    left: -70px;
    right: auto;
    background: linear-gradient(to left, rgba(191, 191, 191, 0.5), transparent);
}


.service-image {
    height: 150px;
    width: 500px;
    margin-top: 40px;
    border-radius: 16px;
    box-shadow:
        0 0 12px rgba(192, 192, 192, 0.5),
        0 0 24px rgba(128, 128, 128, 0.3),
        0 0 36px rgba(105, 105, 105, 0.15);
    border: 1px solid rgba(192, 192, 192, 0.35);
    filter: brightness(0.92) contrast(1.05);
    object-fit: cover;
}

/* Title overlay on image */
.service-title {
    position: absolute;
    top: 60%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    color: silver;
    font-size: 1.6rem;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.95), 0 0 6px rgba(0, 0, 0, 0.7);
}

/* Description */
/* Glass panel behind service text */
.service-text {
    flex: 1;
    max-width: 500px;
    margin-top: 40px;
    color: silver;
    font-size: 1.05rem;
    line-height: 1.6;

    /* Fake glass (NO backdrop blur) */
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02));

    border: 1px solid rgba(192, 192, 192, 0.18);
    border-radius: 14px;

    padding: 22px 26px;

    box-shadow: 0 0 18px rgba(255, 255, 255, 0.06);

    transition: transform 0.3s ease, box-shadow 0.3s ease;

    will-change: transform;
}

/* Small hover lift (optional but sexy) */
.service-row:hover .service-text {
    transform: translateY(-4px);
    box-shadow: 0 0 28px rgba(255, 255, 255, 0.09);
}

/* Hire Me  */
/* Wrapper */
.hireme-wrapper {
    margin-top: 2rem;
    text-align: center;
    position: relative;
}

/* Container for small buttons */
.hireme-options {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1rem;

    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.4s ease;
}

/* When active */
.hireme-options.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Smaller platform buttons */
.hireme-small {
    padding: 0.4rem 1.4rem;
    font-size: 0.9rem;
    border-radius: 2rem;
}

/* ────────────────────────────────────────────────
   BETTER MOBILE STYLES — especially Hire Me section
   ──────────────────────────────────────────────── */

/* Phones & small tablets — up to ~520–560px wide */
@media (max-width: 560px) {

    .service-row,
    .service-row.reverse {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 15px;
    }

    .service-image {
        width: 100%;
        max-width: 420px;
    }

    .service-text {
        max-width: 100%;
        font-size: 0.9rem;
    }

    .service-title {
        white-space: normal;
        font-size: 0.95rem;
    }

    /* ───────────────────────────────
     Hire Me section — mobile first
     ─────────────────────────────── */
    .hireme-wrapper {
        margin: 2.2rem 0 1rem;
        padding: 0 0.5rem;
    }

    .hireme-options {
        flex-direction: column;
        /* stack buttons vertically */
        gap: 0.9rem;
        margin-top: 1.4rem;
    }

    .hireme-small {
        padding: 0.85rem 1.8rem;
        /* much taller & wider touch target */
        font-size: 1rem;
        /* easier to read */
        min-width: 220px;
        /* prevents ultra-narrow buttons */
        border-radius: 3rem;
        /* softer pill shape */
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
        transition: all 0.22s ease;
    }

    .hireme-small:hover,
    .hireme-small:active {
        transform: translateY(-1px) scale(1.03);
        box-shadow: 0 5px 14px rgba(0, 0, 0, 0.22);
    }

    /* Optional: make the main "Hire Me" trigger button bigger too */
    .hireme-wrapper>button,
    /* ← adjust selector to match your HTML */
    .hireme-wrapper>a:not(.hireme-options a) {
        padding: 0.9rem 2.2rem;
        font-size: 1.05rem;
        min-width: 240px;
        border-radius: 3rem;
    }
}

/* Extra small phones — very narrow screens (< 380px) */
@media (max-width: 380px) {

    #services {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .service-image-wrapper {
        max-width: 340px;
    }

    .service-title {
        font-size: 1rem;
    }

    .hireme-small {
        min-width: 100%;
        /* full width buttons feel more native on tiny screens */
        padding: 0.9rem 1.5rem;
    }

    .hireme-wrapper>button,
    .hireme-wrapper>a:not(.hireme-options a) {
        min-width: 100%;
    }
}

/* REVIEWS PAGE */
.reviews-section {
    background: #000;
    padding: 2rem 0 4rem 0;
    overflow: visible;
}

.reviews-slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    isolation: isolate;
    /* ← added: safer against scrollbar on mobile */
}

.reviews-scroller {
    display: flex;
    gap: 30px;
    width: max-content;
}

.reviews-group {
    display: flex;
    gap: 30px;
    flex-shrink: 0;
    animation: review-scroll var(--review-speed, 40s) linear infinite;
}

/* Pause on hover/tap (works on mobile too when long-pressing) */
.reviews-slider-wrapper:hover .reviews-group,
.reviews-slider-wrapper:active .reviews-group {
    animation-play-state: paused;
}

@keyframes review-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* Review Card – base styles (desktop-first) */
.review-card {
    min-width: 320px;
    width: 360px;
    /* ← fixed preferred width instead of max */
    height: 430px;
    flex: 0 0 auto;
    padding: 18px;
    border-radius: 20px;
    background: #242424;
    border: 1px solid rgba(192, 192, 192, 0.25);
    box-shadow: 0 0 20px rgba(192, 192, 192, 0.15);
    color: #ddd;
    opacity: 0.92;
    transition: opacity 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
    box-sizing: border-box;
}

.review-name {
    color: silver;
    margin-top: 16px;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.review-country {
    font-size: 0.85rem;
    color: #aaa;
    font-style: italic;
}

.review-stars {
    color: silver;
    letter-spacing: 3px;
    margin-top: 8px;
    text-shadow: 0 0 8px rgba(192, 192, 192, 0.6);
}

.review-card:hover {
    opacity: 1;
    box-shadow: 0 0 30px rgba(192, 192, 192, 0.35);
}

.reviews-animation-isolate {
    contain: paint;
    /* contain: strict; */
}

.stats-section {
    margin: 4rem 0;
    padding: 0 1rem;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    /* generous spacing between items */
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
}

.stat-item {
    flex: 1;
    min-width: 220px;
    /* prevents squishing on medium screens */
    text-align: center;
    /* default center alignment */
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-family: 'Orbitron', sans-serif;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3.5rem, 9vw, 5.5rem);
    /* responsive sizing */
    font-weight: 400;
    color: rgb(228, 228, 228);
    line-height: 1;
}

.stat-label {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: rgb(229, 229, 229);
    opacity: 0.9;
}

/* Optional: left/right emphasis on larger screens only */
@media (min-width: 900px) {
    .stat-item:first-child {
        text-align: left;
    }

    .stat-item:last-child {
        text-align: right;
    }
}

/* Text styles unchanged … */
/* ── Mobile adjustments ── */
@media (max-width: 768px) {
    .reviews-slider-wrapper {
        padding: 12px 0;
        overflow: hidden;
        /* double safety */
    }

    .reviews-scroller,
    .reviews-group {
        gap: 20px;
        /* slightly larger gap feels better on small screens */
    }

    .review-card {
        min-width: 82vw;
        /* ← main fix: much wider → easier to read text */
        width: 82vw;
        max-width: 82vw;
        height: auto;
        /* ← let content determine height – prevents squish */
        min-height: 380px;
        /* but keep a decent minimum */
        padding: 20px;
        /* a bit more breathing room */
        font-size: 0.98rem;
        /* slightly larger base text */
    }

    .review-text {
        font-size: 1rem;
        /* better readability */
    }

    .review-name {
        font-size: 1.15rem;
    }

    /* Slower on mobile – gives time to read without feeling rushed */
    .reviews-slider-wrapper {
        --review-speed: 32s;
        /* ← or even 38s if reviews are long */
    }

    /* Optional: reduce blur/shadow intensity for better mobile perf */
    .review-card {
        box-shadow: 0 4px 16px rgba(192, 192, 192, 0.12);
    }
}

@media (max-width: 480px) {
    .review-card {
        min-width: 68vw;
        width: 68vw;
        padding: 16px 18px;
    }

    .reviews-group {
        gap: 16px;
    }
}

.reviews-slider-wrapper::before,
.reviews-slider-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

.reviews-slider-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #000, transparent);
}

.reviews-slider-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #000, transparent);
}

/* CONTACT SECTION  */
#contact {
    margin-top: 2rem;
    padding: 2rem 2rem;
    background: black;
}

.contact-container {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    max-width: 1100px;
    margin: 4rem auto 0;
    flex-wrap: wrap;
}

/* LEFT SIDE */
.contact-info {
    flex: 1;
    min-width: 280px;
    color: silver;
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.contact-details p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.contact-socials {
    margin-top: 1.5rem;
}

/* RIGHT SIDE FORM */
.contact-form {
    flex: 1;
    min-width: 280px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(192, 192, 192, 0.3);
    backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(192, 192, 192, 0.2),
        0 0 40px rgba(128, 128, 128, 0.1);
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(192, 192, 192, 0.3);
    background: #111;
    color: silver;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: silver;
    box-shadow: 0 0 10px rgba(192, 192, 192, 0.4);
}

.contact-form button {
    align-self: flex-start;
}

.contact-socials {
    margin-top: 1.5rem;
    display: flex;
    gap: 1.2rem;
}

.social-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid silver;
    color: silver;
    font-size: 1.3rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.social-icon:hover {
    background: white;
    color: #1f1f38;
    box-shadow: 0 0 15px silver;
    transform: translateY(-4px) scale(1.05);
}

/* Mobile */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }
}

/* FOOTER  */
.footer {
    position: relative;
    height: 500px;
    padding: 4rem 2rem 2rem;
    color: white;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Video */
.footer-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(5px) brightness(0.7);
    transform: scale(1.1);
}

/* Glass overlay */
.footer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Content */
.footer-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    gap: 0.8rem;
}

.footer-content h2 {
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.footer-content p {
    font-size: 1.3rem;
    opacity: 0.85;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
    margin: 0.5rem 0;
}

.footer-socials a {
    font-size: 2rem;
    color: silver;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.footer-socials a:hover {
    color: #fff;
    transform: translateY(-3px);
    text-shadow: 0 0 12px silver;
}

.footer-content span {
    font-size: 0.8rem;
    opacity: 0.6;
}


/* Animated glowing top border */
.footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 2px;
    background: linear-gradient(90deg, transparent, silver, transparent);
    animation: glowLine 4s linear infinite;
}

@keyframes glowLine {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(50%);
    }
}

.footer::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: floatBg 20s linear infinite;
    pointer-events: none;
}

@keyframes floatBg {
    from {
        transform: translateY(0);
    }

    to {
        transform: translateY(-40px);
    }
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-nav a {
    color: silver;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    transition: 0.3s ease;
}

/* Underline glow effect */
.footer-nav a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 1px;
    background: silver;
    box-shadow: 0 0 8px silver;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: white;
    text-shadow: 0 0 8px silver;
}

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

.footer-card {
    max-width: 900px;
    margin: 0 auto 1rem;
    padding: 0.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(6px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(192, 192, 192, 0.15);
    animation: fadeUp 1.2s ease;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.footer-card h2 {
    font-size: 2rem;
    color: silver;
    margin-bottom: 0.7rem;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .footer-socials {
        gap: 10px;
    }
}


/* BUTTON ANIMATION */
.btn {
    margin-top: 7px;
    margin-left: 0.5rem;
    font-size: 1rem;
    color: silver;
    cursor: pointer;
    padding: 0.5rem 2.4rem;
    border: 1px solid silver;
    border-radius: 8rem;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

/* Remove underline from links */
.buttons a,
#hireme {
    text-decoration: none;
}

/* Holographic layer */
.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(0deg,
            transparent,
            transparent 30%,
            silver);
    transform: rotate(-45deg);
    opacity: 0;
    transition: all 0.5s ease;
}

/* Hover animation */
.btn:hover {
    color: #1f1f38;
    background-color: #fff;
    border-color: #fff;
    transform: scale(1.05);
    box-shadow: 0 0 20px silver;
}

.btn:hover::before {
    opacity: 1;
    transform: rotate(-45deg) translateY(100%);
}

/* Active / live button */
.live {
    color: #1f1f38;
    background-color: silver;
}

/* Dropdown container */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Menu */
.dropdown-menu {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #111;
    border: 1px solid silver;
    border-radius: 1rem;
    min-width: 180px;
    padding: 0.6rem 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    box-shadow: 0 10px 25px rgb(120, 119, 119);
    z-index: 10;
}

/* Dropdown items */
.dropdown-item {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all 0.25s ease;
}

.dropdown-item:hover {
    background: silver;
    color: #1f1f38;
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Small arrow (optional but classy) */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: #111;
    border-left: 1px solid silver;
    border-top: 1px solid silver;
    transform: translateX(-50%) rotate(45deg);
}

.btn:active {
    transform: scale(0.97);
    box-shadow: 0 0 8px rgba(192, 192, 192, 0.5);
}

/* SECTION DIVIDER */
.section-divider {
    height: 2px;
    width: 100%;
    background: linear-gradient(to right, black, silver, black);
}

/* NOTIFICATION */
.glass-toast {
    position: fixed;
    top: 30px;
    right: 320px;

    /* transform: translate(-50%,-50%); */

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 16px 24px;

    background: rgba(255, 255, 255, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, .15);

    color: silver;

    border-radius: 16px;

    box-shadow:
        0 0 20px rgba(192, 192, 192, .15);

    z-index: 99999;

    animation: toastIn .9s ease;
}

.glass-toast i {
    color: silver;
    font-size: 1.2rem;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastInMobile {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@media (max-width: 768px) {

    .glass-toast {

        top: 20px;

        left: 50%;
        right: auto;

        transform: translateX(-50%);

        width: calc(100% - 30px);
        max-width: 340px;

        padding: 14px 18px;

        font-size: 0.9rem;

        gap: 10px;

        box-sizing: border-box;

        animation: toastInMobile .9s ease;
    }

}

/* =====================================================
   DASISCODES — SYSTEM INITIALIZATION LOADER
   ===================================================== */

#system-loader {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    background: #000;

    display: flex;
    justify-content: center;
    align-items: center;

    z-index: 999999;

    transition:
        opacity 1s ease,
        visibility 1s ease;
}


/* Loader disappears */

#system-loader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/* Main content */

.system-loader-content {
    width: min(500px, 80%);

    font-family: 'Inconsolata', monospace;

    text-align: left;
}


/* =====================================================
   HEADER
   ===================================================== */

.boot-status {
    text-align: center;

    color: rgba(255, 255, 255, 0.8);

    font-family: 'Orbitron', sans-serif;

    font-size: 12px;

    letter-spacing: 4px;

    margin-bottom: 35px;

    animation: statusGlow 2s ease-in-out infinite;
}


@keyframes statusGlow {

    0%,
    100% {
        opacity: 0.55;
    }

    50% {
        opacity: 1;
    }

}


/* =====================================================
   TERMINAL
   ===================================================== */

.terminal {

    color: rgba(255, 255, 255, 0.65);

    font-size: 14px;

    line-height: 2;

    letter-spacing: 1px;
}


/* Individual terminal lines */

.terminal div {
    opacity: 0;

    animation: terminalLine 0.5s forwards;
}


.terminal div:nth-child(1) {
    animation-delay: 0.2s;
}

.terminal div:nth-child(2) {
    animation-delay: 0.5s;
}

.terminal div:nth-child(3) {
    animation-delay: 0.8s;
}

.terminal div:nth-child(4) {
    animation-delay: 1.1s;
}

.terminal div:nth-child(5) {
    animation-delay: 1.4s;
}


@keyframes terminalLine {

    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }

}


/* =====================================================
   BLINKING CURSOR
   ===================================================== */

.cursor {
    animation: cursorBlink 0.8s infinite;
}


@keyframes cursorBlink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }

}


/* =====================================================
   PERCENTAGE
   ===================================================== */

.loader-percentage {

    margin-top: 30px;

    text-align: right;

    color: rgba(255, 255, 255, 0.7);

    font-family: 'Orbitron', sans-serif;

    font-size: 11px;

    letter-spacing: 2px;
}


/* =====================================================
   PROGRESS BAR
   ===================================================== */

.system-progress {

    width: 100%;

    height: 2px;

    margin-top: 8px;

    background: rgba(255, 255, 255, 0.12);

    overflow: hidden;
}


#system-progress-bar {

    width: 0%;

    height: 100%;

    background: #fff;

    box-shadow:
        0 0 8px rgba(255, 255, 255, 0.7);

    transition: width 0.08s linear;
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 768px) {

    .system-loader-content {
        width: 82%;
    }

    .boot-status {
        font-size: 9px;
        letter-spacing: 3px;
        margin-bottom: 25px;
    }

    .terminal {
        font-size: 11px;
        line-height: 2;
        letter-spacing: 0.5px;
    }

    .loader-percentage {
        font-size: 9px;
        margin-top: 25px;
    }

}

/* WORKS SECTION  */

.websites-section {
    width: 100%;
    padding: 120px 8%;
    background: #000;
    color: #fff;
}

/* ================= CONTAINER ================= */

.websites-container {
    width: 100%;
    max-width: 1200px;
    margin: auto;
}


/* ================= CARD ================= */

.website-card {
    width: 100%;
    margin-top: 50px;
    margin-bottom: 14px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.025);

    overflow: hidden;

    transition:
        border-color 0.4s ease,
        background 0.4s ease;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.35);
}

.website-card:hover {
    border-color: rgba(255, 255, 255, 0.28);
}


/* ================= CARD HEADER ================= */

.website-card-header {
    width: 100%;
    height: 90px;

    padding: 0 30px;

    display: grid;
    grid-template-columns: 80px 1fr 50px;
    align-items: center;

    border: none;
    outline: none;

    background: transparent;
    color: #fff;

    cursor: pointer;

    text-align: left;
}


/* NUMBER */

.website-number {
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.35);
}


/* TITLE */

.website-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(14px, 1.5vw, 18px);
    letter-spacing: 3px;
    font-weight: 500;

    transition: letter-spacing 0.3s ease;
}

.website-card:hover .website-title {
    letter-spacing: 4px;
}


/* TOGGLE */

.website-toggle {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;

    font-family: 'Inconsolata', monospace;
    font-size: 20px;
    font-weight: 300;

    color: rgba(255, 255, 255, 0.7);

    transition:
        transform 0.4s ease,
        background 0.4s ease,
        border-color 0.4s ease;
}


/* ================= CONTENT ================= */

.website-card-content {
    max-height: 0;
    opacity: 0;

    overflow: hidden;

    transition:
        max-height 0.7s cubic-bezier(.77, 0, .18, 1),
        opacity 0.4s ease;
}


/* OPEN CARD */

.website-card.active .website-card-content {
    max-height: 700px;
    opacity: 1;
}

.website-card.active .website-toggle {
    transform: rotate(45deg);
    border-color: rgba(255, 255, 255, 0.4);
}


/* ================= CONTENT INNER ================= */

.website-card-content {
    display: grid;
    grid-template-columns: 42% 58%;
}


/* ================= VISUAL ================= */

.website-visual {
    position: relative;

    min-height: 420px;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 70% 35%,
            rgba(255, 255, 255, 0.12),
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #050505,
            #111,
            #030303
        );

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* GRID */

.visual-grid {
    position: absolute;
    inset: 0;

    opacity: 0.18;

    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 1px,
            transparent 1px
        );

    background-size: 40px 40px;

    transform: perspective(500px) rotateX(55deg) scale(1.5);
    transform-origin: center bottom;
}


/* SILVER GEOMETRIC SHAPE */

.visual-shape {
    position: absolute;

    width: 190px;
    height: 190px;

    top: 50%;
    left: 50%;

    transform:
        translate(-50%, -50%)
        rotate(45deg);

    border: 1px solid rgba(255, 255, 255, 0.6);

    box-shadow:
        0 0 30px rgba(255, 255, 255, 0.08),
        inset 0 0 30px rgba(255, 255, 255, 0.04);

    animation: websiteShapeFloat 6s ease-in-out infinite;
}


.visual-shape::before {
    content: "";

    position: absolute;

    inset: 25px;

    border: 1px solid rgba(255, 255, 255, 0.35);
}


.visual-shape::after {
    content: "";

    position: absolute;

    width: 70px;
    height: 70px;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.7),
            rgba(100, 100, 100, 0.15)
        );

    border: 1px solid rgba(255, 255, 255, 0.5);
}


@keyframes websiteShapeFloat {

    0%, 100% {
        transform:
            translate(-50%, -50%)
            rotate(45deg)
            scale(1);
    }

    50% {
        transform:
            translate(-50%, -54%)
            rotate(52deg)
            scale(1.04);
    }

}


/* VISUAL TEXT */

.visual-text {
    position: absolute;

    bottom: 30px;
    left: 30px;

    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    line-height: 1.8;

    color: rgba(255, 255, 255, 0.35);
}


/* ================= INFO ================= */

.website-info {
    min-height: 420px;

    padding: 45px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-top: 1px solid rgba(255, 255, 255, 0.08);
}


/* LABEL */

.website-label {
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    letter-spacing: 3px;

    color: rgba(255, 255, 255, 0.35);
}


/* PROJECT TITLE */

.website-info h3 {
    margin: 18px 0;

    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 2.5vw, 2.2rem);
    font-weight: 500;
    letter-spacing: 3px;
}


/* DESCRIPTION */

.website-info-main p {
    max-width: 550px;

    margin: 0;

    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    line-height: 2;

    color: rgba(255, 255, 255, 0.5);
}


/* ================= META ================= */

.website-meta {
    margin-top: 40px;
}


/* TECHNOLOGIES */

.website-technologies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 30px;
}

.website-technologies span {
    padding: 7px 12px;

    border: 1px solid rgba(255, 255, 255, 0.13);

    font-family: 'Inconsolata', monospace;
    font-size: 10px;
    letter-spacing: 1.5px;

    color: rgba(255, 255, 255, 0.5);

    transition:
        border-color 0.3s ease,
        color 0.3s ease;
}

.website-technologies span:hover {
    border-color: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    color: #fff;
}


/* ================= LIVE BUTTON ================= */

.website-live-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;

    padding: 13px 22px;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;

    color: #fff;

    text-decoration: none;

    font-family: 'Montserrat', sans-serif;
    font-size: 10px;
    letter-spacing: 2px;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease,
        gap 0.3s ease;
}

.website-live-button span {
    font-size: 16px;
}

.website-live-button:hover {
    background: #fff;
    color: #000;

    border-color: #ffffff;

    gap: 20px;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .websites-section {
        padding: 90px 5%;
    }


    .websites-heading {
        margin-bottom: 45px;
    }


    .websites-eyebrow {
        font-size: 9px;
        letter-spacing: 3px;
    }


    .websites-heading h2 {
        font-size: 1.7rem;
        letter-spacing: 2px;
    }


    .websites-heading p {
        font-size: 12px;
        line-height: 1.7;
    }


    .website-card-header {
        height: 75px;

        padding: 0 18px;

        grid-template-columns: 45px 1fr 40px;
    }


    .website-number {
        font-size: 11px;
    }


    .website-title {
        font-size: 11px;
        letter-spacing: 2px;
    }


    .website-toggle {
        width: 30px;
        height: 30px;

        font-size: 17px;
    }


    .website-card-content {
        display: block;
    }


    .website-card.active .website-card-content {
        max-height: 1000px;
    }


    .website-visual {
        min-height: 280px;
    }


    .visual-shape {
        width: 130px;
        height: 130px;
    }


    .visual-shape::before {
        inset: 18px;
    }


    .visual-shape::after {
        width: 48px;
        height: 48px;
    }


    .visual-text {
        bottom: 20px;
        left: 20px;

        font-size: 8px;
        letter-spacing: 3px;
    }


    .website-info {
        min-height: auto;

        padding: 30px 22px;
    }


    .website-info h3 {
        font-size: 1.3rem;
        letter-spacing: 2px;
    }


    .website-info-main p {
        font-size: 12px;
        line-height: 1.8;
    }


    .website-meta {
        margin-top: 30px;
    }


    .website-technologies span {
        font-size: 9px;
        padding: 6px 9px;
    }


    .website-live-button {
        width: 100%;
        justify-content: center;

        padding: 13px;
    }

}