/* ==========================================
   CSS Variables & Root Styles
   ========================================== */
:root {
  /* Color Palette */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-dark: #0b1220;
  --bg-card: #1e293b;
  --bg-card-hover: #283548;

  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --accent-primary: #3b82f6;
  --accent-secondary: #60a5fa;
  --accent-tertiary: #2563eb;
  --accent-red: #ef4444;

  --success: #10b981;
  --warning: #f59e0b;
  --border: #334155;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Typography */
  --font-sans:
    "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Fira Code", "Consolas", monospace;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme */
.light-theme {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-dark: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #f8fafc;

  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border: #e2e8f0;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* ==========================================
   Base Styles
   ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ==========================================
   Typography
   ========================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
}

h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.25rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.25rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-secondary);
}

/* ==========================================
   Layout
   ========================================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section {
  padding: var(--spacing-2xl) 0;
  position: relative;
}

.dark-section {
  background: var(--bg-dark);
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.section-header.center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-sm);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  background: linear-gradient(
    135deg,
    var(--text-primary),
    var(--accent-primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.125rem;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: 1rem 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.light-theme .navbar {
  background: rgba(255, 255, 255, 0.95);
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  align-items: center;
}

.nav-menu li a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-menu li a:hover {
  color: var(--accent-primary);
  background: var(--bg-card);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.theme-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  transform: rotate(15deg);
}

.theme-toggle .material-icons {
  color: var(--text-primary);
  font-size: 1.25rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ==========================================
   Hero Section with Profile Photo
   ========================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(30px, -30px);
  }
}

/* Hero Wrapper for Two-Column Layout */
.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  position: relative;
  width: 100%;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.hero-image {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.status-indicator {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-sm);
  line-height: 1.1;
}

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

.hero-description {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
}

.hero-tech-stack {
  margin-bottom: var(--spacing-xl);
}

.tech-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.tech-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.tech-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

.tech-badge:hover {
  border-color: var(--accent-primary);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.tech-badge .material-icons {
  font-size: 1.125rem;
  color: var(--accent-primary);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ==========================================
   Profile Photo Styles
   ========================================== */
.profile-photo-wrapper {
  position: relative;
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animated Border Effect (Red Sketch Style) */
/* .profile-photo-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-red);
    border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
    animation: morphBorder 8s ease-in-out infinite;
    z-index: 1;
}

@keyframes morphBorder {
    0%, 100% {
        border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 58% 42% 45% 55% / 70% 30% 45% 55%;
    }
    50% {
        border-radius: 45% 55% 60% 40% / 55% 45% 70% 30%;
        transform: rotate(5deg);
    }
    75% {
        border-radius: 55% 45% 40% 60% / 45% 70% 30% 55%;
    }
} */

/* Glow Effect Behind Photo */
.profile-glow {
  position: absolute;
  width: 110%;
  height: 110%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.3) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse-glow 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.05);
  }
}

/* Profile Photo */
.profile-photo {
  position: relative;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--bg-card);
  box-shadow: var(--shadow-xl);
  z-index: 2;
  transition: var(--transition);
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  color: white;
  font-weight: bold;
}

.profile-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.5);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Fallback for when no image is present */
.profile-photo:not(:has(img))::after,
.profile-photo:has(img[src=""])::after,
.profile-photo:has(img[src="profile.jpg"])::after {
  content: "NP";
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================
   Buttons
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
}

.btn.large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn .material-icons {
  font-size: 1.25rem;
}

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

.btn.primary:hover {
  background: var(--accent-tertiary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

.btn.secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn.outline {
  background: transparent;
  color: var(--accent-primary);
  border-color: var(--accent-primary);
}

.btn.outline:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
}

/* ==========================================
   About Section
   ========================================== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

/* ==========================================
   Skills Section
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-lg);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.skill-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.skill-icon .material-icons {
  color: white;
  font-size: 1.75rem;
}

.skill-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

.skill-description {
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  background: var(--bg-dark);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ==========================================
   Projects Section
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-lg);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent-primary);
}

.project-card.featured {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-secondary));
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--spacing-md);
}

.project-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-icon .material-icons {
  color: white;
  font-size: 1.75rem;
}

.project-meta {
  display: flex;
  gap: 0.5rem;
}

.project-status {
  background: var(--success);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-status.production {
  background: var(--accent-primary);
}

.project-title {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
}

.project-description {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  flex-grow: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--spacing-md);
}

.tech-tag {
  background: var(--bg-dark);
  color: var(--accent-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--border);
}

.project-links {
  display: flex;
  gap: var(--spacing-md);
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--accent-secondary);
}

.project-link .material-icons {
  font-size: 1rem;
}

/* ==========================================
   Experience & Education Section
   ========================================== */
.experience-education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.timeline-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-lg);
}

.timeline-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--border);
}

.timeline-header .material-icons {
  color: var(--accent-primary);
  font-size: 1.75rem;
}

.timeline-header h3 {
  font-size: 1.5rem;
}

.timeline {
  position: relative;
}

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

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

.timeline-icon {
  position: absolute;
  left: -20px;
  top: 0;
  width: 40px;
  height: 40px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--bg-dark);
}

.timeline-icon .material-icons {
  color: white;
  font-size: 1.25rem;
}

.timeline-date {
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.timeline-list {
  list-style: none;
  padding-left: 0;
}

.timeline-list li {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.timeline-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent-primary);
  font-weight: bold;
}

/* Education Cards */
.education-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.education-card {
  background: var(--bg-dark);
  padding: var(--spacing-lg);
  border-radius: 10px;
  border: 1px solid var(--border);
}

.education-degree {
  color: var(--accent-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.education-field {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.education-institution {
  color: var(--text-muted);
  margin-bottom: var(--spacing-sm);
}

.education-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.education-date .material-icons {
  font-size: 1rem;
}

.education-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Certifications */
.certifications-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-lg);
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.cert-card {
  background: var(--bg-dark);
  padding: var(--spacing-md);
  border-radius: 8px;
  text-align: center;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.cert-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-3px);
}

.cert-card .material-icons {
  color: var(--accent-primary);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.cert-name {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.875rem;
}

/* ==========================================
   Contact Section
   ========================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: var(--spacing-lg);
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-primary);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-md);
}

.contact-icon .material-icons {
  color: white;
  font-size: 1.75rem;
}

.contact-card h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
}

.contact-link {
  color: var(--text-muted);
  font-size: 0.875rem;
}

.contact-card a.contact-link:hover {
  color: var(--accent-primary);
}

.cta-section {
  display: flex;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* ==========================================
   Footer
   ========================================== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: var(--spacing-xl) 0;
}

.footer-content {
  text-align: center;
}

.footer-content p {
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.footer-meta {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
  .hero-wrapper {
    flex-direction: column-reverse;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .hero-content {
    max-width: 100%;
  }

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

  .section-title {
    font-size: 2rem;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .profile-photo-wrapper {
    width: 300px;
    height: 300px;
  }

  .profile-photo {
    width: 270px;
    height: 270px;
  }

  .hero-tech-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tech-badges {
    justify-content: center;
  }

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

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: var(--spacing-lg);
    gap: var(--spacing-sm);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .hamburger {
    display: flex;
  }

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

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .skills-grid,
  .projects-grid,
  .experience-education-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }

  .profile-photo-wrapper {
    width: 250px;
    height: 250px;
  }

  .profile-photo {
    width: 230px;
    height: 230px;
    font-size: 80px;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
  }

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

  .section {
    padding: var(--spacing-xl) 0;
  }

  .tech-badges {
    justify-content: center;
  }

  .profile-photo-wrapper {
    width: 200px;
    height: 200px;
  }

  .profile-photo {
    width: 180px;
    height: 180px;
    font-size: 60px;
  }

  .profile-photo-border {
    border-width: 2px;
  }
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  animation: fadeInUp 0.6s ease-out backwards;
}

.hero-content > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-content > *:nth-child(2) {
  animation-delay: 0.2s;
}
.hero-content > *:nth-child(3) {
  animation-delay: 0.3s;
}
.hero-content > *:nth-child(4) {
  animation-delay: 0.4s;
}
.hero-content > *:nth-child(5) {
  animation-delay: 0.5s;
}
.hero-content > *:nth-child(6) {
  animation-delay: 0.6s;
}

/* ==========================================
   Utility Classes
   ========================================== */
.text-center {
  text-align: center;
}

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

.mt-1 {
  margin-top: var(--spacing-sm);
}
.mt-2 {
  margin-top: var(--spacing-md);
}
.mt-3 {
  margin-top: var(--spacing-lg);
}

.mb-1 {
  margin-bottom: var(--spacing-sm);
}
.mb-2 {
  margin-bottom: var(--spacing-md);
}
.mb-3 {
  margin-bottom: var(--spacing-lg);
}
/* ==========================================
   Projects - New Tile Grid + Modal
   ========================================== */

.projects-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proj-tile {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-align: center;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
  overflow: hidden;
  min-height: 200px;
}

.proj-tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: var(--accent-primary);
}

.proj-tile-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.proj-tile:hover .proj-tile-icon {
  transform: scale(1.1);
}

.proj-tile-icon .material-icons {
  font-size: 2rem;
  color: #fff;
}

.proj-tile-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin: 0;
}

.proj-tile-status {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.7rem;
  border-radius: 50px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.proj-tile-status.live {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.proj-tile-status.production {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.proj-tile-status.dev {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.proj-tile-hover {
  position: absolute;
  inset: 0;
  background: rgba(59, 130, 246, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s ease;
  border-radius: 16px;
}

.proj-tile-hover .material-icons {
  font-size: 2rem;
}

.proj-tile:hover .proj-tile-hover {
  opacity: 1;
}

/* ==========================================
   Project Modal
   ========================================== */

.proj-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.proj-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.proj-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
}

.proj-modal-overlay.open .proj-modal {
  transform: translateY(0) scale(1);
}

.proj-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--bg-secondary, #1e2a3a);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
  z-index: 10;
}

.proj-modal-close:hover {
  background: var(--accent-primary);
  color: #fff;
  border-color: var(--accent-primary);
}

.proj-modal-body {
  padding: 2rem;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-right: 2.5rem;
}

.modal-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    var(--accent-primary),
    var(--accent-secondary)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-icon .material-icons {
  font-size: 1.8rem;
  color: #fff;
}

.modal-title-block h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.modal-description {
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.modal-description p {
  margin-bottom: 0.75rem;
}

.modal-description p:last-child {
  margin-bottom: 0;
}

.modal-tech-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.6rem;
}

.modal-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.modal-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.modal-link.primary {
  background: var(--accent-primary);
  color: #fff;
}

.modal-link.primary:hover {
  opacity: 0.88;
}

.modal-link.outline {
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: transparent;
}

.modal-link.outline:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

@media (max-width: 768px) {
  .projects-grid-new {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .projects-grid-new {
    grid-template-columns: 1fr;
  }
  .proj-modal-body {
    padding: 1.5rem;
  }
}
