/* ===== Google Fonts ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

/* ===== THEME VARIABLES ===== */
:root {
    /* Light Theme */
    --bg-1: #ff9a9e;
    --bg-2: #fecfef;
    --bg-3: #f6d365;
    --section-bg: rgba(255, 255, 255, 0.7);
    --section-bg-secondary: rgba(255, 255, 255, 0.5);
    --text: #111827;
    --muted: #6b7280;
    --accent-1: #ff7eb3;
    --accent-2: #8d7bff;
    --glass-border: rgba(255, 255, 255, 0.35);
    --btn-gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    --shadow: 0 6px 30px rgba(14, 16, 30, 0.12);
    --glass-blur: 10px;
    --icon-color: #222;
    
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-1: #141E30;
    --bg-2: #243B55;
    --bg-3: #1A1A2E;
    --section-bg: rgba(20, 20, 28, 0.65);
    --section-bg-secondary: rgba(20, 20, 28, 0.45);
    --text: #f3f4f6;
    --muted: #c7c7d0;
    --accent-1: #8d7bff;
    --accent-2: #ff7eb3;
    --glass-border: rgba(255, 255, 255, 0.06);
    --btn-gradient: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    --shadow: 0 10px 40px rgba(2, 6, 23, 0.6);
    --icon-color: #fff
}

/* ===== Base ===== */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-1), var(--bg-2) 35%, var(--bg-3) 75%);
    background-size: 400% 400%;
    animation: bgShift 12s ease infinite;
    line-height: 1.45;
}

@keyframes bgShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

section,
header {
    max-width: min(1100px, 95%);
    margin: 2rem auto;
    padding: clamp(1.25rem, 2.5vw, 2.2rem);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--section-bg), var(--section-bg-secondary));
    box-shadow: var(--shadow);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
}

/* ===== Navbar ===== */
nav {
    top: 16px;
    z-index: 60;
    max-width: min(1100px, 95%);
    margin: 0 auto 1.5rem;
}

nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 1.5rem;
}

nav li:first-child {
    margin-right: auto;
    font-weight: 800;
    font-size: 1.125rem;
    cursor: pointer;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem;
    border-radius: 10px;
    transition: 0.3s ease;
}

nav a:hover {
    transform: translateY(-4px);
}

nav a::after {
    content: "";
    height: 3px;
    width: 0%;
    border-radius: 6px;
    background: var(--btn-gradient);
    display: block;
    transition: width .35s ease;
}

nav a:hover::after {
    width: 100%;
}

svg {
    color: var(--icon-color);
    transition: color 0.3s ease;
}
svg path {
    fill: currentColor !important;
}
/* Theme toggle button */
#theme-toggle {
    background: none;
    border: none;
    font-size: 1.2rem;svg path {
    fill: currentColor !important;
}

    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background 0.3s ease;
}

#theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ===== Header ===== */
.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

header img {
    width: 320px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
    border: 6px solid rgba(255, 255, 255, 0.18);
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(-0.4deg);
    }

    50% {
        transform: translateY(-12px) rotate(0.6deg);
    }

    100% {
        transform: translateY(0) rotate(-0.4deg);
    }
}

.text-container {
    flex: 1 1 380px;
}

h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 800;
}

.typing {
    display: inline-block;
    font-weight: 700;
    background: var(--btn-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.text-container p {
    font-size: 1.05rem;
    color: var(--muted);
    margin: 1rem 0;
}

/* Buttons */
.cta-btn {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    padding: 0.6rem 1.05rem;
    border-radius: 12px;
    background: var(--btn-gradient);
    box-shadow: 0 8px 30px rgba(141, 123, 255, 0.18);
    margin-right: 0.6rem;
    transition: 0.3s ease;
    text-decoration: none;
}

.cta-btn:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 40px rgba(141, 123, 255, 0.24);
}

.cta-btn.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--glass-border);
}

/* ===== My Work ===== */
#my-work {
    padding: 0;
    text-align: center;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--section-bg), var(--section-bg-secondary));
}

#my-work h2 {
    padding-top: 1em;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

/* ===== Grid Layout ===== */
.grid-container {
    margin: 3em;
    display: flex;
    flex-direction: column;
}

.project-grid {
    font-size: 1rem;
    margin-bottom: 2em;
    font-weight: lighter;
    text-align: center;
    background: linear-gradient(180deg, var(--no-content-bg)), var(--no-content-bg);
}


/* ===== FAQ ===== */
.faQs details {
    margin-top: 1rem;
    background: var(--section-bg);
    border-radius: 12px;
    padding: 0.4rem;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

.faQs summary {
    font-size: 1.05rem;
    cursor: pointer;
    padding: .9rem 1rem;
    font-weight: 700;
}

.faQs p {
    padding: .6rem 1rem 1.1rem 1rem;
    color: var(--muted);
}

/* ===== Footer ===== */
footer {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .8rem;
    border-radius: 12px;
    max-width: min(1100px, 95%);
    margin: 1.2rem auto;
    background: var(--section-bg);
    border: 1px solid var(--glass-border);
}

footer a {
    color: var(--text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
}

/* ===== Scroll Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media(max-width: 956px) {
    header {
        text-align: center;
    }

    header .text-container {
        padding-top: 0;
    }
}

@media(max-width: 767px) {
    nav li {
        display: none;
    }

    nav li:first-child,
    nav li:nth-last-child(3),
    nav li:nth-last-child(4),
    nav li:last-child {
        display: block;
    }
}

@media(max-width: 644px) {
    nav li:nth-last-child(3) {
        display: none;
    }

    header {
        margin-top: 0;
    }

    .cta-btn {
        margin-top: 0.5em;
        width: 100%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .text-container p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    footer .myWork {
        display: none;
    }

    .faQs {
        font-size: 0.75em;
    }

    .faQs p {
        font-size: 1rem;
    }
}

@media(max-width: 520px) {
    nav li:nth-last-child(4) {
        display: none;
    }

    header {
        margin-top: 0;
    }

    .cta-btn {
        margin-top: 0.5em;
        width: 100%;
    }

    .grid-container {
        display: flex;
        flex-direction: column;
    }

    .text-container p {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    footer .myWork {
        display: none;
    }

    .faQs {
        font-size: 0.75em;
    }

    .faQs p {
        font-size: 1rem;
    }
}