/* Modern CSS Variables - Light Theme */
:root {
  --primary-color: #ff3a22;
  --primary-dark: #2d8bb3;
  --primary-light: #4db4d4;
  --secondary-color: #52c4b0;
  --accent-color: #ffa726;
  --success-color: #4caf50;
  --warning-color: #ff9800;
  --danger-color: #f44336;
  --text-primary: #2c3e50;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #fafbfc;
  --bg-accent: #f0f9ff;
  --bg-light: #e0f2fe;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 2px 0 rgb(57 160 202 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(57 160 202 / 0.15), 0 2px 4px -2px rgb(57 160 202 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(57 160 202 / 0.2), 0 4px 6px -4px rgb(57 160 202 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(57 160 202 / 0.25), 0 8px 10px -6px rgb(57 160 202 / 0.1);
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
}

/* Base Styles */
html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  overflow-x: hidden;
}

/* Typography */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color) !important;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
}

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

/* Modern Button Styles */
.btn-modern {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
}

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

/* Card Components */
.card-modern {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

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

.tech-icon-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tech-icon-card:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--bg-accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tech-icon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.tech-icon-card:hover:before {
  opacity: 1;
}

.tech-icon-card > * {
  position: relative;
  z-index: 1;
}

/* Navigation Styles */
.nav-link-modern {
  padding: 0.75rem 1.5rem;
  margin: 0.25rem 0;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-link-modern:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
}

.nav-link-modern:hover:before {
  left: 100%;
}

.nav-link-modern:hover, .nav-link-modern.active {
  background: var(--primary-color);
  color: white;
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
}

.nav-link-modern i {
  width: 20px;
  font-size: 1.1rem;
}

/* Sidebar Styles */
.sidebar-modern {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 280px;
  background: var(--bg-primary);
  border-right: 1px solid var(--border-color);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-lg);
}

.main-content {
  margin-left: 280px;
  min-height: 100vh;
  transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hero Section */
.hero-section {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-accent);
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

/* Stats Cards */
.stats-card {
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.stats-card .display-6 {
  color: var(--primary-color);
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(135deg, var(--bg-accent) 0%, var(--bg-secondary) 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  margin: 2rem 0;
  position: relative;
}

.gradient-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(57, 160, 202, 0.05) 0%, rgba(82, 196, 176, 0.05) 100%);
  border-radius: var(--radius-xl);
}

/* Quick Links */
.quick-links-section {
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.link-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.link-item:hover {
  background: var(--bg-accent);
  padding-left: 1rem;
  border-radius: var(--radius-sm);
}

.link-item:last-child {
  border-bottom: none;
}

/* Animations */
.floating-animation {
  animation: float 6s ease-in-out infinite;
}

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

/* Navbar Styles */
.navbar-modern {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid var(--border-color);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

/* Logo Container */
.logo-container {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.logo-container img {
  max-width: 150px;
  height: auto;
}

/* Responsive Design */
@media (max-width: 992px) {
  .sidebar-modern {
    transform: translateX(-100%);
  }
  
  .sidebar-modern.show {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    padding: 2rem 0;
  }
  
  .tech-icon-card {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .stats-card {
    margin-bottom: 1rem;
  }
  
  .gradient-bg {
    padding: 2rem 1rem;
  }
}

/* Scrollbar Styling */
.sidebar-modern::-webkit-scrollbar {
  width: 6px;
}

.sidebar-modern::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

.sidebar-modern::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.sidebar-modern::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Light Theme Enhancements */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

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

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

/* Card Variations for Light Theme */
.card-light {
  background: var(--bg-light);
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.card-light:hover {
  background: var(--bg-accent);
  box-shadow: var(--shadow-md);
}

/* Enhanced Tech Cards */
.tech-icon-card {
  background: var(--bg-primary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.tech-icon-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
  background: var(--bg-accent);
}

/* Light Theme Sidebar */
.sidebar-modern {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-light) 100%);
  border-right: 2px solid var(--border-color);
}

/* Focus States */
.nav-link-modern:focus,
.btn-modern:focus,
.card-modern:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Print Styles */
@media print {
  .sidebar-modern,
  .navbar-modern {
    display: none !important;
  }
  
  .main-content {
    margin-left: 0 !important;
  }
}