/* Variables */
:root {
    --primary: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-color: #1e293b;
    --text-light: #64748b;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.dark-theme {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --text-color: #f1f5f9;
    --text-light: #94a3b8;
}

/* Base Styles */
* {
    margin: 0; padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: 0.4s;
    overflow-x: hidden;
}

.container { max-width: 1100px; margin: auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 1.5rem; }
.section { padding: 6rem 0 2rem; }
.section__title { font-size: 2rem; text-align: center; margin-bottom: 3rem; }

/* Blobs Background */
.blob-1, .blob-2 {
    position: fixed; width: 400px; height: 400px;
    background: var(--primary); filter: blur(100px);
    opacity: 0.1; border-radius: 50%; z-index: -1;
}
.blob-1 { top: -100px; left: -100px; }
.blob-2 { bottom: -100px; right: -100px; }

/* Header & Nav */
.header {
    position: fixed; top: 0; width: 100%;
    backdrop-filter: blur(15px); z-index: 1000;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.nav { height: 4.5rem; display: flex; justify-content: space-between; align-items: center; }
.nav__logo { font-weight: 700; font-size: 1.5rem; color: var(--text-color); }
.nav__logo span { background: var(--primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav__list { display: flex; gap: 2rem; }
.nav__link { font-weight: 500; color: var(--text-color); }
.nav__actions { display: flex; align-items: center; gap: 1.5rem; font-size: 1.25rem; cursor: pointer; }

/* Home Section */
.home__container { grid-template-columns: 1.2fr 0.8fr; align-items: center; }
.home__title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1rem; }
.home__title span { background: var(--primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.home__description { margin-bottom: 2rem; color: var(--text-light); font-size: 1.1rem; }
.home__social { display: flex; gap: 1rem; margin-bottom: 2rem; }
.social-icon { width: 45px; height: 45px; display: flex; align-items: center; justify-content: center; background: var(--card-bg); border-radius: 12px; font-size: 1.3rem; transition: 0.3s; }
.social-icon:hover { background: var(--primary); color: white; transform: translateY(-5px); }
.button { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--primary); color: white; padding: 1rem 2rem; border-radius: 50px; font-weight: 600; box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3); transition: 0.3s; }
.button:hover { opacity: 0.9; transform: translateY(-3px); }

/* Morphing Profile Image */
.home__blob {
    width: 320px; height: 320px; background: var(--primary);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: morph 8s ease-in-out infinite; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
@keyframes morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Skill Cards */
.skills__container { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.skill__card { background: var(--card-bg); padding: 2rem; border-radius: 24px; text-align: center; border: 1px solid rgba(255,255,255,0.1); transition: 0.3s; }
.skill__card i { font-size: 3rem; background: var(--primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.skill__card:hover { transform: translateY(-10px); background: white; }

/* Project Cards */
.projects__container { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.project__card { background: var(--card-bg); border-radius: 24px; overflow: hidden; border: 1px solid rgba(255,255,255,0.1); }
.project__img { height: 200px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 700; color: white; }
.project__content { padding: 1.5rem; }

/* Contact Form */
.contact__container { grid-template-columns: 1fr 1fr; background: var(--card-bg); padding: 3rem; border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); }
.contact__input { padding: 1rem; border-radius: 12px; border: 1px solid #e2e8f0; background: rgba(255,255,255,0.5); outline: none; transition: 0.3s; }
.contact__input:focus { border-color: #a855f7; }

/* Footer */
.footer { text-align: center; padding: 4rem 0; color: var(--text-light); }

/* Responsive */
@media (max-width: 768px) {
    .home__container { grid-template-columns: 1fr; text-align: center; }
    .home__title { font-size: 2.5rem; }
    .home__social { justify-content: center; }
    .nav__menu { position: fixed; top: -100%; left: 0; width: 100%; background: var(--bg-color); padding: 4rem; transition: 0.4s; }
    .nav__menu.show-menu { top: 0; }
    .nav__list { flex-direction: column; text-align: center; }
    .contact__container { grid-template-columns: 1fr; }
}