/* Main CSS - Essential Styles and CSS Variables */

:root {
  /* Dark theme (default) */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111;
  --bg-tertiary: #1a1a2e;
  --text-primary: #fff;
  --text-secondary: #ccc;
  --text-muted: #666;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --border-color: rgba(255, 255, 255, 0.1);
  --card-bg: rgba(20, 20, 20, 0.8);
  --shadow: rgba(0, 0, 0, 0.3);

  /* Skills Animation Colors */
  --sky-light: #87ceeb;
  --sky-medium: #4682b4;
  --ocean-surface: #1e90ff;
  --ocean-deep: #000080;
}

[data-theme="light"] {
  /* Light theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #e9ecef;
  --text-primary: #212529;
  --text-secondary: #495057;
  --text-muted: #6c757d;
  --accent-primary: #667eea;
  --accent-secondary: #764ba2;
  --border-color: rgba(0, 0, 0, 0.1);
  --card-bg: rgba(255, 255, 255, 0.9);
  --shadow: rgba(0, 0, 0, 0.1);

  /* Skills Animation Colors - Light Theme */
  --sky-light: #e6f3ff;
  --sky-medium: #b3d9ff;
  --ocean-surface: #4da6ff;
  --ocean-deep: #0066cc;
}

/* Color Scheme 2: Ocean Blue */
[data-theme="ocean"] {
  --bg-primary: #0c1445;
  --bg-secondary: #1a237e;
  --bg-tertiary: #283593;
  --text-primary: #e3f2fd;
  --text-secondary: #bbdefb;
  --text-muted: #90caf9;
  --accent-primary: #00bcd4;
  --accent-secondary: #0097a7;
  --border-color: rgba(0, 188, 212, 0.2);
  --card-bg: rgba(26, 35, 126, 0.8);
  --shadow: rgba(0, 0, 0, 0.4);

  /* Skills Animation Colors - Ocean Theme */
  --sky-light: #81d4fa;
  --sky-medium: #4fc3f7;
  --ocean-surface: #00bcd4;
  --ocean-deep: #006064;
}

[data-theme="ocean-light"] {
  --bg-primary: #e8f5e8;
  --bg-secondary: #c8e6c9;
  --bg-tertiary: #a5d6a7;
  --text-primary: #1b5e20;
  --text-secondary: #2e7d32;
  --text-muted: #388e3c;
  --accent-primary: #00bcd4;
  --accent-secondary: #0097a7;
  --border-color: rgba(0, 188, 212, 0.2);
  --card-bg: rgba(200, 230, 201, 0.9);
  --shadow: rgba(0, 0, 0, 0.1);

  /* Skills Animation Colors - Ocean Light Theme */
  --sky-light: #e0f2f1;
  --sky-medium: #b2dfdb;
  --ocean-surface: #4db6ac;
  --ocean-deep: #00695c;
}

/* Color Scheme 3: Forest Green */
[data-theme="forest"] {
  --bg-primary: #0d2818;
  --bg-secondary: #1b4332;
  --bg-tertiary: #2d5016;
  --text-primary: #d8f3dc;
  --text-secondary: #b7e4c7;
  --text-muted: #95d5b2;
  --accent-primary: #52c41a;
  --accent-secondary: #389e0d;
  --border-color: rgba(82, 196, 26, 0.2);
  --card-bg: rgba(27, 67, 50, 0.8);
  --shadow: rgba(0, 0, 0, 0.4);

  /* Skills Animation Colors - Forest Theme */
  --sky-light: #a8e6cf;
  --sky-medium: #7fcdcd;
  --ocean-surface: #52c41a;
  --ocean-deep: #135200;
}

[data-theme="forest-light"] {
  --bg-primary: #f6ffed;
  --bg-secondary: #f0f9ff;
  --bg-tertiary: #e6f7ff;
  --text-primary: #135200;
  --text-secondary: #237804;
  --text-muted: #389e0d;
  --accent-primary: #52c41a;
  --accent-secondary: #389e0d;
  --border-color: rgba(82, 196, 26, 0.2);
  --card-bg: rgba(240, 249, 255, 0.9);
  --shadow: rgba(0, 0, 0, 0.1);

  /* Skills Animation Colors - Forest Light Theme */
  --sky-light: #f0f9ff;
  --sky-medium: #e0f2fe;
  --ocean-surface: #7dd3fc;
  --ocean-deep: #0369a1;
}

/* Color Scheme 4: Sunset Orange */
[data-theme="sunset"] {
  --bg-primary: #2d1b00;
  --bg-secondary: #4a2c00;
  --bg-tertiary: #663d00;
  --text-primary: #fff7ed;
  --text-secondary: #fed7aa;
  --text-muted: #fdba74;
  --accent-primary: #f97316;
  --accent-secondary: #ea580c;
  --border-color: rgba(249, 115, 22, 0.2);
  --card-bg: rgba(74, 44, 0, 0.8);
  --shadow: rgba(0, 0, 0, 0.4);

  /* Skills Animation Colors - Sunset Theme */
  --sky-light: #fed7aa;
  --sky-medium: #fdba74;
  --ocean-surface: #f97316;
  --ocean-deep: #c2410c;
}

[data-theme="sunset-light"] {
  --bg-primary: #fff7ed;
  --bg-secondary: #fed7aa;
  --bg-tertiary: #fdba74;
  --text-primary: #9a3412;
  --text-secondary: #c2410c;
  --text-muted: #ea580c;
  --accent-primary: #f97316;
  --accent-secondary: #ea580c;
  --border-color: rgba(249, 115, 22, 0.2);
  --card-bg: rgba(254, 215, 170, 0.9);
  --shadow: rgba(0, 0, 0, 0.1);

  /* Skills Animation Colors - Sunset Light Theme */
  --sky-light: #fff7ed;
  --sky-medium: #fed7aa;
  --ocean-surface: #fb923c;
  --ocean-deep: #ea580c;
}

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

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
}
h2 {
  font-size: 2.5rem;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.4rem;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
}

.btn-secondary:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
  transform: translateX(4px);
}

/* Section Styles */
section {
  padding: 80px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

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

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

/* Focus States */
*:focus {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Selection */
::selection {
  background: rgba(102, 126, 234, 0.3);
  color: #fff;
}

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

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

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

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

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
