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

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #1a1a2e;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-border: rgba(99, 102, 241, 0.3);
    --border: #27272a;
    --success: #10b981;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ===========================
   NAVIGATION
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--accent);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-light);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===========================
   HERO SECTION
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    letter-spacing: -2px;
    margin-bottom: 0.5rem;
    position: relative;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--accent-light);
    font-weight: 500;
    margin-bottom: 1rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ===========================
   TAGS / PILLS
   =========================== */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.tag {
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--accent-border);
    transition: all 0.3s ease;
}

.tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

/* ===========================
   SECTIONS (General)
   =========================== */
section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

section h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1rem;
}

/* ===========================
   ABOUT SECTION
   =========================== */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-size: 1rem;
    line-height: 1.8;
}

.about-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    padding: 1.2rem;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.info-item:hover {
    border-color: var(--accent-border);
}

.info-item .label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}

.info-item .value {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ===========================
   EXPERIENCE / TIMELINE
   =========================== */
.timeline {
    margin-top: 2rem;
}

.timeline-item {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 3.5rem;
    border-left: 2px solid var(--border);
    padding-bottom: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 8px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-item .date {
    font-size: 0.85rem;
    color: var(--accent-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-item h3 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.25rem;
    color: var(--text-primary);
}

.timeline-item .company {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.timeline-item ul {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}

.timeline-item ul li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.project-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.project-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.metric {
    display: inline-block;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ===========================
   SKILLS SECTION
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.skill-category {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent-border);
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent-light);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.skill-category ul {
    list-style: none;
}

.skill-category ul li {
    color: var(--text-secondary);
    padding: 0.5rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(39, 39, 42, 0.5);
    transition: color 0.3s ease;
}

.skill-category ul li:last-child {
    border-bottom: none;
}

.skill-category ul li:hover {
    color: var(--text-primary);
}

/* ===========================
   CERTIFICATIONS SECTION
   =========================== */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.cert-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.cert-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
}

.cert-card h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.cert-card p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

/* ===========================
   AWARDS SECTION
   =========================== */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.award-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 14px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.award-card::before {
    content: '🏆';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.5rem;
}

.award-card:hover {
    border-color: var(--accent-border);
    transform: translateY(-3px);
}

.award-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    padding-right: 2rem;
}

.award-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===========================
   CONTACT SECTION
   =========================== */
.contact {
    text-align: center;
}

.contact p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 1rem auto 2rem;
    line-height: 1.8;
}

.contact-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.contact-btn {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
    color: var(--accent-light);
}

.contact-btn:first-child {
    background: var(--accent);
    color: white;
    border: none;
}

.contact-btn:first-child:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.contact-btn:hover {
    background: var(--accent-glow);
    transform: translateY(-2px);
}

/* ===========================
   FOOTER
   =========================== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ===========================
   ANIMATIONS (Fade In on Scroll)
   =========================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ===========================
   RESPONSIVE DESIGN
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
    .cert-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .tagline {
        font-size: 1rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .project-grid {
        grid-template-columns: 1fr;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .cert-grid {
        grid-template-columns: 1fr;
    }

    .awards-grid {
        grid-template-columns: 1fr;
    }

    .contact-links {
        flex-direction: column;
        align-items: center;
    }

    .timeline-item {
        padding-left: 1.5rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .skill-category {
        padding: 1.5rem;
    }
}