/* Import a professional font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-blue: #e3f2fd;
  --accent-blue: #90caf9;
  --light-blue: #bbdefb;
  --dark-blue: #1976d2;
  --light-grey: #f5f5f5;
  --medium-grey: #e0e0e0;
  --dark-grey: #616161;
  --text-dark: #263238;
  --glass-white: rgba(255, 255, 255, 0.25);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
}

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

body {
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #6b8dd6 50%, #8e37d7 100%);
  background-attachment: fixed;
  color: var(--text-dark);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

/* Add animated background shapes for depth */
body::before {
  content: '';
  position: fixed;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  opacity: 0.3;
  animation: float 20s infinite ease-in-out;
  pointer-events: none;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Header Styles with Glassmorphism */
header {
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  padding: 2rem;
  margin: 2rem;
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-light);
  text-align: center;
  animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header h1 {
  font-size: 2.5rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--dark-blue) 0%, var(--text-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

/* Main Content Container */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Section Cards with Glassmorphism */
section {
  margin-bottom: 2rem;
  animation: fadeInUp 0.8s ease-out backwards;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

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

section div {
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 8px 32px var(--shadow-light);
  transition: all 0.3s ease;
}

section div:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-medium);
  background: rgba(255, 255, 255, 0.35);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1.1rem; }

/* Paragraph Styles */
p {
  color: var(--dark-grey);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

/* Link Styles */
a {
  color: var(--dark-blue);
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
  border-radius: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-light);
}

a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-medium);
  background: linear-gradient(135deg, var(--light-blue), var(--accent-blue));
}

/* Image Styles for Individual Pages */
img {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px var(--shadow-medium);
  margin: 2rem auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  header h1 {
    font-size: 1.8rem;
  }
  
  main {
    padding: 1rem;
  }
  
  section div {
    padding: 1.5rem;
  }
  
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.35rem; }
  h3 { font-size: 1.25rem; }
  h4 { font-size: 1.15rem; }
  h5 { font-size: 1.05rem; }
  h6 { font-size: 1rem; }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection Styles */
::selection {
  background: var(--accent-blue);
  color: white;
}

/* Additional Glass Panel for Individual Pages */
main header {
  margin-bottom: 2rem;
}

/* Back Link Special Styling */
a[href="../index.html"] {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  z-index: 100;
}

a[href="../index.html"]:hover {
  background: rgba(255, 255, 255, 0.4);
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 2rem;
  margin: 2rem;
  background: var(--glass-white);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  box-shadow: 0 8px 32px var(--shadow-light);
  color: var(--text-dark);
  font-weight: 500;
}
