@import "tailwindcss";
@import "flowbite/src/themes/default";


/* =======================================================
   NAVBAR.CSS - Consistent Navigation and Mobile Menu Styles
   ======================================================= */
:root {
    /* Global Variables - Consolidated here for consistency and use in back-button alignment */
    --primary-bg: #030014;
    --secondary-bg: #141414;
    --card-bg: #1a1a1a;
    --accent-color: rgb(186, 156, 255);
    --accent-gradient: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    --text-primary: #918EA0;
    --text-secondary: #999999;
    --border-color: #333333;
    --shadow-neon: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    --content-max-width: 1400px;
    --content-side-padding: 5%;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 100px 5% 60px;
    }

    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-info {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-logo {
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
    }

    .contact-info {
        align-items: center;
        width: 100%;
    }

    .footer-actions {
        align-items: center;
        width: 100%;
    }

    .download-cv-btn {
        margin: 0 auto;
    }

    .footer-bottom {
        text-align: center;
    }

    .gallery-item,
    .gallery-item:hover {
        transform: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
        transition: none !important;
    }

    .gallery-item:hover .gallery-image img,
    .gallery-image img {
        transform: none !important;
        transition: none !important;
    }

    .contact-link:hover,
    .social-links-footer a:hover,
    .download-cv-btn:hover {
        transform: none !important;
        box-shadow: none !important;
        color: inherit !important;
        background: inherit !important;
    }
}

@media (hover: none) {
    .gallery-item:hover {
        transform: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .gallery-item:hover .gallery-image img {
        transform: none !important;
    }
}

@media (hover: none) and (pointer: coarse) {
    .gallery-item:hover {
        transform: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
    }

    .gallery-item:hover .gallery-image img {
        transform: none !important;
    }

    .contact-link:hover {
        color: var(--text-primary) !important;
        transform: none !important;
    }

    .social-links-footer a:hover {
        color: var(--text-primary) !important;
        transform: none !important;
    }

    .download-cv-btn:hover {
        background: transparent !important;
        color: var(--accent-color) !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

.sparkle-button {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    --transition: 0.25s;
    --spark: 1.8s;
}

.sparkle-button button {
    --cut: 0.1em;
    --active: 0;
    --bg: radial-gradient(40% 50% at center 100%, hsl(270 calc(var(--active) * 97%) 72% / var(--active)), transparent),
        radial-gradient(80% 100% at center 120%, hsl(260 calc(var(--active) * 97%) 70% / var(--active)), transparent),
        hsl(260 calc(var(--active) * 97%) calc((var(--active) * 44%) + 12%));
    background: var(--bg);
    font-size: 1.2rem;
    font-weight: 600;
    border: 0;
    cursor: pointer;
    padding: 1em 1.8em;
    display: flex;
    align-items: center;
    gap: 0.5em;
    white-space: nowrap;
    border-radius: 100px;
    position: relative;
    box-shadow: 0 0 calc(var(--active) * 6em) calc(var(--active) * 3em) hsl(260 97% 61% / 0.75),
        0 0.05em 0 0 hsl(260 calc(var(--active) * 97%) calc((var(--active) * 50%) + 30%)) inset,
        0 -0.05em 0 0 hsl(260 calc(var(--active) * 97%) calc(var(--active) * 60%)) inset;
    transition: box-shadow var(--transition), scale var(--transition), background var(--transition);
    scale: calc(1 + (var(--active) * 0.1));
}

.sparkle-button button:active {
    scale: 1;
}

.sparkle-button button:hover,
.sparkle-button button:focus-visible {
    --active: 1;
}

.sparkle path {
    color: hsl(0 0% calc((var(--active, 0) * 70%) + var(--base)));
    transform-box: fill-box;
    transform-origin: center;
    fill: currentColor;
    stroke: currentColor;
    animation-delay: calc((var(--transition) * 1.5) + (var(--delay) * 1s));
    animation-duration: 0.6s;
    transition: color var(--transition);
}

.sparkle-button button:is(:hover, :focus-visible) path {
    animation-name: bounce;
}

@keyframes bounce {

    35%,
    65% {
        scale: var(--scale);
    }
}

.sparkle path:nth-of-type(1) {
    --scale: 0.5;
    --delay: 0.1;
    --base: 40%;
}

.sparkle path:nth-of-type(2) {
    --scale: 1.5;
    --delay: 0.2;
    --base: 20%;
}

.sparkle path:nth-of-type(3) {
    --scale: 2.5;
    --delay: 0.35;
    --base: 30%;
}

.sparkle-button button:before {
    content: "";
    position: absolute;
    inset: -0.25em;
    z-index: -1;
    border: 0.25em solid hsl(260 97% 50% / 0.5);
    border-radius: 100px;
    opacity: var(--active, 0);
    transition: opacity var(--transition);
}

.spark {
    position: absolute;
    inset: 0;
    border-radius: 100px;
    rotate: 0deg;
    overflow: hidden;
    mask: linear-gradient(white, transparent 50%);
    animation: flip calc(var(--spark) * 2) infinite steps(2, end);
}

@keyframes flip {
    to {
        rotate: 360deg;
    }
}

.spark:before {
    content: "";
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    top: 0%;
    left: 50%;
    z-index: -1;
    translate: -50% -15%;
    rotate: 0;
    transform: rotate(-90deg);
    opacity: calc((var(--active)) + 0.4);
    background: conic-gradient(from 0deg, transparent 0 340deg, white 360deg);
    transition: opacity var(--transition);
    animation: rotate var(--spark) linear infinite both;
}

.spark:after {
    content: "";
    position: absolute;
    inset: var(--cut);
    border-radius: 100px;
}

.backdrop {
    position: absolute;
    inset: var(--cut);
    background: var(--bg);
    border-radius: 100px;
    transition: background var(--transition);
}

@keyframes rotate {
    to {
        transform: rotate(90deg);
    }
}

.bodydrop {
    display: none;
}

.particle-pen {
    position: absolute;
    width: 200%;
    aspect-ratio: 1;
    top: 50%;
    left: 50%;
    translate: -50% -50%;
    -webkit-mask: radial-gradient(white, transparent 65%);
    z-index: -1;
    opacity: var(--active, 0);
    transition: opacity var(--transition);
    pointer-events: none;
}

.particle {
    fill: white;
    width: calc(var(--size, 0.25) * 1rem);
    aspect-ratio: 1;
    position: absolute;
    top: calc(var(--y) * 1%);
    left: calc(var(--x) * 1%);
    opacity: var(--alpha, 1);
    animation: float-out calc(var(--duration, 1) * 1s) calc(var(--delay) * -1s) infinite linear;
    transform-origin: var(--origin-x, 1000%) var(--origin-y, 1000%);
    z-index: -1;
    animation-play-state: paused;
}

.sparkle-button button:is(:hover, :focus-visible)~.particle-pen {
    --active: 1;
}

.sparkle-button button:is(:hover, :focus-visible)~.particle-pen .particle {
    animation-play-state: running;
}

.particle path {
    fill: hsl(0 0% 90%);
    stroke: none;
}

.particle:nth-of-type(even) {
    animation-direction: reverse;
}

@keyframes float-out {
    to {
        rotate: 360deg;
    }
}

.text {
    translate: 2% -6%;
    letter-spacing: 0.01ch;
    background: linear-gradient(90deg, hsl(0 0% calc((var(--active) * 100%) + 65%)), hsl(0 0% calc((var(--active) * 100%) + 26%)));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    transition: background var(--transition);
}

.sparkle-button button svg {
    inline-size: 1.25em;
    translate: -25% -5%;
}

svg {
    overflow: visible !important;
}

html {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    scroll-behavior: smooth;
}

#home::before,
.hero::before {
    display: none !important;
}

section#home::before,
section.hero::before {
    content: none !important;
}

#home,
#about,
#software,
#experience,
#clients,
#portfolio,
#contact {
    scroll-margin-top: 100px;
}

@media (max-width: 768px) {
    #home,
    #about,
    #software,
    #experience,
    #clients,
    #portfolio,
    #contact {
        scroll-margin-top: 80px; /* Reduced from 100px to account for smaller navbar */
    }
}

body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */

}

footer,
.modern-footer,
.modern-footer * {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

body {
    font-family: 'Inter', 'Arial', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
    background: radial-gradient(125% 125% at 50% 100%, #000000 40%, #010133 100%) fixed;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary-bg);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    border-radius: 5px;
    box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    perspective: 1000px;
    cursor: default !important;
    width: 100%;
    min-width: 100vw;
}

.hero::before {
    display: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    min-width: 100vw;
    height: 100%;
    background:
        radial-gradient(ellipse at bottom left, rgba(196, 255, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(168, 230, 0, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, var(--primary-bg), var(--secondary-bg));
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        repeating-linear-gradient(90deg,
            transparent,
            transparent 100px,
            rgba(196, 255, 0, 0.03) 101px,
            rgba(196, 255, 0, 0.03) 102px);
    animation: slideLines 20s linear infinite;
}

.floating-shapes {
    position: absolute;
    width: 100vw;
    /* Full viewport width */
    min-width: 100vw;
    height: 100%;
    overflow: hidden;
    left: 0;
}

@keyframes slideLines {
    0% {
        transform: translateX(-100px);
    }

    100% {
        transform: translateX(100px);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: rgba(168, 230, 0, 0.08);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 60%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.1;
    }

    33% {
        transform: translate(30px, -30px) rotate(120deg) scale(1.1);
        opacity: 0.2;
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg) scale(0.9);
        opacity: 0.15;
    }
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    transform-style: preserve-3d;
}

/* REPLACE YOUR .hero h1 CSS WITH THIS COMPLETE VERSION: */

.hero h1 {
    font-size: clamp(3rem, 12vw, 8rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none !important;
    filter: none !important;
    letter-spacing: -0.02em;
    user-select: none;
    animation: none;
    line-height: 1.1;
    max-width: 100%;
    word-spacing: 9999px;
    text-align: center;
}

.hero-subtitle {
    font-size: clamp(1rem, 3.5vw, 2.2rem);
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: slideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.3s both;
    font-weight: 300;
    letter-spacing: 0.02em;
    line-height: 1.6;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 575px) {
    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
        line-height: 1.15;
        margin-bottom: 1.2rem;
        letter-spacing: -0.01em;
    }
    
    .hero-subtitle {
        font-size: clamp(0.95rem, 4vw, 1.2rem);
        margin-bottom: 2rem;
        max-width: 95%;
    }
}

/* Small Devices (landscape phones, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero h1 {
        font-size: clamp(3.5rem, 11vw, 5rem);
        line-height: 1.12;
        margin-bottom: 1.3rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 3.8vw, 1.5rem);
        margin-bottom: 2.5rem;
    }
}

/* Medium Devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero h1 {
        font-size: clamp(4rem, 10vw, 6rem);
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1.3rem, 3.5vw, 1.8rem);
        margin-bottom: 2.8rem;
    }
}

/* Large Devices (desktops, 992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero h1 {
        font-size: clamp(5rem, 9vw, 7rem);
        line-height: 1.08;
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 3.2vw, 2rem);
    }
}

/* Extra Large Devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: clamp(6rem, 8vw, 8rem);
        line-height: 1.05;
    }
    
    .hero-subtitle {
        font-size: clamp(1.8rem, 3vw, 2.2rem);
    }
}

/* Ultra Wide Screens (1920px and up) */
@media (min-width: 1920px) {
    .hero h1 {
        font-size: 8rem;
        line-height: 1.05;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
}
@media (max-width: 475px) {
    .hero h1 {
        font-size: clamp(2.5rem, 12vw, 3.5rem);
        line-height: 1.15;
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }
    
    .hero-subtitle {
        font-size: clamp(1.1rem, 4.5vw, 1.4rem);
        margin-bottom: 2rem;
        max-width: 95%;
        line-height: 1.5;
    }
}

/* Extra Small Devices (phones, 476px to 575px) */
@media (min-width: 476px) and (max-width: 575px) {
    .hero h1 {
        font-size: clamp(2.8rem, 13vw, 4rem);
        line-height: 1.15;
        margin-bottom: 1.2rem;
        letter-spacing: -0.01em;
    }
    
    .hero-subtitle {
        font-size: clamp(1.5rem, 4.2vw, 1.3rem);
        margin-bottom: 2rem;
        max-width: 95%;
    }
}

@media (max-width: 768px) {
    .job-title {
        line-height: 1.35;
    }
}

.gradient-text {
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Shiny Text Effect */
.shiny-text {
    color: var(--text-secondary);
    background: linear-gradient(120deg,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 60%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    0% {
        background-position: 100%;
    }

    100% {
        background-position: -100%;
    }
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: slideUp 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    background: var(--accent-gradient);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-neon);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(196, 255, 0, 0.4);
}

.cta-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    box-shadow: none;
}

.cta-secondary:hover {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    box-shadow: var(--shadow-neon);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(20deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

/* Enhanced Sections */
section {
    padding: 8rem 5%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    scroll-margin-top: 100px;
}

/* Base vertical line above each section title */
section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    transform: translateX(-50%);
    border-radius: 1px;
    z-index: 1;
}

.section-title {
    font-size: clamp(3rem, 6vw, 5rem);
    margin-bottom: 4rem;
    text-align: center;
    background: #FFFFFF;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    position: relative;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .section-title {
        line-height: 1.2;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* Fix for line touching heading on mobile */
@media (max-width: 768px) {
    section {
        padding-top: 6rem;
    }

    .section-title {
        margin-top: 2rem;
    }
}

/* Enhanced About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    transform: perspective(1000px);
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(196, 255, 0, 0.2);

    /* NEW: Force square aspect ratio using padding-bottom hack */
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* Makes the height equal to the width */
}

.about-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    transform: perspective(1000px);
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(196, 255, 0, 0.2);

}

.about-image:hover {
    transform: scale(1.03);
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.7),
        0 0 50px rgb(160, 115, 238),
        0 0 80px rgb(110, 37, 237);
}

.about-image img {
    /* NEW: Position absolute to fill the padded container */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image fills the square without stretching, cropping if needed */
    object-position: center;
    display: block;
    opacity: 0.9;
    transition: all 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.about-image:hover img {
    opacity: 1;
    transform: scale(1.02);
}


.about-placeholder {
    width: 100%;
    height: 500px;
    background:
        linear-gradient(135deg, var(--card-bg), var(--secondary-bg)),
        repeating-linear-gradient(45deg,
            transparent,
            transparent 20px,
            rgba(196, 255, 0, 0.05) 20px,
            rgba(196, 255, 0, 0.05) 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.about-placeholder::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--accent-color), transparent);
    opacity: 0.1;
    animation: pulse 3s infinite;
}

/* --- Mobile responsiveness for About Me section --- */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        /* Single column layout for mobile */
        gap: 2.5rem;
        /* Adjust gap for mobile */
    }

    .about-image-container {
        width: 80%;
        /* Limit image width on smaller screens */
        max-width: 400px;
        /* Max width for square image on mobile */
        margin: 0 auto;
        /* Center the image */
    }

    .about-text {
        text-align: center;
        /* Center text on mobile */
    }

    .about-text p {
        font-size: 1rem;
        /* Adjust font size for mobile */
    }

    /* Keep the image normal on mobile, no hover effects */
    .about-image {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        border-radius: 20px !important;
        transition: none !important;
    }

    .about-image:hover,
    .about-image:hover img {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        opacity: 1 !important;
        filter: none !important;
        scale: 1 !important;
    }

    .about-image img {
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
    }
}

/* Touch device specific - applies to all touch devices regardless of screen size */
@media (hover: none) {

    /* Remove hover effects on About Me image */
    .about-image:hover,
    .about-image:hover img {
        transform: none !important;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 255, 0, 0.2) !important;
        opacity: 0.9 !important;
        filter: none !important;
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.2;
    }
}

.about-text {
    transform-style: preserve-3d;
}

.about-text p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    transform: translateZ(20px);
    transition: all 0.4s ease;
}

.about-text p:hover {
    color: var(--text-secondary);
    transform: translateZ(20px) translateX(0px);
}

/* --- SOFTWARE SKILLS SECTION --- */
.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    text-align: center;
}

.software-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
    transform-style: preserve-3d;
    cursor: pointer;
}

.software-item:hover {
    transform: translateY(-10px) scale(1.05) rotateX(10deg);
}

.software-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease;
}

.software-item:hover .software-icon {
    box-shadow: var(--shadow-neon);
    transform: scale(1.1);
}

.software-item:hover .software-icon img {
    filter: none;
}

.software-item h4 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.software-item:hover h4 {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .software-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }

    .software-item {
        gap: 0.4rem;
    }

    .software-item h4 {
        font-size: 0.9rem;
    }

    .software-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 1.5rem 0.5rem;
    }
}

#experience {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(rgb(160, 115, 238) -11.11%, rgb(110, 37, 237) 100%);
    transform: translateX(-50%);
    border-radius: 1px;
    z-index: 1;
}

.experience-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    width: 100%;
    max-width: 1000px;
    align-items: flex-start;
    padding-left: 2rem;
}

.experience-list::before {
    content: '';
    position: absolute;
    left: 2rem;
    width: 2px;
    height: 100%;
    background-color: var(--border-color);
    z-index: 0;
}

.experience-item {
    position: relative;
    padding-left: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.company-dot {
    width: 14px;
    height: 14px;
    background: linear-gradient(0deg, rgb(229, 156, 255) 0.01%, rgb(186, 156, 255) 50.01%, rgb(156, 178, 255) 100%);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
    box-shadow: 0 0 10px rgb(229, 156, 255), 0 0 20px rgb(156, 178, 255);
    left: calc(-2rem - 7px);
    top: 1em;
    transform: none; 
}

.company-heading {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    margin-bottom: 0.5rem;
}

.company-name {
    color: var(--text-secondary);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}


@media (max-width: 768px) {
    .experience-list {
        padding-left: 35px !important; 
        margin-top: 2rem; 
    }
    
    /* Recalculate dot position based on the mobile padding (35px) */
    .company-dot {
        left: calc( -35px - 3px ) !important; /* -35px (padding) - 7px (half dot) = -42px */
        top: 0.75em !important;
        transform: none !important;
    }
    
    /* Ensure the vertical line moves with the list padding */
    .experience-list::before {
        left: 35px !important; 
    }

    

    .experience-item>h4.company-name,
    .experience-item>p.duration,
    .experience-item>ul.job-description {
        text-align: left;
    }

    .company-heading {
        justify-content: flex-start;
        align-items: flex-start;
        margin-left: 0 !important;
        text-align: left;
        width: 100%;
    }

    .job-title {
        text-align: left;
        margin-left: 0;
    }

    .company-name,
    .duration {
        margin-left: 0;
    }
}



.job-title {
    color: var(--text-primary);
    background: -webkit-linear-gradient(0deg, rgb(229, 156, 255) 0.01%, rgb(186, 156, 255) 50.01%, rgb(156, 178, 255) 100%),
        -webkit-linear-gradient(0deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.duration {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.job-description {
    list-style: none;
    padding: 0;
    text-align: left;
}

.job-description li {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.job-description li::before {
    content: '•';
    color: #FFFFFF;
    position: absolute;
    left: 0;
    font-weight: 700;
}

.client-stats {
    text-align: center;
    margin-bottom: 4rem;
}

.client-stats h3 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.client-stats p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 300;
    margin-top: 0.5rem;
}

.clients-carousel {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.clients-carousel::before,
.clients-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px; /* Adjust width for gradient fade distance */
    z-index: 2;
    pointer-events: none;
}

/* Left gradient fade */
.clients-carousel::before {
    left: 0;
    background: linear-gradient(to right, 
        rgb(3, 0, 20) 0%, 
        rgba(3, 0, 20, 0.8) 30%,
        rgba(3, 0, 20, 0) 100%);
}

/* Right gradient fade */
.clients-carousel::after {
    right: 0;
    background: linear-gradient(to left, 
        rgb(3, 0, 20) 0%, 
        rgba(3, 0, 20, 0.8) 30%,
        rgba(3, 0, 20, 0) 100%);
}

.clients-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

.client-logo {
    flex-shrink: 0;
    width: 150px;
    height: 80px;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo img {
    max-width: 80%;
    max-height: 80%;
    /* filter: grayscale(100%) brightness(0.7);
    transition: filter 0.3s ease; */
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .clients-carousel::before,
    .clients-carousel::after {
        width: 80px; /* Smaller gradient on mobile */
    }
    
    .client-logo {
        width: 120px;
        height: 60px;
    }
    
    .clients-track {
        gap: 1.5rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .client-logo:hover {
        transform: none !important;
    }
    
    .client-logo:hover img {
        filter: grayscale(100%) brightness(0.7) !important;
    }
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    gap: 3rem;
    margin-top: 4rem;
    perspective: 1000px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.portfolio-item {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 768px) {
    .about-image {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        border-radius: 20px !important;
        transition: none !important;
    }

    .about-image:hover,
    .about-image:hover img {
        transform: none !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
        opacity: 1 !important;
        filter: none !important;
        scale: 1 !important;
    }

    .about-image img {
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
    }

    .software-icon img {
        filter: none !important;
    }

    .software-item:hover,
    .software-item:hover .software-icon,
    .software-item:hover .software-icon img,
    .software-item:hover h4 {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
        filter: none !important;
        color: var(--text-secondary) !important;
    }

    .client-logo:hover,
    .client-logo:hover img {
        transform: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
        filter: grayscale(100%) brightness(0.7) !important;
    }

    .portfolio-item:hover,
    .portfolio-item:hover::before,
    .portfolio-item:hover .portfolio-image img,
    .portfolio-item:hover .portfolio-content {
        transform: none !important;
        box-shadow: none !important;
        opacity: 0.8 !important;
        filter: none !important;
    }

    .portfolio-item::before {
        opacity: 0 !important;
    }

    .contact-link:hover {
        color: var(--text-primary) !important;
        transform: none !important;
    }
}

/* Touch device specific - applies to all touch devices regardless of screen size */
@media (hover: none) {

    /* Remove hover effects on About Me image */
    .about-image:hover,
    .about-image:hover img {
        transform: none !important;
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(196, 255, 0, 0.2) !important;
        opacity: 0.9 !important;
        filter: none !important;
    }

    /* Make software icons colored and remove hover effects */
    .software-icon img {
        filter: none !important;
    }

    .software-item:hover,
    .software-item:hover .software-icon,
    .software-item:hover .software-icon img,
    .software-item:hover h4 {
        transform: none !important;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
        filter: none !important;
        color: var(--text-secondary) !important;
    }

    /* Remove hover effects on client logos */
    .client-logo:hover,
    .client-logo:hover img {
        transform: none !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3) !important;
        filter: grayscale(100%) brightness(0.7) !important;
    }

    /* Remove hover effects on portfolio items */
    .portfolio-item:hover,
    .portfolio-item:hover::before,
    .portfolio-item:hover .portfolio-image img,
    .portfolio-item:hover .portfolio-content {
        transform: none !important;
        box-shadow: none !important;
        opacity: 0.8 !important;
        filter: none !important;
    }

    .portfolio-item::before {
        opacity: 0 !important;
    }

    /* Remove hover effects on footer contact links */
    .contact-link:hover {
        color: var(--text-primary) !important;
        transform: none !important;
    }
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--accent-gradient);
    z-index: -1;
    border-radius: 22px;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
    filter: blur(8px);
}

.portfolio-item:hover::before {
    opacity: 1;
    transform: scale(1.02);
}

.portfolio-item:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--shadow-neon);
}

.portfolio-item:hover .portfolio-content h3 {
    color: #fff !important;
    transition: color 0.4s ease;
}

.portfolio-item:hover .portfolio-content p {
    color: #fff;
    transition: color 0.4s ease;
}

@media (max-width: 768px) {
    .portfolio-item:hover .portfolio-content h3 {
        color: var(--text-primary) !important;
    }

    .portfolio-item:hover .portfolio-content p {
        color: #fff;
    }
}

/* Touch devices - keep original colors */
@media (hover: none) and (pointer: coarse) {
    .portfolio-item:hover .portfolio-content h3 {
        color: var(--text-primary) !important;
    }

    .portfolio-item:hover .portfolio-content p {
        color: #fff;
    }
}

.portfolio-image {
    width: 100%;
    height: 0;
    padding-bottom: 100%;
    /* This creates a perfect square */
    position: relative;
    background: linear-gradient(135deg, var(--secondary-bg), var(--card-bg));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    overflow: hidden;
}

.portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures image covers the square area */
    object-position: center;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}


.portfolio-item:hover .portfolio-image img {
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
    transform: translateZ(20px);
    flex: 1;
    /* Takes remaining space */
}

@media (min-width: 1400px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1400px;
    }
}

@media (min-width: 1600px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1600px;
    }
}

@media (min-width: 1920px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        max-width: 1800px;
    }
}

/* Tablet - 2 columns */
@media (max-width: 1024px) and (min-width: 769px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile - 1 column */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
}

.portfolio-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.portfolio-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.portfolio-item:hover .portfolio-content {
    transform: translateZ(40px);
}

/* Enhanced Contact Form */
.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, var(--accent-color), transparent);
    opacity: 0.1;
    animation: rotate 20s linear infinite;
}

.form-content {
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 2.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--secondary-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(196, 255, 0, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-btn {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent-gradient);
    color: var(--primary-bg);
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;

}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-neon);
    color: white;
}

/* New Footer Styles */
.modern-footer {
    background: var(--secondary-bg);
    padding: 4rem 5%;
    border-top: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.footer-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2rem;
}

.social-links-footer {
    display: flex;
    gap: 1.5rem;
}

.social-links-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links-footer a:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

.download-cv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-cv-btn:hover {
    background: var(--accent-gradient);
    color: var(--primary-bg);
    box-shadow: var(--shadow-neon);
    transform: translateY(-5px) scale(1.05);
}

.footer-bottom {
    text-align: center;
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* style.css */

/* New CSS class to disable background scrolling and prevent scroll jump */
.no-scroll {
    overflow: hidden;
    height: 100vh;
    width: 100%;
    /* CRITICAL: Use fixed positioning for scroll locking */
    position: fixed;
    left: 0;
    /* The 'top' property is controlled by JS to prevent the jump, e.g., top: -500px */
}