/* Base Styles & Variables */
:root {
  /* Color System */
  --color-primary-darkest: #0a192f;
  --color-primary-dark: #112240;
  --color-primary: #1e3a8a;
  --color-primary-light: #3b82f6;
  --color-primary-lightest: #bfdbfe;
  
  --color-accent: #64b5f6;
  --color-accent-light: #90caf9;
  
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  
  --color-neutral-100: #f8fafc;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  
  --color-surface: var(--color-neutral-800);

  /* Typography */
  --font-heading: 'Merriweather', serif;
  --font-body: 'Open Sans', sans-serif;
  
  /* Spacing (8px system) */
  --space-1: 0.5rem;    /* 8px */
  --space-2: 1rem;      /* 16px */
  --space-3: 1.5rem;    /* 24px */
  --space-4: 2rem;      /* 32px */
  --space-5: 2.5rem;    /* 40px */
  --space-6: 3rem;      /* 48px */
  --space-8: 4rem;      /* 64px */
  --space-10: 5rem;     /* 80px */
  
  /* Border Radius */
  --radius-sm: 0.25rem;  /* 4px */
  --radius-md: 0.5rem;   /* 8px */
  --radius-lg: 1rem;     /* 16px */
  --radius-xl: 1.5rem;   /* 24px */
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  line-height: 1.5;
  color: var(--color-neutral-100);
  background-color: var(--color-primary-darkest);
  overflow-x: hidden;
}

--color-surface: var(--color-neutral-800);

  /* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-bottom: var(--space-2);
  font-weight: 700;
  color: var(--color-neutral-100);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  position: relative;
  margin-bottom: var(--space-3);
}

h2::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 3rem;
  height: 3px;
  background-color: var(--color-accent);
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-2);
}

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

a:hover {
  color: var(--color-accent-light);
}

img {
  max-width: 100%;
  height: auto;
}

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

section {
  padding: var(--space-8) 0;
}

.rounded-image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-md);
  border: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 1rem;
}

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

.primary-btn:hover {
  background-color: var(--color-accent-light);
  color: var(--color-primary-darkest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.secondary-btn {
  background-color: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}

.secondary-btn:hover {
  background-color: var(--color-accent);
  color: var(--color-primary-darkest);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Animation Classes */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Utilities */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.25rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  section {
    padding: var(--space-6) 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .container {
    width: 95%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.35rem;
  }
  
  p {
    font-size: 0.95rem;
  }
  
  section {
    padding: var(--space-4) 0;
  }
}
/* Contact Section Grid Layout */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

/* Contact Form Section */
.contact-form {
  flex: 1 1 50%;
  min-width: 300px;
}

/* Contact Image Section */
.contact-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}

/* Input and Textarea Styling */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-neutral-100);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: var(--color-surface);
  border: 1px solid #666;
  border-radius: var(--radius-md);
  font-size: 1rem;
  color: var(--color-neutral-100);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(56, 252, 165, 0.3);
}

/* Button Spacing */
form .btn {
  margin-top: 1rem;
}

/* Responsive Layout Adjustments */
@media (max-width: 768px) {
  .contact-grid {
    flex-direction: column;
  }

  .contact-image {
    margin-top: 2rem;
  }
}


/* Improve text flow on mobile */
body, .container {
  word-wrap: break-word;
}
@media screen and (max-width: 480px) {
  p, h3 {
    font-size: 0.95rem;
  }
}
