/* --- VARIABLES & RESET --- */
:root {
    /* Colorful Theme Palette */
    --bg-dark: #0f172a;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    
    /* Vibrant Gradients */
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --card-gradient: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    
    /* Accents */
    --accent-color: #22d3ee; /* Cyan */
    --border-radius: 16px;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- BACKGROUND BLOBS (The colorful glow) --- */
.blob {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    animation: move 20s infinite alternate;
}

.blob-1 {
    background: #7c3aed; /* Purple */
    top: -100px;
    left: -100px;
}

.blob-2 {
    background: #db2777; /* Pink */
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes move {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(50px, 50px) scale(1.1); }
}

/* --- TYPOGRAPHY & UTILITIES --- */
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Glassmorphism Card Style */
.glass-card {
    background: var(--card-gradient);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
}

.logo .dot { color: var(--accent-color); font-size: 2rem; line-height: 0;}

.navbar { display: flex; }
.nav-list { display: flex; gap: 30px; }

.nav-link {
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-color);
    transition: width 0.3s;
}

.nav-link:hover { color: var(--accent-color); }
.nav-link:hover::after { width: 100%; }

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
}

.hero-content h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.hero-name {
    font-size: 4rem;
    line-height: 1.1;
    margin: 10px 0;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-gray);
}

.hero-desc {
    max-width: 500px;
    margin-bottom: 30px;
    color: var(--text-gray);
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    border: none;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--accent-color);
    color: var(--bg-dark);
}

/* --- PROFILE IMAGE --- */
.profile-container {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 50px rgba(34, 211, 238, 0.6);
}

/* --- ABOUT --- */
.about-container { display: flex; justify-content: center; }
.about-text { max-width: 800px; text-align: center; font-size: 1.1rem; }
.about-text p { margin-bottom: 15px; }

/* --- SKILLS --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.skill-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px;
    transition: 0.3s;
}

.skill-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.skill-icon { font-size: 3rem; margin-bottom: 10px; }

/* --- PROJECTS --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    transition: 0.3s;
}

.project-card:hover { transform: translateY(-10px); }

.project-top h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.tech-tags span {
    font-size: 0.8rem;
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 20px;
    color: #cbd5e1;
}

.project-links { margin-top: 20px; }
.btn-sm {
    font-size: 0.9rem;
    color: var(--text-white);
    border-bottom: 1px solid var(--accent-color);
}
.btn-sm:hover { color: var(--accent-color); }

/* --- CONTACT --- */
.contact-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.email-link {
    display: block;
    margin: 30px 0;
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 2rem;
    color: var(--text-gray);
}

.social-links a:hover { color: var(--text-white); transform: scale(1.1); }

/* --- FOOTER --- */
.footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--text-gray);
}

/* --- RESPONSIVE --- */
.hamburger { display: none; cursor: pointer; }
.bar { width: 25px; height: 3px; background: white; margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
    .header { padding: 15px 20px; }
    
    .hero { 
        flex-direction: column-reverse; 
        text-align: center; 
        justify-content: center; 
        gap: 40px; 
    }
    
    .hero-visual {
        margin-top: 30px;
    }
    
    .profile-container {
        width: 250px;
        height: 250px;
    }

    .hero-buttons { justify-content: center; }
    .hero-name { font-size: 2.5rem; }
    
    .hamburger { display: block; z-index: 200; }
    
    .navbar {
        position: fixed;
        right: -100%;
        top: 0;
        width: 70%;
        height: 100vh;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s;
    }
    
    .navbar.active { right: 0; }
    .nav-list { flex-direction: column; }
    
    /* Hamburger Animation */
    .hamburger.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active .bar:nth-child(2) { opacity: 0; }
    .hamburger.active .bar:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
}

/* Scroll Reveal Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}