:root {
    --bg: #f8f9fa; /* Slightly off-white for premium contrast */
    --text: #2d3436;
    --text-light: #636e72;
    --blue: #4a90e2;
    --yellow: #f5a623;
    --pink: #ff7675;
    --green: #55efc4;
    --purple: #a29bfe;
    --card-white: #ffffff;
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e6f2ff 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- Premium Ambient Background --- */
.ambient-light {
    position: absolute;
    top: -10%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -2;
    pointer-events: none;
}

/* --- Glassmorphism Utilities (The Premium Feel) --- */
.glass-nav {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 4rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.05);
}

/* --- Hero & Particles --- */
.hero {
    min-height: 100vh;
    position: relative;
    padding: 2rem 10%;
    overflow: hidden;
}

.particles { position: fixed; width: 100%; height: 100%; top: 0; left: 0; z-index: -1; pointer-events: none; }
.particle { position: absolute; border-radius: 50%; opacity: 0.4; animation: floatCalm linear infinite; }

/* Expanded particle set for denser, calmer background */
.p1 { width: 40px; height: 40px; background: rgba(74, 144, 226, 0.3); left: 10%; bottom: -100px; animation-duration: 25s; }
.p2 { width: 60px; height: 60px; background: rgba(245, 166, 35, 0.2); left: 25%; bottom: -120px; animation-duration: 35s; animation-delay: 2s; }
.p3 { width: 30px; height: 30px; background: rgba(255, 118, 117, 0.25); left: 40%; bottom: -80px; animation-duration: 28s; animation-delay: 5s; }
.p4 { width: 50px; height: 50px; background: rgba(85, 239, 196, 0.2); left: 60%; bottom: -100px; animation-duration: 32s; animation-delay: 1s; }
.p5 { width: 70px; height: 70px; background: rgba(162, 155, 254, 0.2); left: 75%; bottom: -150px; animation-duration: 40s; animation-delay: 3s; }
.p6 { width: 25px; height: 25px; background: rgba(74, 144, 226, 0.3); left: 85%; bottom: -60px; animation-duration: 22s; animation-delay: 7s; }
.p7 { width: 45px; height: 45px; background: rgba(245, 166, 35, 0.15); left: 5%; bottom: -90px; animation-duration: 38s; animation-delay: 4s; }
.p8 { width: 35px; height: 35px; background: rgba(255, 118, 117, 0.2); left: 50%; bottom: -70px; animation-duration: 30s; animation-delay: 10s; }
.p9 { width: 55px; height: 55px; background: rgba(85, 239, 196, 0.25); left: 95%; bottom: -110px; animation-duration: 36s; animation-delay: 6s; }
.p10 { width: 20px; height: 20px; background: rgba(162, 155, 254, 0.3); left: 15%; bottom: -50px; animation-duration: 26s; animation-delay: 8s; }
.p11 { width: 65px; height: 65px; background: rgba(74, 144, 226, 0.1); left: 35%; bottom: -130px; animation-duration: 42s; animation-delay: 2s; }
.p12 { width: 30px; height: 30px; background: rgba(245, 166, 35, 0.2); left: 65%; bottom: -80px; animation-duration: 29s; animation-delay: 5s; }
.p13 { width: 40px; height: 40px; background: rgba(255, 118, 117, 0.15); left: 80%; bottom: -90px; animation-duration: 33s; animation-delay: 1s; }
.p14 { width: 25px; height: 25px; background: rgba(85, 239, 196, 0.25); left: 20%; bottom: -60px; animation-duration: 24s; animation-delay: 9s; }
.p15 { width: 50px; height: 50px; background: rgba(162, 155, 254, 0.2); left: 55%; bottom: -100px; animation-duration: 37s; animation-delay: 4s; }

@keyframes floatCalm {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    20% { opacity: 0.5; }
    80% { opacity: 0.5; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* --- Nav --- */
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 600; cursor: pointer; }
.dot { color: var(--pink); font-size: 2.5rem; line-height: 0; }
.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 600; transition: 0.3s; }
.nav-links a:hover { color: var(--pink); transform: scale(1.1); display: inline-block; }

.btn-nav {
    background: var(--text); color: white !important; padding: 0.8rem 1.5rem; border-radius: 50px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-nav:hover { transform: scale(1.1) rotate(3deg) !important; background: var(--pink); }

/* --- Hero Content --- */
.hero-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; }

.hero-text h1 {
    font-family: var(--font-heading); font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem;
}
.highlight { color: var(--blue); display: inline-block; animation: bob 2s infinite ease-in-out; }

.badge-container { display: flex; gap: 10px; margin-bottom: 1rem; }
.badge {
    padding: 0.5rem 1rem; border-radius: 20px; font-weight: bold; font-size: 0.8rem;
    background: var(--yellow); color: var(--text);
}
.bounce-delay-1 { animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.5s backwards; }
.bounce-delay-2 { animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.7s backwards; }

.btn-primary {
    display: inline-block; padding: 1rem 2rem; background: var(--pink); color: white;
    text-decoration: none; border-radius: 50px; font-weight: bold;
    box-shadow: 0 10px 20px rgba(255, 118, 117, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-primary:hover { transform: scale(1.1) translateY(-5px); }
.btn-secondary { margin-left: 1rem; text-decoration: none; color: var(--text); font-weight: bold; }

/* --- Hero Visual --- */
.hero-visual { display: flex; justify-content: center; position: relative; }
.blob-playground { position: relative; width: 400px; height: 400px; display: flex; justify-content: center; align-items: center; }

.blob-main {
    position: absolute; width: 350px; height: 350px; background: #dfe6e9;
    border-radius: 44% 56% 43% 57% / 62% 42% 58% 38%;
    animation: morph 6s infinite ease-in-out; z-index: -1;
}

.floating-char { width: 300px; animation: floatChar 4s infinite ease-in-out; }
.orbit-circle { position: absolute; width: 100%; height: 100%; animation: spin 20s linear infinite; }
.tech-icon {
    position: absolute; width: 50px; height: 50px; background: white; border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.i-aws { top: 0; left: 50%; color: #ff9900; transform: translate(-50%, -50%); }
.i-docker { bottom: 20%; right: 0; color: #0db7ed; }
.i-python { bottom: 20%; left: 0; color: #3776ab; }

@keyframes spin { 100% { transform: rotate(360deg); } }
@keyframes floatChar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes morph { 0%, 100% { border-radius: 44% 56% 43% 57% / 62% 42% 58% 38%; } 50% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes popIn { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* --- About Section --- */
.about-section { position: relative; padding: 6rem 10%; text-align: center; overflow: hidden; }
.danglers { position: absolute; top: -20px; left: 0; width: 100%; height: 200px; pointer-events: none; z-index: 0; }
.dangler { position: absolute; transform-origin: top center; animation: swing infinite ease-in-out; }
.d1 { left: 15%; animation-duration: 3s; }
.d2 { left: 85%; animation-duration: 4s; animation-delay: 0.5s; }
.d3 { left: 50%; top: -40px; animation-duration: 5s; animation-delay: 1s; }
.string { width: 2px; background: #2d3436; margin: 0 auto; }
.d1 .string { height: 100px; } .d2 .string { height: 140px; } .d3 .string { height: 80px; }
.ball { border-radius: 50%; margin: 0 auto; }
.d1 .ball { width: 30px; height: 30px; background: var(--pink); }
.d2 .ball { width: 40px; height: 40px; background: var(--blue); }
.d3 .ball { width: 20px; height: 20px; background: var(--yellow); }
@keyframes swing { 0% { transform: rotate(10deg); } 50% { transform: rotate(-10deg); } 100% { transform: rotate(10deg); } }
.about-content { max-width: 800px; margin: 0 auto; position: relative; z-index: 2; }
.about-content h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 2rem; }
.underline { text-decoration: underline wavy var(--green); text-decoration-thickness: 3px; }

/* --- Skills Pills (Unchanged) --- */
.stack-section { padding: 4rem 10%; text-align: center; }
.skills-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2rem; }
.skill-pill {
    padding: 0.8rem 1.5rem; background: white; border: 2px solid #eee; border-radius: 50px;
    font-weight: bold; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: default;
}
.skill-pill:hover { transform: scale(1.1) rotate(-3deg); border-color: var(--blue); color: var(--blue); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

/* --- PROJECTS (New Premium Layout) --- */
.projects-section { padding: 5rem 10%; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-header h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 0.5rem; }

.project-wrapper { margin-bottom: 4rem; }

/* The Header Icon (Circle with P, A, D) */
.category-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.cat-icon {
    width: 40px; height: 40px; border-radius: 50%; color: white; font-weight: bold;
    display: flex; justify-content: center; align-items: center; font-family: var(--font-heading);
}
.py-icon { background: var(--pink); box-shadow: 0 4px 10px rgba(255, 118, 117, 0.4); }
.aws-icon { background: var(--yellow); box-shadow: 0 4px 10px rgba(245, 166, 35, 0.4); }
.dev-icon { background: var(--blue); box-shadow: 0 4px 10px rgba(74, 144, 226, 0.4); }
/* Security category icon */
.sec-icon { background: var(--purple); box-shadow: 0 4px 10px rgba(162, 155, 254, 0.4); }
.category-header h3 { font-size: 1.5rem; }

/* The Premium Card Grid */
.premium-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.premium-card {
    background: var(--card-white);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--blue);
}

.premium-card h4 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.sub-text { font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1rem; }
.desc { font-size: 0.95rem; line-height: 1.6; color: #4a4a4a; }

/* --- Footer --- */
footer { padding: 4rem 0; text-align: center; }
.socials { margin: 2rem 0; }
.socials a { font-size: 1.5rem; color: var(--text); margin: 0 10px; transition: 0.3s; }
.socials a:hover { color: var(--pink); transform: scale(1.2); }

/* Mobile */
@media (max-width: 768px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-visual { margin-top: 3rem; }
    .nav-links { display: none; }
    .hero-text h1 { font-size: 2.5rem; }
}

.hidden { opacity: 0; transform: translateY(30px); transition: 1s all ease; }
.show { opacity: 1; transform: translateY(0); }