:root {
    --bg-color: #f8fafc;        /* Off-white background */
    --text-color: #0f172a;      /* Near-black text */
    --card-bg: #ffffff;         /* Pure white for cards/nav */
    --primary-color: #0052cc;   /* Solid classic blue */
    --accent-color: #00d2ff;    /* Bright sky blue */
    --border-color: #e2e8f0;    /* Light gray border */
}

[data-theme="dark"] {
    --bg-color: #000000;        /* Pure black background */
    --text-color: #f8fafc;      /* Crisp white text */
    --card-bg: #0b0f19;         /* Very dark navy/black for cards */
    --primary-color: #38bdf8;   /* Electric tech blue */
    --accent-color: #60a5fa;    /* Lighter accent blue */
    --border-color: #1e293b;    /* Dark slate border */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: background-color 0.3s, color 0.3s;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}
/* --- Tech Navbar Styles --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: rgba(255, 255, 255, 0.75); /* Translucent background */
    backdrop-filter: blur(12px);         /* Modern frosted glass effect */
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 82, 204, 0.05);
}

/* Apply a glowing dark border when dark mode is active */
[data-theme="dark"] .navbar {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5), 0 1px 10px rgba(58, 189, 248, 0.1);
}

.logo {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    color: var(--primary-color);
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    padding: 8px 0;
    font-family: 'Segoe UI', sans-serif;
}

/* Tech Hover Underline Effect */
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    box-shadow: 0 0 8px var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Tech Theme Toggle Button Upgrade */
.theme-btn {
    background: rgba(0, 82, 204, 0.05);
    border: 1px solid var(--border-color);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-btn:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

/* --- High-Tech Hero Landing Section --- */
.hero-section {
    position: relative;
    padding: 140px 20px;
    text-align: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(0, 82, 204, 0.05), transparent 70%);
}

[data-theme="dark"] .hero-section {
    background: radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.1), transparent 60%);
}

/* Digital Grid Background Layer */
.tech-bg-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 82, 204, 0.03) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(0, 82, 204, 0.03) 1px, transparent 1px);
    z-index: 1;
    pointer-events: none;
}

[data-theme="dark"] .tech-bg-grid {
    background-image: linear-gradient(to right, rgba(56, 189, 248, 0.04) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
}

/* Background floating text */
.code-snippet-bg {
    position: absolute;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    opacity: 0.15;
    color: var(--primary-color);
    bottom: 20px;
    right: 40px;
    user-select: none;
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 5;
}

/* Terminal Active Tag */
.terminal-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 82, 204, 0.08);
    border: 1px solid rgba(0, 82, 204, 0.2);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

[data-theme="dark"] .terminal-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.hero-section h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
}

/* Tech Neon Title Accent */
.highlight-glitch {
    color: var(--primary-color);
    position: relative;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.hero-section h2 {
    font-size: 22px;
    font-weight: 500;
    opacity: 0.85;
    font-family: 'Courier New', Courier, monospace;
    max-width: 600px;
    margin: 0 auto 25px auto;
    color: var(--text-color);
}

.cta-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 35px;
}

/* Glowing Cyber Action Button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: #ffffff !important;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    box-shadow: 0 4px 15px rgba(0, 82, 204, 0.3);
}

.btn-primary i {
    transition: transform 0.2s ease;
}

.btn-primary:hover i {
    transform: translateX(4px);
}

.btn-primary:hover {
    box-shadow: 0 0 25px var(--primary-color);
    opacity: 0.95;
}

/* Social icons position adjusting inside layout */
.hero-section .social-icons {
    display: flex;
    gap: 15px;
}

@media (max-width: 768px) {
    .hero-section h1 { font-size: 40px; }
    .cta-group { flex-direction: column; gap: 20px; }
}
/* Sections General */
.section-title {
    text-align: center;
    font-size: 32px;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 4px;
    background: var(--primary-color);
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Skills Cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.skill-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

/* --- High-Tech Experience Timeline --- */
.exp-section {
    position: relative;
    padding: 60px 20px;
}

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
    padding-left: 35px;
    border-left: 2px solid var(--border-color);
}

/* Make the line glow blue in dark mode */
[data-theme="dark"] .timeline {
    border-left: 2px solid rgba(56, 189, 248, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-dot {
    position: absolute;
    left: -42px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    z-index: 2;
}

.timeline-date {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    color: var(--primary-color);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.timeline-content {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .timeline-content {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 6px;
}

.job-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.company-tag {
    font-family: 'Fira Code', monospace;
    font-size: 13px;
    background: rgba(0, 82, 204, 0.07);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: bold;
    border: 1px solid rgba(0, 82, 204, 0.1);
}

[data-theme="dark"] .company-tag {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.job-type {
    font-size: 13px;
    opacity: 0.7;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.tech-bullet-points {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.tech-bullet-points li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 15px;
}

.tech-bullet-points li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: -2px;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: bold;
}

/* Inline reference info wrapper */
.reference-box {
    margin: 15px 0;
    padding: 10px 15px;
    background: rgba(0, 0, 0, 0.02);
    border-left: 3px solid var(--border-color);
    font-size: 13px;
    font-family: 'Courier New', monospace;
    opacity: 0.85;
}

[data-theme="dark"] .reference-box {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid rgba(56, 189, 248, 0.4);
}

/* Tech Badges Container styling */
.tech-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

[data-theme="dark"] .tech-badge-container {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-badge {
    font-size: 11px;
    font-family: 'Fira Code', monospace;
    font-weight: 600;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 2px 8px;
    border-radius: 4px;
    opacity: 0.8;
}

.timeline-item:hover .timeline-dot {
    background: var(--primary-color);
    box-shadow: 0 0 15px var(--primary-color);
}

@media (max-width: 576px) {
    .job-header { flex-direction: column; align-items: flex-start; }
}

/* Education */
.edu-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    max-width: 800px;
    margin: 0 auto;
}

.institution {
    color: var(--primary-color);
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid var(--border-color);
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .hero-section h1 {
        font-size: 36px;
    }
}