/* AegiCore Transformers - Main Stylesheet */

/* Design System Variables */
:root {
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(215, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(215, 25%, 15%);
  --popover: hsl(0, 0%, 100%);
  --popover-foreground: hsl(215, 25%, 15%);
  --primary: hsl(214, 95%, 36%);
  --primary-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(210, 100%, 97%);
  --secondary-foreground: hsl(215, 25%, 15%);
  --muted: hsl(210, 40%, 96.1%);
  --muted-foreground: hsl(215, 16%, 47%);
  --accent: hsl(206, 100%, 50%);
  --accent-foreground: hsl(0, 0%, 100%);
  --destructive: hsl(0, 84.2%, 60.2%);
  --destructive-foreground: hsl(0, 0%, 100%);
  --border: hsl(214, 32%, 91%);
  --input: hsl(214, 32%, 91%);
  --ring: hsl(214, 95%, 36%);
  --radius: 0.5rem;
  --gradient-primary: linear-gradient(135deg, hsl(214, 95%, 36%), hsl(206, 100%, 50%));
  --gradient-hero: linear-gradient(180deg, hsl(210, 100%, 97%), hsl(0, 0%, 100%));
  --gradient-dark: linear-gradient(135deg, hsl(215, 25%, 15%), hsl(214, 40%, 25%));
  --shadow-soft: 0 2px 8px hsl(214, 95%, 36%, 0.08);
  --shadow-medium: 0 4px 16px hsl(214, 95%, 36%, 0.12);
  --shadow-strong: 0 8px 24px hsl(214, 95%, 36%, 0.16);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

footer.footer{
  text-align: left;
} 

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background: var(--background);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-soft);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  height: 50px;
  width: auto;
}

/* Desktop Nav */
.nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav li {
  position: relative;
}

.nav a {
  color: var(--muted-foreground);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}
.nav a.btn.btn-primary, .nav .btn.btn-primary a{
  color: var(--accent-foreground);
}
.nav a.btn.btn-primary:hover, .nav .btn.btn-primary a:hover {
    color: var(--accent-foreground);
}
/* Dropdown (desktop) */
.nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  padding: 1rem 0;
  border-radius: 6px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08);
  display: none;
  min-width: 220px;
}

.nav li:hover > .sub-menu {
  display: block;
}

.nav .sub-menu li {
  padding: 0;
}

.nav .sub-menu a {
  padding: 10px;
  display: block;
  color: var(--muted-foreground);
  line-height: 1.4em;
}

.nav .sub-menu a:hover {
  color: var(--primary-foreground);
  background: var(--accent);
}

/* DESKTOP DROPDOWN ARROW */
.nav li.menu-item-has-children > a {
  position: relative;
  padding-right: 1.2rem; /* space for arrow */
}

.nav li.menu-item-has-children > a::after {
  content: "▾"; /* downward arrow */
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

/* Rotate arrow on hover (optional) */
.nav li.menu-item-has-children:hover > a::after {
  transform: translateY(-50%) rotate(180deg);
  top: 60%;
}

/* Mobile Menu */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.mobile-nav.active {
  display: flex;
}

.mobile-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav li {
  border-bottom: 1px solid var(--border);
}

.mobile-nav a {
  padding: 1rem;
  display: block;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--foreground);
}


/* Mobile Dropdown (accordion) */
.mobile-nav .sub-menu {
  display: none;
  padding-left: 1rem;
  background: var(--accent-foreground);
}

.mobile-nav .sub-menu.active {
  display: block;
}

.mobile-nav .dropdown-toggle {
  float: right;
  cursor: pointer;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: white;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(21, 39, 64, 0.95), rgba(21, 39, 64, 0.7));
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 1rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--primary-foreground);
}

.btn-white {
  background: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn-white:hover {
  background: transparent;
  color: white;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.card p {
  color: var(--muted-foreground);
  line-height: 1.7;
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.flex-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.flex-item {
  flex: 1 1 300px;
  max-width: 400px;
}

/* Sections */
section {
  padding: 4rem 1rem;
}

.section-alt {
  background: linear-gradient(to bottom, hsl(210, 100%, 97%, 0.5), hsl(210, 100%, 97%, 0.3));
}

.section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--foreground);
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
  color: var(--foreground);
}

/* Accordion */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-trigger {
  width: 100%;
  padding: 1.25rem;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--foreground);
}

.accordion-trigger:hover {
  background: var(--secondary);
}

.accordion-content {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted-foreground);
  display: none;
}

.accordion-content.active {
  display: block;
}

/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: var(--background);
  color: var(--foreground);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px hsl(214, 95%, 36%, 0.1);
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--foreground);
}

.form-group {
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background: linear-gradient(to bottom, hsl(210, 100%, 97%, 0.5), hsl(210, 100%, 97%, 0.3));
  border-top: 1px solid var(--border);
  padding: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.75rem;
}

.footer a {
  color: var(--muted-foreground);
  transition: color 0.3s;
}

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

.footer-bottom {
  background: hsl(215, 25%, 15%, 0.05);
  padding: 2rem 1rem;
  text-align: left; 
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--muted-foreground); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }

/* Responsive */
@media (max-width: 768px) {
  nav.nav{
    display: none;
  }
  .mobile-menu-btn{
    display:block;
  }
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
