/* =========================
   RESET & VARIABLES
========================= */
:root {
    --bg: #f8fafc;
    --card: #ffffff;
    --primary: #6366f1;   /* Indigo */
    --secondary: #22c55e; /* Green */
    --accent: #ec4899;    /* Pink */
    --text: #0f172a;
    --muted: #475569;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #f8fafc, #eef2ff);
    color: var(--text);
    line-height: 1.6;
}

a{
    text-decoration: double;
}

/* =========================
   PARTICLES
========================= */
#particles {
    position: fixed;
    inset: 0;
    z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    position: sticky;
    top: 0;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.85);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 100;
}

.nav-left {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-right a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
}

.nav-right a:hover {
    color: var(--primary);
}

#themeToggle {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
}

/* =========================
   HERO
========================= */
.hero {
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.typing-text {
    font-family: 'Parisienne', cursive;
    font-size: 3.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.tagline {
    max-width: 620px;
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 2.2rem;
}

.resume-btn {
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99,102,241,0.35);
}

/* =========================
   MAIN CONTAINER
========================= */
.container {
    max-width: 960px;
    margin: auto;
    padding: 4rem 1.5rem;
}

/* =========================
   SECTION HEADINGS
========================= */
h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
    position: relative;
}

h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-top: 0.4rem;
    border-radius: 2px;
}

p {
    margin-bottom: 2rem;
    color: var(--muted);
}

/* =========================
   PROJECTS
========================= */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.8rem;
    margin-bottom: 4rem;
}

.project-card {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 1.6rem;
    border-radius: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(99,102,241,0.15);
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.4rem;
}

.project-card a {
    text-decoration: none;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 500;
}

/* =========================
   SKILLS
========================= */
.skill-list {
    list-style: none;
    margin-bottom: 4rem;
}

.skill-list li {
    padding: 0.7rem 0;
    border-bottom: 1px dashed var(--border);
    color: var(--muted);
}

/* =========================
   CONTACT
========================= */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form button {
    padding: 0.8rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.message.success { color: var(--secondary); }
.message.error { color: #ef4444; }

/* =========================
   CONTACT INFO
========================= */
.contact-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-line a {
    text-decoration: none;
    color: var(--primary);
}

a{
    color: var(--primary);
}

.wa-badge img {
    width: 36px;
    height: 36px;
    margin-left: 25px;
}

/* =========================
   FOOTER
========================= */
footer {
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.85rem;
    color: var(--muted);
    border-top: 1px solid var(--border);
}

/* =========================
   ANIMATIONS
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 600px) {
    .typing-text {
        font-size: 2.5rem;
    }
}
/* =========================
   DARK MODE
========================= */
body.dark {
    --bg: #020617;
    --card: #020617;
    --primary: #818cf8;
    --secondary: #4ade80;
    --accent: #f472b6;
    --text: #e5e7eb;
    --muted: #94a3b8;
    --border: #1e293b;
    background: radial-gradient(circle at top, #020617, #020617);
}

body.dark .navbar {
    background: rgba(2, 6, 23, 0.8);
}

body.dark .project-card {
    background: linear-gradient(180deg, #020617, #020617);
}
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}
/* =========================
   DARK MODE – FORM FIX
========================= */
body.dark .contact-form input,
body.dark .contact-form textarea {
    background: #020617;
    color: #e5e7eb;
    border: 1px solid #1e293b;
}

body.dark .contact-form input::placeholder,
body.dark .contact-form textarea::placeholder {
    color: #94a3b8;
}

body.dark .contact-form button {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #020617;
}

body.dark .contact-form input:focus,
body.dark .contact-form textarea:focus {
    border-color: var(--primary);
}
body.dark .contact-form {
    background: rgba(2, 6, 23, 0.6);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid #1e293b;
}


/* =========================
   CONTACT BUTTON (CLEAN)
========================= */
.contact-form button {
    align-self: flex-start;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.contact-form button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(99,102,241,0.35);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


body.dark .contact-form button {
    background: var(--primary);
    color: #020617;
}

body.dark .contact-form button:hover {
    box-shadow: 0 8px 22px rgba(129,140,248,0.35);
}
.contact-form button:active {
    transform: translateY(0);
    box-shadow: none;
}


.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

body.dark .wa-badge img {
    filter: invert(1) brightness(0.9);
}


/* =============== FINAL MOBILE FIX =============== */


@media (max-width: 600px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
        margin: 0;
    }
}
html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100%;
}
@media (max-width: 600px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
    }
}
@media (max-width: 600px) {
    .navbar {
        padding: 14px 20px;
    }
    .nav-right a {
        margin-left: 12px;
    }
}

@media (max-width: 600px) {

    /* FORCE FULL WIDTH NAVBAR */
    .navbar {
        width: 100vw !important;
        max-width: 100vw !important;
        padding: 14px 16px !important;
        margin: 0 !important;
        left: 0 !important;
        right: 0 !important;
        display: flex !important;
        justify-content: space-between !important;
        box-sizing: border-box !important;
    }

    /* NAV LINKS FIX */
    .nav-right a {
        margin-left: 10px !important;
        font-size: 0.9rem !important;
    }

    /* FIX CONTAINER WIDTH */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 18px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* HERO FIX */
    .hero {
        padding: 50px 10px !important;
        margin-top: 20px !important;
    }

    .typing-text {
        font-size: 1.8rem !important;
        line-height: 2.3rem !important;
    }

    /* GRADIENT BLOB FIX */
    .hero::before {
        width: 260px !important;
        height: 260px !important;
        filter: blur(70px) !important;
    }
}
@media (max-width: 600px) {

    .navbar {
        width: 100%;
        padding: 14px 16px;
        box-sizing: border-box;
    }

    .nav-right {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .nav-right a {
        font-size: 0.85rem;
        margin: 0;
        white-space: nowrap;
    }

    #themeToggle {
        flex-shrink: 0;
        font-size: 1rem;
    }
}
@media (max-width: 600px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 16px;
    }
}
a {
  position: relative;
  /* text-decoration: none;
  color: #333; */
}

a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}
