html, body {
    max-width: 100%;
    overflow-x: hidden;
}
:root {
    --bg-main: #020617;
    --bg-soft: #020617;
    --card-bg: rgba(2, 6, 23, 0.85);
    --border-soft: #1e293b;

    --text-main: #e5e7eb;
    --text-muted: #cbd5f5;

    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.15);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at 20% 20%, rgba(56,189,248,0.08), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(56,189,248,0.06), transparent 40%),
        var(--bg-main);
    color: var(--text-main);
    line-height: 1.7;
}


/* NAVBAR */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(2, 6, 23, 0.75);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border-soft);
    padding: 12px 28px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
/* Active navbar link */
.nav-links a.active {
    color: var(--accent);
    position: relative;
    text-shadow: 0 0 10px var(--accent-soft);
}

/* Small underline indicator */
.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
}


.nav-logo {
    font-weight: 700;
    color: #38bdf8;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #e5e7eb;
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent-soft);
}


/* HERO */
header {
    min-height: 100vh;
    padding: 140px 20px 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.profile-pic {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #38bdf8;
    margin-bottom: 24px;
    transition: transform 0.4s ease;
}

.profile-pic:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: 2.9rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 18px rgba(56,189,248,0.15);
}

.hero-text {
    font-size: 1.15rem;
    color: var(--text-muted);
}

/* SECTIONS */
section {
    max-width: 1000px;
    margin: auto;
    padding: 90px 20px;
    scroll-margin-top: 120px;

    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}


section.reveal {
    opacity: 1;
    transform: translateY(0);
}

h2 {
    font-size: 2.1rem;
    margin-bottom: 26px;
}

h2::after {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent);
}


p {
    color: #d1d5db;
}

/* SKILLS */
.skills span {
    display: inline-block;
    padding: 8px 14px;
    margin: 6px;
    background: #1e293b;
    border-radius: 20px;
    font-size: 14px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.skills span:hover {
    transform: translateY(-4px);
    background: #38bdf8;
    color: #020617;
}

/* PROJECTS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.project-card {
    background: linear-gradient(
        180deg,
        rgba(2,6,23,0.9),
        rgba(2,6,23,0.7)
    );
    border: 1px solid var(--border-soft);
    padding: 26px;
    border-radius: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(56,189,248,0.12);
}


.project-card h3 {
    margin-bottom: 8px;
}

.project-card .tech {
    font-size: 13px;
    color: #9ca3af;
}

.project-link {
    display: inline-block;
    margin-top: 10px;
    color: #38bdf8;
    text-decoration: none;
}

/* BUTTON */
.btn {
    display: inline-block;
    margin-top: 18px;
    padding: 13px 30px;
    background: linear-gradient(135deg, #38bdf8, #0ea5e9);
    color: #020617;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(56,189,248,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(56,189,248,0.45);
}


/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    color: #94a3b8;
}

/* MOBILE */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.3rem;
    }

    .hero-text {
        font-size: 1.05rem;
    }

    .profile-pic {
        width: 160px;
        height: 160px;
    }

    section {
        padding: 56px 18px;
    }

    .navbar {
        padding: 10px 20px;
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }
}
/* =========================
   CERTIFICATIONS
========================= */

.certifications {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.cert-card {
    background: linear-gradient(
        180deg,
        rgba(2,6,23,0.9),
        rgba(2,6,23,0.7)
    );
    border: 1px solid var(--border-soft);
    padding: 24px;
    border-radius: 16px;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border 0.35s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 16px 32px rgba(56,189,248,0.12);
}

.cert-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 14px;
    border: 1px solid var(--border-soft);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cert-card:hover .cert-img {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(56,189,248,0.15);
}

.cert-card h3 {
    margin-bottom: 6px;
}

.cert-card .issuer {
    font-size: 14px;
    color: var(--accent);
    margin-bottom: 8px;
}

.cert-card .cert-desc {
    font-size: 14px;
    color: var(--text-muted);
}
/* Contact links (exclude button) */
#contact p a {
    color: var(--accent);
    text-decoration: none;
}

#contact p a:hover {
    text-decoration: underline;
}
/* 🔒 MOBILE NAVBAR – SAME AS PC, NO OVERFLOW */
@media (max-width: 768px) {

    .navbar {
        left: 12px;
        right: 12px;
        transform: none;              /* remove centering */
        width: auto;                  /* fit screen */
        padding: 10px 14px;
        gap: 16px;
        border-radius: 40px;          /* same as PC */
    }

    .nav-links {
        gap: 14px;                    /* slightly tighter */
    }

    .nav-links a {
        font-size: 13px;              /* scale down, don’t wrap */
        white-space: nowrap;
    }

    .nav-logo {
        font-size: 15px;
        white-space: nowrap;
    }
}
/* 📱 FINAL CONTACT BUTTON FIX */
@media (max-width: 768px) {

    #contact .btn {
        display: block;
        max-width: 100%;
        padding: 12px 20px;      /* reduce horizontal padding */
        margin-left: auto;
        margin-right: auto;
        text-align: center;
        box-sizing: border-box;
    }
}
.project-card{
  width:300px;
  border:1px solid #ddd;
  border-radius:8px;
  padding:15px;
  margin:15px;
}

.project-card img{
  width:100%;
  border-radius:6px;
}

.project-card a{
  display:inline-block;
  margin-top:10px;
  background:#007bff;
  color:white;
  padding:6px 12px;
  text-decoration:none;
  border-radius:4px;
}
