/* ========================================
   MAIN THEME - General Theme Styles
   Variables, Base Styles, Typography, Responsive
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

/* Import modular CSS files */
@import url('layout.css');
@import url('components.css');
@import url('animations.css');

/* === ROOT VARIABLES === */
:root {
  /* Sophisticated Color Palette */
  --primary-color: #6366f1;
  /* Vibrant Indigo */
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

  /* Accent Colors */
  --accent-color: #ec4899;
  /* Hot Pink */
  --accent-secondary: #f59e0b;
  /* Amber */
  --accent-cyan: #06b6d4;
  /* Cyan */

  /* Modern Neutrals */
  --dark: #0f172a;
  /* Deep Navy */
  --dark-medium: #1e293b;
  --dark-light: #334155;
  --gray-dark: #475569;
  --gray: #64748b;
  --gray-light: #94a3b8;
  --light-gray: #cbd5e1;
  --lighter-gray: #e2e8f0;
  --lightest-gray: #f1f5f9;
  --white: #ffffff;

  /* Background Gradients */
  --bg-gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --bg-gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  --bg-gradient-light: linear-gradient(135deg, #fdfcfb 0%, #e2d1c3 100%);

  /* Semantic Colors */
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #06b6d4;

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-code: 'Fira Code', 'Courier New', monospace;

  /* Spacing Scale */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Enhanced 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.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15), 0 5px 10px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.15);
  --shadow-2xl: 0 25px 50px rgba(0, 0, 0, 0.25), 0 15px 30px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.4);
  --shadow-color: 0 8px 32px rgba(99, 102, 241, 0.15);

  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions & Animations */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* === GLOBAL STYLES === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(ellipse at top, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* === TYPOGRAPHY === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
  color: var(--dark);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  background: var(--bg-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--spacing-lg);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  position: relative;
  display: inline-block;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--font-primary);
  font-weight: 700;
}

h5,
h6 {
  font-family: var(--font-primary);
  font-weight: 700;
}

p {
  margin-bottom: var(--spacing-md);
  color: var(--gray-dark);
  font-size: 1.0625rem;
  line-height: 1.8;
  font-weight: 400;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-fast);
  position: relative;
}

a:hover {
  color: var(--primary-dark);
}

strong {
  font-weight: 600;
  color: var(--dark);
}

/* === LAYOUT === */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

main {
  flex: 1;
  position: relative;
  z-index: 1;
}

/* === HERO SECTION === */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
  }
}

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .navbar {
    padding: var(--spacing-sm) 0;
  }

  .navbar-brand img {
    height: 36px;
  }

  .project-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .btn {
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }

  footer .social-link {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
  }

  .card-body {
    padding: var(--spacing-sm);
  }
}

/* === FOCUS & ACCESSIBILITY === */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}