/* --- Root Variables (Salesforce Blue & Dark Glass Theme) --- */
:root {
    --bg-dark: #080a0f;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(16px);
    --primary: #00a1e0; /* Salesforce Blue */
    --primary-glow: rgba(0, 161, 224, 0.4);
    --accent: #38bdf8;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --font: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* --- Glassmorphism Component Style --- */
.glass {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: var(--transition);
}

.glass:hover {
    border-color: rgba(56, 189, 248, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px 0 rgba(0, 161, 224, 0.15);
}

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(8, 10, 15, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--card-border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 24px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-main);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
}

/* --- Buttons --- */
.btn {
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-primary:hover {
    background: #0081b5;
    box-shadow: 0 0 30px var(--primary-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

/* --- Hero Section --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 60px;
}

.hero-content {
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 161, 224, 0.1);
    border: 1px solid rgba(0, 161, 224, 0.3);
    border-radius: 20px;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-content h2 {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
}

.highlight {
    background: linear-gradient(135deg, #00a1e0, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    color: var(--text-muted);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

/* --- Global Section Layout --- */
.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 24px;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title span {
    font-size: 0.85rem;
    color: var(--accent);
    letter-spacing: 2px;
    font-weight: 700;
}

.section-title h2 {
    font-size: 2.2rem;
    margin-top: 8px;
}

/* --- About & Stats --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card {
    padding: 40px;
}

.about-img-placeholder {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-card {
    padding: 30px;
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--accent);
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.skill-card {
    padding: 32px;
    text-align: center;
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

/* --- Certifications --- */
.certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.cert-card {
    padding: 30px;
    text-align: center;
}

.cert-card i {
    font-size: 2.5rem;
    color: #f59e0b; /* Gold Certification Color */
    margin-bottom: 16px;
}

.cert-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.cert-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.service-card {
    padding: 36px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0, 161, 224, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.project-card {
    overflow: hidden;
}

.project-preview {
    height: 180px;
    position: relative;
    padding: 16px;
}

.project-preview.p1 { background: linear-gradient(135deg, #0284c7, #0f172a); }
.project-preview.p2 { background: linear-gradient(135deg, #0d9488, #022c22); }
.project-preview.p3 { background: linear-gradient(135deg, #4f46e5, #1e1b4b); }

.tag {
    background: rgba(0,0,0,0.6);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid var(--card-border);
}

.project-info {
    padding: 24px;
}

.project-links {
    margin-top: 20px;
    display: flex;
    gap: 12px;
}

.btn-sm {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--card-border);
}

/* --- Experience Timeline --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    padding: 30px;
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--accent);
    margin-bottom: 8px;
}

/* --- Contact --- */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    border-radius: 8px;
    color: var(--text-main);
    font-family: var(--font);
    outline: none;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
}

.full-width {
    width: 100%;
    justify-content: center;
}

/* --- Footer & Scroll Top --- */
.footer {
    padding: 40px 24px;
    border-top: 1px solid var(--card-border);
    text-align: center;
    color: var(--text-muted);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-muted);
}

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: all;
}

/* --- Responsive Rules --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        gap: 16px;
    }
}