:root {
    --bg-start: #0a0f1f;
    --bg-end: #0c1224;
    --accent1: #00d4ff;
    --accent2: #ff6ec7;
    --accent3: #ffdd57;
    --text-light: #eef2f5;
    --text-dark: #0b1a2b;
    --muted: #98aebc;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-start);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.dynamic-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    filter: blur(80px);
}

.dynamic-bg::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 10% 20%, var(--accent2), transparent 25%),
        radial-gradient(circle at 90% 80%, var(--accent1), transparent 25%),
        radial-gradient(circle at 50% 50%, var(--accent3), transparent 20%);
    opacity: 0.7;
    animation: bg-drift 25s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite, bg-hue 15s linear infinite;
}

@keyframes bg-drift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5vw, -10vh) rotate(10deg); }
}

@keyframes bg-hue {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(60deg); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 20px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 30px;
    transition: all 0.3s ease;
    max-width: 960px;
    margin: 20px auto;
}

.site-header:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-light);
    font-weight: 700;
    font-size: 1.2rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 10px;
}

.nav a {
    padding: 8px 16px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    border-radius: 999px;
    transition: all 0.3s ease;
}

.nav a:hover, .nav a.active {
    color: var(--text-dark);
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 212, 255, 0.2);
}
.hero {
    min-height: 80vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 60px 0;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.profile-wrap {
    position: relative;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3), 0 0 40px rgba(255, 110, 199, 0.3);
}

.hero .intro {
    font-weight: 400;
    color: var(--muted);
    font-size: 1.1rem;
}

.hero .name {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(90deg, var(--text-light), #c4d9e9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero .tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--muted);
}

.hero .lead {
    max-width: 60ch;
    color: var(--muted);
    line-height: 1.7;
}

.cta {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    text-decoration: none;
    font-weight: 700;
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn.primary {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: var(--text-dark);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.25);
}

.btn.primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 110, 199, 0.3);
}

.btn.ghost {
    background-color: transparent;
    border: 2px solid var(--card-border);
    color: var(--text-light);
}

.btn.ghost:hover {
    background-color: var(--card-bg);
    border-color: var(--accent1);
    color: var(--accent1);
}
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    position: relative;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: var(--accent1);
}

/* Updated About grid */
#about .bento-grid { grid-template-columns: 1fr; }
#skills .bento-grid { grid-template-columns: repeat(3, 1fr); }
#projects .bento-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
#contact .bento-grid { grid-template-columns: 1fr 1fr; }

.card h2, .card h3 {
    margin-bottom: 12px;
    color: var(--text-light);
}

.card p {
    color: var(--muted);
    line-height: 1.7;
}

.project.card,
.card.tile {
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project .thumb,
.tile img {
    height: 140px;
    width: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto 20px auto;
}

.card.tile h3,
.project.card h3 {
    text-align: center;
}

.card.tile p,
.project.card p {
    text-align: center;
    flex-grow: 1;
}

.project .link {
    display: block;
    text-align: center;
    margin-top: auto;
    color: var(--accent1);
    text-decoration: none;
    font-weight: 600;
}

.project .link:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.social-icon {
    width: 50px;
    height: 50px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.2);
}

.site-footer {
    padding: 40px 0;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--card-border);
    margin-top: 60px;
}

@media (max-width: 992px) {
    #about .bento-grid, #skills .bento-grid, #contact .bento-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav { display: none; }
    .hero .name { font-size: clamp(2rem, 10vw, 3rem); }
    .section-title { font-size: 2rem; }
}
