/*--------------------------------------------------------------
# Gudgie Digital - Stripped iPortfolio Template
# Design System: Satoshi typeface, light theme with dark sidebar
--------------------------------------------------------------*/

/* Fonts */
@font-face {
  font-family: 'Satoshi';
  src: url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');
}

@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700&display=swap');

:root {
  --default-font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font: "Satoshi", sans-serif;
  --nav-font: "Satoshi", sans-serif;
}

/* Gudgie Digital Palette — Light theme, dark sidebar */
:root {
  /* Brand tokens (unchanged) */
  --gd-black: #101011;
  --gd-white: #fbfbfb;
  --gd-slate: #415A77;
  --gd-dark-grey: #1f1f1f;
  --gd-grey: #353535;

  /* Light theme — main content area */
  --background-color: #fbfbfb;
  --default-color: #101011;
  --heading-color: #101011;
  --accent-color: #415A77;
  --surface-color: #ffffff;
  --contrast-color: #fbfbfb;
  --muted-color: rgba(16, 16, 17, 0.55);
  --border-color: #dfe1e5;
  --section-alt-bg: #f2f3f5;

  /* Sidebar — stays dark */
  --sidebar-bg: #101011;
  --sidebar-border: #1f1f1f;
}

/* Nav Colors — dark sidebar context */
:root {
  --nav-color: rgba(251, 251, 251, 0.6);
  --nav-hover-color: #fbfbfb;
  --nav-mobile-background-color: #101011;
  --nav-dropdown-background-color: #1f1f1f;
  --nav-dropdown-color: rgba(251, 251, 251, 0.6);
  --nav-dropdown-hover-color: #fbfbfb;
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
  font-weight: 400;
}

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

a:hover {
  color: color-mix(in srgb, var(--accent-color), white 25%);
  text-decoration: none;
}

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

/*--------------------------------------------------------------
# Global Header / Sidebar
--------------------------------------------------------------*/
.header {
  color: var(--gd-white);
  background-color: var(--sidebar-bg);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  padding: 0 15px;
  width: 300px;
  transition: all ease-in-out 0.3s;
  overflow-y: auto;
  z-index: 997;
  border-right: 1px solid var(--sidebar-border);
}

.header .logo {
  line-height: 1;
  margin: 30px 0 20px 0;
  text-align: center;
}

.header .logo img {
  max-height: 48px;
  margin-bottom: 10px;
}

.header .logo h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 700;
  color: var(--heading-color);
  letter-spacing: 0.5px;
}

.header .logo .tagline {
  font-size: 12px;
  color: var(--nav-color);
  font-weight: 300;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}

@media (min-width: 1200px) {
  .header~main,
  .header~#footer {
    margin-left: 300px;
  }
}

@media (max-width: 1199px) {
  .header {
    left: -100%;
  }
}

.header.header-show {
  left: 0;
}

.header .header-toggle {
  color: var(--contrast-color);
  background-color: var(--accent-color);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 9999;
  transition: background-color 0.3s;
}

.header .header-toggle:hover {
  color: var(--contrast-color);
  background-color: color-mix(in srgb, var(--accent-color) 90%, white 15%);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navmenu {
  padding: 0;
  z-index: 9997;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.navmenu ul {
  list-style: none;
  padding: 0 0 20px 0;
  margin: 0;
}

.navmenu a,
.navmenu a:focus {
  color: var(--nav-color);
  padding: 12px 10px;
  font-family: var(--nav-font);
  font-size: 15px;
  font-weight: 400;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.3s;
  width: 100%;
}

.navmenu a .navicon,
.navmenu a:focus .navicon {
  font-size: 18px;
  margin-right: 10px;
}

.navmenu a .toggle-dropdown,
.navmenu a:focus .toggle-dropdown {
  font-size: 12px;
  line-height: 0;
  margin-left: auto;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  flex-shrink: 0;
  background-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.navmenu a .toggle-dropdown:hover,
.navmenu a:focus .toggle-dropdown:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

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

.navmenu a:hover .navicon,
.navmenu .active .navicon,
.navmenu .active:focus .navicon {
  color: var(--accent-color);
}

.navmenu .active .toggle-dropdown,
.navmenu .active:focus .toggle-dropdown {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
}

.navmenu .dropdown {
  display: block;
}

.navmenu .dropdown a,
.navmenu .dropdown a:focus {
  color: var(--nav-dropdown-color);
}

.navmenu .dropdown a:hover,
.navmenu .dropdown .active,
.navmenu .dropdown .active:focus {
  color: var(--nav-dropdown-hover-color);
}

.navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 5px 10px;
  margin: 5px 10px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid var(--gd-grey);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
}

.navmenu .dropdown > .dropdown-active {
  display: block;
  background-color: rgba(255, 255, 255, 0.03);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  color: var(--gd-white);
  background-color: var(--sidebar-bg);
  font-size: 14px;
  padding: 30px 0;
  position: relative;
  border-top: 1px solid var(--sidebar-border);
}

.footer .copyright p {
  margin-bottom: 0;
  color: rgba(251, 251, 251, 0.6);
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 3px solid var(--gd-grey);
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 44px;
  height: 44px;
  border-radius: 50px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  overflow: clip;
}

/*--------------------------------------------------------------
# Section Titles
--------------------------------------------------------------*/
.section-title {
  padding-bottom: 40px;
  position: relative;
}

.section-title .section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-color);
  margin-bottom: 12px;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 16px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 40px;
  height: 2px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.section-title p {
  margin-bottom: 0;
  color: var(--muted-color);
  font-size: 16px;
  line-height: 1.7;
  max-width: 640px;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--gd-black);
}

.hero .hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px 80px 80px;
}

.hero h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.15;
  max-width: 700px;
  color: var(--gd-white);
}

.hero .hero-sub {
  margin: 20px 0 0 0;
  font-size: 18px;
  color: rgba(251, 251, 251, 0.7);
  max-width: 500px;
  line-height: 1.6;
}

.hero .hero-video {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}

.hero .hero-video video {
  width: 100%;
  height: auto;
  display: block;
  background: transparent;
  border: none;
}

@media (max-width: 991.98px) {
  .hero {
    min-height: 100vh;
  }

  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(16, 16, 17, 0.75);
    z-index: 2;
  }

  .hero > .row {
    position: static;
  }

  .hero .hero-text {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    padding: 120px 30px;
    text-align: center;
    align-items: center;
  }

  .hero .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    flex: none;
    padding: 0;
    z-index: 1;
  }

  .hero .hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 37px;
  }
  .hero .hero-sub {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted-color);
  margin-bottom: 16px;
}

.about p:last-child {
  margin-bottom: 0;
}

.btn-gd {
  display: inline-block;
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 14px 32px;
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.5px;
  border: none;
  transition: background-color 0.3s;
}

.btn-gd:hover {
  background-color: color-mix(in srgb, var(--accent-color), white 15%);
  color: var(--contrast-color);
}

/*--------------------------------------------------------------
# Process / How We Work Section
--------------------------------------------------------------*/
.process .step-card {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  padding: 36px 30px;
  height: 100%;
  position: relative;
  transition: border-color 0.3s;
}

.process .step-card:hover {
  border-color: var(--accent-color);
}

.process .step-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-color);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 16px;
}

.process .step-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}

.process .step-card p {
  font-size: 15px;
  color: var(--muted-color);
  line-height: 1.7;
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Services Section (parent + individual service blocks)
--------------------------------------------------------------*/
.services-intro {
  padding-bottom: 0;
}

.service-block {
  border-top: 1px solid var(--border-color);
}

.service-block .section-title {
  padding-bottom: 20px;
}

.service-block .service-content h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-block .service-content .service-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--gd-black);
  margin-bottom: 12px;
}

.service-block .service-content p {
  font-size: 15px;
  color: var(--muted-color);
  line-height: 1.7;
}

.service-block .service-visual {
  text-align: center;
}

.service-block .service-visual img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
}

.service-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.service-tag {
  background-color: var(--section-alt-bg);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-color);
  border: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Integration Section
--------------------------------------------------------------*/
.integrations .integration-visual {
  text-align: center;
}

.integrations .integration-visual img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--border-color);
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  margin-right: 16px;
  margin-top: 3px;
}

.contact .info-item h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.contact .info-item p {
  font-size: 14px;
  color: var(--muted-color);
  margin-bottom: 0;
}

.contact .contact-form input,
.contact .contact-form textarea {
  background-color: var(--surface-color);
  border: 1px solid var(--border-color);
  color: var(--default-color);
  font-family: var(--default-font);
  font-size: 15px;
  padding: 12px 16px;
  width: 100%;
  transition: border-color 0.3s;
}

.contact .contact-form input:focus,
.contact .contact-form textarea:focus {
  border-color: var(--accent-color);
  outline: none;
}

.contact .contact-form textarea {
  min-height: 160px;
  resize: vertical;
}

.contact .contact-form .form-group {
  margin-bottom: 16px;
}

.contact .contact-form label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-color);
  margin-bottom: 6px;
  display: block;
}

.contact .contact-form button[type="submit"] {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  padding: 14px 32px;
  font-family: var(--default-font);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s;
}

.contact .contact-form button[type="submit"]:hover {
  background-color: color-mix(in srgb, var(--accent-color), white 15%);
}

/*--------------------------------------------------------------
# Alternating backgrounds for visual rhythm
--------------------------------------------------------------*/
.section-alt {
  background-color: var(--section-alt-bg);
}
