:root {
  /* Color Palette - Deep Slate & Vibrant Amber */
  --bg-dark: #0f172a;       /* Very dark blue/slate */
  --bg-card: #1e293b;       /* Slightly lighter for cards */
  --text-main: #f8fafc;     /* Almost white */
  --text-muted: #94a3b8;    /* Muted gray for secondary text */
  --accent: #f59e0b;        /* Amber/Orange accent */
  --accent-glow: rgba(245, 158, 11, 0.2);
  
  /* Borders & Effects */
  --border-subtle: 1px solid rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 23, 42, 0.7);
  --shadow-card: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
  --radius: 16px;
  
  /* Layout */
  --max-width: 1000px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === Typography Utilities === */
h1, h2, h3 {
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.code-span {
  font-family: 'Source Code Pro', monospace;
  color: var(--accent);
  background: rgba(245, 158, 11, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  font-size: 0.9em;
}

/* === Fixed Side Bar (Desktop) === */
.fixed-social-sidebar {
  position: fixed;
  left: 40px;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  z-index: 10;
}

.social-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 20px;
}

.social-icons a {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.social-icons a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.line-div {
  width: 1px;
  height: 100px;
  background-color: var(--text-muted);
  order: 2; /* Puts line below icons */
}

/* === Navbar === */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: var(--border-subtle);
  padding: 1rem 2rem;
}

.nav-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.name-div p {
  font-family: 'Source Code Pro', monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
}

.location-div {
  display: flex;
  gap: 2rem;
}

.location-div a {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.location-div a:hover, .location-div a.active {
  color: var(--text-main);
}

/* === Main Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  /* Add margin left to accommodate sidebar on desktop */
  padding-left: 80px; 
}

/* === Hero Section === */
.about-short {
  max-height: 90vh; /* Full screen height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-top: 60px;
}

.greeting {
  font-family: 'Source Code Pro', monospace;
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-short h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  margin-bottom: 1.5rem;
}

.highlight-text {
  color: var(--text-muted); /* Make 'Full Stack' subtle or gradient */
  background: -webkit-linear-gradient(0deg, #fff, #94a3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-short-p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background-color: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: 'Source Code Pro', monospace;
  font-weight: 600;
}

.cta-button:hover {
  background-color: var(--accent-glow);
  transform: translateX(5px);
}

/* === Section Headers === */
section {
  padding:40px 0;
}
.about-short{
  padding: 80px 0 40px 0;
}

section h2 {
  display: flex;
  align-items: center;
  font-size: 2rem;
  margin-bottom: 40px;
  white-space: nowrap;
}

section h2::after {
  content: "";
  display: block;
  width: 200px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-left: 20px;
}

/* === Projects === */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}

.view-all {
  color: var(--accent);
  font-family: 'Source Code Pro', monospace;
  font-size: 0.9rem;
}

.flexible-class {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.projects-all {
  background-color: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: var(--border-subtle);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects-all:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.2);
}

.img-wrapper {
  overflow: hidden;
  height: 200px;
}

.projects-all img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.projects-all:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
}

.project-links a {
  font-size: 1.2rem;
  color: var(--text-main);
}

.project-links a:hover {
  color: var(--accent);
}

.project-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-lang {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}

/* === Skills === */
.skills-div {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
  /* Slightly wider cards to fit "Data Structures" nicely */
}

.skills-inside {
  background: var(--bg-card);
  padding: 1.5rem;
  margin:0.5em 0.1em;
  border-radius: var(--radius);
  border: var(--border-subtle);
  transition: 0.3s;
}

.skills-inside:hover {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--bg-card), rgba(245, 158, 11, 0.05));
}

.skills-inside h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-main);
}

/* Icon colors for specific categories */
.skills-inside h3 i {
  margin-right: 8px;
  color: var(--accent);
}

/* Special styling for high-priority skills (The .highlight class) */
.skills-inside p.highlight {
  border: 1px solid rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.1);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills-inside p {
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 20px;
  color: var(--text-muted);
  cursor: default;
  transition: all 0.2s ease-in-out;
}


.skills-inside p:hover {
  background: var(--accent-glow);
  color: var(--accent);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.1);
}

/* === About Me & Quote === */
.about-me-content {
  display: grid;
  gap: 2rem;
}

.about-intro {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 800px;
}

.about-intro span {
  color: var(--accent);
}

.quote-div {
  margin-top: 1rem;
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  font-style: italic;
  color: var(--text-muted);
}

.quote-writer {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-style: normal;
  color: var(--text-main);
}

/* === Contact === */
.contact-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(245, 158, 11, 0.05));
  padding: 3rem;
  border-radius: var(--radius);
  text-align: center;
  border: var(--border-subtle);
}

.contact-text {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.social-btn {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.3s;
}

.social-btn.linkedin { background: #0077b5; color: white; }
.social-btn.github { background: #333; color: white; }
.social-btn.email { background: var(--accent); color: var(--bg-dark); }

.social-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

/* === Footer === */
footer {
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
  border-top: var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
}

/* === Responsive Media Queries === */

@media (max-width: 768px) {
  /* Hide fixed sidebar on mobile */
  .fixed-social-sidebar {
    display: none;
  }
  
  /* Reset container padding */
  .container {
    padding-left: 20px;
  }

  /* Navbar Adjustments */
  .navbar {
    padding: 1rem;
  }
  
  .location-div {
    display: none; /* In a real app, you'd want a hamburger menu here */
  }

  /* Typography */
  .about-short h1 {
    font-size: 2.5rem;
  }

  /* Contact Stack */
  .contact-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .social-btn {
    justify-content: center;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}

/* --- Project Page Specific Styles --- */

.page-header {
  margin-top: 120px; /* Clears the fixed navbar */
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 2rem;
}

.page-header h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.page-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  font-family: 'Source Code Pro', monospace;
}

/* This grid is stricter than flexible-class to keep cards uniform */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem;
  margin-bottom: 4rem;
}

/* Ensure footer stays at bottom even on pages with few projects */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1; /* Pushes footer down */
}

/* Mobile Tweak for Page Header */
@media (max-width: 768px) {
  .page-header {
    margin-top: 100px;
    text-align: center;
  }
  
  .page-header h1 {
    font-size: 2.2rem;
  }
}

/* ========================================= */
        /* === MOBILE MENU  === */
/* ========================================= */

/* 1. Hide Hamburger on Desktop */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* 2. Mobile Styles */
@media (max-width: 768px) {
    
    /* Make the toggle visible */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        z-index: 999; /* Ensure it's above everything */
    }

    /* Style the 3 bars */
    .menu-toggle .bar {
        height: 3px;
        width: 100%;
        background-color: var(--text-main);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    /* 3. Transform the Navbar Links into a Sidebar */
    .location-div {
        /* Fixed position sidebar */
        position: fixed;
        top: 0;
        right: -100%; /* Hidden off-screen by default */
        width: 70%;   /* Cover 70% of screen */
        height: 100vh;
        background: rgba(15, 23, 42, 0.95); /* Deep Slate with opacity */
        backdrop-filter: blur(15px); /* Strong glass effect */
        
        /* Flex column for vertical links */
        display: flex !important; /* Force display flex to override previous hide */
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        
        transition: right 0.4s ease-in-out; /* Smooth slide animation */
        z-index: 998;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
    }

    /* 4. The Active Class (Added via JS) */
    .location-div.active {
        right: 0; /* Slide in */
    }

    /* Make links bigger on mobile */
    .location-div a {
        font-size: 1.5rem;
        font-weight: 700;
    }

    /* 5. Hamburger Animation (Turns into X) */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent); /* Turn orange */
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent);
    }
}


