:root {
    --bg: #020617;
    --card: rgba(30, 41, 59, 0.75);
    --text: #e5e7eb;
    --muted: #94a3b8;
    --primary: #3b82f6;
    --accent: #22d3ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* BACKGROUND BLUR */
.bg-blur {
    position: fixed;
    top: -200px;
    left: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3b82f6, transparent 70%);
    filter: blur(120px);
    z-index: -1;
}

/* HERO */
.hero {
    min-height: 100vh;
    padding: 0 20px 30px 20px; /* Reduced bottom padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.badge {
    background: rgba(59, 130, 246, 0.15);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    max-width: 600px;
    margin-top: 20px;
    color: var(--muted);
}

/* BUTTONS */
.buttons {
    margin-top: 15px; /* smaller gap to skills */
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 26px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn.primary {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    color: #fff;
}

.btn.primary:hover {
    transform: translateY(-3px);
}

.btn.ghost {
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn.ghost:hover {
    background: var(--primary);
    color: #fff;
}

/* SECTIONS */
.section {
    max-width: 1000px;
    margin: auto;
    padding: 40px 20px; /* Reduced padding to decrease vertical space */
}

.section h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 50px;
}

/* SKILLS */
.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.skills span {
    position: relative;
    background: var(--card);
    backdrop-filter: blur(12px);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: default;
    transition: transform 0.3s ease;
}

/* Skill hover lift */
.skills span:hover {
    transform: translateY(-5px);
}

/* Tooltip card */
.skills span::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.95);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

/* Tooltip arrow */
.skills span::before {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(59, 130, 246, 0.95) transparent transparent transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show tooltip on hover */
.skills span:hover::after,
.skills span:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* PROJECTS */
.projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.card {
    background: var(--card);
    backdrop-filter: blur(14px);
    padding: 30px;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card h3 {
    margin-bottom: 12px;
}

/* EDUCATION */
.education-card {
    background: var(--card);
    backdrop-filter: blur(14px);
    padding: 30px;
    border-radius: 16px;
    text-align: center;
}

/* CONTACT */
.contact {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact a {
    color: var(--primary);
    text-decoration: none;
}

/* FOOTER */
footer {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    background: #020617;
}

footer span {
    color: var(--primary);
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    animation: fade 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 0.9s; }

@keyframes fade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
