/* 
  Jadex Computers - Premium Modern Styles 
  Fonts: Outfit & Inter
*/

:root {
  /* Colors */
  --bg-color: #f5f7fa;
  --bg-color-alt: #ffffff;
  --text-color: #4a5568;
  --text-color-light: #1a202c;
  --primary-color: #00b14f;
  --secondary-color: #00883d;
  --gradient-main: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(0, 0, 0, 0.08);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --h1-font: 3.5rem;
  --h2-font: 2.5rem;
  --h3-font: 1.5rem;
  --normal-font: 1rem;
  --small-font: 0.875rem;

  /* Spacing */
  --mb-1: 0.5rem;
  --mb-2: 1rem;
  --mb-3: 1.5rem;
  --mb-4: 2rem;
  
  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--normal-font);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-color-light);
  line-height: 1.2;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

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

/* Reusable Classes */
.container {
  max-width: 1200px;
  width: calc(100% - 3rem);
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.section {
  padding: 6rem 0 3rem;
}

.section-title {
  font-size: var(--h2-font);
  margin-bottom: var(--mb-2);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  margin-bottom: var(--mb-4);
  max-width: 600px;
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 177, 79, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 177, 79, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-color-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Header & Nav */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: 0.4s;
}

.nav-container {
  height: 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 40px;
  width: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-color);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: var(--gradient-main);
  bottom: -4px;
  left: 0;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active-link::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active-link {
  color: var(--text-color-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-toggle, .nav-close {
  display: none;
  font-size: 1.8rem;
  color: var(--text-color-light);
  cursor: pointer;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('assets/images/hero_bg.png') no-repeat center center/cover;
  opacity: 0.4;
  z-index: -2;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(245,247,250,0.1) 0%, rgba(245,247,250,1) 100%);
  z-index: -1;
}

.hero-data {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: var(--h1-font);
  margin-bottom: var(--mb-2);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: var(--mb-4);
  color: var(--text-color-light);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* About Section */
.about {
  background-color: var(--bg-color);
  position: relative;
}

.about-container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about-img-wrapper {
  position: relative;
  border-radius: 12px;
  z-index: 1;
}

.about-img {
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.img-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110%;
  height: 110%;
  background: radial-gradient(circle, rgba(0,177,79,0.15) 0%, rgba(255,255,255,0) 70%);
  z-index: 1;
}

.about-description {
  margin-bottom: var(--mb-3);
}

.about-list {
  display: grid;
  gap: 1rem;
  margin-top: var(--mb-2);
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  font-weight: 500;
}

.about-list ion-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
}

/* Services Section */
.services {
  background-color: var(--bg-color-alt);
  position: relative;
}

/* Background Decoration for Services */
.services::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -20%;
  width: 50rem;
  height: 50rem;
  background: radial-gradient(circle, rgba(0,177,79,0.08) 0%, rgba(255,255,255,0) 60%);
  z-index: 0;
  pointer-events: none;
}

.services-container {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  position: relative;
  z-index: 1;
}

.service-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  padding: 2rem 1.5rem;
  border-radius: 16px;
  transition: 0.4s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.4s;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.4);
  background: rgba(255, 255, 255, 0.05);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: var(--mb-2);
}

.service-title {
  font-size: 1.25rem;
  margin-bottom: var(--mb-1);
}

.service-description {
  font-size: 0.95rem;
}

/* Call to Action */
.cta-box {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 4rem 2rem;
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.cta-box::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(0,177,79,0.1) 0%, rgba(255,255,255,0) 60%);
  z-index: -1;
}

.cta-title {
  margin-bottom: var(--mb-1);
}

.cta-description {
  margin-bottom: var(--mb-3);
}

/* Contact Section */
.contact-container {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item ion-icon {
  font-size: 2rem;
  color: var(--secondary-color);
  background: rgba(0,177,79,0.1);
  padding: 0.5rem;
  border-radius: 8px;
}

.contact-item-title {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: var(--mb-3);
}

.social-link {
  display: inline-flex;
  font-size: 1.5rem;
  color: var(--text-color);
  background: var(--glass-bg);
  padding: 0.8rem;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transition: 0.3s;
}

.social-link:hover {
  background: var(--gradient-main);
  color: #1a202c;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 177, 79, 0.3);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.4s;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-color-alt);
  border: 1px solid var(--glass-border);
  width: 90%;
  max-width: 500px;
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  transform: translateY(-50px);
  transition: 0.4s;
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--text-color);
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  color: var(--primary-color);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: var(--text-color-light);
  font-family: var(--font-body);
  transition: 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 177, 79, 0.2);
}

.w-100 {
  width: 100%;
}

/* Footer */
.footer {
  padding: 2rem 0;
  background: #e2e8f0;
  border-top: 1px solid var(--glass-border);
  color: var(--text-color-light);
}

.flex-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

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

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.appear {
  opacity: 1;
  transform: translate(0);
}

/* Responsive */
@media screen and (max-width: 968px) {
  :root {
    --h1-font: 2.5rem;
    --h2-font: 2rem;
  }
  
  .about-container, 
  .contact-container {
    grid-template-columns: 1fr;
  }

  .about-img-wrapper {
    order: -1;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  #nav-menu {
    position: fixed;
    top: -120vh;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,0.98);
    backdrop-filter: none;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease-in-out;
    border-bottom: 1px solid var(--glass-border);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
  }

  #nav-menu.show-menu {
    top: 0;
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    text-align: center;
  }

  .nav-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .header-actions .btn {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}

@media screen and (max-width: 480px) {
  :root {
    --h1-font: 2rem;
    --h2-font: 1.75rem;
  }
  .section {
    padding: 4rem 0 2rem;
  }
}

.rotate {
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
