@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    width: 100%;
    /* overflow-x: hidden; */
    letter-spacing: 0.05em;
}

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e6e6e6;
}

/* ── Neon Theme Variables & Base Styles ── */
:root {
    /* Dark theme defaults */
    --bg: #1a1a2e;
    --fg: #e6e6e6;
    --accent-1: #4cc9f0;
    --accent-2: #7209b7;
    --glow: none;
    --transition-duration: 0.5s;
}

[data-theme="neon"] {
    /* Neon overrides */
    --bg: #0a0a0a;
    --fg: #f0f0f0;
    --accent-1: #00ffff;
    --accent-2: #ff00ff;
    --glow: 0 0 20px var(--accent-1);
}


/* Apply theme vars */
body {
    background: var(--bg);
    color: var(--fg);
    transition: background var(--transition-duration), color var(--transition-duration);
    will-change: background, color;
}

section {
    width: 100%;
    overflow: hidden;
}

h1,
h2,
h3 {
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.nav-link {
    color: var(--fg);
    transition: color var(--transition-duration);
}

.nav-link::after {
    background: var(--accent-1);
}

.special-button,
.button {
    box-shadow: var(--glow);
    transition: box-shadow var(--transition-duration);
}

button:hover,
.special-button:hover {
    box-shadow: 0 0 30px var(--accent-2);
}


.special-button:focus,
.simple-button:focus {
    outline: 2px solid #4cc9f0;
    outline-offset: 2px;
}

/* Utility class for neon text glow */
.neon-glow {
    text-shadow: var(--glow);
}

/* Disable all transitions/animations if user prefers reduced motion */


/* ── Neon Enhancements for About & Projects ── */
[data-theme="neon"] {

    /* About Section */
    #about .glass-card {
        /* Neon border + glow */
        border: 1px solid var(--accent-1);
        box-shadow: 0 0 20px var(--accent-1);
        transition: box-shadow var(--transition-duration), border-color var(--transition-duration);
    }

    /* Project Cards */
    .project-card .project-inner {
        /* Neon outline + glow */
        border: 1px solid var(--accent-1);
        box-shadow: 0 0 20px var(--accent-1);
        transition: box-shadow var(--transition-duration), border-color var(--transition-duration);
    }



    /* ── Button Visibility Fix ── */
    .special-button,
    .simple-button,
    .social-button {
        /* Give them a darker translucent fill so text/icon remains visible */
        background: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid var(--accent-1) !important;
        color: var(--accent-1) !important;
        transition:
            background var(--transition-duration),
            color var(--transition-duration),
            border-color var(--transition-duration),
            box-shadow var(--transition-duration);
    }

    .special-button::before {
        /* Use neon accent-2 on hover gradient */
        background: linear-gradient(to right, var(--accent-1), var(--accent-2)) !important;
    }

    .special-button:hover,
    .simple-button:hover,
    .social-button:hover {
        /* Invert to neon-2 on hover for strong feedback */
        background: var(--accent-2) !important;
        color: var(--fg) !important;
        border-color: var(--accent-2) !important;
        box-shadow: 0 0 30px var(--accent-2) !important;
    }
}



/* Under neon theme, also animate the glow smoothly */
[data-theme="neon"] .project-card .project-inner {
    /* re-declare box-shadow so it transitions too */
    box-shadow: 0 0 20px var(--accent-1);
    transition:
        transform 0.6s ease-out,
        box-shadow var(--transition-duration) ease-out;
}

/* ── Neon Glow Around Contact Form ── */
[data-theme="neon"] #contact .glass-card {
    /* Neon border + glow (match the About section) */
    border: 1px solid var(--accent-1);
    box-shadow: 0 0 20px var(--accent-1);
    transition:
        box-shadow var(--transition-duration) ease-out,
        border-color var(--transition-duration) ease-out;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.special-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.special-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(to right, #4cc9f0, #7209b7);
    transition: width 0.3s ease;
    z-index: -1;
}

.special-button:hover::before {
    width: 100%;
}

.special-button:hover {
    transform: translateY(-2px);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, #4cc9f0, #7209b7);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.project-card {
    perspective: 1000px;
}

.project-inner {
    transition: transform 0.6s;
    transform-style: preserve-3d;
}


.floating {
    animation: floating 6s ease-in-out infinite;
}

/* ── Tech-stack icon styling ── */
.tech-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.tech-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform var(--transition-duration), box-shadow var(--transition-duration);
}

/* ensure padding is included in the 3rem × 3rem box */
/* Ensure every .tech-icon is a true square (padding included) */
.tech-icon {
    /* keep whatever width you like, but drop the fixed height */
    width: 3rem;
    /* automatically make the height match the width */
    aspect-ratio: 1 / 1;
    /* include padding inside that box */
    box-sizing: border-box;
}



.tech-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px var(--accent-1);

}


[data-theme="neon"] .tech-icon:hover {
    box-shadow: 0 0 30px var(--accent-2);
}

.blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
}

.blob-1 {
    background: #4cc9f0;
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: #7209b7;
    bottom: -100px;
    right: -100px;
}



/* Logo container styling */
.logo-container {
    display: flex;
    align-items: center;
    height: 110px;
    border-radius: 12px;
    padding: 0 12px;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(76, 201, 240, 0.5));
    transition: transform 0.3s ease;
}

.logo-container:hover .logo-img {
    transform: scale(1.55);
}

/* Infinite scroll animation */
.scrolling-text-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 8px 0;
    margin-bottom: 24px;
}

.scrolling-text-container::before,
.scrolling-text-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.scrolling-text-container::before {
    left: 0;
    background: linear-gradient(to right, #1a1a2e 0%, transparent 100%);
}

.scrolling-text-container::after {
    right: 0;
    background: linear-gradient(to left, #1a1a2e 0%, transparent 100%);
}

.scrolling-text {
    display: flex;
    white-space: nowrap;
    /* Animation will be handled by JavaScript */
}

.scrolling-text span {
    margin-right: 40px;
    font-weight: 500;
    font-size: 1.2rem;
    background: linear-gradient(to right, #4cc9f0, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    padding: 6px 12px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    flex-shrink: 0;
}





/* Remove border from photos */
.photo-container {
    border: none !important;
}


/* Footer background */
footer {
    margin-top: auto;
    width: 100%;
    overflow: hidden;
}

/* Simple button style for project links */
.simple-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.simple-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Name with gradient */
.gradient-name {
    background: linear-gradient(to right, #4cc9f0, #7209b7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}


/*  FADE-IN ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}



/* Delay animations */
[data-delay="0.1"] {
    transition-delay: 0.1s !important;
}

[data-delay="0.2"] {
    transition-delay: 0.2s !important;
}

[data-delay="0.3"] {
    transition-delay: 0.3s !important;
}

[data-delay="0.4"] {
    transition-delay: 0.4s !important;
}

[data-delay="0.5"] {
    transition-delay: 0.5s !important;
}

@media (prefers-reduced-motion: reduce) {
    .fade-in {
        transition: none !important;
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}



@media (max-width: 345px) {

    /* reduce the section’s horizontal gutter */
    #contact {
        padding-left: 0.5rem;
        /* 8px */
        padding-right: 0.5rem;
        /* 8px */
    }

    /* tighten up the card’s inner padding */
    #contact .glass-card {
        padding: 0.75rem;
        /* 12px all around */
    }

    /* ensure the two‑column grid becomes single‑column */
    #contact .grid.md\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    /* shrink the vertical gaps between detail rows */
    #contact .space-y-4>*+* {
        margin-top: 0.5rem;
        /* 8px instead of default 1rem */
    }

    /* shrink the icon‑to‑text margin */
    #contact .tech-icon {
        margin-right: 0.5rem;
        /* 8px instead of 1rem */
    }
}



@media (max-width: 767px) {
    .scrolling-text span {
        margin-right: 30px;
        font-size: 1rem;
    }
}

@media (max-width: 1023px) {

    .blob-1,
    .blob-2 {
        display: none;
    }
}

/* Enhanced reduced motion support */
@media (prefers-reduced-motion: reduce) {

    * {
        transition: none !important;
        animation: none !important;
    }
}



/* .scrolling-text {
    animation: none !important;
}

.floating {
    animation: none !important;
} */
