/* styles.css - Modern & Fully Responsive Design System */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap");

/* ========== COLOR THEME VARIABLES ========== */
:root {
  /* Main Colors */
  --primary: #fff9f5; /* Warm peach white */
  --primary-light: #ffffff;
  --secondary: #fcf2eb;
  --accent: #f4a88e; /* Soft peach */

  /* Text Colors */
  --text-main: #3c2a22; /* Deep brown text */
  --text-dim: #7d6b63; /* Warm gray-brown */
  --text-light: #b0a29b; /* Light warm gray */
  --text-on-accent: #3c2a22; /* Dark text on accent */

  /* UI Colors */
  --white: #ffffff;
  --black: #000000;
  --border: #f0e2d9; /* Peach border */
  --divider: #f8ece5; /* Light peach divider */

  /* Effects & States */
  --accent-glow: rgba(244, 168, 142, 0.15);
  --accent-hover: rgba(244, 168, 142, 0.25);
  --glass: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(244, 168, 142, 0.2);
  --shadow-sm: 0 2px 8px rgba(244, 168, 142, 0.08);
  --shadow-md: 0 5px 15px rgba(244, 168, 142, 0.12);
  --shadow-lg: 0 10px 30px -15px rgba(244, 168, 142, 0.1);
  --overlay: rgba(60, 42, 34, 0.5);

  /* Status Colors */
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --info: #2196f3;

  /* Transitions */
  --transition-fast: all 0.15s ease;
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
  --transition-slow: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);

  /* Layout */
  --header-height: 60px;
  --header-height-scrolled: 50px;
  --container-width: 1100px;
  --border-radius: 10px;
  --border-radius-sm: 6px;
  --border-radius-lg: 14px;
}

/* ========== RESET & BASE STYLES ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family:
    "Outfit",
    "Poppins",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: var(--primary);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-main);
}

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

a:hover {
  color: var(--text-main);
}

/* ========== HEADER & NAVIGATION ========== */
header {
  background: var(--glass);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 0;
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
  border-bottom: 1px solid var(--glass-border);
}

header.scrolled {
  height: var(--header-height-scrolled);
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo span {
  color: var(--accent);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 5px 0;
}

nav a:hover,
nav a.active {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--accent);
  transition: var(--transition);
}

nav a:hover::after {
  width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
  background: transparent;
  border: none;
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

/* ========== SLIDER ========== */
.slider {
  width: 100%;
  height: 60vh;
  min-height: 400px;
  margin-top: var(--header-height);
  position: relative;
  overflow: hidden;
  background: var(--secondary);
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.slide-content {
  position: absolute;
  bottom: 25px;
  left: 20px;
  text-align: left;
  width: auto;
  max-width: 90%;
  z-index: 10;
  padding: 0;
  pointer-events: none;
}

.slide-content p {
  color: var(--white);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  min-height: 1.2em;
  letter-spacing: 0.5px;
}

.typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Slider Controls */
.slider-controls {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ========== MAIN CONTENT LAYOUT ========== */
.container {
  max-width: var(--container-width);
  margin: 30px auto;
  padding: 0 15px;
}

.section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  gap: 15px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  white-space: nowrap;
  margin: 0;
}

.section-header::after {
  content: "";
  height: 1px;
  background-color: var(--divider);
  flex-grow: 1;
}

/* ========== SOFTWARE GRID ========== */
.software-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(355px, 1fr));
  gap: 25px;
}

.software-card {
  background: var(--primary-light);
  border-radius: var(--border-radius);
  padding: 15px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.software-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.card-icon {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.card-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 600;
}

.card-desc {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 15px;
  flex-grow: 1;
  line-height: 1.4;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-light);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

/* ========== BUTTONS ========== */
.btn {
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  min-height: 38px;
  flex: 1;
}

.btn-download {
  background: #2ecc71;
  color: white;
  border: none;
}

.btn-download:hover {
  background: #27ae60;
  transform: translateY(-2px);
}

.btn-tutorial {
  background: #e74c3c;
  color: white;
  border: none;
}

.btn-tutorial:hover {
  background: #c0392b;
  transform: translateY(-2px);
}

.btn-share {
  background: var(--accent);
  color: var(--text-on-accent);
  border: none;
  max-width: 44px;
}

.btn-share:hover {
  background: var(--text-on-accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-small {
  padding: 8px 16px;
  font-size: 0.8rem;
  min-height: 36px;
}

.btn-large {
  padding: 16px 28px;
  font-size: 1rem;
  min-height: 52px;
}

.btn-full {
  width: 100%;
}

/* Button States */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ========== FORMS ========== */
.form-group {
  margin-bottom: 25px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--border-radius-sm);
  background: var(--primary-light);
  color: var(--text-main);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-text {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.form-check-input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.form-check-label {
  color: var(--text-main);
  font-size: 0.9rem;
}

/* ========== FOOTER ========== */
footer {
  background: var(--primary-light);
  padding: 19px 11px 30px;
  margin-top: 40px;
  border-top: 1px solid var(--divider);
}

.footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  margin-bottom: 20px;
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-column p {
  color: var(--text-dim);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 20px;
  margin-top: 25px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--glass);
  color: var(--text-dim);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.social-links a:hover {
  color: var(--accent);
  transform: translateY(-3px);
  background: var(--accent-glow);
  border-color: var(--accent);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--divider);
  color: var(--text-dim);
  font-size: 0.85rem;
  max-width: var(--container-width);
  margin: 0 auto;
}

/* ========== UTILITY CLASSES ========== */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}

.text-accent {
  color: var(--accent);
}
.text-main {
  color: var(--text-main);
}
.text-dim {
  color: var(--text-dim);
}
.text-light {
  color: var(--text-light);
}

.bg-primary {
  background: var(--primary);
}
.bg-primary-light {
  background: var(--primary-light);
}
.bg-secondary {
  background: var(--secondary);
}
.bg-accent {
  background: var(--accent);
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mt-4 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 0.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}
.mb-3 {
  margin-bottom: 1.5rem;
}
.mb-4 {
  margin-bottom: 2rem;
}

.p-1 {
  padding: 0.5rem;
}
.p-2 {
  padding: 1rem;
}
.p-3 {
  padding: 1.5rem;
}
.p-4 {
  padding: 2rem;
}

.rounded {
  border-radius: var(--border-radius);
}
.rounded-sm {
  border-radius: var(--border-radius-sm);
}
.rounded-lg {
  border-radius: var(--border-radius-lg);
}

.shadow {
  box-shadow: var(--shadow);
}
.shadow-sm {
  box-shadow: var(--shadow-sm);
}
.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-1 {
  gap: 0.5rem;
}
.gap-2 {
  gap: 1rem;
}
.gap-3 {
  gap: 1.5rem;
}
.gap-4 {
  gap: 2rem;
}

.grid {
  display: grid;
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.hidden {
  display: none;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}

.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}

/* ========== RESPONSIVE QUERIES ========== */
@media (max-width: 768px) {
  :root {
    --header-height: 40px;
    --header-height-scrolled: 40px;
  }

  header {
    height: var(--header-height);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 183px;
    height: 57vh;
    background: var(--primary-light);
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    transition: var(--transition-slow);
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    border-radius: 0;
    border-left: 1px solid var(--border);
    padding: 40px 0 17px;
    opacity: 1;
    visibility: visible;
    transform: none;
    border-bottom: 1px solid var(--border);
  }

  .section-header {
    margin-bottom: 5px;
  }

  nav.active {
    right: 0;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
  }

  nav a {
    font-size: 1rem;
    width: 100%;
    text-align: left;
    display: block;
    padding: 15px 25px;
    border-bottom: 1px solid var(--divider);
  }

  nav a::after {
    display: none;
  }

  .slider {
    height: 40vh;
    min-height: 250px;
    margin-top: var(--header-height);
  }

  .slide-content {
    bottom: -6px;
    left: 15px;
    padding: 0;
    width: calc(100% - 30px);
  }

  .slide-content h2 {
    font-size: 1.5rem;
  }

  .software-grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .container {
    margin: 9px auto;
    padding: 0 10px;
  }

  .section {
    margin-bottom: 15px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .card-actions {
    flex-direction: row;
  }

  .card-actions .btn {
    width: auto;
    flex: 1;
    font-size: 10px !important;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .slide-content {
    padding: 20px;
  }

  .slide-content h2 {
    font-size: 1.8rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .software-card {
    padding: 20px;
  }

  .section-header {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .section-header::after {
    width: 100%;
    margin-top: 10px;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
  }
}

/* ========== PRINT STYLES ========== */
@media print {
  header,
  footer,
  .btn,
  .menu-toggle,
  .slider-controls {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .container {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
  }

  a {
    color: black !important;
    text-decoration: underline;
  }

  .software-card {
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
  :root {
    --primary: #1a1a1a;
    --primary-light: #2d2d2d;
    --secondary: #252525;
    --text-main: #f5f5f5;
    --text-dim: #b3b3b3;
    --text-light: #8c8c8c;
    --border: #404040;
    --divider: #333333;
    --glass: rgba(45, 45, 45, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent-glow: rgba(230, 190, 174, 0.2);
  }
}

/* ==========================================================================
   Collapsible Sections – Smooth accordion style
   ========================================================================== */

.section {
  margin-bottom: 2rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--primary-light);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s ease,
    transform 0.2s ease;
}

.section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.4rem;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(
    135deg,
    rgba(244, 168, 142, 0.04),
    rgba(244, 168, 142, 0.01)
  );
  transition: background 0.25s ease;
}

.section-header:hover {
  background: linear-gradient(
    135deg,
    rgba(244, 168, 142, 0.09),
    rgba(244, 168, 142, 0.03)
  );
}

.section-header h2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-main);
}

.toggle-icon {
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0deg);
}

.section.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

/* ── Content animation ──────────────────────────────────────── */

.software-grid {
  padding: 0 1.4rem 1.4rem;
  transition:
    max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.35s ease,
    padding 0.4s ease;
  max-height: 3000px; /* ← big enough for your content */
  opacity: 1;
}

.section.collapsed .software-grid {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.section {
  margin-bottom: 1.8rem;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--primary-light);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.section:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  user-select: none;
  background: linear-gradient(
    135deg,
    rgba(244, 168, 142, 0.05),
    rgba(244, 168, 142, 0.02)
  );
  transition:
    background 0.3s ease,
    padding 0.3s ease;
}

.section-header:hover {
  background: linear-gradient(
    135deg,
    rgba(244, 168, 142, 0.12),
    rgba(244, 168, 142, 0.05)
  );
}

.section-header h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.8vw, 1.65rem);
  font-weight: 600;
  color: var(--text-main);
}

.toggle-icon {
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.section:not(.collapsed) .toggle-icon {
  transform: rotate(180deg);
}

.software-grid {
  padding: 0 1.5rem 1.5rem;
  transition:
    max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease 0.1s,
    padding 0.5s ease;
  max-height: 4000px; /* must be larger than tallest content */
  opacity: 1;
}

.section.collapsed .software-grid {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
}

/* Active / open state visual feedback */
.section:not(.collapsed) {
  border-color: var(--accent);
  box-shadow: 0 8px 25px -8px rgba(244, 168, 142, 0.22);
}

/* Mobile touch feedback */
.section-header:active {
  background: rgba(244, 168, 142, 0.18) !important;
}

.forfooterlinks {
    color: #000 !important;
}

.fa-phone,
.fa-envelope,
.fa-location-dot,
.fa-map-marker-alt {
    color: green !important;
}
