/*
  Tech Trends - Custom Stylesheet
  Version: 1.0
  Author: AI Assistant
  Design System: Minimalist with Hyperrealistic Textures
  Color Scheme: Triadic
  Animation Style: Hand-drawn Animations
*/

/* -------------------------------------------------- */
/* 1. CSS VARIABLES
/* -------------------------------------------------- */

:root {
  /* Color Palette (Triadic) */
  --primary-color: #6d28d9; /* A vibrant purple */
  --secondary-color: #059669; /* A rich green */
  --accent-color: #ea580c; /* A bold orange */

  /* Darker shades for hovers/borders */
  --primary-darker-color: #5b21b6;
  --secondary-darker-color: #047857;

  /* Neutral Colors */
  --heading-color: #1f2937; /* Dark Gray for Headings */
  --text-color: #374151; /* Medium Gray for Body Text */
  --text-light-color: #6b7280; /* Lighter Gray for subtitles */
  --bg-light-color: #f9fafb; /* Off-white for light sections */
  --bg-dark-color: #111827; /* Very Dark Gray for dark sections */
  --white-color: #ffffff;
  --border-color: #e5e7eb;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Merriweather', serif;

  /* Transitions */
  --transition-fast: all 0.2s ease-in-out;
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* -------------------------------------------------- */
/* 2. BASE STYLES
/* -------------------------------------------------- */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed header */
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--white-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading-color);
  font-weight: 700;
}

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

a:hover {
  color: var(--primary-darker-color);
  text-decoration: underline;
}

/* Base styles for sections to ensure consistent padding */
section {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Parallax Background Effect */
.parallax {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Overlay for text readability on images */
.text-on-image-overlay {
  position: relative;
  color: var(--white-color);
}

.text-on-image-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.4));
  z-index: 1;
}

.text-on-image-overlay > * {
  position: relative;
  z-index: 2;
}


/* -------------------------------------------------- */
/* 3. GLOBAL COMPONENTS & BUTTONS
/* -------------------------------------------------- */

/* Global Button Styles */
button,
input[type='submit'],
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-smooth);
  transform: scale(1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

button:hover,
input[type='submit']:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 14px rgba(0,0,0,0.1);
}

/* Primary Button Style */
.btn-primary,
button[type='submit'] {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-primary:hover,
button[type='submit']:hover {
  background-color: var(--primary-darker-color);
  color: var(--white-color);
}

/* Modern Form Input Styles */
input[type='text'],
input[type='email'],
textarea {
  font-family: var(--font-body);
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--white-color);
  transition: var(--transition-smooth);
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.2);
}

/* Card Styles */
.card {
  display: flex;
  flex-direction: column;
  text-align: center;
  background-color: var(--bg-light-color);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card .card-image {
  width: 100%;
  height: 220px; /* Fixed height for consistent card appearance */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  margin: 0 auto;
}

.card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-grow: 1;
}

/* -------------------------------------------------- */
/* 4. SECTION-SPECIFIC STYLES
/* -------------------------------------------------- */

/* Header */
header {
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hero Section */
#hero h1 {
  text-shadow: 0px 4px 10px rgba(0, 0, 0, 0.5);
}

/* Awards Section - Statistical Widgets */
.stat-widget {
  border: 1px solid var(--border-color);
  padding: 2rem;
  border-radius: 0.75rem;
  transition: var(--transition-smooth);
}

.stat-widget:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 20px rgba(109, 40, 217, 0.1);
}

/* Animated Icons */
.animate-icon svg {
  animation: icon-float 3s ease-in-out infinite;
}

/* Partners Section */
#partners img {
  transition: var(--transition-smooth);
  filter: grayscale(100%) opacity(60%);
}

#partners img:hover {
  filter: grayscale(0%) opacity(100%);
  transform: scale(1.1);
}

/* "Read More" Style Link */
.read-more-link {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--secondary-color);
  position: relative;
  display: inline-block;
  margin-top: auto; /* Pushes the link to the bottom of the card */
  padding-top: 1rem;
}

.read-more-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--secondary-color);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.25s ease-out;
}

.read-more-link:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Footer */
footer a {
  color: #9ca3af; /* Tailwind gray-400 */
  text-decoration: none;
  transition: var(--transition-fast);
}

footer a:hover {
  color: var(--white-color);
  text-decoration: underline;
}


/* -------------------------------------------------- */
/* 5. PAGE-SPECIFIC STYLES
/* -------------------------------------------------- */

/* For pages like Privacy Policy, Terms of Service */
.static-page-container {
  padding-top: 100px;
  padding-bottom: 5rem;
  min-height: 80vh; /* Ensures footer is pushed down */
}

.static-page-container h1 {
  margin-bottom: 2rem;
}
.static-page-container h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.static-page-container p {
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

/* Success Page */
.success-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 2rem;
  background-color: var(--bg-light-color);
}

.success-icon {
  color: var(--secondary-color);
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  animation: icon-pop-in 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}


/* -------------------------------------------------- */
/* 6. ANIMATIONS & KEYFRAMES
/* -------------------------------------------------- */

@keyframes icon-float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes icon-pop-in {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Barba.js Page Transitions */
.fade-transition {
  transition: opacity 0.5s;
  opacity: 1;
}

.fade-transition.is-leaving {
  opacity: 0;
}