/* ===============================
   DESIGN TOKENS (Radib-inspired)
================================= */
:root {
    --background: 0 0% 0%;
    --foreground: 210 40% 98%;
    --card: 0 0% 4%;
    --card-foreground: 210 40% 98%;
    --primary: 270 75% 60%;
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 8%;
    --muted: 0 0% 12%;
    --muted-foreground: 220 10% 55%;
    --accent: 185 80% 50%;
    --border: 0 0% 15%;
    --radius: 0.75rem;

    --gradient-primary: linear-gradient(135deg, hsl(270 75% 60%) 0%, hsl(185 80% 50%) 50%, hsl(320 70% 55%) 100%);
    --gradient-hero: linear-gradient(180deg, hsl(0 0% 0%) 0%, hsl(0 0% 2%) 50%, hsl(0 0% 0%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(0 0% 6%) 0%, hsl(0 0% 3%) 100%);
    --gradient-glow: radial-gradient(ellipse at center, hsl(270 75% 60% / 0.1) 0%, hsl(185 80% 50% / 0.05) 50%, transparent 70%);
    --gradient-aurora: linear-gradient(120deg, hsl(270 75% 60% / 0.15) 0%, hsl(185 80% 50% / 0.1) 25%, hsl(320 70% 55% / 0.1) 50%, hsl(270 75% 60% / 0.15) 75%, hsl(185 80% 50% / 0.1) 100%);

    --shadow-glow: 0 0 60px hsl(270 75% 60% / 0.15), 0 0 100px hsl(185 80% 50% / 0.1);
    --shadow-card: 0 8px 32px hsl(0 0% 0% / 0.6), 0 2px 8px hsl(270 75% 60% / 0.05);
    --shadow-card-hover: 0 16px 48px hsl(270 75% 60% / 0.15), 0 8px 24px hsl(185 80% 50% / 0.1);
    --shadow-button: 0 4px 20px hsl(270 75% 60% / 0.3);

    --transition:
        transform .4s cubic-bezier(.25, .46, .45, .94),
        background-color .3s ease,
        border-color .3s ease,
        color .3s ease,
        box-shadow .3s ease;
}

[data-theme="light"] {
    --background: 0 0% 98%;
    --foreground: 222 47% 11%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 11%;
    --primary: 270 75% 55%;
    --primary-foreground: 0 0% 100%;
    --secondary: 210 40% 96%;
    --muted: 210 40% 96%;
    --muted-foreground: 220 10% 45%;
    --accent: 185 80% 42%;
    --border: 214 32% 91%;

    --gradient-hero: linear-gradient(180deg, hsl(0 0% 98%) 0%, hsl(210 40% 96%) 50%, hsl(0 0% 98%) 100%);
    --gradient-card: linear-gradient(145deg, hsl(0 0% 100%) 0%, hsl(210 40% 98%) 100%);
    --gradient-glow: radial-gradient(ellipse at center, hsl(270 75% 60% / 0.08) 0%, hsl(185 80% 50% / 0.04) 50%, transparent 70%);
    --gradient-aurora: linear-gradient(120deg, hsl(270 75% 60% / 0.08) 0%, hsl(185 80% 50% / 0.06) 25%, hsl(320 70% 55% / 0.06) 50%, hsl(270 75% 60% / 0.08) 75%, hsl(185 80% 50% / 0.06) 100%);

    --shadow-glow: 0 0 60px hsl(270 75% 60% / 0.08), 0 0 100px hsl(185 80% 50% / 0.05);
    --shadow-card: 0 8px 32px hsl(222 47% 11% / 0.08), 0 2px 8px hsl(270 75% 60% / 0.04);
    --shadow-card-hover: 0 16px 48px hsl(270 75% 60% / 0.12), 0 8px 24px hsl(185 80% 50% / 0.08);
    --shadow-button: 0 4px 20px hsl(270 75% 60% / 0.2);
}

/* ===============================
   RESET & GLOBAL
================================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Sora", system-ui, sans-serif;
    background: hsl(var(--background));
    color: hsl(var(--foreground));
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}


img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===============================
   BACKGROUND EFFECTS
================================= */
.bg-glow {
    position: fixed;
    inset: 0;
    background: var(--gradient-glow);
    pointer-events: none;
    z-index: 0;
}


/* ===============================
   PREMIUM GRID
================================= */

.bg-grid {

    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);

    background-size: 70px 70px;

    mask-image: radial-gradient(circle at center,
            black 20%,
            transparent 85%);

    opacity: .45;

}

/* ===============================
   Light Theme
================================= */

[data-theme="light"] .bg-glow {
    opacity: .45;
}

[data-theme="light"] .bg-grid {
    opacity: .18;
}

/* ===============================
   Mobile
================================= */

.mobile-cta {
    display: none;
}


/* ===============================
   BUTTONS
================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    box-shadow: var(--shadow-button);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px hsl(270 75% 60% / 0.5), 0 0 50px hsl(185 80% 50% / 0.2);
}

.btn-outline {
    background: transparent;
    border: 1px solid hsl(var(--border));
    color: hsl(var(--foreground));
}

.btn-outline:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.05);
    color: hsl(var(--foreground));
}

.btn-sm {
    padding: 10px 22px;
    font-size: 13px;
}

/* ===============================
   NAVBAR
================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: hsl(var(--background) / 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid hsl(var(--border));
    padding: 12px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 16px;
    color: hsl(var(--foreground));
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid hsl(var(--primary) / 0.5);
    box-shadow: 0 0 12px hsl(270 75% 60% / 0.35);
    flex-shrink: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid hsl(var(--border));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: hsl(var(--primary) / 0.5);
    background: hsl(var(--primary) / 0.08);
    transform: translateY(-1px);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: absolute;
}

.theme-toggle {
    position: relative;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0) scale(1);
}

[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.5);
}

.theme-toggle svg {
    transition: opacity 0.3s ease, transform 0.3s ease;
}


.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    transition: var(--transition);
}

.nav-links a.active,
.nav-links a:hover {
    color: hsl(var(--foreground));
}

.nav-cta {
    padding: 10px 22px;
    font-size: 13px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: hsl(var(--foreground));
    transition: var(--transition);
}

/* ===============================
   SECTION HEADER
================================= */
.section {
    position: relative;
    z-index: 1;
    padding: 100px 0;
}

.section-alt {
    background: hsl(var(--secondary) / 0.5);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: hsl(var(--primary));
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 16px;
    color: hsl(var(--muted-foreground));
    max-width: 560px;
    margin: 0 auto;
}

/* ===============================
   HERO
================================= */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 0 60px;
    background: var(--gradient-hero);
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    font-size: 13px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: hsl(var(--accent));
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

.hero-content h1 {
    font-size: clamp(36px, 5.5vw, 58px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-desc {
    font-size: 17px;
    color: hsl(var(--muted-foreground));
    max-width: 520px;
    margin-bottom: 20px;
}

.hero-tags {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 32px;
    opacity: 0.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.hero-image-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: var(--gradient-aurora);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    max-width: 420px;
    width: 100%;
    border-radius: 20px;
    border: 1px solid hsl(var(--border));
    box-shadow: var(--shadow-glow);
}

.hero-card-float {
    position: absolute;
    bottom: 20px;
    left: -20px;
    z-index: 2;
    padding: 16px 20px;
    background: hsl(var(--card) / 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.hero-card-float .float-label {
    display: block;
    font-size: 11px;
    color: hsl(var(--muted-foreground));
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.hero-card-float strong {
    font-size: 15px;
}

/* Marquee */
.marquee-wrap {
    margin-top: 60px;
    overflow: hidden;
    border-top: 1px solid hsl(var(--border));
    border-bottom: 1px solid hsl(var(--border));
    padding: 16px 0;
    background: hsl(var(--card) / 0.3);
}

.marquee {
    display: flex;
    gap: 0;
    animation: marquee 25s linear infinite;
    white-space: nowrap;
}

.marquee span {
    font-size: 14px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
    padding-right: 40px;
    flex-shrink: 0;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ===============================
   ABOUT
================================= */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text p {
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-card {
    padding: 28px 24px;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.stat-number {
    display: block;
    font-size: 32px;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

/* ===============================
   SKILLS
================================= */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-card {
    padding: 32px 28px;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 4px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-aurora);
    opacity: 0;
    transition: var(--transition);
}

.skill-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.skill-card:hover::before {
    opacity: 1;
}

.skill-card>* {
    position: relative;
    z-index: 1;
}

.skill-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--muted));
    border-radius: 12px;
    margin-bottom: 20px;
    padding: 10px;
}

.skill-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.skill-card p {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
    line-height: 1.6;
}

.skill-link {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--primary));
    transition: var(--transition);
}

.skill-link:hover {
    color: hsl(var(--accent));
}

/* ===============================
   PROJECTS
================================= */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-6px);
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: hsl(var(--primary));
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-body h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.project-date {
    font-size: 13px;
    font-weight: 600;
    color: hsl(var(--primary));
    margin-bottom: 12px;
}

.project-body>p:not(.project-date) {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.project-tags span {
    padding: 4px 10px;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 50px;
    font-size: 11px;
    font-weight: 500;
    color: hsl(var(--muted-foreground));
}


/* ==========================================
   WHY ME SECTION
========================================== */


.why-grid {


    display: grid;


    grid-template-columns:
        repeat(3, 1fr);


    gap: 24px;

}



.why-card {


    padding: 32px 28px;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 5px);
    transition: var(--transition);
    position: relative;
    overflow: hidden;

}



.why-card::before {


    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-aurora);
    opacity: 0;
    transition: var(--transition);
}



.why-card:hover::before {


    opacity: 1;

}



.why-card:hover {


    border-color: hsl(var(--primary) / 0.4);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);

}



.why-card>* {

    position: relative;
    z-index: 1;

}



.why-icon {


    width: 50px;


    height: 50px;


    display: flex;


    align-items: center;


    justify-content: center;


    border-radius:
        18px;


    background:
        var(--gradient-primary);


    color: rgb(231, 221, 221);


    font-size: 18px;


    margin-bottom: 25px;

}



.why-card h3 {


    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;

}



.why-card p {


    font-size: 14px;
    color: hsl(var(--muted-foreground));
    margin-bottom: 16px;
    line-height: 1.6;


}



/* ===============================
   CTA
================================= */
.cta-section {
    position: relative;
    z-index: 1;
    padding: 80px 0;
}

.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: calc(var(--radius) + 8px);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gradient-aurora);
    opacity: 0.5;
}

.cta-card>* {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-card>p {
    color: hsl(var(--muted-foreground));
    max-width: 520px;
    margin: 0 auto 32px;
    font-size: 16px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
    opacity: 0.7;
}

/* ===============================
   FOOTER
================================= */

.footer {
    position: relative;
    z-index: 1;
    padding: 80px 0 32px;
    border-top: 1px solid hsl(var(--border));
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: hsl(var(--muted-foreground));
    font-size: 14px;
    margin-top: 16px;
    max-width: 400px;
    width: 100%;
    line-height: 2;
}

.footer-links h4,
.footer-contact h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    transition: color .3s ease, transform .3s ease;
}

.footer-links a:hover {
    color: hsl(var(--primary));
    transform: translateX(4px);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 24px;

    width: fit-content;

    font-size: 15px;
    font-weight: 500;

    color: hsl(var(--muted-foreground));

    margin-bottom: 20px;

    text-decoration: none;

    transition: color .3s ease, transform .3s ease;
}

.footer-contact a:hover {
    color: hsl(var(--primary));
    transform: translateX(5px);
}

.footer-contact a i {
    width: 24px;
    min-width: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;

    /* color: hsl(var(--primary)); */
     color: #d8cfcf !important;

    transition: color .3s ease, transform .3s ease;
}

.footer-contact a:hover i {
    color: hsl(var(--accent));
    transform: scale(1.15);
}


.footer-location {
    display: flex;
    align-items: center;
    gap: 20px;

    font-size: 18px !important;
    font-weight: 500;

    color: hsl(var(--muted-foreground)) !important;

    transition: color .3s ease, transform .3s ease;
}

.footer-location i {
    width: 24px;
    min-width: 24px;

    font-size: 18px;

    color: #d9cece !important;
}

.footer-location span {
    font-size: 15px !important;
    color: hsl(var(--muted-foreground));
}

.footer-location:hover {
    color: hsl(var(--primary)) !important;
    transform: translateX(5px);
}

.footer-location:hover span {
    color: hsl(var(--primary));
}

.footer-location:hover i {
    color: hsl(var(--accent));
    transform: scale(1.15);
}

.social-icons {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: hsl(var(--muted));
    border: 1px solid hsl(var(--border));
    border-radius: 10px;
    transition: var(--transition);
}

.social-icons a:hover {
    border-color: hsl(var(--primary));
    background: hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

.social-icons img {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid hsl(var(--border));
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: hsl(var(--muted-foreground));
}

/* ===============================
   SCROLL ANIMATIONS
================================= */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   CONTACT SECTION
========================================== */

.contact-section {
    padding: 120px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 32px;
    align-items: start;
    margin-top: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 20px;
    transition: all .35s ease;
    box-shadow: var(--shadow-card);
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: hsl(var(--primary));
    box-shadow: var(--shadow-card-hover);
}

.contact-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 16px;

    background: var(--gradient-primary);

    color: #fff;

    font-size: 18px;

    transition: .35s;
}

.contact-item:hover .contact-icon {
    transform: rotate(-8deg) scale(1.08);
}

.contact-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
    font-weight: 600;
}

.contact-item a,
.contact-item p {
    /* color: hsl(var(--muted-foreground)); */
    font-size: 13px;
    line-height: 1.5;
    text-decoration: none;
}

.contact-item a:hover {
    color: hsl(var(--primary));
}


.contact-form {
    background: var(--gradient-card);
    border: 1px solid hsl(var(--border));
    border-radius: 24px;
    padding: 32px;
    box-shadow: var(--shadow-card);

    overflow: hidden;
    isolation: isolate;
    backface-visibility: hidden;
    transform: translateZ(0);

    transition:
        background .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px 17px;
    margin-bottom: 16px;

    border-radius: 14px;

    border: 1.5px solid hsl(var(--border));

    background: hsl(var(--secondary));

    color: hsl(var(--foreground));

    font-family: inherit;

    outline: none;

    transition: .3s;

}

.contact-form textarea {
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: hsl(var(--primary));
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.25);
}


.send-btn {
    width: 100%;
}



/* =================================
   PREMIUM CURSOR
================================= */


.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background: #7c3aed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
}

.cursor-ring {
    position: fixed;
    width: 35px;
    height: 35px;
    border: 1.5px solid rgba(124, 58, 237, .6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    backdrop-filter: blur(4px);
    transition:
        width .2s ease,
        height .2s ease,
        border-color .2s ease;
}

/* =================================
   MOUSE GLOW
================================= */

.mouse-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    background:
        radial-gradient(circle,
            rgba(124, 58, 237, .18) 0%,
            rgba(6, 182, 212, .12) 35%,
            transparent 70%);
    pointer-events: none;
    z-index: 0;
    filter: blur(70px);
    transform: translate(-50%, -50%);
}

/* =================================
   PREMIUM BACKGROUND
================================= */

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;

    background:
        radial-gradient(circle at 20% 20%,
            rgba(124, 58, 237, .12),
            transparent 30%),

        radial-gradient(circle at 80% 30%,
            rgba(0, 255, 255, .08),
            transparent 30%),

        radial-gradient(circle at 50% 90%,
            rgba(255, 0, 128, .08),
            transparent 30%);

    animation: premiumMove 15s linear infinite alternate;
}

@keyframes premiumMove {

    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.2);
    }
}

/* =================================
   GLASS EFFECT
================================= */

.skill-card,
.project-card,
.why-card,
.stat-card,
.contact-form,
.contact-item {

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    background:
        rgba(255, 255, 255, .03);

}

/* =================================
   PREMIUM BORDER GLOW
================================= */

.project-card:hover,
.why-card:hover,
.stat-card:hover,
.contact-form:hover {

    box-shadow:
        0 0 25px rgba(124, 58, 237, .25),
        0 0 60px rgba(6, 182, 212, .12);

}

/* =================================
   SCROLLBAR
================================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg,
            #7c3aed,
            #06b6d4);
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg,
            #9333ea,
            #22d3ee);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {

    outline: 2px solid hsl(var(--primary));

    outline-offset: 3px;

}

/* ==========================================
   RESPONSIVE SYSTEM
   Small Phone   : 320–375px
   Modern Phone  : 390–430px
   Tablet        : 768–1024px
   Laptop        : 1280–1440px
   Desktop       : 1440–1920px
   Large Monitor : 2560px+
========================================== */


/* ==========================================
   LARGE MONITOR
   2560px+
========================================== */
@media (min-width: 2560px) {

    .container {
        width: 90%;
        max-width: 1800px;
    }

    .section {
        padding: 140px 0;
    }

    .hero {
        min-height: 100vh;
        padding: 160px 0 100px;
    }

    .hero-container,
    .about-grid {
        gap: 100px;
    }

    .hero-content h1 {
        font-size: clamp(58px, 4vw, 82px);
    }

    .hero-desc {
        font-size: 20px;
        max-width: 680px;
    }

    .hero-tags {
        font-size: 15px;
    }

    .hero-image {
        max-width: 600px;
    }

    .hero-card-float {
        padding: 20px 26px;
    }

    .section-header {
        margin-bottom: 80px;
    }

    .section-header h2 {
        font-size: 52px;
    }

    .section-subtitle {
        font-size: 19px;
        max-width: 700px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        gap: 32px;
    }

    .skill-card,
    .project-body,
    .why-card {
        padding: 40px 36px;
    }

    .skill-card h3,
    .why-card h3 {
        font-size: 21px;
    }

    .skill-card p,
    .why-card p {
        font-size: 16px;
    }

    .project-body h3 {
        font-size: 23px;
    }

    .contact-grid {
        grid-template-columns: 400px 1fr;
        gap: 50px;
    }

    .contact-form {
        padding: 42px;
    }

    .footer {
        padding-top: 110px;
    }

}


/* ==========================================
   LARGE DESKTOP
   1921px – 2559px
========================================== */
@media (min-width: 1921px) and (max-width: 2559px) {

    .container {
        width: 92%;
        max-width: 1700px;
    }

    .section {
        padding: 120px 0;
    }

    .hero {
        padding: 150px 0 90px;
    }

    .hero-container,
    .about-grid {
        gap: 80px;
    }

    .hero-content h1 {
        font-size: clamp(56px, 4vw, 72px);
    }

    .hero-desc {
        font-size: 19px;
        max-width: 620px;
    }

    .hero-image {
        max-width: 520px;
    }

    .section-header h2 {
        font-size: 48px;
    }

}


/* ==========================================
   DESKTOP
   1440px – 1920px
========================================== */
@media (min-width: 1440px) and (max-width: 1920px) {

    .container {
        width: 92%;
        max-width: 1500px;
    }

    .section {
        padding: 110px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-container,
    .about-grid {
        gap: 70px;
    }

    .hero-content h1 {
        font-size: clamp(52px, 4vw, 68px);
    }

    .hero-desc {
        font-size: 18px;
    }

    .hero-image {
        max-width: 480px;
    }

    .section-header {
        margin-bottom: 65px;
    }

    .section-header h2 {
        font-size: 46px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        gap: 28px;
    }

}


/* ==========================================
   LAPTOP
   1280px – 1439px
========================================== */
@media (min-width: 1280px) and (max-width: 1439px) {

    .container {
        width: 92%;
        max-width: 1250px;
    }

    .section {
        padding: 100px 0;
    }

    .hero {
        min-height: 100vh;
        padding: 130px 0 70px;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 55px;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 55px;
    }

    .hero-content h1 {
        font-size: clamp(46px, 4.5vw, 60px);
    }

    .hero-desc {
        font-size: 17px;
    }

    .hero-image {
        max-width: 430px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 22px;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 40px;
    }

}


/* ==========================================
   TABLET
   768px – 1024px
========================================== */
@media (min-width: 768px) and (max-width: 1024px) {

    .container {
        width: 92%;
        max-width: 900px;
    }

    .mobile-cta {
        display: block;
        margin-top: 12px;
    }

    .mobile-cta .btn {
        width: 100%;
        justify-content: center;
        color: white;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
        margin-right: 10px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 25px;
        gap: 18px;
        background: hsl(var(--background) / .96);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid hsl(var(--border));
    }

    .section {
        padding: 85px 0;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrap {
        order: 2;
    }

    .hero-desc {
        margin-inline: auto;
        max-width: 650px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-card-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: 55px 40px;
    }

    .cursor-dot,
    .cursor-ring,
    .mouse-glow {
        display: none !important;
    }

    .footer-location,
    .footer-location span {
        font-size: 16px !important;
    }

    .footer-location i {
        font-size: 18px;
    }

}


/* ==========================================
   MODERN PHONE
   390px – 767px
========================================== */
@media (min-width: 390px) and (max-width: 767px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .section-header h2 {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    /* Navbar */

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 22px;
        gap: 16px;
        background: hsl(var(--background) / .97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid hsl(var(--border));
    }

    /* Hero */

    .hero {
        min-height: auto;
        padding: 120px 0 70px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrap {
        order: 2;
    }

    .hero h1 {
        font-size: clamp(36px, 9vw, 44px);
        line-height: 1.15;
    }

    .hero-desc {
        font-size: 15px;
        margin-inline: auto;
    }

    .hero-tags {
        font-size: 12px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-card-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        white-space: nowrap;
    }

    /* Grids */

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Contact */

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        margin-top: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 25px;
    }

    .contact-item {
        padding: 18px;
    }

    /* CTA */

    .cta-card {
        padding: 40px 24px;
    }

    /* Performance */

    body::before {
        display: none;
        animation: none;
    }

    .bg-grid,
    .bg-glow,
    .hero-image-glow,
    .mouse-glow,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .skill-card,
    .project-card,
    .why-card,
    .stat-card,
    .contact-form,
    .contact-item,
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .skill-card:hover,
    .project-card:hover,
    .why-card:hover,
    .stat-card:hover,
    .contact-form:hover {
        box-shadow: none;
        transform: none;
    }

    .marquee,
    .badge-dot {
        animation: none;
    }

}


/* ==========================================
   SMALL PHONE
   320px – 389px
========================================== */
@media (max-width: 389px) {

    .container {
        width: 94%;
    }

    .section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    /* Navbar */

    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-actions {
        margin-left: auto;
        gap: 8px;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        padding: 20px;
        gap: 15px;
        background: hsl(var(--background) / .97);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid hsl(var(--border));
    }

    /* Hero */

    .hero {
        min-height: auto;
        padding: 110px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 42px;
        text-align: center;
    }

    .hero h1 {
        font-size: clamp(30px, 9vw, 36px);
        line-height: 1.18;
    }

    .hero-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .hero-tags {
        font-size: 11px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 13px 20px;
    }

    .hero-image {
        width: 100%;
        max-width: 340px;
        margin: 0 auto;
    }

    .hero-card-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        padding: 13px 16px;
        white-space: nowrap;
    }

    .hero-card-float .float-label {
        font-size: 11px;
        letter-spacing: 1px;
    }

    .hero-card-float strong {
        font-size: 13px;
    }

    /* Stats */

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .stat-card {
        padding: 22px;
    }

    /* Cards */

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .skill-card,
    .project-body,
    .why-card {
        padding: 22px;
    }

    /* Contact */

    .contact-section {
        padding: 80px 0;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 40px;
    }

    .contact-form {
        padding: 18px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        margin: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* CTA */

    .cta-card {
        padding: 30px 18px;
    }

    .cta-card h2 {
        font-size: 26px;
    }

    /* Footer */

    .footer {
        padding: 55px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: left;
        gap: 28px;
    }

    /* Performance */

    body::before {
        display: none;
        animation: none;
    }

    .bg-grid,
    .bg-glow,
    .hero-image-glow,
    .mouse-glow,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .skill-card,
    .project-card,
    .why-card,
    .stat-card,
    .contact-form,
    .contact-item,
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .skill-card:hover,
    .project-card:hover,
    .why-card:hover,
    .stat-card:hover,
    .contact-form:hover {
        box-shadow: none;
        transform: none;
    }

    .marquee,
    .badge-dot {
        animation: none;
    }

}


/* ==========================================
   EXTRA SAFETY
========================================== */

/* Prevent horizontal overflow */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

/* Prevent grid children from causing overflow */
.hero-container>*,
.about-grid>*,
.skills-grid>*,
.projects-grid>*,
.why-grid>*,
.contact-grid>*,
.footer-grid>* {
    min-width: 0;
}

/* Better mobile image behavior */
@media (max-width: 767px) {

    img {
        height: auto;
    }

}


@media(prefers-reduced-motion:reduce) {

    * {

        animation: none !important;

        transition: none !important;

        scroll-behavior: auto;

    }
}


/* =========================================================
   FINAL RESPONSIVE OVERRIDE
   Safe + Overflow Protected
   Small Phone : 320–389
   Modern Phone: 390–767
   Tablet      : 768–1024
   Laptop      : 1280–1439
   Desktop     : 1440–1920
   Large       : 1921–2559
   2K/4K       : 2560+
========================================================= */


/* =========================================================
   GLOBAL OVERFLOW PROTECTION
========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    max-width: 100%;
}

.container {
    width: min(92%, 1200px);
    margin-inline: auto;
}

.hero-container,
.about-grid,
.skills-grid,
.projects-grid,
.why-grid,
.contact-grid,
.footer-grid {
    width: 100%;
}

.hero-container>*,
.about-grid>*,
.skills-grid>*,
.projects-grid>*,
.why-grid>*,
.contact-grid>*,
.footer-grid>* {
    min-width: 0;
}


/* =========================================================
   LARGE MONITOR — 2560px+
========================================================= */

@media (min-width: 2560px) {

    .container {
        width: 90%;
        max-width: 1800px;
    }

    .section {
        padding: 140px 0;
    }

    .hero {
        padding: 170px 0 100px;
    }

    .hero-container,
    .about-grid {
        gap: 100px;
    }

    .hero-content h1 {
        font-size: clamp(60px, 4vw, 82px);
    }

    .hero-desc {
        font-size: 20px;
        max-width: 700px;
    }

    .hero-image {
        max-width: 600px;
    }

    .section-header h2 {
        font-size: 54px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        gap: 32px;
    }

    .skill-card,
    .why-card {
        padding: 40px 36px;
    }

    .contact-grid {
        grid-template-columns: 400px minmax(0, 1fr);
        gap: 50px;
    }
}


/* =========================================================
   LARGE DESKTOP — 1921px to 2559px
========================================================= */

@media (min-width: 1921px) and (max-width: 2559px) {

    .container {
        width: 92%;
        max-width: 1700px;
    }

    .section {
        padding: 125px 0;
    }

    .hero {
        padding: 150px 0 90px;
    }

    .hero-container,
    .about-grid {
        gap: 80px;
    }

    .hero-content h1 {
        font-size: clamp(56px, 4vw, 72px);
    }

    .hero-image {
        max-width: 540px;
    }

    .section-header h2 {
        font-size: 50px;
    }
}


/* =========================================================
   DESKTOP — 1440px to 1920px
========================================================= */

@media (min-width: 1440px) and (max-width: 1920px) {

    .container {
        width: 92%;
        max-width: 1500px;
    }

    .section {
        padding: 110px 0;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-container,
    .about-grid {
        gap: 70px;
    }

    .hero-content h1 {
        font-size: clamp(50px, 4vw, 68px);
    }

    .hero-image {
        max-width: 500px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        gap: 26px;
    }

    .contact-grid {
        grid-template-columns: 360px minmax(0, 1fr);
    }
}


/* =========================================================
   LAPTOP — 1280px to 1439px
========================================================= */

@media (min-width: 1280px) and (max-width: 1439px) {

    .container {
        width: 92%;
        max-width: 1250px;
    }

    .section {
        padding: 100px 0;
    }

    .hero {
        min-height: 100vh;
        padding: 130px 0 70px;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 55px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 55px;
    }

    .hero-content h1 {
        font-size: clamp(44px, 4.5vw, 60px);
    }

    .hero-desc {
        font-size: 17px;
    }

    .hero-image {
        max-width: 430px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 22px;
    }

    .footer-grid {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
    }
}


/* =========================================================
   MID DESKTOP / LAPTOP — 1025px to 1279px
========================================================= */

@media (min-width: 1025px) and (max-width: 1279px) {

    .container {
        width: 92%;
        max-width: 1150px;
    }

    .section {
        padding: 90px 0;
    }

    .hero {
        padding: 125px 0 70px;
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 45px;
    }

    .about-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 45px;
    }

    .hero-content h1 {
        font-size: clamp(42px, 5vw, 55px);
    }

    .hero-image {
        max-width: 390px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 18px;
    }

    .contact-grid {
        grid-template-columns: 320px minmax(0, 1fr);
    }
}


/* =========================================================
   TABLET — 768px to 1024px
========================================================= */

@media (min-width: 768px) and (max-width: 1024px) {

    .container {
        width: 92%;
        max-width: 900px;
    }

    .section {
        padding: 80px 0;
    }

    .hero {
        min-height: auto;
        padding: 130px 0 80px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 55px;
    }

    .hero-content {
        order: 1;
    }

    .hero-image-wrap {
        order: 2;
        width: 100%;
    }

    .hero-desc {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 420px;
        margin-inline: auto;
    }

    .hero-card-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        max-width: calc(100% - 30px);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .form-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .cursor-dot,
    .cursor-ring,
    .mouse-glow {
        display: none !important;
    }
}


/* =========================================================
   MOBILE — 390px to 767px
========================================================= */

@media (min-width: 390px) and (max-width: 767px) {

    .container {
        width: 92%;
    }

    .section {
        padding: 70px 0;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 70px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .hero-content {
        order: 1;
        width: 100%;
    }

    .hero-image-wrap {
        order: 2;
        width: 100%;
        min-width: 0;
    }

    .hero h1 {
        font-size: clamp(36px, 9vw, 44px);
        line-height: 1.15;
    }

    .hero-desc {
        font-size: 15px;
        margin-inline: auto;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }

    .hero-image {
        width: 100%;
        max-width: 400px;
        margin-inline: auto;
    }

    .hero-card-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        max-width: calc(100% - 20px);
        white-space: nowrap;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 24px;
        margin-top: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 24px;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    body::before {
        display: none;
        animation: none;
    }

    .bg-grid,
    .bg-glow,
    .hero-image-glow,
    .mouse-glow,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .skill-card,
    .project-card,
    .why-card,
    .stat-card,
    .contact-form,
    .contact-item,
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .skill-card:hover,
    .project-card:hover,
    .why-card:hover,
    .stat-card:hover,
    .contact-form:hover {
        transform: none;
        box-shadow: none;
    }

    .marquee,
    .badge-dot {
        animation: none;
    }
}


/* =========================================================
   SMALL PHONE — 320px to 389px
========================================================= */

@media (max-width: 389px) {

    .container {
        width: 94%;
    }

    .section {
        padding: 60px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .hero {
        padding: 110px 0 60px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(30px, 9vw, 36px);
        line-height: 1.18;
    }

    .hero-desc {
        font-size: 14px;
    }

    .hero-tags {
        font-size: 11px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        padding: 13px 18px;
    }

    .hero-image-wrap {
        width: 100%;
        min-width: 0;
    }

    .hero-image {
        width: 100%;
        max-width: 340px;
        margin-inline: auto;
    }

    .hero-card-float {
        left: 50%;
        transform: translateX(-50%);
        bottom: -15px;
        padding: 12px 15px;
        max-width: calc(100% - 16px);
        white-space: nowrap;
    }

    .hero-card-float .float-label {
        font-size: 10px;
        letter-spacing: 1px;
    }

    .hero-card-float strong {
        font-size: 13px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid,
    .projects-grid,
    .why-grid {
        grid-template-columns: 1fr;
    }

    .skill-card,
    .project-body,
    .why-card {
        padding: 22px;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
        margin-top: 35px;
    }

    .contact-form {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        padding: 18px;
    }

    .contact-icon {
        margin-inline: auto;
        width: 46px;
        height: 46px;
        min-width: 46px;
    }

    .cta-card {
        padding: 30px 18px;
    }

    .cta-card h2 {
        font-size: 26px;
    }

    .footer {
        padding: 55px 0 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    body::before {
        display: none;
        animation: none;
    }

    .bg-grid,
    .bg-glow,
    .hero-image-glow,
    .mouse-glow,
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }

    .skill-card,
    .project-card,
    .why-card,
    .stat-card,
    .contact-form,
    .contact-item,
    .navbar.scrolled {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .skill-card:hover,
    .project-card:hover,
    .why-card:hover,
    .stat-card:hover,
    .contact-form:hover {
        transform: none;
        box-shadow: none;
    }

    .marquee,
    .badge-dot {
        animation: none;
    }
}


/* =========================================================
   EXTRA CUT/OVERFLOW FIX
========================================================= */

.hero,
.section,
.cta-section,
.footer {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-image-wrap,
.project-image,
.contact-form,
.cta-card {
    max-width: 100%;
}

.project-image img,
.hero-image,
.logo-img {
    max-width: 100%;
}

.project-body,
.contact-form,
.footer-brand,
.footer-links,
.footer-contact {
    overflow-wrap: anywhere;
    word-break: normal;
}


/* =========================================================
   MOBILE SAFETY
========================================================= */

@media (max-width: 767px) {

    .project-card,
    .skill-card,
    .why-card,
    .stat-card,
    .contact-item,
    .contact-form {
        width: 100%;
        max-width: 100%;
    }

    .project-tags,
    .hero-actions,
    .cta-actions,
    .social-icons {
        max-width: 100%;
    }

    .project-tags span {
        max-width: 100%;
    }

}


/* ==========================================
   MOBILE NAV CTA FIX
   320px – 767px
========================================== */

@media (max-width: 767px) {

    .mobile-cta {
        display: block !important;
        width: 50%;
        margin-top: 6px;
    }

    .mobile-cta .btn {
        display: flex;
        width: 100%;
        justify-content: center;
        align-items: center;
        text-align: center;
        color: #fff;
    }

    .nav-links.open .mobile-cta {
        display: block !important;
    }

}
