
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins',sans-serif;
}
html{
    scroll-behavior:auto;
    max-width: 100%;
    overflow-x: hidden;
}
body{
    background:#0f172a;
    color:#e5e7eb;
    max-width: 100%;
    padding-top: 80px;
    overflow-x: hidden;
}

/* NAVBAR */
.site-header {
    position: fixed;
    height: 80px;
    top: 0;
    width: 100%;
    background: rgba(2,6,23,0.95);
    padding: 15px 20px;
    display: flex;
    align-items: center;
    z-index: 1000;
}

header h2 {
    color: #38bdf8;
    font-size: 22px;
    font-weight: 600;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

/* ===== FUTURISTIC PORTFOLIO LOGO ===== */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}

/* Glowing S */
.logo-s {
    font-size: 28px;
    font-weight: 800;
    color: #38bdf8;
    position: relative;
    z-index: 3;
    animation: floatS 3s ease-in-out infinite;
    text-shadow:
        0 0 8px rgba(56,189,248,.9),
        0 0 18px rgba(56,189,248,.6);
}

/* hilpa futuristic text */
.logo-text {
    font-size: 18px;
    margin-left: -1px;
    background: linear-gradient(90deg, #e5e7eb, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
}

/* Sweep animation (originates from S) */
.logo-sweep {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 120%;
    width: 45%;
    pointer-events: none;
    z-index: 1;

    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(56,189,248,.55) 50%,
        transparent 100%
    );

    filter: blur(6px);
    opacity: 0;
    animation: logoSweep 4s ease-in-out infinite;
}

/* Animations */
@keyframes logoSweep {
    0% {
        left: 0%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 60%;
        opacity: 0.9;
    }
    70% {
        opacity: 0;
    }
    100% {
        left: 60%;
        opacity: 0;
    }
}

@keyframes floatS {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.logo:hover .logo-s {
    text-shadow:
        0 0 14px rgba(56,189,248,1),
        0 0 30px rgba(56,189,248,.8);
}



/* Desktop menu */

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-menu a {
    position: relative;
    padding: 6px 4px;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

/* Gradient text on hover */
.nav-menu a:hover {
    background: linear-gradient(
        90deg,
        #38bdf8,
        #6366f1,
        #ec4899
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Underline (hidden by default) */
.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0%;
    height: 2px;
    background: linear-gradient(
        90deg,
        #38bdf8,
        #6366f1,
        #ec4899
    );
    transition: width 0.35s ease;
}

/* Hover underline */
.nav-menu a:hover::after {
    width: 100%;
}

/* ACTIVE SECTION */
.nav-menu a.active {
    font-weight: 600; /* slightly bold */
    background: linear-gradient(
        90deg,
        #38bdf8,
        #6366f1,
        #ec4899
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Active underline stays visible */
.nav-menu a.active::after {
    width: 100%;
}


.site-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56,189,248,0.08),
        transparent
    );
    pointer-events: none;
}



/* ===== HAMBURGER ===== */
.hamburger {
    width: 32px;
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.header-spacer {
    width: 32px;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background: #38bdf8;
    border-radius: 2px;
    transition: 0.3s;
}


/* SECTIONS */
section{
    padding: 56px 40px;
    position: relative;
    overflow: hidden;
    background-color: transparent;
    scroll-margin-top: 80px;
}
.section-title {
    text-align: center;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 28px;
    margin-bottom: 50px;
    line-height: 1.2;

    /* Gradient colors */
    background: linear-gradient(
        270deg,
        #38bdf8,
        #6366f1,
        #ec4899,
        #facc15,
        #22c55e,
        #38bdf8
    );
    background-size: 600% 600%;  /* make gradient wide for animation */

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /* Animate the gradient movement */
    animation: gradientText 8s ease infinite;

    text-shadow: 0 0 20px rgba(56,189,248,0.35);
}

/* Gradient movement keyframes */
@keyframes gradientText {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.parallax-glow {
    position: absolute;
    inset: -40%;
    z-index: 1;
    pointer-events: none;
    max-width: 100vw;
    overflow: hidden;

    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(56,189,248,0.35),
            transparent 40%
        ),
        radial-gradient(
            circle at 70% 60%,
            rgba(99,102,241,0.3),
            transparent 45%
        ),
        radial-gradient(
            circle at 50% 80%,
            rgba(236,72,153,0.25),
            transparent 50%
        );

    filter: blur(80px);
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.1s linear;
}

/* Ensure content stays above glow */
section > .content,
section > *:not(.parallax-glow) {
    position: relative;
    z-index: 2;
}

/* Prevent stacked margins inside sections */
section > *:first-child {
    margin-top: 0 !important;
}

section > *:last-child {
    margin-bottom: 0 !important;
}




/* HERO */
.hero{
    min-height: calc(100vh - 80px);
    display:flex;
    align-items:center;
    padding-top: 40px;
    justify-content:space-between;
    gap:40px;
    flex-wrap:wrap;
    position: relative;
    overflow: hidden;
    background: #020617;
}
.hero-text{
    max-width:500px;
}
.hero-text h1{
    font-size:42px;
    color:#38bdf8;
}
.hero-text h3{
    margin:15px 0;
    font-weight:400;
}

.hero-name {
    font-size: 46px;
    font-weight: 800;
    line-height: 1.2;

    background: linear-gradient(
        135deg,
        #DDA0DD,
        #00f5d4,
        #38bdf8,
        #6366f1,
        #ec4899
    );
    background-size: 300% 300%;

    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    /*animation: gradientMove 6s ease infinite;*/
    /*text-shadow: 0 0 30px rgba(56,189,248,0.55);*/
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

/* Glow blobs */
.hero-glow .glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    transform: translate3d(0,0,0);
    transition: transform 0.15s linear;
}

/* Individual glows */
.glow-1 {
    top: 10%;
    left: 15%;
    background: rgba(56,189,248,0.55);
}

.glow-2 {
    top: 50%;
    left: 55%;
    background: rgba(99,102,241,0.45);
}

.glow-3 {
    bottom: 5%;
    right: 10%;
    background: rgba(236,72,153,0.35);
}

/* Ensure hero content stays above */
.hero > *:not(.hero-glow) {
    position: relative;
    z-index: 2;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.45; }
    50% { opacity: 0.65; }
}

.hero-glow .glow {
    animation: glowPulse 6s ease-in-out infinite;
}


.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 25px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    color: #ffffff;
    text-decoration: none !important;
    background: linear-gradient(
        135deg,
        #00f5d4,
        #38bdf8,
        #6366f1,
        #ec4899
    );
    background-size: 300% 300%;
    transition: all 0.4s ease;
    box-shadow:
        0 10px 30px rgba(56,189,248,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.1);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
}

.btn:hover {
    background-position: right center;
    transform: translateY(-3px);
    box-shadow:
        0 16px 40px rgba(56,189,248,0.55);
}

/* Glow layer */
.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    filter: blur(18px);
    opacity: 0.6;
    z-index: -1;
}

.btn:focus,
.btn:active {
    outline: none;
    box-shadow: none;
}

.btn:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 4px;
}

/* PHOTO */

.hero-glow,
.hero-glow .glow {
    will-change: transform;
}


/* Text side */
.hero-text {
    max-width: 500px;
}

/* Image container */
.hero-img {
    position: relative;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Moving gradient ring */
.hero-img::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        #00f5d4,
        #38bdf8,
        #6366f1,
        #ec4899,
        #FD1D1D
    );
    background-size: 300% 300%;
    animation: gradientMove 6s linear infinite;
    filter: blur(0.5px);
}

/* Glow */
.hero-img::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: inherit;
    filter: blur(25px);
    opacity: 0.5;
    z-index: -1;
}

/* Actual image */
.hero-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #020617;
    padding: 6px;
    z-index: 2;
}


/* FLOAT EFFECT */
@keyframes float{
    0%,100%{transform:translateY(0);}
    50%{transform:translateY(-15px);}
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.btn {
    animation: gradientMove 5s ease infinite;
}


/* ===== ABOUT SECTION ===== */
.about-section {
    position: relative;
    background:
        radial-gradient(circle at top left, rgba(56,189,248,0.18), transparent 35%),
        radial-gradient(circle at bottom right, rgba(14,165,233,0.15), transparent 40%);
}

.section-title {
    text-align: center;
    margin-bottom: 48px;
    font-size: 36px;
    margin-top: 40px;
    font-weight: 600;
    color: #7c83ff;
}

/* FIX CONTENT WIDTH CONSTRAINT */
.about-section .content {
    width: 100%;
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}


/* ===== ABOUT CARD (Improved Width & Balance) ===== */
/* ===== ABOUT CARD BASE FIX ===== */
.about-card {
     position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 64px;
    text-align: center;

    background: rgba(10, 25, 47, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 22px;
    border: 1px solid rgba(56,189,248,0.25);

    box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    0 0 40px rgba(56,189,248,0.15);
}

/* Glow border */
.about-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(135deg, #22d3ee, #6366f1, #a855f7);
    opacity: 0.25;
    filter: blur(30px);
    z-index: -1;
}

/* ===== TEXT BLOCK ===== */
.about-card p {
    max-width: 720px;
    margin: 0 auto 56px;
    font-size: 16px;
    line-height: 1.75;
    color: #e5e7eb;
}

/* ===== EXPERIENCE – PROFESSIONAL ===== */
.exp-professional {
    max-width: 720px;
    margin: 64px auto 0;
    padding: 28px 36px;

    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    border-radius: 18px;
    border: 1px solid rgba(56,189,248,0.18);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.35),
        inset 0 0 0 1px rgba(255,255,255,0.03);

    text-align: center;
}

/* Title */
.exp-title {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 28px;
}

/* Metrics row */
.exp-metrics {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
}

/* Metric */
.metric {
    min-width: 90px;
}

/* Numbers */
.metric h3 {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;

    background: linear-gradient(
        135deg,
        #eb38f8,
        #f1d563,
        #55f7d9
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    text-shadow: 0 0 18px rgba(56,189,248,0.35);
}

/* Label */
.metric span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #cbd5f5;
    letter-spacing: 0.3px;
}

/* Divider */
.metric-divider {
    width: 1px;
    height: 36px;
    background: linear-gradient(
        180deg,
        transparent,
        rgba(56,189,248,0.35),
        transparent
    );
}

/* ===== BUTTON POSITION FIX ===== */
.about-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 42px;
    font-size: 15px;
    border-radius: 999px;
}



/* Skills Section */
.skills-orbit-section {
    background: radial-gradient(circle at center, #020617, #020617);
    padding: 56px 0;
    padding-bottom: 56px !important;
}

.orbit-wrapper {
    position: relative;
    width: 360px;
    height: 360px;
    margin: 40px auto 0;
}

/* Center */
.orbit-center {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-weight: 700;
    box-shadow: 0 0 30px rgba(56,189,248,.6);
    z-index: 10;
}

/* Orbit rings */
.orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px solid rgba(56,189,248,.25);
    pointer-events: auto;
}

/* Skill holder */
.skill-holder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
}


/* Sizes */
.orbit-1 {
  width: 220px;
  height: 220px;
  z-index: 2;
}
.orbit-2 {
  width: 360px;
  height: 360px;
  z-index: 1;
}


/* Skill icon */
.skill {
    width: 44px;
    height: 44px;
    margin: -22px;
    border-radius: 50%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px currentColor;
    cursor: pointer;
}

.skill i {
    font-size: 18px;
}

/* ===== Skill Tooltip ===== */
.skill::after {
    content: attr(data-skill);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    white-space: nowrap;

    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 25px;

    background: linear-gradient(
        135deg,
        rgba(56,189,248,.95),
        rgba(99,102,241,.95),
        rgba(236,72,153,.95)
    );

    color: #020617;
    border-radius: 20px;

    opacity: 0;
    transition: all .35s ease, opacity 0.35s ease-out;

    box-shadow: 0 0 20px rgba(56,189,248,.6);
    z-index: 9999;
}

.skill::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(56,189,248,.95);
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 9999;
}

.skill:hover::after,
.skill:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Allow tooltips to escape */
.skills-orbit-section,
.skills-orbit-section .orbit-wrapper {
    overflow: visible !important;
}

.skill.show-tooltip::after,
.skill.show-tooltip::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}



/* Colors */
.html { color: #f97316; }
.vue { color: #22c55e; }
.css { color: #38bdf8; }
.js { color: #facc15; }
.jquery { color: #22c55e; }
.wp { color: #38bdf8; }
.php { color: #f97316; }
.woo { color: #ec4899; }
.mysql { color: #22c55e; }
.git { color: #FF00BF}
.bootstrap { color: #22c55e;}
.react { color: #38bdf8; }


/* Projects Section */
.projects-section {
  padding: 100px 40px;
  background: linear-gradient(135deg, #020617, #020617);
}

#projects {
    width: 100%;
    overflow-x: hidden;
}

/* Tabs */
.project-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  flex-wrap: nowrap;
}

.tab-btn {
  padding: 14px 28px;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.7);
  color: #e5e7eb;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid rgba(56,189,248,0.25);
  cursor: pointer;
  transition: all 0.35s ease;
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  background: linear-gradient(
    135deg,
    rgba(56,189,248,.9),
    rgba(99,102,241,.9),
    rgba(236,72,153,.9)
  );
  color: #020617;
  box-shadow: 0 0 25px rgba(56,189,248,.6);
}

/* Tab Content */
.tab-content {
  display: none;
}

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

/* Projects Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

/* Project Card */
.project-card {
  background: rgba(2,6,23,.8);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(56,189,248,.15);
  transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 40px rgba(56,189,248,.4);
}

.project-card img {
    width: 100%;
    height: auto;   
    max-height: 220px;     
    object-fit: cover;
    object-position: center;
    display: block;
    background: #020617;
    transition: transform .4s ease;
}

.project-card h3 {
  padding: 15px 15px 5px;
  color: #38bdf8;
}

.project-card p {
  padding: 0 15px 15px;
  font-size: 14px;
  color: #cbd5f5;
}

.project-card a {
  display: inline-block;
  margin: 0 15px 20px;
  color: #38bdf8;
  font-weight: 600;
  text-decoration: none;
}

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

/* .project-card:hover {
  transform: translateY(-6px);
} */

.project-card a:hover {
  text-decoration: underline;
}

/* ===== SERVICES SECTION ===== */
.services-section {
    position: relative;
    padding: 100px 40px;
    background: radial-gradient(
        circle at top left,
        rgba(56,189,248,0.12),
        rgba(2,6,23,1)
    );
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

/* Service Card */
.service-card {
    background: rgba(255,255,255,0.04);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(56,189,248,0.15);
    transition: all .4s ease;
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,.4);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(56,189,248,.35),
        rgba(99,102,241,.35),
        rgba(236,72,153,.35)
    );
    opacity: 0;
    transition: opacity .4s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-12px);
    /*box-shadow: 0 0 40px rgba(56,189,248,.35);*/
}

/* Icon */
.service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(
        135deg,
        rgba(56,189,248,.95),
        rgba(99,102,241,.95),
        rgba(236,72,153,.95)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56,189,248,.6);
}

.service-icon i {
    font-size: 26px;
    color: #020617;
}

/* Text */
.service-card h3 {
    color: #fff;
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: rgba(255,255,255,.75);
    font-size: 15px;
    line-height: 1.6;
}



/* ===== CONTACT SECTION ===== */
/* ================= CONTACT SECTION ================= */

.contact-section {
  padding: 100px 20px;
  text-align: center;
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: auto;
}

.contact-card,
.contact-form {
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 50px rgba(56,189,248,0.25);
}

/* Card content */
.contact-card h3 {
  font-size: 26px;
  margin-bottom: 12px;
  background: linear-gradient(90deg, #38bdf8, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contact-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #cbd5f5;
  margin-bottom: 28px;
}

/* Contact info list */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  word-break: break-word;
}

.contact-item a {
  color: #e5e7eb;
  font-size: 15px;
  text-decoration: none;
}

.contact-item a:hover {
  color: #38bdf8;
}

/* Icons */
.icon {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #38bdf8, #6366f1, #ec4899);
  color: #020617;
  flex-shrink: 0;
}

/* Contact form */
.contact-form .form-group {
  margin-bottom: 18px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #e5e7eb;
  font-size: 14px;
}

.contact-form textarea {
  resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #38bdf8;
}


/* ===== FOOTER ===== */
.site-footer {
    background: #020617;
    padding: 40px 20px 25px;
    text-align: center;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 80%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56,189,248,0.35),
        transparent
    );
}

.footer-content {
    max-width: 900px;
    margin: auto;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

/* Social icon base */
.social {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #e5e7eb;
    text-decoration: none;
    border: 1px solid rgba(56,189,248,0.25);
    box-shadow: 0 0 18px rgba(56,189,248,0.25);
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
}

/* Glow on hover */
.social::before {
    content: '';
    position: absolute;
    inset: -6px;
    background: inherit;
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: -1;
}

.social:hover::before {
    opacity: 0.6;
}

.social:hover {
    transform: translateY(-4px);
}

/* Platform colors */
.social.instagram { color: #ec4899; }
.social.linkedin  { color: #38bdf8; }
.social.github    { color: #cbd5f5; }
.social.gmail     { color: #f97316; }

.footer-text {
    font-size: 14px;
    color: #cbd5f5;
    margin-top: 10px;
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    .social {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .footer-text {
        font-size: 13px;
    }
}


/* ANIMATION */
.reveal{
    opacity:0;
    transform:translateY(40px);
    transition:0.8s ease;
}
.reveal.active{
    opacity:1;
    transform:translateY(0);
}

/* Section gradient backgrounds */
/* section {
    position: relative;
    background: radial-gradient(
        circle at top left,
        rgba(56, 189, 248, 0.08),
        transparent 40%
    ),
    radial-gradient(
        circle at bottom right,
        rgba(14, 165, 233, 0.06),
        transparent 45%
    );
} */

/* Alternate sections (slight variation for depth) */
section:nth-child(even) {
    background: radial-gradient(
        circle at top right,
        rgba(56, 189, 248, 0.07),
        transparent 40%
    ),
    radial-gradient(
        circle at bottom left,
        rgba(14, 165, 233, 0.05),
        transparent 45%
    );
}

section::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    opacity: 0.4;
    width: 60%;
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56,189,248,0.2),
        transparent
    );
}


/* ===== Scroll Animations ===== */
/* ===== Scroll Reveal Animations ===== */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 0.9s ease;
}

.reveal {
    transform: translateY(60px);
}

.reveal-left {
    transform: translateX(-80px);
}

.reveal-right {
    transform: translateX(80px);
}

/* Active state */
.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

.skills-section.reveal {
    opacity: 0;
    transform: translateY(60px);
}

.skills-section.active {
    opacity: 1;
    transform: translateY(0);
    transition: 0.8s ease;
}

/* ajaxcontact form design */
/* Hide messages initially */
.form-success,
.form-error {
  display: none;
  margin-top: 15px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.4s ease;
}

.form-success.show {
  display: block;
  color: #2ecc71;
  opacity: 1;
  transform: translateY(0);
}

.form-error.show {
  display: block;
  color: #e74c3c;
  opacity: 1;
  transform: translateY(0);
}

/* Button spinner */
.btn {
  position: relative;
  overflow: hidden;
}

.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

.spinner.show {
  display: inline-block;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-status {
  margin-top: 12px;
  font-size: 14px;
  opacity: 0;
  line-height: 1.6;
  min-height: 22px;
  overflow: visible;
  white-space: normal;
  animation: fadeIn 0.4s forwards;
}

.form-status.success { color: #4ade80; }
.form-status.error { color: #f87171; }

@keyframes fadeIn {
  to { opacity: 1; }
}




/* RESPONSIVE */

@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 32px 16px;
    }
}

@media (max-width: 480px) {
  .section-title {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
    padding-top: 0 !important;
    font-size: 26px;
    line-height: 1.2;
  }
}




@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        min-height: calc(100vh - 64px);
    }
}


/* ===== MOBILE NAVBAR FIX ===== */
@media (max-width: 768px) {
    .site-header {
        height: 64px;
        padding: 0 18px;
        display: flex;
        align-items: center;
    }
}

@media (max-width: 480px) {

    .site-header {
        padding: 14px 18px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Show hamburger */
    .hamburger {
        display: flex;
    }

    /* Center logo */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    .header-spacer {
        display: block;
        width: 32px;
    }

    /* Mobile menu container */
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(2,6,23,0.98);
        flex-direction: column;
        align-items: center;
        display: none;

        padding: 18px 0 24px;   /* ✅ controls top & bottom spacing */

        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    }

    /* OPEN STATE */
    .nav-menu.open {
        display: flex;
        max-height: 520px; /* ✅ FIX: allows Contact to appear */
    }

    /* Menu items spacing FIX */
    @media (max-width: 480px) {
    .nav-menu a {
        margin: 4px 0;          /* tighter vertical rhythm */
        padding: 8px 0;
        font-size: 16px;
        width: auto;            /* IMPORTANT */
        text-align: center;
        position: relative;
    }
    }

    @media (max-width: 480px) {

  /* Remove desktop underline behavior */
    .nav-menu a::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%) scaleX(0);
        width: 22px;                 /* modern short line */
        height: 2px;
        border-radius: 2px;
        background: linear-gradient(
        90deg,
        #38bdf8,
        #6366f1,
        #ec4899
        );
        transition: transform 0.3s ease;
    }

    /* Active / hover state */
    .nav-menu a.active::after,
    .nav-menu a:hover::after {
        transform: translateX(-50%) scaleX(1);
    }
    }

    @media (max-width: 480px) {
  .nav-menu {
    padding: 12px 0 16px;   /* compact & clean */
  }
}

@media (max-width: 480px) {
  .nav-menu a.active {
    font-weight: 600;
    color: #38bdf8;
    letter-spacing: 0.3px;
  }
}


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

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

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



/* ===== DESKTOP ===== */
@media (min-width: 769px) {
    .site-header {
        justify-content: space-between;
        padding: 15px 60px;
    }

    .header-spacer {
        display: none;
    }

    .hamburger {
        display: none;
    }

    .logo {
        margin: 0;
    }
}


@media (max-width: 768px) {
    .hero-name {
        font-size: 36px;
    }
}

/* ===== TABLET ===== */
@media (max-width: 900px) {
    .about-card {
        padding: 44px 36px;
    }

    .exp-counter {
        gap: 48px;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
    .about-section {
        padding: 28px 16px !important;
    }

    .about-card {
        padding: 36px 24px;
    }

    .about-card p {
        margin-bottom: 40px;
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    .exp-professional {
        padding: 24px 20px;
    }

    .exp-metrics {
        gap: 24px;
    }

    .metric h3 {
        font-size: 30px;
    }

    .metric-divider {
        height: 30px;
    }
}

/* ===== EXPERIENCE SECTION – MOBILE FIX ===== */
@media (max-width: 480px) {

    .exp-professional {
        max-width: 100%;
        margin: 40px 16px 0;
        padding: 22px 18px;
        border-radius: 16px;
    }

    .exp-title {
        font-size: 12px;
        margin-bottom: 20px;
        letter-spacing: 0.8px;
    }

    /* Stack metrics cleanly */
    .exp-metrics {
        flex-direction: row;
        justify-content: space-between;
        gap: 0;
    }

    .metric {
        min-width: auto;
        flex: 1;
        text-align: center;
    }

    .metric h3 {
        font-size: 26px;
    }

    .metric span {
        font-size: 12px;
    }

    /* Hide vertical dividers on mobile */
    .metric-divider {
        display: none;
    }

    /* Download button fix */
    .exp-professional .btn,
    .exp-professional .download-btn {
        margin-top: 22px;
        padding: 12px 22px;
        font-size: 14px;
        width: auto;
        min-width: 180px;
    }
}


@media (max-width: 480px) {
    .orbit-wrapper {
        width: 220px;
        height: 220px;
    }

    .orbit-1 {
        width: 140px;
        height: 140px;
    }

    .orbit-2 {
        width: 240px;
        height: 240px;
    }

    .skill {
        width: 36px;
        height: 36px;
    }

    .skill i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
  .skills-orbit-section {
    /* padding: 32px 0; */
    padding-bottom: 56px !important;
  }
}


@media (max-width: 768px) {
    .parallax-glow {
        filter: blur(60px);
        opacity: 0.6;
    }
}

@media (max-width: 768px) {
    .hero-glow .glow {
        width: 300px;
        height: 300px;
        filter: blur(80px);
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .project-tabs {
        flex-wrap: wrap;          /* ✅ allows line break */
        justify-content: center;  /* keeps centered */
        gap: 14px;
        padding: 0 12px;
    }

    .tab-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
  .project-card img {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .project-card img {
    height: auto;
    max-height: 200px;
    object-fit: contain;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-card,
  .contact-form {
    padding: 26px 20px;
  }

  .contact-card h3 {
    font-size: 22px;
  }

  .contact-item a {
    font-size: 14px;
  }
}

.glow-1 {
    background: rgba(56,189,248,.6);
    top: 10%;
    left: 5%;
}

.glow-2 {
    background: rgba(236,72,153,.6);
    bottom: 10%;
    right: 10%;
}


/* ===============================
   MOBILE SECTION SPACING FIX
   =============================== */
@media (max-width: 480px) {

  /* Hard reset section spacing */
  section,
  .projects-section,
  .services-section,
  .contact-section,
  /* .skills-orbit-section, */
  .about-section {
    padding-top: 40px !important;
    padding-bottom: 30px !important;
    margin: 0 !important;
  }

  /* Remove fake separators that look like space */
  section::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .about-card,
  .exp-professional,
  .service-card,
  .project-card,
  .contact-card,
  .contact-form {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}


/* ==================================================
   FINAL PERFORMANCE OVERRIDE (SAFE MODE)
   Works for Desktop + Mobile
   ================================================== */

/* 1. Kill layout-thrashing transitions */
.reveal,
.reveal-left,
.reveal-right {
  transition: transform 0.6s ease, opacity 0.6s ease !important;
}

/* 2. Force GPU compositing */
.parallax-glow,
.hero-glow,
.hero-glow .glow,
.skill,
.project-card,
.service-card,
.social {
  will-change: transform;
  transform: translateZ(0);
}

/* 3. Freeze parallax motion (visual stays, CPU stops) */
.parallax-glow {
  transition: none !important;
}

/* 4. Reduce blur radius (huge FPS win, no visual loss) */
.parallax-glow,
.hero-glow .glow {
  filter: blur(48px) !important;
}

/* 5. Limit expensive backdrop-filter usage */
.exp-professional,
.service-card,
.contact-card,
.contact-form {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* 6. Stop section repaint separators */
section::after {
  display: none !important;
}

/* 7. Reveal animation GPU-safe */
.reveal {
  transform: translate3d(0, 40px, 0) !important;
}
.reveal.active {
  transform: translate3d(0, 0, 0) !important;
}

/* 8. Mobile-specific performance tightening */
@media (max-width: 768px) {
  .hero-glow .glow {
    filter: blur(40px) !important;
  }
}

/* 9. Accessibility & fallback */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

