:root {
    --bg-color: #0d0d12;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-primary: #7d4fff;
    --accent-secondary: #00e0ff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition-speed: 0.3s;
}

:root[data-theme="light"] {
    --bg-color: #f5f5f7;
    --text-primary: #1a1a2e;
    --text-secondary: #555566;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(0, 0, 0, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    --accent-primary: #6200ea;
    --accent-secondary: #00b0ff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    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;
    transition: background-color 0.3s, color 0.3s;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite alternate;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-primary), transparent 70%);
    top: -10%;
    left: -10%;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-secondary), transparent 70%);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Typography & Utilities */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-speed);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    box-shadow: 0 4px 15px rgba(125, 79, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(125, 79, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    margin-left: 1rem;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 1100;
    /* Above navbar */
    display: flex;
    align-items: center;
}

.toggle-switch-input {
    display: none;
}

.toggle-switch-label {
    width: 60px;
    height: 30px;
    background-color: var(--glass-border);
    border-radius: 30px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--text-secondary);
    transition: background-color 0.3s;
}

.toggle-switch-label::after {
    content: '';
    width: 24px;
    height: 24px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s, background-color 0.3s;
    z-index: 2;
}

/* Checkbox checked state */
.toggle-switch-input:checked+.toggle-switch-label::after {
    transform: translateX(30px);
    background-color: #ffd700;
    /* Sun color */
}

/* Icons via content/emoji for simplicity */
.toggle-switch-label::before {
    content: '🌙';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.toggle-switch-label .sun-icon::before {
    content: '☀️';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.3s;
}

.toggle-switch-input:checked+.toggle-switch-label .sun-icon::before {
    opacity: 1;
}

.toggle-switch-input:checked+.toggle-switch-label::before {
    opacity: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background 0.3s;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -1px;
}

.logo .dot {
    color: var(--accent-secondary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

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

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

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    /* Navbar height */
    position: relative;
}

.hero-content {
    max-width: 600px;
    /* Animation removed for stability */
}

/* Animations disabled for immediate visibility fix */
.section-title,
.glass-card,
.blog-card {
    opacity: 1;
    transform: none;
}

.greeting {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* Blog Section */
.blog-section {
    padding: 100px 0;
}

.section-tag {
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 3rem;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glass-shadow);
    border-color: rgba(255, 255, 255, 0.2);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.blog-card:hover .blog-image {
    opacity: 1;
}

.blog-card-content {
    padding-top: 0.5rem;
}

.blog-tags {
    margin-bottom: 1rem;
}

.tag {
    background: rgba(125, 79, 255, 0.2);
    color: #ae8aff;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    margin-right: 8px;
}

.blog-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.blog-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

/* CV Section */
.cv-section {
    padding: 100px 0;
    position: relative;
}

.cv-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
    transition: transform 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.timeline-item {
    position: relative;
    padding-left: 1.5rem;
    border-left: 2px solid var(--glass-border);
    padding-bottom: 2rem;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

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

.timeline-date {
    font-size: 0.9rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Timeline Styles Update */
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.timeline-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    padding: 0;
    flex-shrink: 0;
}

.timeline-text {
    flex: 1;
    min-width: 0;
    /* Prevents overflow */
    padding-right: 1rem;
}

.timeline-content h4 {
    margin-bottom: 0.25rem;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--text-primary);
}

.timeline-degree {
    color: var(--text-primary);
    /* Same color as requested */
    font-size: 0.95rem;
    /* Smaller */
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.8;
    /* Slight differentiation via opacity instead of color if desired, or remove */
}

.timeline-content ul {
    list-style-type: none;
    /* Custom bullet points */
    padding-left: 0;
    margin-top: 0.5rem;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.timeline-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-secondary);
    font-weight: bold;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.skill-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all 0.2s;
}

.skill-tag:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    transform: scale(1.05);
}

.cv-download {
    text-align: center;
    margin-top: 3rem;
}

.footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
    color: var(--text-secondary);
}

.social-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    opacity: 0.7;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        /* Add hamburger logic later */
    }

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

    .cv-layout {
        grid-template-columns: 1fr;
    }
}