:root {
    /* Dark Mode (Default) */
    --bg-primary: #0a0a0c;
    --bg-secondary: #16161a;
    --text-primary: #e4e4e7;
    --text-secondary: #a1a1aa;
    --accent: #2dd4bf; /* Teal */
    --accent-glow: rgba(45, 212, 191, 0.2);
    --border: #27272a;
    --card-bg: #18181b;
    --nav-bg: rgba(10, 10, 12, 0.8);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.light-mode {
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --accent: #0d9488;
    --accent-glow: rgba(13, 148, 136, 0.1);
    --border: #e2e8f0;
    --card-bg: #ffffff;
    --nav-bg: rgba(248, 250, 252, 0.8);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
}

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

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

.logo {
    font-size: 1.8rem;
    letter-spacing: -1px;
}

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

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

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

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

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

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

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#theme-toggle, #mobile-menu-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

#mobile-menu-toggle {
    display: none;
}

#theme-toggle:hover, #mobile-menu-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 12, 0.7), rgba(10, 10, 12, 0.7)), url('assets/hero-abstract.png');
    background-size: cover;
    background-position: center;
    z-index: -1;
    transition: background 0.5s ease;
}

.light-mode .hero-background {
    background: linear-gradient(rgba(248, 250, 252, 0.8), rgba(248, 250, 252, 0.8)), url('assets/hero-abstract.png');
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--accent-glow);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: fit-content;
    margin: 0 auto;
}

.image-bg-blob {
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
    animation: blob-float 10s infinite alternate;
}

@keyframes blob-float {
    from { transform: translate(-5%, -5%) scale(1); }
    to { transform: translate(5%, 5%) scale(1.1); }
}

.image-inner-wrapper {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: var(--transition);
    aspect-ratio: 1/1;
    width: 400px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(0.2);
    transition: var(--transition);
}

.image-overlay-border {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), transparent) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    transition: var(--transition);
}

.tech-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    z-index: 10;
    transition: var(--transition);
}

.light-mode .tech-badge {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.tech-badge i {
    color: var(--accent);
}

/* Hover Effects */
.hero-image-wrapper:hover .image-inner-wrapper {
    transform: translateY(-10px) rotate(1deg);
}

.hero-image-wrapper:hover .profile-img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.hero-image-wrapper:hover .image-overlay-border {
    opacity: 1;
}

/* Sections */
section {
    padding: 8rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

/* Technology Eras */
.era-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 6rem 0 3rem;
  padding: 2rem;
  background: var(--bg-secondary);
  border-radius: 24px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background-color 0.5s ease, border-color 0.5s ease;
}

.era-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.era-cloud::before { background: var(--accent); box-shadow: 0 0 20px var(--accent); }
.era-virtualization::before { background: #6366f1; box-shadow: 0 0 20px rgba(99, 102, 241, 0.5); }
.era-linux::before { background: #f59e0b; box-shadow: 0 0 20px rgba(245, 158, 11, 0.5); }

.era-icon {
  width: 60px;
  height: 60px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
}

.era-virtualization .era-icon { color: #6366f1; }
.era-linux .era-icon { color: #f59e0b; }

.era-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.era-info h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.era-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Vertical Timeline (Rollback) */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

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

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: 4rem;
}

.timeline-dot {
    position: absolute;
    left: 13px;
    top: 5px;
    width: 16px;
    height: 16px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    z-index: 10;
}

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

.timeline-content {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.timeline-content:hover {
    border-color: var(--accent);
    transform: translateX(10px);
}

.timeline-content h3 { margin-bottom: 0.5rem; }
.company { color: var(--text-secondary); margin-bottom: 0.25rem; font-style: italic; }
.team-name { color: var(--accent); font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.team-name::before { content: '\f0c0'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.75rem; }
.timeline-content ul { list-style: none; }
.timeline-content li { position: relative; padding-left: 1.5rem; margin-bottom: 0.5rem; color: var(--text-secondary); }
.timeline-content li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* Lazy Loading */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.era-header.reveal {
    display: flex; /* Maintain flex for era headers */
}

/* Showcase */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.showcase-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 350px;
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.showcase-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(10, 10, 12, 0.9));
    color: #fff;
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition);
}

.light-mode .showcase-info {
    background: rgba(255, 255, 255, 0.98);
    color: #0f172a;
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-item:hover .showcase-info {
    transform: translateY(0);
    opacity: 1;
}

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

.skill-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-align: center;
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
}

.skill-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Hobbies */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.hobby-card {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-align: center;
}

.hobby-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

/* Footer */
footer {
    padding: 6rem 0 3rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links i {
    color: var(--accent);
    width: 20px;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 1.1rem;
    width: 20px;
}

/* Responsive */
@media (max-width: 968px) {
    #mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: var(--transition);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    #hero {
        padding-top: 120px;
        height: auto;
        min-height: 100vh;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrapper {
        order: -1;
        margin-bottom: 2rem;
    }

    .image-inner-wrapper {
        width: 280px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .era-header {
      flex-direction: column;
      text-align: center;
      gap: 1.5rem;
      padding: 2rem 1rem;
    }

    .era-header::before {
      width: 100%;
      height: 4px;
      top: 0;
      left: 0;
    }
}
 top: 0;
      left: 0;
    }
}
