@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;700&display=swap');

/* --- 1. BASE STYLES --- */
:root {
    --primary: #6366f1;
    --dark: #1e293b;
    --glass-bg: rgba(255, 255, 255, 0.3);
    --glass-border: rgba(255, 255, 255, 0.4);
    --blur-strength: 15px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #f0f9ff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* --- 2. BACKGROUND BLOBS --- */
.background-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; overflow: hidden;
    background: linear-gradient(to bottom right, #f0fdf4, #e0f2fe);
}
.blob {
    position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.6;
    animation: move infinite alternate;
}
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: #a5f3fc; animation-duration: 25s; }
.blob-2 { bottom: -10%; right: -10%; width: 50vw; height: 50vw; background: #c4b5fd; animation-duration: 30s; animation-delay: -5s; }
.blob-3 { top: 40%; left: 40%; width: 40vw; height: 40vw; background: #86efac; animation-duration: 20s; animation-delay: -10s; }
@keyframes move { 100% { transform: translate(30px, 50px) scale(1.1); } }

/* --- 3. SCROLL SPAWN ANIMATIONS --- */
.hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(100px) scale(0.9); /* Starts lower and smaller */
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); /* Smooth 'Pop' ease */
}

.show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

/* Staggered Delays (This makes them spawn one by one) */
.delay-1 { transition-delay: 100ms; }
.delay-2 { transition-delay: 200ms; }
.delay-3 { transition-delay: 300ms; }

/* --- 4. NAVIGATION --- */
nav {
    background: rgba(255, 255, 255, 0.5); backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    padding: 1rem 10%; display: flex; justify-content: space-between; align-items: center;
    position: sticky; top: 0; z-index: 1000;
}
.logo { font-weight: 700; font-size: 1.4rem; color: var(--primary); text-decoration: none; }
.nav-links a { text-decoration: none; color: #334155; margin-left: 2.5rem; font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* --- 5. HERO & BUTTONS --- */
header {
    min-height: 90vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px;
}
h1 { font-size: 4rem; font-weight: 800; color: #0f172a; margin-bottom: 20px; line-height: 1.1; }
.hero-p { font-size: 1.25rem; color: #475569; max-width: 650px; margin-bottom: 40px; }

.btn {
    padding: 16px 32px; border-radius: 50px; text-decoration: none; font-weight: 600;
    transition: all 0.5s ease; /* Slower transition for color fill */
    display: inline-flex; align-items: center; gap: 10px;
    position: relative; overflow: hidden; z-index: 1;
}
.btn-primary { background: #0f172a; color: white; box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2); }

/* Button Fill Effect */
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary); transition: width 0.5s ease; z-index: -1;
}
.btn-primary:hover::before { width: 100%; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4); }

.btn-secondary { background: white; color: #0f172a; border: 1px solid #e2e8f0; }
.btn-secondary:hover { background: #f1f5f9; transform: translateY(-3px); }

/* --- 6. CARDS (The Color Fill Magic) --- */
section { padding: 100px 10%; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-weight: 700; color: #1e293b; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.card {
    background: rgba(255, 255, 255, 0.5); /* Semi-transparent start */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 40px 30px; border-radius: 24px;
    text-align: center; text-decoration: none; color: inherit;
    /* Smooth Transition settings */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative; overflow: hidden;
}

/* The Hover Effect */
.card:hover {
    transform: translateY(-15px) scale(1.02);
    /* This fills it with a light indigo tint */
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(99, 102, 241, 0.15));
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.15);
}

.card-icon {
    width: 60px; height: 60px; background: white; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary); margin: 0 auto 20px auto;
    transition: 0.6s ease;
}
/* Icon rotates and changes color on hover */
.card:hover .card-icon {
    background: var(--primary); color: white; transform: rotateY(180deg);
}

/* About Panel */
.about-panel {
    background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(20px);
    border-radius: 30px; padding: 60px; text-align: center; max-width: 900px; margin: 0 auto;
}

/* --- PASTE THIS AT THE BOTTOM OF STYLE-HOME.CSS --- */

/* Social Buttons (GitHub & LinkedIn) */
.social-btn {
    width: 50px;            /* Size of the white circle */
    height: 50px;
    border-radius: 50%;
    background: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;        /* Size of the icon itself */
    color: #333;
    margin: 0 15px;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    text-decoration: none;
}

.social-btn:hover {
    transform: scale(1.15); /* Pop effect */
    color: var(--primary);
    box-shadow: 0 15px 30px rgba(99, 102, 241, 0.4);
}

@media (max-width: 768px) { h1 { font-size: 2.5rem; } .nav-links { display: none; } }