/**
 * BASE STYLES
 * 
 * This file contains the foundation styles for the portfolio:
 * - CSS Variables
 * - Reset
 * - Typography
 * - Base layout
 * - Dark/light theme variables
 */

/* ======= CSS Variables ======= */
:root {
  /* Light Theme Colors */
  --primary-color: #4361ee; /* Desaturated Blue */
  --primary-color-rgb: 67, 97, 238; /* RGB for Desaturated Blue */
  --secondary-color: #3f37c9; /* Darker Desaturated Blue */
  --accent-color: #4895ef; /* Lighter Desaturated Blue */
  --text-color: #333333; /* Dark Gray */
  --text-color-light: #666666; /* Medium Gray */
  --bg-color: #ffffff; /* White */
  --bg-color-alt: #f9f9f9; /* Light Gray */
  --card-bg: #ffffff; /* White */
  --border-color: #e0e0e0; /* Light Gray */
  --shadow-color: rgba(0, 0, 0, 0.1); /* Soft Shadow */
  --success-color: #4caf50; /* Green */

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

  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-round: 50%;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ======= Dark Theme Variables ======= */
.dark-theme {
  --primary-color: #4895ef; /* Lighter Desaturated Blue */
  --primary-color-rgb: 72, 149, 239; /* RGB for Lighter Desaturated Blue */
  --secondary-color: #3f8efc; /* Darker Desaturated Blue */
  --accent-color: #5390d9; /* Even Darker Desaturated Blue */
  --text-color: #e0e0e0; /* Light Gray */
  --text-color-light: #b0b0b0; /* Medium-Dark Gray */
  --bg-color: #121212; /* Very Dark Desaturated Blue/Gray */
  --bg-color-alt: #1e1e1e; /* Darker Gray */
  --card-bg: #2a2a2a; /* Dark Gray */
  --border-color: #444444; /* Medium-Dark Gray */
  --shadow-color: rgba(0, 0, 0, 0.5); /* Darker Shadow */
}

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

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

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background-color var(--transition-normal),
    color var(--transition-normal);
  overflow-x: hidden;
}

/* ======= Typography ======= */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

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

a:hover {
  color: var(--secondary-color);
  text-decoration: none;
}

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

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

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

/* Section Heading Styles */
.section-heading {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--text-color);
}

.underline {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto;
  margin-top: var(--spacing-xs);
}

/* Hide scrollbar but allow scrolling */
.hide-scrollbar {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.hide-scrollbar::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* ======= Button Base Styles ======= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  gap: 0.5rem;
}

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

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

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

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

/* ======= Image Styles ======= */
img {
  max-width: 100%;
  height: auto;
}
