/* 
========================================
   Variables & Reset
========================================
*/
:root {
    /* Colors */
    --hue: 250;
    /* Primary Hue (Purple/Blue) */
    --primary: hsl(var(--hue), 100%, 65%);
    --primary-dark: hsl(var(--hue), 100%, 50%);
    --secondary: hsl(190, 100%, 60%);
    /* Cyan accent */

    /* Dark Theme (Default) */
    --bg-body: #0a0a0a;
    --bg-card: #141414;
    --bg-glass: rgba(20, 20, 20, 0.7);
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);

    /* Font Sizes */
    --fs-h1: clamp(2.5rem, 5vw, 4.5rem);
    --fs-h2: clamp(2rem, 3vw, 3rem);
    --fs-body: 1rem;

    /* Spacing */
    --section-padding: 160px 0;
    --container-width: 1200px;

    /* Transitions */
    --transition: all 0.3s ease;
}

[data-theme="light"] {
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.8);
    --text-main: #1a1a1a;
    --text-muted: #555555;
    --border-color: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
    cursor: none;
}

a,
button,
.btn,
.skill-tab,
.service-card,
.project-card {
    cursor: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* 
========================================
   Utility Classes
========================================
*/
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.highlight {
    color: var(--primary);
}

.text-gradient {
    background: linear-gradient(120deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(var(--hue), 100%, 65%, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(var(--hue), 100%, 65%, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

/* 
========================================
   Cursor
========================================
*/
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    transition: transform 0.2s, opacity 0.2s;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s, transform 0.2s;
}


/* 
========================================
   Navbar
========================================
*/
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
    color: var(--text-main);
}

.logo .highlight {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 25px;
}

#theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: rotate(15deg);
    box-shadow: 0 0 15px rgba(var(--hue), 100%, 65%, 0.4);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 5px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Hamburger Animation State */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 
========================================
   Hero Section
========================================
*/
.hero {
    padding-top: 150px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

.hero-title {
    font-size: var(--fs-h1);
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
    /* Vertically align them */
}

.hero-btns .btn {
    min-width: 160px;
    /* Ensure equal minimum width */
    text-align: center;
    display: flex;
    /* Flexbox for centering content inside button */
    justify-content: center;
    align-items: center;
}

.social-links-hero {
    display: flex;
    gap: 20px;
}

.social-links-hero a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links-hero a:hover {
    color: var(--primary);
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.blob-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    background: linear-gradient(180deg, var(--primary) 0%, rgba(255, 0, 255, 0) 100%);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: blobBounce 8s infinite alternate;
}

.blob-2 {
    background: var(--secondary);
    width: 300px;
    height: 300px;
    left: 60%;
    top: 40%;
    animation: blobBounce 10s infinite alternate-reverse;
}

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

    100% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-card {
    position: relative;
    width: 400px;
    padding: 20px;
    border-radius: 20px;
    z-index: 1;
    transform: rotateY(-10deg) rotateX(10deg);
    transition: transform 0.5s;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-card:hover {
    transform: rotateY(0) rotateX(0);
}

.code-editor {
    background: #1e1e1e;
    border-radius: 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.editor-header {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.editor-body {
    color: #fff;
}

.keyword {
    color: #c678dd;
}

.variable {
    color: #e06c75;
}

.string {
    color: #98c379;
}

.boolean {
    color: #d19a66;
}

.property {
    color: #61afef;
}

.indent {
    padding-left: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 20px;
    display: block;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

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

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* 
========================================
   About Section (Removed Duplicate)
========================================
*/


/* Added manually to ensure buttons align */
.about-btns {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.about-btns .btn {
    flex: 1;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 170px;
    /* Ensure buttons are not too small */
}


.section-title {
    font-size: var(--fs-h2);
    text-align: center;
    margin-bottom: 80px;
    font-family: 'Space Grotesk', sans-serif;
    position: relative;
    z-index: 2;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* 
========================================
   About Section
========================================
*/
.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-img-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-img {
    border-radius: 20px;
    width: 480px;
    height: 480px;
    object-fit: cover;
    margin: 0 auto;
    box-shadow: 0 0 30px rgba(var(--hue), 100%, 65%, 0.2);
    border: 4px solid var(--bg-card);
    transition: var(--transition);
    /* animation: floatImage 6s ease-in-out infinite; */
}

.about-img-wrapper:hover .about-img {
    /* transform: scale(1.05) rotate(2deg); */
    transform: scale(1.02);
    box-shadow: 0 0 50px var(--primary);
}

/* @keyframes floatImage {
    0% {
        transform: translateY(0);
    }

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

    100% {
        transform: translateY(0);
    }
} */

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: 10%;
    /* Adjusted for centered square */
    background: var(--primary);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.experience-badge .years {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    line-height: 1;
}

.about-content {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--primary);
    font-family: 'Space Grotesk', sans-serif;
}

.stat-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* 
========================================
   Skills Section
========================================
*/
#skills {
    padding-top: 50px;
    /* Extra space above Skills section */
}

.skills-categories {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.skill-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.skill-tab.active,
.skill-tab:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    animation: floatCard 5s ease-in-out infinite;
}

.skill-card:nth-child(even) {
    animation-delay: 2.5s;
}

.skill-card:nth-child(3n) {
    animation-delay: 1s;
}

/* Main Hero Avatar */
.hero-float-img {
    width: 450px;
    height: auto;
    max-width: 100%;
    filter: drop-shadow(0 0 30px rgba(var(--hue), 100%, 65%, 0.4));
    animation: floatAvatar 6s ease-in-out infinite;
    z-index: 2;
    transition: var(--transition);
}

.hero-float-img:hover {
    transform: scale(1.05) rotate(2deg);
    filter: drop-shadow(0 0 50px rgba(var(--hue), 100%, 65%, 0.6));
}

@keyframes floatAvatar {

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

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

.skill-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(var(--hue), 100%, 65%, 0.2);
    animation-play-state: paused;
}

@keyframes floatCard {

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

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

.skill-card i {
    font-size: 3rem;
    margin-bottom: 20px;
}

.progress-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    margin-top: 15px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
}

.skills-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.skills-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* 
========================================
   Services Section
========================================
*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    padding: 40px 30px;
    border-radius: 20px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--primary);
    z-index: -1;
    transition: 0.5s;
    opacity: 0.1;
}

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

.service-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(var(--hue), 100%, 65%, 0.1);
    color: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: 1.5rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.service-card:hover .icon-box {
    background: var(--primary);
    color: white;
}

/* 
========================================
   Projects Section
========================================
*/
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: 20px;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.icon-btn {
    width: 50px;
    height: 50px;
    background: white;
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--primary);
    color: white;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    margin-bottom: 10px;
    font-family: 'Space Grotesk', sans-serif;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tags {
    display: flex;
    gap: 10px;
}

.tags span {
    font-size: 0.8rem;
    padding: 5px 15px;
    background: rgba(var(--hue), 100%, 65%, 0.1);
    color: var(--primary);
    border-radius: 50px;
}

/* 
========================================
   Testimonials Section
========================================
*/

.section-title {
    padding-top: 50px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.5;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
    line-height: 1.6;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.client-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}

.client-info h4 {
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.client-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* 
========================================
   Contact Section
========================================
*/
.contact-wrapper {
    display: flex;
    gap: 50px;
    background: var(--bg-card);
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    align-items: center;
}

.contact-info {
    flex: 1;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-family: 'Space Grotesk', sans-serif;
}

.contact-info p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.info-item i {
    width: 45px;
    height: 45px;
    background: rgba(var(--hue), 100%, 65%, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links-contact {
    display: flex;
    gap: 20px;
    margin-top: 50px;
}

.social-links-contact a {
    width: 45px;
    height: 45px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-links-contact a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.contact-form {
    flex: 1.5;
}

.form-group {
    margin-bottom: 20px;
}

input,
textarea {
    width: 100%;
    padding: 15px 20px;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

textarea {
    resize: none;
    height: 150px;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* 
========================================
   Footer
========================================
*/
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
}

/* 
========================================
   Responsive
========================================
*/
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 968px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 60px;
        padding-top: 100px;
    }

    .hero-btns,
    .social-links-hero {
        justify-content: center;
    }

    .hero-float-img {
        width: 350px;
    }

    .about-container,
    .contact-wrapper {
        flex-direction: column;
        gap: 50px;
    }

    .section-title {
        font-size: 2.2rem;
    }

    /* Navigation */
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .nav-controls {
        margin-left: auto;
    }

    #theme-toggle {
        display: flex !important;
        margin-right: 20px;
    }

    .mobile-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        z-index: 2000;
        transition: 0.4s ease;
        border-left: 1px solid var(--border-color);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
    }

    .mobile-menu.active {
        right: 0;
    }
}

@media (max-width: 768px) {

    /* Hide Custom Cursor on Touch Devices */
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }

    a,
    button,
    .btn,
    .skill-tab,
    .service-card,
    .project-card,
    .nav-link,
    .icon-btn {
        cursor: pointer !important;
    }

    .scroll-down {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .about-img {
        width: 300px;
        height: 300px;
    }

    /* Safer Grid Min-Widths */
    .projects-grid,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .float-item {
        transform: scale(0.7);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .hero-float-img {
        width: 280px;
        /* Smaller on mobile */
    }

    /* Skill Tabs wrapping */
    .skills-categories {
        flex-wrap: wrap;
        gap: 10px;
    }

    .skill-tab {
        padding: 8px 20px;
        font-size: 0.9rem;
        flex: 1 1 auto;
        /* Grow to fill space */
    }

    /* Hide code tag which might overlap on small screens */
    .float-item.code-tag {
        display: none;
    }

    .float-item {
        transform: scale(0.6);
        opacity: 0.5;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        /* 2 columns on mobile */
        gap: 15px;
    }

    .skill-card {
        padding: 20px;
    }

    .skill-card i {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .project-card,
    .testimonial-card,
    .service-card {
        /* Full width cards on mobile */
        min-width: 100%;
    }

    .contact-wrapper {
        padding: 30px 20px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }
}

/* Floating Elements Animation */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    pointer-events: none;
}

.float-item {
    position: absolute;
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.05);
    /* Glassmorphism */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: floatAnim 6s ease-in-out infinite;
}

.float-item.react {
    top: 15%;
    left: 5%;
    color: #61dbfb;
    animation-delay: 0s;
}

.float-item.js {
    bottom: 25%;
    left: 0%;
    color: #f7df1e;
    animation-delay: 1.5s;
}

.float-item.html {
    top: 10%;
    right: 15%;
    color: #e34c26;
    animation-delay: 1s;
}

.float-item.css {
    bottom: 35%;
    right: 0%;
    color: #264de4;
    animation-delay: 2.5s;
}

.float-item.python {
    top: 45%;
    left: -5%;
    color: #3776ab;
    animation-delay: 0.5s;
}

.float-item.mysql {
    bottom: 10%;
    right: 20%;
    color: #00758f;
    animation-delay: 2s;
}

.float-item.code-tag {
    top: 50%;
    right: -10%;
    width: auto;
    padding: 10px 20px;
    height: auto;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    font-family: 'Courier New', monospace;
    animation-delay: 3s;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(5deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.hero-float-img {
    position: relative;
    z-index: 2;
    animation: floatMain 5s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

@keyframes floatMain {

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

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


/* Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

#canvas {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}
