/* Global Variables - Professional Dark Theme */
:root {
    --bg-color: #050510;
    /* Deep Navy/Black */
    --card-bg: rgba(26, 32, 53, 0.8);
    /* Significantly more opaque and lighter */
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    /* Lighter gray */
    --accent-color: #38bdf8;
    /* Cyan Blue */
    --accent-hover: #0ea5e9;
    --border-color: rgba(56, 189, 248, 0.25);

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Animation */
#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a2e 0%, #050510 100%);
}

/* Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    z-index: 10;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.6);
}

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

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(5, 5, 16, 0.95);
    /* More opaque navbar */
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    text-decoration: none;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: 0.3s;
    position: relative;
}

.nav-link:hover {
    color: var(--accent-color);
}

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

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

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 70px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 400;
}

.hero-tagline {
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 40px;
    font-family: monospace;
    background: rgba(56, 189, 248, 0.1);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 4px;
}

.hero-buttons {
    gap: 20px;
    display: flex;
    justify-content: center;
}

/* Section Titles */
.section-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* About Section & Stats */
.about-text {
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.8;
}

.stats-container {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: var(--card-bg);
    padding: 20px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    width: 200px;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 5px;
    font-family: var(--font-heading);
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Skills Grid */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 0 10px;
    max-width: 900px;
    margin: 0 auto;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px 30px;
    border-radius: 16px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    cursor: default;
    transition: 0.3s;
    /* Ensure opacity 1 by default if JS fails */
    opacity: 1;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 5px;
    transition: 0.3s;
    color: var(--text-primary);
    /* Default icon color if not inline */
}

/* Override inline colors for unify look if needed, but inline is fine */
.skill-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(56, 189, 248, 0.2);
    opacity: 1 !important;
    /* Force visibility */
}

.skill-card p {
    color: var(--text-primary);
    font-weight: 600;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--card-bg);
    /* Now lighter/opaque */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 280px;
    /* Ensure opacity 1 by default */
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: rgba(30, 36, 60, 0.9);
    /* Even lighter on hover */
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.project-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.tag {
    font-size: 0.75rem;
    padding: 5px 12px;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-color);
    border-radius: 20px;
    font-weight: 600;
}

.project-btn {
    text-align: center;
    width: 100%;
}

/* Experience */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.timeline-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    position: relative;
    margin-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 30px;
    width: 14px;
    height: 14px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
}

.timeline-item h3 {
    font-size: 1.3rem;
    color: var(--text-primary);
}

.timeline-item .meta {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-item ul {
    list-style-position: inside;
    color: var(--text-secondary);
}

/* Contact */
.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.contact-info,
.contact-form {
    flex: 1;
    min-width: 300px;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.contact-subtext {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.contact-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-link i {
    color: var(--accent-color);
}

.contact-link:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.contact-socials {
    display: flex;
    gap: 20px;
}

.contact-socials a {
    color: var(--text-secondary);
    font-size: 1.8rem;
    transition: 0.3s;
}

.contact-socials a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    color: #fff;
    border-radius: 6px;
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-top: 1px solid var(--border-color);
    background: #02020a;
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(5, 5, 16, 0.95);
        width: 100%;
        height: 100vh;
        padding-top: 50px;
        transition: 0.3s;
        text-align: center;
        border-top: 1px solid var(--border-color);
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-title {
        font-size: 3rem;
    }

    .stats-container {
        gap: 20px;
    }

    .timeline::before {
        left: 0;
    }

    .timeline-item {
        margin-left: 20px;
    }
}