/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

   /* My Own Css Foer Custom Floating BAck */
/* ============================= */
/* Spotify Style Music Player */
/* ============================= */

.music-player {
    width: 100%;
    max-width: 420px;
    margin: 30px auto 0;
    padding: 20px;
    border-radius: 24px;

    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

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

    box-shadow:
        0 18px 45px rgba(15, 23, 42, 0.22),
        0 0 35px rgba(37, 99, 235, 0.15);

    transition: all 0.35s ease;
}

.music-player:hover {
    transform: translateY(-5px);

    box-shadow:
        0 25px 55px rgba(15, 23, 42, 0.28),
        0 0 50px rgba(37, 99, 235, 0.20);
}

/* Top section */

.music-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* Album */

.album-cover {
    width: 58px;
    height: 58px;
    min-width: 58px;

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

    border-radius: 15px;

    background: linear-gradient(
        135deg,
        #2563eb,
        #60a5fa
    );

    color: white;
    font-size: 22px;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.35);
}

/* Song information */

.song-details {
    flex: 1;
    min-width: 0;
}

.song-details h3 {
    margin: 0;

    font-size: 15px;
    font-weight: 700;

    color: #0f172a;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-details p {
    margin: 5px 0 0;

    font-size: 12px;
    color: #64748b;
}

/* Like button */

.music-like {
    border: none;
    background: transparent;

    color: #475569;

    font-size: 18px;

    cursor: pointer;

    transition: 0.25s ease;
}

.music-like:hover {
    color: #2563eb;
    transform: scale(1.15);
}

.music-like.liked {
    color: #2563eb;
}

/* Progress */

.music-progress {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 20px;
}

.music-progress span {
    min-width: 32px;

    font-size: 10px;
    color: #64748b;
}

.music-progress span:last-child {
    text-align: right;
}

/* Range */

.music-player input[type="range"] {
    height: 4px;

    appearance: none;
    -webkit-appearance: none;

    border-radius: 20px;

    background: rgba(15, 23, 42, 0.15);

    cursor: pointer;
}

#progressBar {
    flex: 1;
}

/* Range thumb */

.music-player input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background: #2563eb;

    box-shadow:
        0 0 10px rgba(37, 99, 235, 0.45);

    cursor: pointer;
}

/* Firefox */

.music-player input[type="range"]::-moz-range-thumb {
    width: 12px;
    height: 12px;

    border: none;
    border-radius: 50%;

    background: #2563eb;

    cursor: pointer;
}

/* Controls */

.music-controls {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 22px;

    margin-top: 18px;
}

.music-controls button {
    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    color: #334155;

    cursor: pointer;

    transition: all 0.25s ease;
}

.music-controls button:hover {
    color: #2563eb;
    transform: scale(1.12);
}

/* Main play button */

.music-controls .play-btn {
    width: 48px;
    height: 48px;

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

    border-radius: 50%;

    background: #2563eb;
    color: white;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.35);
}

.music-controls .play-btn:hover {
    background: #1d4ed8;
    color: white;

    transform: scale(1.08);
}

/* Active buttons */

.music-controls button.active {
    color: #2563eb;
}

/* Volume */

.volume-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 8px;

    margin-top: 12px;

    color: #64748b;

    font-size: 11px;
}

#volumeBar {
    width: 80px;
}

/* Mobile */

@media (max-width: 768px) {

    .music-player {
        max-width: 100%;
        margin-top: 25px;
        padding: 16px;
    }

    .music-controls {
        gap: 15px;
    }
}
/* }   Up THE Music Player css */
   .pix
   {
font-size: 20px;

   }
   .imgg:hover
   {
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.25);
   }

body
{
   
}
   /*  */
   
   
    .image-box {
    width: 100%;
    max-width: 600px;
    height: auto;
    overflow: hidden;
}

.image-box  {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 20px;

}

.image-box:hover {
  transform: translateY(-10px);
       box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(37, 99, 235, 0.35),
        0 0 60px rgba(37, 99, 235, 0.18);
}
   
.log
{
    border-radius: 50%;
}
#same
{
    width: 100%;
    max-width: 500px;
    height: auto;
    aspect-ratio: 1 / 1;
    
}
/* #hell:hov
{
    transform: scale(1.1);
} */

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --bg: linear-gradient(
    120deg,
    #FFFDE7 0%,
    #FFFBD0 25%,
    #FFFDE7 0%,
    #FFFBD0 75%,
    #FFFDE7 100%
);


    --bg-light: 
    --bg-card: rgba(255, 255, 255, 0.8);
    --text: #1e293b;
    --text-heading: #0f172a;
    --text-muted: #64748b;
    --border: 
    --white: #ffffff;
    --error: #ef4444;
    --success: #10b981;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 32px rgba(0,0,0,0.1);
    --shadow-xl: 0 24px 48px rgba(0,0,0,0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
     
}
h1,h2,h3,h4,h5,h6 { font-family: var(--font-heading); color: var(--text-heading); line-height: 1.25; }
a { text-decoration: none; color: var(--primary); transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;  }
.section { padding: 6rem 0; }
.bg-light { background: var(--bg-light); }
.highlight { color: var(--primary); }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    background: rgba(37,99,235,0.08);
    padding: 0.4rem 1.2rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}
.section-title { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; }
.underline {
    width: 60px; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    margin: 0 auto;
    border-radius: var(--radius-full);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600; font-family: var(--font-heading); font-size: 0.95rem;
    cursor: pointer; border: none;
    transition: var(--transition);
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 15px var(--primary-glow);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: var(--white);
}
.btn-glass {
    background: rgba(37,99,235,0.08);
    color: var(--primary);
    border: 1.5px solid rgba(37,99,235,0.2);
    backdrop-filter: blur(10px);
}
.btn-glass:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    border-color: var(--primary);
}
.btn-outline-w {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.6);
}
.btn-outline-w:hover { background: var(--white); color: var(--text-heading); }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   FLOATING TECH ICONS BACKGROUND
   ============================================================ */
.floating-icons {
    position: fixed; top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0; pointer-events: none; overflow: hidden;
}
.floating-icon {
    position: absolute;
    font-size: 1.8rem;
    pointer-events: none;
    will-change: transform;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.fi-blue   { color: rgba(37,99,235,0.07); }
.fi-purple { color: rgba(139,92,246,0.06); }
.fi-teal   { color: rgba(20,184,166,0.06); }
.fi-rose   { color: rgba(244,63,94,0.05); }
.fi-amber  { color: rgba(245,158,11,0.06); }

@keyframes fi-float   { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-35px) rotate(8deg)} }
@keyframes fi-drift   { 0%,100%{transform:translate(0,0) rotate(0)} 33%{transform:translate(25px,-20px) rotate(6deg)} 66%{transform:translate(-15px,-30px) rotate(-4deg)} }
@keyframes fi-spin    { 0%{transform:translateY(0) rotate(0)} 50%{transform:translateY(-20px) rotate(180deg)} 100%{transform:translateY(0) rotate(360deg)} }
@keyframes fi-pulse   { 0%,100%{transform:scale(1) translateY(0);opacity:.5} 50%{transform:scale(1.25) translateY(-25px);opacity:1} }
@keyframes fi-diag    { 0%,100%{transform:translate(0,0)} 25%{transform:translate(20px,-30px)} 50%{transform:translate(-10px,-45px)} 75%{transform:translate(15px,-15px)} }

/* ============================================================
   NAVBAR
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.25rem 0;
    transition: var(--transition);
}
.header.scrolled {
    padding: 0.75rem 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 20px rgba(0,0,0,0.06);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.75rem; font-weight: 800; color: var(--text-heading); }
.logo img { max-height: 50px; width: auto; }
.logo span { color: var(--primary); }
.nav-list { display: flex; gap: 2rem; }
.nav-link {
    color: var(--text); font-weight: 500; font-size: 1rem;
    position: relative; padding: 0.25rem 0;
}
.nav-link::after {
    content: ''; position: absolute;
    bottom: -2px; left: 50%; width: 0; height: 2.5px;
    background: var(--primary); border-radius: 2px;
    transform: translateX(-50%);
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger */
.menu-toggle {
    display: none; cursor: pointer;
    width: 32px; height: 32px;
    background: none; border: none;
    position: relative; z-index: 1001;
}
.hamburger, .hamburger::before, .hamburger::after {
    display: block; width: 24px; height: 2px;
    background: var(--text-heading);
    border-radius: 2px;
    transition: var(--transition);
}
.hamburger { position: relative; }
.hamburger::before, .hamburger::after { content: ''; position: absolute; left: 0; }
.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }
.menu-toggle.active .hamburger { background: transparent; }
.menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    position: relative; padding-top: 6rem; overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.shape {
    position: absolute; border-radius: 50%;
    filter: blur(80px);
    animation: shapeFloat 8s ease-in-out infinite;
}
.shape-1 {
    width: 500px; height: 500px;
    background: rgba(37,99,235,0.08);
    top: -10%; right: -5%;
}
.shape-2 {
    width: 400px; height: 400px;
    background: rgba(139,92,246,0.06);
    bottom: -10%; left: -5%;
    animation-delay: -3s;
}
.shape-3 {
    width: 300px; height: 300px;
    background: rgba(20,184,166,0.05);
    top: 40%; left: 30%;
    animation-delay: -5s;
}
@keyframes shapeFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    33% { transform: translate(30px,-20px) scale(1.05); }
    66% { transform: translate(-20px,15px) scale(0.95); }
}

.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 3rem; align-items: center;
}
.hero-badge {
    display: inline-block;
    font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 2px;
    color: var(--primary);
    background: rgba(37,99,235,0.08);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    margin-bottom: 1rem;
}
.hero-name { font-size: 3.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.hero-title { font-size: 1.35rem; font-weight: 500; color: var(--text-muted); margin-bottom: 1.25rem; }
.hero-tagline { font-size: 1.15rem; margin-bottom: 2rem; }
.typing { font-weight: 700; color: var(--primary); }
.cursor {
    display: inline-block; color: var(--primary); font-weight: 300;
    animation: blink 1s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-btns { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }

.hero-socials { display: flex; gap: 0.75rem; }
.hero-socials a {
    width: 42px; height: 42px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--text);
    font-size: 1.15rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.hero-socials a:hover {
    background: var(--primary); color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 6px 20px var(--primary-glow);
    border-color: var(--primary);
}

/* Profile image + orbit */
.hero-image { position: relative; display: flex; justify-content: center; align-items: center; }
.image-ring {
    width: 100%;
    max-width: 360px; height: auto; aspect-ratio: 1 / 1;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), #8b5cf6, var(--primary));
    background-size: 300% 300%;
    animation: ringGradient 4s ease infinite;
    position: relative;
}
@keyframes ringGradient {
    0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%}
}
.image-placeholder {
    width: 100%; height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted);
    border: 6px solid var(--white);
}
.image-placeholder i { font-size: 4rem; margin-bottom: 0.75rem; color: var(--primary-light); }
.image-placeholder span { font-size: 0.9rem; font-weight: 500; }

/* Orbiting icons */
.orbit { position: absolute; width: 100%; max-width: 460px; height: auto; aspect-ratio: 1 / 1; animation: orbitSpin 20s linear infinite; }
.orbit-icon {
    position: absolute; width: 44px; height: 44px;
    background: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: var(--primary);
    box-shadow: var(--shadow-md);
    top: 50%; left: 50%;
    transform: rotate(calc(var(--i) * 60deg)) translateX(230px) rotate(calc(var(--i) * -60deg));
    animation: orbitCounterSpin 20s linear infinite;
}
@keyframes orbitSpin { to { transform: rotate(360deg); } }
@keyframes orbitCounterSpin { to { transform: rotate(calc(var(--i) * 60deg - 360deg)) translateX(230px) rotate(calc(var(--i) * -60deg + 360deg)); } }

/* Scroll indicator */
.scroll-indicator {
    position: absolute; bottom: 2rem;
    left: 50%; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
    color: var(--text-muted); font-size: 0.75rem; letter-spacing: 1px;
    animation: scrollBounce 2s ease-in-out infinite;
}
.mouse {
    width: 24px; height: 38px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    display: flex; justify-content: center; padding-top: 6px;
}
.wheel {
    width: 3px; height: 8px;
    background: var(--text-muted);
    border-radius: 2px;
    animation: scrollWheel 1.5s ease-in-out infinite;
}
@keyframes scrollWheel { 0%{opacity:1;transform:translateY(0)} 100%{opacity:0;transform:translateY(12px)} }
@keyframes scrollBounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 4rem; align-items: center;
}
.img-card { position: relative; }
.img-placeholder {
    width: 100%; height: 480px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-radius: var(--radius-lg);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted);
    box-shadow: var(--shadow-lg);
}
.img-placeholder i { font-size: 3.5rem; margin-bottom: 0.75rem; }
.experience-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--white);
}
.exp-number { font-size: 2rem; font-weight: 800; display: block; font-family: var(--font-heading); }
.exp-text { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; }

.about-content h3 { font-size: 1.6rem; margin-bottom: 1rem; }
.about-content p { color: var(--text-muted); margin-bottom: 1.25rem; }

.stats-row {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 1rem; margin: 2rem 0;
}
.stat-box {
    text-align: center;
    padding: 1.25rem 0.5rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}
.stat-box:hover {
    border-color: var(--primary-light);
    box-shadow: 0 4px 20px var(--primary-glow);
    transform: translateY(-4px);
}
.stat-num {
    font-size: 2rem; font-weight: 800;
    color: var(--primary); font-family: var(--font-heading);
    display: inline;
}
.stat-plus { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.stat-label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.25rem; font-weight: 500; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr));
    gap: 1.5rem;
}
.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.skill-card::before {
    content: '';
    position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.skill-card:hover::before { transform: scaleX(1); }
.skill-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(37, 99, 235, 0.35),
        0 0 60px rgba(37, 99, 235, 0.18);
    border-color: rgba(37,99,235,0.15);
    
}
.skill-icon-wrap {
    width: 60px; height: 60px;
    margin: 0 auto 1rem;
    background: rgba(37,99,235,0.08);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.75rem; color: var(--primary);
    transition: var(--transition);
}
.skill-card:hover .skill-icon-wrap {
    background: var(--primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.45),
        0 0 25px rgba(37, 99, 235, 0.35),
        0 0 60px rgba(37, 99, 235, 0.18);
}
.skill-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.progress-track {
    height: 6px;
    background: var(--bg-light);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.progress-fill {
    height: 100%; width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-full);
    transition: width 1.5s cubic-bezier(0.1,0.5,0.1,1);
}
.percent-text { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 1.75rem;
}
.project-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}
.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}
.project-thumb {
    height: 220px;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.project-thumb > i { font-size: 4rem; color: rgba(255,255,255,0.9); transition: var(--transition); }
.project-card:hover .project-thumb > i { transform: scale(1.15); }

.grad-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.grad-green  { background: linear-gradient(135deg, #10b981, #047857); }
.grad-purple { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.grad-amber  { background: linear-gradient(135deg, #f59e0b, #b45309); }
.grad-pink   { background: linear-gradient(135deg, #ec4899, #be185d); }
.grad-slate  { background: linear-gradient(135deg, #64748b, #334155); }

.project-overlay {
    position: absolute; inset: 0;
    background: rgba(15,23,42,0.85);
    display: flex; gap: 0.75rem;
    align-items: center; justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.project-card:hover .project-overlay { opacity: 1; }

.project-body { padding: 1.5rem; }
.project-body h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.project-body p {
    color: var(--text-muted); font-size: 0.9rem;
    margin-bottom: 1rem;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tags span {
    font-size: 0.75rem; font-weight: 500;
    padding: 0.2rem 0.65rem;
    background: rgba(37,99,235,0.06);
    color: var(--primary-dark);
    border-radius: var(--radius-full);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
    display: grid; grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}
.contact-info h3 { font-size: 1.6rem; margin-bottom: 0.75rem; }
.contact-info > p { color: var(--text-muted); margin-bottom: 2rem; }
.info-list { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.info-item { display: flex; align-items: flex-start; gap: 1rem; }
.info-icon {
    width: 48px; height: 48px;
    background: rgba(37,99,235,0.08);
    color: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
    transition: var(--transition);
}
.info-item:hover .info-icon {
    background: var(--primary); color: var(--white);
    transform: scale(1.1);
}
.info-item h4 { font-size: 1rem; margin-bottom: 0.15rem; }
.info-item p { color: var(--text-muted); font-size: 0.9rem; }
.contact-socials h4 { margin-bottom: 0.75rem; }

/* Form */
.contact-form {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.form-group { position: relative; margin-bottom: 1.5rem; }
.form-group input, .form-group textarea {
    width: 100%; padding: 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body); font-size: 0.95rem;
    background: var(--bg-light);
    transition: var(--transition);
    outline: none;
}
.form-group label {
    position: absolute; left: 1rem; top: 1rem;
    color: var(--text-muted); font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition);
    background: transparent;
    padding: 0 0.25rem;
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(37,99,235,0.08);
}
.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem; left: 0.75rem;
    font-size: 0.75rem; font-weight: 600;
    color: var(--primary);
    background: var(--white);
}
.error-msg {
    color: var(--error); font-size: 0.8rem; margin-top: 0.3rem;
    display: none;
}
.form-group.error input, .form-group.error textarea { border-color: var(--error); }
.form-group.error .error-msg { display: block; }
.form-success {
    background: rgba(16,185,129,0.08);
    color: var(--success); padding: 1rem;
    border-radius: var(--radius);
    margin-top: 1rem; text-align: center;
    font-weight: 500; display: none;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {  background: rgba(255, 253, 231, 0.45);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border-top: 1px solid rgba(255, 255, 255, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);

    box-shadow:
        0 -10px 30px rgba(234, 179, 8, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer .logo { color: var(--white); display: block; margin-bottom: 1rem; }
.footer-brand p { max-width: 320px; line-height: 1.7; }
.footer-links h4 { color: rgb(61, 117, 219); margin-bottom: 1.25rem; font-size: 1.1rem; }
.footer-links a { color:  rgb(61, 117, 219); display: block; padding: 0.3rem 0; transition: var(--transition); }
.footer-links a:hover { color: var(--primary-light); padding-left: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.5rem 0; text-align: center; font-size: 0.85rem;
}

/* Back to top */
.back-to-top {
    position: fixed; bottom: 2rem; right: 2rem;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px var(--primary-glow);
    opacity: 0; visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); color: var(--white); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */
.reveal-up, .reveal-left, .reveal-right { opacity: 0; transition: all 0.8s cubic-bezier(0.4,0,0.2,1); }
.reveal-up { transform: translateY(60px); }
.reveal-left { transform: translateX(-60px); }
.reveal-right { transform: translateX(60px); }
.revealed { opacity: 1 !important; transform: translateY(0) translateX(0) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .hero-name { font-size: 3rem; }
    .image-ring { width: 300px; height: 300px; }
    #same { max-width: 300px; }
    .orbit { width: 380px; height: 380px; }
    .orbit-icon { transform: rotate(calc(var(--i)*60deg)) translateX(190px) rotate(calc(var(--i)*-60deg)); }
    .image-box { max-width: 100%; }
}

@media (max-width: 768px) {
    .section { padding: 4rem 0; }
    .section-title { font-size: 2rem; }

    /* ── Navbar ── */
    .menu-toggle { display: block; }
    .nav {
        position: fixed; top: 0; right: -100%;
        width: 75%; max-width: 320px; height: 100vh;
        background: var(--white);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        padding: 6rem 2rem 2rem;
        transition: right 0.35s ease;
        z-index: 1000;
    }
    .nav.open { right: 0; }
    .nav-list { flex-direction: column; gap: 1.5rem; }
    .nav-link { font-size: 1.1rem; }
    .logo img { max-height: 40px; }

    /* ── Hero ── */
    .hero { min-height: auto; padding-top: 5rem; padding-bottom: 2rem; }
    .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 1.5rem; }
    .hero-content { order: 2; }
    .hero-image { order: 1; margin-bottom: 1rem; }
    .hero-btns { justify-content: center; }
    .hero-socials { justify-content: center; }
    .hero-tagline { text-align: center; }
    .hero-name { font-size: 2.5rem; }
    .hero-title { font-size: 1.15rem; }
    .hero-badge { font-size: 0.7rem; }

    /* ── Hero image ── */
    .image-ring { width: 240px; height: 240px; }
    #same { max-width: 240px; }
    .orbit { width: 310px; height: 310px; }
    .orbit-icon {
        width: 34px; height: 34px; font-size: 0.95rem;
        transform: rotate(calc(var(--i)*60deg)) translateX(155px) rotate(calc(var(--i)*-60deg));
    }
    .scroll-indicator { display: none; }

    /* ── Music Player ── */
    .music-player {
        max-width: 100%;
        margin-top: 1.5rem;
        padding: 16px;
        order: 3;
    }
    .music-controls { gap: 15px; }

    /* ── About ── */
    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
    .image-box { max-width: 100%; }
    .img-placeholder { height: 300px; }
    .experience-badge { bottom: -15px; right: auto; left: 50%; transform: translateX(-50%); }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .about-content h3 { font-size: 1.35rem; }

    /* ── Skills ── */
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    }

    /* ── Contact ── */
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form { padding: 1.75rem; }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    .footer-brand p { max-width: 100%; margin: 0 auto; }
    .footer-links { text-align: center; }

    /* ── Back to top ── */
    .back-to-top { width: 42px; height: 42px; bottom: 1.5rem; right: 1.5rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 1rem; }
    .section { padding: 3rem 0; }

    .hero-name { font-size: 2rem; }
    .hero-title { font-size: 1rem; }
    .hero-tagline { font-size: 1rem; }
    .section-title { font-size: 1.75rem; }

    /* Smaller hero image */
    .image-ring { width: 200px; height: 200px; }
    #same { max-width: 200px; }

    /* Hide orbit on very small screens to prevent overflow */
    .orbit { display: none; }

    /* Projects single column */
    .projects-grid { grid-template-columns: 1fr; }

    /* Stats */
    .stats-row { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
    .stat-num { font-size: 1.5rem; }
    .stat-label { font-size: 0.7rem; }

    /* Reduce floating icons on small screens */
    .floating-icon:nth-child(n+16) { display: none; }

    /* Contact form */
    .contact-form { padding: 1.25rem; }
    .contact-info h3 { font-size: 1.3rem; }
    .info-icon { width: 40px; height: 40px; font-size: 0.95rem; }

    /* Buttons */
    .btn { padding: 0.75rem 1.25rem; font-size: 0.85rem; }
    .hero-btns { flex-direction: column; align-items: center; gap: 0.75rem; }
    .hero-btns .btn { width: 100%; justify-content: center; }

    /* Footer */
    .pix { font-size: 14px; }
    .footer-grid { gap: 1.5rem; margin-bottom: 1.5rem; }
}

@media (max-width: 360px) {
    .hero-name { font-size: 1.75rem; }
    .hero-title { font-size: 0.9rem; }
    .section-title { font-size: 1.5rem; }
    .image-ring { width: 180px; height: 180px; }
    #same { max-width: 180px; }
    .music-player { padding: 12px; }
    .music-controls { gap: 12px; }
    .music-controls .play-btn { width: 42px; height: 42px; }
}

/* Ensure content layers above floating icons */
.header, main, .footer, .back-to-top { position: relative; z-index: 1; }