/* ========================================
   PORTFOLIO WEBSITE STYLES - BRANDON DEV
   Modern, responsive portfolio with glassmorphism design
   
   Table of Contents:
   1. CSS Variables & Custom Properties
   2. Base Styles & Typography
   3. Layout Components
   4. Navigation
   5. Hero Section
   6. About Section
   7. Skills Section
   8. Education Section
   9. Projects Section
   10. Contact Section
   11. Footer
   12. Responsive Design
   13. Animations & Transitions
   ======================================== */

/* ========================================
   1. CSS VARIABLES - Design System
   Centralized design tokens for consistent theming
   ======================================== */
:root {
  /* Brand Colors - Purple to Green Gradient Theme */
  --primary-color: #6366f1;        /* Primary brand purple */
  --primary-light: #818cf8;        /* Lighter purple variant */
  --primary-dark: #4f46e5;         /* Darker purple variant */
  --secondary-color: #10b981;      /* Complementary green */
  --accent-color: #f59e0b;         /* Warning/highlight amber */
  --danger-color: #ef4444;         /* Error red */
  
  /* Background Color System */
  --bg-primary: #0f0f23;           /* Main dark background */
  --bg-secondary: #1a1a3a;         /* Secondary dark sections */
  --bg-tertiary: #252545;          /* Card backgrounds */
  --bg-light: #ffffff;             /* Light theme elements */
  --bg-dark: #0a0a1a;              /* Deepest dark tone */
  
  /* Typography Color Hierarchy */
  --text-primary: #ffffff;         /* Main text color */
  --text-secondary: #a1a1aa;       /* Secondary text */
  --text-tertiary: #71717a;        /* Tertiary/muted text */
  --text-dark: #1f2937;            /* Dark theme text */
  --text-accent: #6366f1;          /* Accent text color */
  
  /* Glassmorphism Effect Variables */
  --glass-bg: rgba(255, 255, 255, 0.1);      /* Frosted glass background */
  --glass-border: rgba(255, 255, 255, 0.2);  /* Glass border highlight */
  --glass-shadow: rgba(0, 0, 0, 0.1);        /* Subtle glass shadow */
  
  /* Code Syntax Highlighting Colors */
  --code-keyword: #ff79c6;         /* Keywords (const, class, function) */
  --code-string: #f1fa8c;          /* String literals */
  --code-comment: #6272a4;         /* Code comments */
  --code-variable: #8be9fd;        /* Variable names */
  --code-operator: #ff79c6;        /* Operators (=, +, -) */
  --code-class: #50fa7b;           /* Class names */
  --code-method: #ffb86c;          /* Method names */
  --code-property: #bd93f9;        /* Object properties */
  
  /* Typography System */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-code: 'Fira Code', Monaco, 'Cascadia Code', monospace;
  
  /* Layout & Spacing System */
  --container-max-width: 1200px;   /* Max content width */
  --section-padding: 5rem 0;       /* Standard section padding */
  --card-padding: 2rem;            /* Card internal padding */
  
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-family: var(--font-code);
  color: var(--text-secondary);
  font-size: 1.1rem;
}

/* Glass Effect Utility */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--card-padding);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 15, 35, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.nav-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-code);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.brand-bracket {
  color: var(--primary-color);
}

.brand-name {
  color: var(--text-primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: var(--transition-fast);
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: var(--transition-fast);
}

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 5rem;
}

.hero-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-items: center;
  min-height: 70vh;
}

.hero-text {
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  max-width: 100%;
}

.code-line {
  font-family: var(--font-code);
  margin-bottom: 1rem;
}

.code-comment {
  color: var(--code-comment);
  font-style: italic;
}

.hero-title {
  font-family: var(--font-code);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.code-keyword { color: var(--code-keyword); }
.code-variable { color: var(--code-variable); }
.code-operator { color: var(--code-operator); }
.code-string { color: var(--code-string); }
.code-class { color: var(--code-class); }
.code-method { color: var(--code-method); }
.code-property { color: var(--code-property); }
.code-bracket { color: var(--text-primary); }
.code-semicolon { color: var(--text-secondary); }

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-tertiary);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
}

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

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

.btn-outline:hover {
  background: var(--text-secondary);
  color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Hero Visual - Code Window */
.hero-visual {
  perspective: 1200px;
  animation: slideInRight 1.2s ease-out 0.4s both;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-window {
  background: var(--bg-tertiary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: rotateY(-8deg) rotateX(3deg);
  transition: var(--transition-slow);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  animation: float-gentle 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

.code-window::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
  background-size: 300% 300%;
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-slow);
  animation: gradient-shift 4s linear infinite;
}

.code-window:hover {
  transform: rotateY(-3deg) rotateX(1deg) scale(1.03) translateZ(20px);
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 50px rgba(99, 102, 241, 0.4);
}

.code-window:hover::before {
  opacity: 1;
}

@keyframes float-gentle {
  0%, 100% { 
    transform: rotateY(-8deg) rotateX(3deg) translateY(0px) translateZ(0px);
  }
  25% { 
    transform: rotateY(-8deg) rotateX(3deg) translateY(-8px) translateZ(5px) rotateZ(0.5deg);
  }
  50% { 
    transform: rotateY(-8deg) rotateX(3deg) translateY(-12px) translateZ(10px);
  }
  75% { 
    transform: rotateY(-8deg) rotateX(3deg) translateY(-8px) translateZ(5px) rotateZ(-0.5deg);
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  25% { background-position: 50% 0%; }
  50% { background-position: 100% 50%; }
  75% { background-position: 50% 100%; }
  100% { background-position: 0% 50%; }
}

.window-header {
  background: var(--bg-secondary);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.window-controls {
  display: flex;
  gap: 0.5rem;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.window-title {
  font-family: var(--font-code);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.window-content {
  padding: 1.5rem;
  font-family: var(--font-code);
  font-size: 0.9rem;
  line-height: 1.6;
  position: relative;
}

.window-content::after {
  content: '';
  position: absolute;
  bottom: 1rem;
  right: 1.5rem;
  width: 8px;
  height: 16px;
  background: var(--primary-color);
  animation: cursor-blink 1.5s infinite;
  border-radius: 1px;
}

@keyframes cursor-blink {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.code-lines .code-line {
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: type-in 1s ease-out forwards;
  transform: translateX(-30px);
}

.code-lines .code-line:nth-child(1) { animation-delay: 0.3s; }
.code-lines .code-line:nth-child(2) { animation-delay: 0.5s; }
.code-lines .code-line:nth-child(3) { animation-delay: 0.7s; }
.code-lines .code-line:nth-child(4) { animation-delay: 0.9s; }
.code-lines .code-line:nth-child(5) { animation-delay: 1.1s; }
.code-lines .code-line:nth-child(6) { animation-delay: 1.3s; }

@keyframes type-in {
  0% { 
    opacity: 0; 
    transform: translateX(-30px) translateY(10px);
  }
  50% {
    opacity: 0.6;
    transform: translateX(-5px) translateY(-2px);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0) translateY(0);
  }
}

.line-number {
  color: var(--text-tertiary);
  margin-right: 1rem;
  user-select: none;
}

/* Hero Background */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.bg-shapes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.shape {
  position: absolute;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 {
  top: 20%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  animation-delay: 0s;
}

.shape-2 {
  top: 60%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
  border-radius: 30%;
  animation-delay: -10s;
}

.shape-3 {
  bottom: 20%;
  left: 50%;
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
  border-radius: 20%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(90deg); }
  50% { transform: translateY(0px) rotate(180deg); }
  75% { transform: translateY(-10px) rotate(270deg); }
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
  justify-items: center;
}

.about-text {
  font-size: 1.1rem;
  line-height: 1.8;
  justify-self: start;
}

.about-text p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.status-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.status-label {
  font-size: 0.875rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-value {
  font-weight: 600;
  color: var(--text-primary);
}

.about-image {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.image-container {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.profile-placeholder {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: rotateY(15deg) rotateX(-5deg);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.profile-placeholder:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

/* Profile Image Styles */
.profile-image-wrapper {
  width: 300px;
  height: 300px;
  border-radius: var(--radius-xl);
  transform: rotateY(8deg) rotateX(-3deg);
  transition: var(--transition-slow);
  box-shadow: var(--shadow-xl);
  border: 3px solid rgba(255, 255, 255, 0.2);
  overflow: hidden;
  position: relative;
  animation: profile-float 7s ease-in-out infinite;
  transform-style: preserve-3d;
}

.profile-image-wrapper::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
  background-size: 300% 300%;
  border-radius: var(--radius-xl);
  z-index: -1;
  opacity: 0;
  transition: var(--transition-slow);
  animation: border-glow 5s linear infinite;
}

.profile-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
  opacity: 0;
  transition: var(--transition-normal);
  z-index: 2;
}

.profile-image-wrapper:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05) translateZ(20px);
  box-shadow: var(--shadow-xl), var(--shadow-glow), 0 0 60px rgba(99, 102, 241, 0.5);
}

.profile-image-wrapper:hover::before {
  opacity: 1;
}

.profile-image-wrapper:hover::after {
  opacity: 1;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-slow);
  filter: brightness(0.9) contrast(1.1);
}

.profile-image-wrapper:hover .profile-image {
  transform: scale(1.1);
  filter: brightness(1) contrast(1.2) saturate(1.2);
}

@keyframes profile-float {
  0%, 100% { 
    transform: rotateY(8deg) rotateX(-3deg) translateY(0px) translateZ(0px);
  }
  20% { 
    transform: rotateY(8deg) rotateX(-3deg) translateY(-6px) translateZ(8px) rotateZ(0.3deg);
  }
  40% { 
    transform: rotateY(8deg) rotateX(-3deg) translateY(-10px) translateZ(15px);
  }
  60% { 
    transform: rotateY(8deg) rotateX(-3deg) translateY(-6px) translateZ(8px) rotateZ(-0.3deg);
  }
  80% { 
    transform: rotateY(8deg) rotateX(-3deg) translateY(2px) translateZ(3px);
  }
}

@keyframes border-glow {
  0% { background-position: 0% 50%; }
  20% { background-position: 30% 20%; }
  40% { background-position: 70% 80%; }
  60% { background-position: 100% 30%; }
  80% { background-position: 60% 90%; }
  100% { background-position: 0% 50%; }
}

.avatar-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.image-text {
  color: white;
  font-weight: 600;
  text-align: center;
}

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

.skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.skill-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.skill-icon {
  font-size: 2rem;
}

.skill-header h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
}

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

.skill-tag {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: var(--transition-fast);
}

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

/* ========================================
   EDUCATION SECTION
   ======================================== */
.education-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.education-container-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.education-container-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
  pointer-events: none;
  z-index: 0;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.education-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  height: fit-content;
}

.education-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.education-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.education-icon {
  font-size: 2rem;
  margin-top: 0.25rem;
}

.education-card h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

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

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

.certifications-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: none;
}

.certifications-card h3 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.education-programs {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.program-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-normal);
}

.program-card:hover {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-2px);
}

.program-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.program-icon {
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.program-card h4 {
  color: var(--text-primary);
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.program-meta {
  color: var(--text-tertiary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.program-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.95rem;
}

.cert-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cert-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.cert-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.cert-icon {
  font-size: 1.25rem;
}

.cv-download-section {
  text-align: center;
}

/* ========================================
   INTERESTS SECTION
   ======================================== */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.interest-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.interest-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transform: rotate(45deg);
  transition: var(--transition-slow);
  opacity: 0;
}

.interest-card:hover::before {
  opacity: 1;
  animation: shimmer 1s ease-in-out;
}

.interest-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.interest-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.interest-card h4 {
  color: var(--text-primary);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.interest-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

/* ========================================
   PROJECTS SECTION
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-normal);
  position: relative;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-15px) rotateX(10deg) rotateY(-5deg);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-normal);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  opacity: 0.8;
}

.placeholder-icon {
  font-size: 4rem;
  color: white;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition-normal);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

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

.project-link {
  color: white;
  text-decoration: none;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition-fast);
}

.project-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.project-link.disabled {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  cursor: not-allowed;
  pointer-events: none;
}

.project-link:hover {
  background: var(--primary-color);
  transform: scale(1.05);
}

.project-content {
  padding: 2rem;
}

.project-content h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.project-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

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

.tech-tag {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.contact-info .glass-card h3 {
  color: var(--text-primary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.contact-info .glass-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.contact-item:hover {
  background: rgba(99, 102, 241, 0.1);
  transform: translateX(5px);
}

.contact-icon {
  font-size: 1.5rem;
}

.contact-item div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.contact-item a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.contact-item a:hover {
  color: var(--primary-color);
}

.contact-form-container {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-primary);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3rem 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.5rem;
}

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

.footer-note {
  font-size: 0.9rem;
  color: var(--text-tertiary);
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  text-decoration: none;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.social-icon {
  font-size: 1.2rem;
  display: block;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.footer-links a:hover {
  color: var(--primary-color);
  background: rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 1024px) {
  .section-title {
    font-size: 2.5rem;
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .education-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  
  .education-container-card {
    padding: 2rem;
  }
  
  .profile-placeholder,
  .profile-image-wrapper {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .nav-menu {
    display: none; /* Simple implementation - in production, add mobile menu */
  }
  
  .skills-grid,
  .interests-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .education-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .education-container-card {
    padding: 1.5rem;
  }
  
  .education-card {
    padding: 1.5rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .code-window {
    transform: none !important;
    animation: mobile-float 4s ease-in-out infinite;
  }
  
  .code-window:hover {
    transform: scale(1.02) !important;
  }
  
  .profile-placeholder,
  .profile-image-wrapper {
    transform: none !important;
    animation: mobile-profile-float 5s ease-in-out infinite;
    width: 200px;
    height: 200px;
  }
  
  .profile-placeholder:hover,
  .profile-image-wrapper:hover {
    transform: scale(1.05);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .project-card {
    margin: 0 0.5rem;
  }
  
  .window-content {
    padding: 1rem;
    font-size: 0.8rem;
  }
}

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Add subtle entrance animations */
.section {
  animation: fadeInUp 0.8s ease-out;
}

.hero-text {
  animation: slideInLeft 1s ease-out;
}

.hero-visual {
  animation: slideInRight 1.2s ease-out 0.4s both;
}

/* About section image animation */
.about-image {
  animation: slideInRight 1s ease-out 0.6s both;
}

/* Mobile-friendly animations */
@keyframes mobile-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes mobile-profile-float {
  0%, 100% { transform: translateY(0px); }
  33% { transform: translateY(-6px); }
  66% { transform: translateY(3px); }
}

/* Enhanced entrance animation for profile image */
@keyframes profile-entrance {
  0% { 
    opacity: 0; 
    transform: rotateY(8deg) rotateX(-3deg) scale(0.8) translateZ(-50px);
  }
  30% { 
    opacity: 0.5;
    transform: rotateY(8deg) rotateX(-3deg) scale(0.95) translateZ(-20px);
  }
  60% { 
    opacity: 0.8;
    transform: rotateY(8deg) rotateX(-3deg) scale(1.05) translateZ(10px);
  }
  100% { 
    opacity: 1; 
    transform: rotateY(8deg) rotateX(-3deg) scale(1) translateZ(0px);
  }
}

.profile-image-wrapper {
  animation: profile-entrance 1.5s ease-out 0.8s both, profile-float 7s ease-in-out 2.3s infinite;
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .shape {
    animation: none;
  }
}

/* Focus styles for better accessibility */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --text-secondary: #ffffff;
    --text-tertiary: #cccccc;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
  }
}

/* Print styles */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .navbar,
  .hero-background,
  .btn {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
}

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

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    font-size: 1rem;
    line-height: var(--line-height);
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 65, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container for consistent spacing */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Terminal Header Styles */
.terminal-header {
    background: var(--bg-terminal);
    border-bottom: 2px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.terminal-window {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(90deg, var(--bg-secondary) 0%, var(--bg-terminal) 100%);
}

.terminal-controls {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
}

.control.red { background: var(--accent-red); }
.control.yellow { background: var(--accent-yellow); }
.control.green { background: var(--text-primary); }

.terminal-title {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Main Terminal Body */
.terminal-body {
    padding: 2rem 0;
}

/* Terminal Section Styles */
.terminal-section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.terminal-section:nth-child(1) { animation-delay: 0.1s; }
.terminal-section:nth-child(2) { animation-delay: 0.2s; }
.terminal-section:nth-child(3) { animation-delay: 0.3s; }
.terminal-section:nth-child(4) { animation-delay: 0.4s; }
.terminal-section:nth-child(5) { animation-delay: 0.5s; }
.terminal-section:nth-child(6) { animation-delay: 0.6s; }
.terminal-section:nth-child(7) { animation-delay: 0.7s; }

/* Command Line Styles */
.command-line {
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
}

.prompt {
    color: var(--text-secondary);
    font-weight: 600;
}

.command {
    color: var(--accent-blue);
    margin-left: 0.5rem;
    font-weight: 500;
}

/* Output Section Styles */
.output {
    padding: 1.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-glow);
}

/* ASCII Art */
.ascii-art {
    color: var(--text-primary);
    font-size: 0.6rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-align: center;
    overflow-x: auto;
}

/* Typography */
.section-title {
    color: var(--accent-blue);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.5rem;
    display: inline-block;
}

.typing-text {
    font-size: 1.2rem;
    color: var(--text-white);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    text-align: center;
    font-size: 1rem;
    font-style: italic;
}

/* Blinking Cursor Animation */
.cursor {
    animation: blink 1s infinite;
    color: var(--text-primary);
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Status Info Styles */
.status-info {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-terminal);
    border-left: 4px solid var(--text-primary);
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-label {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Skills Grid Layout */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-category h3 {
    color: var(--accent-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.skill-list {
    list-style: none;
    padding: 0;
}

.skill-list li {
    padding: 0.3rem 0;
    color: var(--text-white);
    position: relative;
    padding-left: 1.5rem;
}

.skill-list li::before {
    content: "▸";
    color: var(--text-primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.skill-list li:hover {
    color: var(--text-primary);
    transform: translateX(5px);
    transition: var(--transition);
}

/* Education Styles */
.education-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border-left: 3px solid var(--text-primary);
    background: var(--bg-terminal);
}

.education-item h3 {
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.education-details {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.cert-list {
    list-style: none;
    margin-top: 1rem;
}

.cert-list li {
    padding: 0.3rem 0;
    color: var(--text-white);
    position: relative;
    padding-left: 1.5rem;
}

.cert-list li::before {
    content: "🏆";
    position: absolute;
    left: 0;
}

/* CV Download Button */
.cv-download {
    margin-top: 2rem;
    text-align: center;
}

.download-btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background: var(--bg-terminal);
    color: var(--text-primary);
    text-decoration: none;
    border: 2px solid var(--text-primary);
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-glow);
}

.download-btn:hover {
    background: var(--text-primary);
    color: var(--bg-terminal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

/* Interests Grid */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.interest-item {
    padding: 1.5rem;
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.interest-item:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.interest-item h3 {
    color: var(--accent-blue);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.project-item {
    padding: 1.5rem;
    background: var(--bg-terminal);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-item::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--text-primary), var(--accent-blue));
    transform: scaleX(0);
    transition: var(--transition);
}

.project-item:hover::before {
    transform: scaleX(1);
}

.project-item:hover {
    border-color: var(--text-primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-5px);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.project-header h3 {
    color: var(--accent-blue);
    margin: 0;
    font-size: 1.2rem;
}

.project-links {
    display: flex;
    gap: 0.8rem;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.3rem 0.8rem;
    border: 1px solid var(--text-primary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--text-primary);
    color: var(--bg-terminal);
}

.tech-tags {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--bg-secondary);
    color: var(--text-muted);
    padding: 0.2rem 0.6rem;
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
}

.contact-details {
    margin-top: 1.5rem;
    padding: 1rem;
    background: var(--bg-terminal);
    border-left: 4px solid var(--text-primary);
}

.contact-details a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.contact-details a:hover {
    color: var(--text-primary);
    text-decoration: underline;
}

/* Contact Form Styles */
.contact-form {
    background: var(--bg-terminal);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.submit-btn {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
}

.submit-btn:hover {
    background: var(--text-primary);
    color: var(--bg-terminal);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.4);
}

/* Footer Styles */
.terminal-footer {
    background: var(--bg-terminal);
    border-top: 2px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 4rem;
}

.terminal-footer .output {
    text-align: center;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 1rem;
}

.footer-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --font-size-base: 14px;
    }
    
    .container {
        padding: 0 0.8rem;
    }
    
    .terminal-body {
        padding: 1rem 0;
    }
    
    .terminal-section {
        margin-bottom: 2rem;
    }
    
    .ascii-art {
        font-size: 0.4rem;
        overflow-x: auto;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
    
    .project-links {
        flex-wrap: wrap;
    }
    
    .terminal-controls {
        margin-right: 0.5rem;
    }
    
    .control {
        width: 10px;
        height: 10px;
    }
    
    .terminal-title {
        font-size: 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .output {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.5rem;
    }
    
    .ascii-art {
        font-size: 0.35rem;
    }
    
    .typing-text {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .project-item {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1rem;
    }
    
    .download-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    .ascii-art {
        font-size: 0.3rem;
    }
    
    .projects-grid {
        gap: 1rem;
    }
    
    .interests-grid {
        gap: 1rem;
    }
    
    .skills-grid {
        gap: 1rem;
    }
}

/* High DPI / Retina Display Support */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .terminal-controls .control {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Dark Mode Preference Support */
@media (prefers-color-scheme: dark) {
    /* Already optimized for dark theme */
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .cursor {
        animation: none;
        opacity: 1;
    }
}

/* Focus Management for Accessibility */
.project-link:focus,
.download-btn:focus,
.submit-btn:focus,
.contact-details a:focus {
    outline: 2px solid var(--text-primary);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    body {
        background: white;
        color: black;
    }
    
    .terminal-header,
    .terminal-footer,
    .contact-form {
        display: none;
    }
    
    .terminal-section {
        page-break-inside: avoid;
        margin-bottom: 2rem;
    }
    
    .project-link,
    .download-btn {
        color: black;
        text-decoration: underline;
    }
}
