/* ============================================
   PRISMATIC STUDIO LAB - MAIN STYLESHEET
   Modern, lightweight design with pastel tech aesthetic
   ============================================ */

/* CSS CUSTOM PROPERTIES (CSS Variables)
   These define our color palette and spacing system
   inspired by the Prismatic logo gradients */
:root {
  /* Primary pastel colors from logo */
  --color-blue: #7DD3FC;        /* Soft sky blue */
  --color-purple: #C4B5FD;      /* Gentle lavender */
  --color-pink: #FCA5A5;        /* Soft coral pink */
  --color-peach: #FED7AA;       /* Warm peach */
  
  /* Neutral colors for text and backgrounds */
  --color-dark: #1F2937;        /* Dark gray for text */
  --color-gray: #6B7280;        /* Medium gray for secondary text */
  --color-light-gray: #F3F4F6;  /* Very light gray for backgrounds */
  --color-white: #FFFFFF;
  
  /* Gradient for accents - matches logo */
  --gradient-primary: linear-gradient(135deg, #7DD3FC 0%, #C4B5FD 50%, #FCA5A5 100%);
  
  /* Spacing system (using multiples of 8px for consistency) */
  --spacing-xs: 0.5rem;   /* 8px */
  --spacing-sm: 1rem;     /* 16px */
  --spacing-md: 2rem;     /* 32px */
  --spacing-lg: 4rem;     /* 64px */
  --spacing-xl: 6rem;     /* 96px */
  
  /* Typography scale */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* RESET AND BASE STYLES
   Removes browser defaults and sets consistent baseline */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Makes width/height include padding and border */
}

html {
  scroll-behavior: smooth; /* Smooth scrolling for anchor links */
}

body {
  font-family: var(--font-body);
  color: var(--color-dark);
  line-height: 1.6; /* Comfortable reading line height */
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased; /* Better font rendering on Mac */
  -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY STYLES */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }    /* 56px */
h2 { font-size: 2.5rem; }    /* 40px */
h3 { font-size: 1.875rem; }  /* 30px */
h4 { font-size: 1.5rem; }    /* 24px */

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease; /* Smooth hover transitions */
}

/* NAVIGATION BAR
   Sticky navigation that stays at top when scrolling */
nav {
  background-color: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  backdrop-filter: blur(10px); /* Frosted glass effect */
  position: sticky; /* Stays at top when scrolling */
  top: 0;
  z-index: 1000; /* Ensures nav stays above other content */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--spacing-sm) 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

nav .logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

nav .logo img {
  height: 40px; /* Fixed height for logo */
  width: auto;
}

nav .logo span {
  font-size: 1.25rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text; /* Gradient text effect */
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Navigation links */
nav ul {
  display: flex;
  list-style: none;
  gap: var(--spacing-md);
}

nav ul li a {
  color: var(--color-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: 8px;
  transition: all 0.3s ease;
}

/* Hover effect for nav links - subtle background */
nav ul li a:hover,
nav ul li a.active {
  background-color: var(--color-light-gray);
  color: var(--color-dark);
}

/* CONTAINER - Centers content and sets max width */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* HERO SECTION - Large banner at top of pages */
.hero {
  min-height: 70vh; /* Takes up most of viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-md);
  background: linear-gradient(135deg, 
    rgba(125, 211, 252, 0.1) 0%, 
    rgba(196, 181, 253, 0.1) 50%, 
    rgba(252, 165, 165, 0.1) 100%
  ); /* Very subtle gradient background */
  position: relative;
  overflow: hidden;
}

/* Decorative gradient orb - adds visual interest */
.hero::before {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  background: var(--gradient-primary);
  border-radius: 50%;
  filter: blur(100px); /* Heavy blur creates soft glow effect */
  opacity: 0.3;
  top: -100px;
  right: -100px;
  z-index: 0;
}

.hero-content {
  position: relative; /* Ensures content stays above decorative elements */
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  margin-bottom: var(--spacing-md);
  color: var(--color-dark);
}

/* Gradient text effect for hero tagline */
.hero .tagline {
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

.hero p {
  font-size: 1.25rem;
  color: var(--color-gray);
  margin-bottom: var(--spacing-lg);
}

/* BUTTONS - Reusable button styles */
.btn {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

/* Primary button with gradient background */
.btn-primary {
  background: var(--gradient-primary);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(125, 211, 252, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px); /* Subtle lift on hover */
  box-shadow: 0 6px 25px rgba(125, 211, 252, 0.4);
}

/* Secondary button with outline style */
.btn-secondary {
  background: var(--color-white);
  color: var(--color-dark);
  border: 2px solid var(--color-light-gray);
}

.btn-secondary:hover {
  border-color: var(--color-blue);
  background-color: var(--color-light-gray);
}

/* SECTION - Standard content sections */
section {
  padding: var(--spacing-xl) 0;
}

section h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* GRID LAYOUT - Flexible grid for cards/content */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive columns */
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

/* CARD COMPONENT - Reusable card for projects, features, etc */
.card {
  background: var(--color-white);
  border-radius: 16px;
  padding: var(--spacing-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-5px); /* Lift effect on hover */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
  color: var(--color-dark);
  margin-bottom: var(--spacing-sm);
}

.card p {
  color: var(--color-gray);
  line-height: 1.6;
}

/* Card icon - decorative accent */
.card-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

/* FOOTER STYLES */
footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
}

.footer-section p,
.footer-section a {
  color: var(--color-gray);
  font-size: 0.9rem;
}

.footer-section a:hover {
  color: var(--color-blue);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-gray);
  font-size: 0.9rem;
}

/* FORM STYLES - For contact page */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-sm);
  border: 2px solid var(--color-light-gray);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none; /* Remove default browser outline */
  border-color: var(--color-blue); /* Highlight with brand color */
}

.form-group textarea {
  min-height: 150px;
  resize: vertical; /* Allow vertical resize only */
}

/* FEATURE LIST - Styled list for about page */
.feature-list {
  list-style: none;
  margin: var(--spacing-md) 0;
}

.feature-list li {
  padding: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  background: var(--color-light-gray);
  border-radius: 8px;
  color: var(--color-gray);
  position: relative;
  padding-left: var(--spacing-lg);
}

/* Checkmark icon before each feature */
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: var(--spacing-sm);
  color: var(--color-blue);
  font-weight: bold;
  font-size: 1.2rem;
}

/* PROJECT CARD - Special styling for projects page */
.project-card {
  background: linear-gradient(135deg, 
    rgba(125, 211, 252, 0.05) 0%, 
    rgba(196, 181, 253, 0.05) 100%
  );
}

.project-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: var(--gradient-primary);
  color: var(--color-white);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: var(--spacing-xs);
  margin-bottom: var(--spacing-xs);
}

/* RESPONSIVE DESIGN - Mobile optimizations
   Applies to screens smaller than 768px (tablets/phones) */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  
  nav .container {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero {
    min-height: 50vh;
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero .tagline {
    font-size: 1.2rem;
  }
  
  .grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  section {
    padding: var(--spacing-lg) 0;
  }
}

/* UTILITY CLASSES - Quick helper classes */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--spacing-lg); }
.mb-lg { margin-bottom: var(--spacing-lg); }
