/* ===================================
   NETWORK ENGINEER PORTFOLIO STYLES
   Modern, Animated, Professional
   =================================== */

/* === CSS Variables === */
:root {
  /* Colors */
  --primary: #2d6a4f;
  --primary-dark: #1b4332;
  --secondary: #52b788;
  --accent: #40916c;
  --danger: #ef4444;
  --warning: #2d6a4f;
  
  /* Backgrounds */
  --bg-primary: #0a0a0a;
  --bg-secondary: #141414;
  --bg-tertiary: #1f1f1f;
  --bg-card: #1a1a1a;
  --bg-hover: #252525;
  
  /* Text */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  
  /* Borders */
  --border-color: #2a2a2a;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.3);
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* Light Theme */
[data-theme="light"] {
  --bg-primary: #ebebeb;
  --bg-secondary: #e0e0e0;
  --bg-tertiary: #d5d5d5;
  --bg-card: #f5f5f5;
  --bg-hover: #e5e5e5;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #d0d0d0;
}

[data-theme="light"] body {
  background-image: 
    linear-gradient(rgba(235, 235, 235, 0.9), rgba(235, 235, 235, 0.9)),
    url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?q=80&w=2070&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #0f172a;
}

[data-theme="light"] .navbar {
  background: rgba(245, 245, 245, 0.95) !important;
  border-bottom: 1px solid #d0d0d0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .nav-link {
  color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #2d6a4f !important;
  background: rgba(45, 106, 79, 0.08) !important;
}

[data-theme="light"] .logo {
  color: #0f172a !important;
}

[data-theme="light"] .hero-simple,
[data-theme="light"] section {
  background: transparent !important;
}

[data-theme="light"] .about-hero,
[data-theme="light"] .diagrams-hero {
  background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%) !important;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3 {
  color: #0f172a !important;
}

[data-theme="light"] p,
[data-theme="light"] li {
  color: #334155 !important;
}

[data-theme="light"] .skill-category,
[data-theme="light"] .project-card,
[data-theme="light"] .cert-card,
[data-theme="light"] .diagram-card,
[data-theme="light"] .about-section,
[data-theme="light"] article {
  background: #f5f5f5 !important;
  border: 1px solid #d0d0d0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .footer {
  background: #f5f5f5 !important;
  border-top: 1px solid #d0d0d0 !important;
}

[data-theme="light"] .theme-toggle {
  border-color: #d0d0d0 !important;
  background: #f5f5f5 !important;
}

[data-theme="light"] .theme-toggle:hover {
  background: #f0f0f0 !important;
  border-color: #2d6a4f !important;
  color: #2d6a4f !important;
}

[data-theme="light"] code {
  background: #f0f0f0 !important;
  color: #1a1a1a !important;
}

[data-theme="light"] pre {
  background: #2a2a2a !important;
  border: 1px solid #d0d0d0 !important;
}

[data-theme="light"] input,
[data-theme="light"] textarea {
  background: #f5f5f5 !important;
  border: 1px solid #d0d0d0 !important;
  color: #0f172a !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] textarea:focus {
  border-color: #2d6a4f !important;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1) !important;
}

[data-theme="light"] button[type="submit"] {
  background: linear-gradient(135deg, #2d6a4f, #1b4332) !important;
  box-shadow: 0 2px 4px rgba(45, 106, 79, 0.2) !important;
}

[data-theme="light"] button[type="submit"]:hover {
  box-shadow: 0 4px 8px rgba(45, 106, 79, 0.3) !important;
  transform: translateY(-1px);
}

[data-theme="light"] .badge {
  background: rgba(45, 106, 79, 0.1) !important;
  border: 1px solid rgba(45, 106, 79, 0.3) !important;
  color: #1b4332 !important;
  font-weight: 500;
}

[data-theme="light"] .carousel-image,
[data-theme="light"] .project-image {
  background: #f5f5f5 !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .carousel-badge {
  background: #2d6a4f !important;
  color: #1a1a1a !important;
}

[data-theme="light"] .carousel-overlay {
  background: rgba(45, 106, 79, 0.95) !important;
}

[data-theme="light"] .carousel-overlay i,
[data-theme="light"] .project-overlay i {
  color: #1a1a1a !important;
}

[data-theme="light"] .carousel-tags span,
[data-theme="light"] .project-tags span {
  background: rgba(45, 106, 79, 0.15) !important;
  border: 1px solid rgba(45, 106, 79, 0.4) !important;
  color: #1a1a1a !important;
}

[data-theme="light"] section > div {
  color: #1a1a1a !important;
}

[data-theme="light"] section div[style*="background: #0a0a0a"],
[data-theme="light"] section div[style*="background: #000"] {
  background: #e8e8e8 !important;
}

[data-theme="light"] section div[style*="background: linear-gradient(135deg, #0a0a0a"],
[data-theme="light"] section div[style*="background: linear-gradient(135deg, #000"] {
  background: linear-gradient(135deg, #e8e8e8 0%, #d8d8d8 100%) !important;
}

[data-theme="light"] section div[style*="border: 1px solid rgba(45, 106, 79, 0.15)"],
[data-theme="light"] section div[style*="border: 2px solid #d4af37"] {
  border-color: rgba(45, 106, 79, 0.4) !important;
}

[data-theme="light"] section div[style*="background: #1a1a1a"] {
  background: #c8c8c8 !important;
}

/* === Reset & Base === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #0a0a0a;
  background-image: url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=2000');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.82);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Override inline solid backgrounds with transparent ones */
section div[style*="background: #0a0a0a"],
section div[style*="background: #000"] {
  background: rgba(26, 26, 26, 0.5) !important;
}

section[style*="background: #0a0a0a"],
section[style*="background: #000"],
section[style*="background: linear-gradient(135deg, #000"],
section[style*="background: linear-gradient(135deg, #0a0a0a"] {
  background: transparent !important;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-secondary);
}

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

a:hover {
  color: var(--primary-dark);
}

/* === Container === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(45, 106, 79, 0.1);
  z-index: 1000;
  padding: var(--spacing-sm) 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.logo i {
  font-size: 1.8rem;
}

.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 6px;
  transition: all var(--transition-base);
  position: relative;
}

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

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.social-icons {
  display: flex;
  gap: var(--spacing-sm);
}

.social-icons a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-icons a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* === Simplified Hero Section === */
.hero-simple {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-simple-content {
  text-align: center;
  max-width: 800px;
}

.hero-simple-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 0.8s ease;
}

.hero-simple-subtitle {
  font-size: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-simple-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: fadeIn 1s ease 0.5s both;
}

/* === Old Hero (keeping for reference but not used) === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.network-animation {
  position: relative;
  width: 100%;
  height: 100%;
  opacity: 0.15;
}

.node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--primary);
  animation: pulse 3s ease-in-out infinite;
}

.node-1 { top: 30%; left: 20%; animation-delay: 0s; }
.node-2 { top: 30%; left: 80%; animation-delay: 0.5s; }
.node-3 { top: 60%; left: 35%; animation-delay: 1s; }
.node-4 { top: 60%; left: 65%; animation-delay: 1.5s; }
.node-5 { top: 70%; left: 50%; animation-delay: 2s; }
.node-6 { top: 20%; left: 50%; animation-delay: 2.5s; }

.connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.connections line {
  stroke: var(--primary);
  stroke-width: 1;
  opacity: 0.3;
  animation: flow 4s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
}

@keyframes flow {
  0% { stroke-dasharray: 5, 10; stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 15; }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 900px;
  padding: var(--spacing-xl);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: var(--spacing-lg);
  animation: slideDown 0.8s ease;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: var(--spacing-md);
  animation: slideUp 0.8s ease;
}

.gradient-text {
  background: linear-gradient(135deg, #d4af37, #ffd700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  animation: fadeIn 1s ease 0.5s both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: var(--spacing-xs);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  animation: fadeIn 1s ease 0.7s both;
}

/* === Buttons === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-md);
}

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

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

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

/* === Sections === */
section {
  padding: 5rem 0;
  background: transparent;
}

/* === Featured Project (Homepage) === */
.featured-project-section {
  padding: 4rem 0 2rem;
  background: transparent;
}

.featured-project-card.side-by-side {
  display: flex;
  flex-direction: row;
  background: rgba(26, 26, 26, 0.5);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  min-height: 340px;
  max-width: 1000px;
  margin: 0 auto;
}

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

.featured-project-card.side-by-side .featured-project-image {
  flex: 0 0 48%;
  min-width: 0;
  min-height: 340px;
  background: var(--bg-tertiary);
  height: auto;
}

.featured-project-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: var(--bg-card);
  min-width: 0;
  position: relative;
}
.featured-project-info h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.featured-project-info p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}
.featured-project-info .project-badge {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
}

.featured-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: var(--spacing-xl);
  background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.35) 40%, rgba(0,0,0,0.0) 100%);
}

.featured-overlay h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.featured-overlay p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.featured-project-content h2 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.featured-project-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.featured-project-cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

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

.featured-project-card .project-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
}

@media (max-width: 900px) {
  .featured-project-card.side-by-side {
    flex-direction: column;
    min-height: 0;
  }
  .featured-project-card.side-by-side .featured-project-image {
    min-height: 180px;
    height: 180px;
    width: 100%;
  }
  .featured-project-info {
    padding: 1.5rem 1rem;
  }
  .featured-project-info .project-badge {
    top: 1rem;
    right: 1rem;
  }
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: var(--spacing-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.section-title i {
  color: var(--primary);
}

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--spacing-xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* === About Section (Home) === */
.about-section-home {
  padding: 4rem 0;
  background: transparent;
}

.about-home-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2rem;
}

.about-home-text p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.about-home-text strong {
  color: var(--primary);
  font-weight: 600;
}

.about-home-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about-home-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-home-icon {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(45, 106, 79, 0.1), rgba(82, 183, 136, 0.05));
  border: 3px solid rgba(45, 106, 79, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--primary);
  animation: pulse 3s ease-in-out infinite;
}

/* === Projects Carousel === */
.projects-carousel-section {
  padding: 4rem 0;
  background: transparent;
}

.carousel-container {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 3rem;
}

@media (max-width: 1024px) {
  .carousel-container {
    max-width: 900px;
  }
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  padding: 0;
}

/* Show carousel mode when there are more than 3 projects */
.carousel-track.carousel-mode {
  display: flex;
}

.carousel-track.carousel-mode .carousel-slide {
  min-width: 100%;
  padding: 0 0.5rem;
}

/* Responsive: carousel mode on tablets and mobile */
@media (max-width: 1024px) {
  .carousel-track {
    display: flex;
  }
  
  .carousel-slide {
    min-width: 100%;
    padding: 0 0.5rem;
  }
}

.carousel-project-card {
  display: block;
  background: rgba(26, 26, 26, 0.5);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}

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

.carousel-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
}

.carousel-image {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

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

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

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(45, 106, 79, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.carousel-overlay i {
  font-size: 3rem;
  color: var(--bg-primary);
}

.carousel-content {
  padding: 2rem;
}

.carousel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

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

.carousel-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: var(--bg-primary);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
}

/* Show buttons in carousel mode or on smaller screens */
.carousel-track.carousel-mode ~ .carousel-btn {
  display: flex;
}

@media (max-width: 1024px) {
  .carousel-btn {
    display: flex;
  }
}

.carousel-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: -25px;
}

.carousel-next {
  right: -25px;
}

.carousel-indicators {
  display: none;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Show indicators in carousel mode or on smaller screens */
.carousel-track.carousel-mode ~ .carousel-indicators {
  display: flex;
}

@media (max-width: 1024px) {
  .carousel-indicators {
    display: flex;
  }
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 2px solid var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.2);
}

.indicator:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/* === Skills Section === */
.skills-section {
  background: transparent;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-xl);
}

.skill-category {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 12px;
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

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

.category-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
  font-size: 1.5rem;
  color: white;
}

.skill-category h3 {
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.skill-item span {
  display: block;
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-xs);
}

.skill-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 1s ease;
  position: relative;
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

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

/* === Certifications === */
.certifications {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 12px;
  padding: var(--spacing-xl);
  border: 1px solid var(--border-color);
  text-align: center;
}

.certifications h3 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.certifications h3 i {
  color: var(--warning);
}

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

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50px;
  color: white;
  font-weight: 600;
  transition: transform var(--transition-base);
}

.cert-badge:hover {
  transform: scale(1.05);
}

.cert-badge i {
  font-size: 1.25rem;
}

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

.project-card {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
  display: block;
  position: relative;
}

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

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

.project-badge {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  background: var(--warning);
  color: var(--bg-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
}

.project-image {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-tertiary);
}

.project-card.featured .project-image {
  height: 280px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

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

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

.project-overlay i {
  font-size: 3rem;
  color: white;
}

.project-content {
  padding: var(--spacing-lg);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.tag {
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.project-content h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

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

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.project-tech i {
  color: var(--primary);
}

/* === Contact Section === */
.contact-section {
  background: transparent;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  max-width: 900px;
  margin: 0 auto;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: rgba(26, 26, 26, 0.5);
  border-radius: 8px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.contact-item:hover {
  border-color: var(--primary);
  transform: translateX(5px);
}

.contact-item i {
  font-size: 1.5rem;
  color: var(--primary);
  margin-top: 0.25rem;
}

.contact-item h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.contact-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: var(--spacing-xl);
  border-radius: 12px;
  text-align: center;
  color: white;
}

.contact-cta h3 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.contact-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

/* === Footer === */
.footer {
  background: rgba(20, 20, 20, 0.8);
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
}

.footer-text {
  color: var(--text-muted);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

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

.footer-social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
}

/* === About Page === */
.about-hero {
  background: transparent;
  padding: 8rem 0 4rem;
  margin-top: 60px;
}

.about-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: white;
  flex-shrink: 0;
}

.profile-intro h1 {
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.profile-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

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

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

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

/* About Sections */
.about-content {
  padding: 4rem 0;
}

.about-section {
  margin-bottom: 4rem;
}

.about-section h2 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
}

.about-section h2 i {
  color: var(--primary);
}

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

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-bottom: var(--spacing-xl);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
}

.timeline-content {
  background: rgba(26, 26, 26, 0.5);
  padding: var(--spacing-lg);
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.timeline-content h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.timeline-content p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.timeline-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.timeline-tech span {
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
}

/* Philosophy */
.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.philosophy-card {
  background: rgba(26, 26, 26, 0.5);
  padding: var(--spacing-lg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
}

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

.philosophy-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: var(--spacing-md);
}

.philosophy-card h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.philosophy-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Homelab */
.homelab-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.homelab-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.spec-category {
  background: rgba(26, 26, 26, 0.5);
  padding: var(--spacing-lg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.spec-category h4 {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.spec-category h4 i {
  color: var(--primary);
}

.spec-category ul {
  list-style: none;
}

.spec-category li {
  color: var(--text-secondary);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

.spec-category li:last-child {
  border-bottom: none;
}

.spec-category li::before {
  content: '▹';
  color: var(--primary);
  margin-right: var(--spacing-xs);
}

/* Certifications Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
}

.cert-card {
  background: rgba(26, 26, 26, 0.5);
  padding: var(--spacing-lg);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all var(--transition-base);
}

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

.cert-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
}

.cert-icon.cisco { background: linear-gradient(135deg, #049fd9, #1ba0d8); }
.cert-icon.comptia { background: linear-gradient(135deg, #dc2b2e, #f26522); }
.cert-icon.linux { background: linear-gradient(135deg, #fcc624, #f89820); }

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

.cert-card p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-sm);
}

.cert-year {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(59, 130, 246, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.about-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  padding: var(--spacing-xl);
  border-radius: 12px;
  text-align: center;
  color: white;
}

.about-cta h2 {
  color: white;
  border: none;
  padding: 0;
}

.about-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: var(--spacing-lg);
}

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

/* === Diagrams Page === */
.diagrams-hero {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  padding: 8rem 0 4rem;
  margin-top: 60px;
  text-align: center;
}

.diagrams-hero h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  font-size: 3rem;
  margin-bottom: var(--spacing-sm);
}

.diagrams-hero h1 i {
  color: var(--primary);
}

.diagrams-hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
}

.diagrams-content {
  padding: 4rem 0;
}

.diagram-section {
  margin-bottom: 4rem;
}

.diagram-section h2 {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
}

.diagram-section h2 i {
  color: var(--primary);
}

.diagram-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--spacing-lg);
}

.diagram-card {
  background: rgba(26, 26, 26, 0.5);
  border-radius: 12px;
  padding: var(--spacing-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

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

.diagram-card.large {
  grid-column: 1 / -1;
}

.diagram-header {
  margin-bottom: var(--spacing-md);
}

.diagram-header h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.diagram-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.diagram-visual {
  background: var(--bg-tertiary);
  border-radius: 8px;
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.topology-diagram, .cluster-diagram {
  width: 100%;
  height: auto;
}

.diagram-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.detail-item {
  display: flex;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.detail-item i {
  color: var(--primary);
  margin-top: 0.25rem;
  flex-shrink: 0;
}

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

.diagram-list li {
  padding: 0.75rem 0;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.diagram-list li:last-child {
  border-bottom: none;
}

.diagram-list i {
  color: var(--accent);
}

/* VM List */
.vm-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.vm-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  background: var(--bg-tertiary);
  border-radius: 6px;
  color: var(--text-secondary);
}

.vm-item i {
  color: var(--primary);
  width: 20px;
}

.vm-item span:first-of-type {
  flex: 1;
}

.vm-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  color: var(--primary);
}

/* Security Layers */
.security-layers {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.security-layer {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-tertiary);
  border-radius: 8px;
  border-left: 4px solid var(--primary);
}

.layer-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.layer-content h4 {
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.layer-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
}

.protocol-info {
  margin-bottom: var(--spacing-md);
}

.protocol-info p {
  color: var(--text-secondary);
}

/* K8s Architecture */
.k8s-architecture {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.k8s-layer h4 {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.k8s-layer h4 i {
  color: var(--primary);
}

.layer-details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.layer-item {
  padding: var(--spacing-sm);
  background: var(--bg-tertiary);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.layer-item strong {
  color: var(--text-primary);
}

.k8s-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.feature-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-md);
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
}

/* Monitoring */
.monitoring-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-lg);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.monitor-node {
  flex: 1;
  min-width: 150px;
  text-align: center;
}

.monitor-node i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--spacing-xs);
}

.monitor-node span {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.monitor-node small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.arrow {
  color: var(--primary);
  font-size: 1.5rem;
  font-weight: 700;
}

.monitored-metrics h4 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

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

.metrics-grid span {
  padding: var(--spacing-sm);
  background: var(--bg-tertiary);
  border-radius: 6px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.metrics-grid i {
  color: var(--primary);
  margin-right: var(--spacing-xs);
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* === Responsive Design === */

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .about-home-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-home-icon {
    width: 200px;
    height: 200px;
    font-size: 4rem;
  }
  
  .project-card.featured {
    grid-column: span 1;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .about-header {
    flex-direction: column;
    text-align: center;
  }

  .carousel-image {
    height: 300px;
  }

  /* Timeline responsive */
  .timeline-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-date {
    text-align: left !important;
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .timeline-content {
    text-align: left !important;
  }

  .timeline-line {
    left: 0;
    width: 3px;
  }

  .timeline-marker {
    left: -7px;
  }
}

/* Mobile Tablets */
@media (max-width: 768px) {
  /* Navigation */
  .navbar {
    padding: 1rem 0;
  }

  .nav-links {
    display: none;
  }

  .logo {
    font-size: 1.25rem;
  }

  .logo i {
    font-size: 1.5rem;
  }

  .social-icons a {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  /* Hero Sections */
  .hero-title {
    font-size: 2rem;
  }

  .hero-simple {
    min-height: 50vh;
    padding-top: 80px;
    padding-bottom: 40px;
  }

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

  .hero-simple-subtitle {
    font-size: 1.125rem;
  }

  .hero-simple-cta {
    flex-direction: column;
    gap: 1rem;
  }

  .about-home-text p {
    font-size: 1rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: var(--spacing-md);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: 1rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
  
  /* Grids */
  .skills-grid,
  .projects-grid,
  .diagram-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  /* Stats */
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  /* Badges */
  .about-badges {
    justify-content: center;
  }

  /* Certifications */
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  /* GitHub Activity Cards */
  [style*="grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))"] {
    grid-template-columns: 1fr !important;
  }

  /* Contact Form */
  .contact-form-grid {
    grid-template-columns: 1fr !important;
  }
  
  .monitoring-flow {
    flex-direction: column;
  }
  
  .arrow {
    transform: rotate(90deg);
  }

  /* Carousel */
  .carousel-container {
    padding: 2rem 1rem;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .carousel-prev {
    left: -10px;
  }

  .carousel-next {
    right: -10px;
  }

  .carousel-image {
    height: 250px;
  }

  .carousel-content {
    padding: 1.5rem;
  }

  /* Buttons */
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
  }

  /* Cards */
  .skill-category,
  .project-card {
    padding: 1.5rem;
  }

  /* Timeline */
  .timeline-content h3 {
    font-size: 1.25rem;
  }
}

/* Mobile Phones */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Navigation */
  .navbar {
    padding: 0.75rem 0;
  }

  .logo {
    font-size: 1.1rem;
  }

  .logo i {
    font-size: 1.3rem;
  }

  .social-icons {
    gap: 0.5rem;
  }

  .social-icons a {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  
  /* Hero */
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-simple {
    min-height: 40vh;
    padding-top: 70px;
    padding-bottom: 30px;
  }

  .hero-simple-title {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-simple-subtitle {
    font-size: 1rem;
  }

  .about-home-icon {
    width: 150px;
    height: 150px;
    font-size: 3rem;
  }

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

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

  .section-subtitle {
    font-size: 0.95rem;
  }

  /* Stats */
  .stats-container {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-card {
    padding: 1.25rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Badges */
  .badge,
  .tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  /* Buttons */
  .btn {
    padding: 0.65rem 1.25rem;
    font-size: 0.9rem;
  }

  /* Carousel */
  .carousel-content {
    padding: 1.5rem;
  }

  .carousel-content h3 {
    font-size: 1.25rem;
  }

  .carousel-content p {
    font-size: 0.9rem;
  }

  .carousel-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .carousel-image {
    height: 200px;
  }

  /* Cards */
  .skill-category,
  .project-card {
    padding: 1.25rem;
  }

  .category-icon {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  /* Timeline */
  .timeline-content {
    padding: 1.25rem;
  }

  .timeline-content h3 {
    font-size: 1.1rem;
  }

  .timeline-content p {
    font-size: 0.9rem;
  }

  /* Certifications */
  .certification-card {
    padding: 1.5rem;
  }

  /* Contact */
  .contact-item {
    padding: 1.25rem;
  }

  .contact-item i {
    font-size: 1.5rem;
  }

  /* Form inputs */
  input,
  textarea,
  select {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  /* Profile image */
  .profile-pic {
    width: 150px;
    height: 150px;
  }
}
