/* RESET & VARIABLES */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --secondary: #8b5cf6;
    --bg-dark: #0b0b0f;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text-main: #eaeaf0;
    --text-muted: #a1a1b5;
    --border: rgba(99, 102, 241, 0.25);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.7;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(11, 11, 15, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    padding: 1rem;
    list-style: none;
}

nav a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

/* HERO */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 7rem 1.5rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 820px;
}

.hero h1 {
    font-size: 3.4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--text-muted);
    margin: 1rem 0;
}

.description {
    color: #c7c7dd;
    margin-bottom: 2.5rem;
}

/* BUTTONS */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

/* SECTIONS */
section {
    padding: 6rem 1.5rem;
    max-width: 1200px;
    margin: auto;
}

h2 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 3rem;
}

/* CARDS */
.experience-grid,
.projects-grid,
.skills-grid {
    display: grid;
    gap: 2rem;
}

.projects-grid,
.skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.experience-card,
.project-card,
.skill-category {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
}

/* CERTS */
.cert-list {
    max-width: 700px;
    margin: auto;
    list-style: none;
    display: grid;
    gap: 1rem;
}

.cert-list li {
    background: var(--card-bg);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* CONTACT */
.contact-container {
    max-width: 720px;
    margin: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    background: #0f0f1a;
    border: 1px solid var(--border);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.contact-links a {
    color: var(--text-main);
    text-decoration: none;
    border: 1px solid var(--border);
    padding: 0.6rem 1.3rem;
    border-radius: 999px;
}

/* Center hCaptcha */
.h-captcha {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}


/* FOOTER */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ANIMATION */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }
}

/* =========================
   SKILL CARDS (ANIMATED)
========================= */
.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 2rem;
    text-align: center;
    transition: all 0.35s ease;
}

.skill-card h3 {
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
    color: #fff;
}

.skill-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(99, 102, 241, 0.25);
    border-color: var(--primary);
}

section.fade-in {
    scroll-margin-top: 90px;
}

.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

section.fade-in {
    scroll-margin-top: 90px;
}



/* =========================
   MODAL (THANK YOU POPUP)
========================= */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: #12121c;
    padding: 2.5rem;
    border-radius: 18px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    border: 1px solid var(--border);
    animation: scaleIn 0.3s ease;
}

.modal-content h3 {
    margin-bottom: 0.6rem;
}

.modal-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}