:root {
    --primary-color: #00d2ff;
    --secondary-color: #3a7bd5;
    --dark-bg: #0f172a;
    --light-bg: #1e293b;
    --text-color: #f8fafc;
    --gray-text: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navbar */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Added for vertical centering */
    padding: 20px 10%;
    position: fixed;
    top: 0;              /* Ensure it sticks to top */
    left: 0;             /* Fixes the width/overflow issue */
    right: 0;            
    z-index: 1000;
    background: transparent; /* Start transparent as per your JS logic */
    transition: 0.4s;    /* Smooth transition for the color change */
}

/* ... existing code ... */

.time { font-weight: bold; color: var(--primary-color); }

/* Ensure no dangling braces at the end */
#navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

#navbar ul {
    display: flex;
    list-style: none;
}

#navbar ul li a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 30px;
    font-weight: 400;
    transition: 0.3s;
}

#navbar ul li a:hover {
    color: var(--primary-color);
}

/* Hero Section */
header#home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(15,23,42,0.8), rgba(15,23,42,0.8)), url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
}

.highlight { color: var(--primary-color); }

h1 { font-size: 4rem; margin-bottom: 10px; }
.hero-content p { font-size: 1.5rem; color: var(--gray-text); }

.btn {
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    margin-top: 20px;
    transition: 0.3s;
}

.primary { background: var(--primary-color); color: #000; font-weight: 600; }
.secondary { border: 2px solid var(--primary-color); color: var(--primary-color); margin-left: 15px; }

.btn:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3); }

/* Sections */
.section { padding: 100px 10%; }
.section-title { font-size: 2.5rem; margin-bottom: 50px; text-align: center; }
.bg-light { background-color: var(--light-bg); }

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: 0.4s;
}

.skill-card:hover { background: rgba(0, 210, 255, 0.1); border-color: var(--primary-color); }
.skill-card i { font-size: 3rem; color: var(--primary-color); margin-bottom: 20px; }

/* Timeline */
.timeline { border-left: 2px solid var(--primary-color); padding-left: 30px; margin: 0 auto; max-width: 800px; }
.timeline-item { position: relative; margin-bottom: 50px; }
.timeline-item::before {
    content: '';
    position: absolute;
    left: -41px;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
}

.time { font-weight: bold; color: var(--primary-color); }
/* Experience Badge Style */
.experience-badge {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: linear-gradient(90deg, rgba(0, 210, 255, 0.1), transparent);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
}

.experience-badge .years {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Tech Matrix Layout */
.tech-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.matrix-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s ease;
}

.matrix-item:hover {
    background: rgba(0, 210, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.matrix-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.matrix-item h4 {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-color);
}

/* Tech Tags/Pills */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--gray-text);
    border: 1px solid transparent;
    transition: 0.3s;
}

.tags span:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: transparent;
}