/* ===== GOOGLE FONTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Open+Sans:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  /* Colors */
  --primary-color: #1a365d;
  --secondary-color: #3182ce;
  --accent-color: #38a169;
  --neutral-color: #f7fafc;
  --text-color: #2d3748;
  --text-light: #718096;
  --danger-color: #e53e3e;
  --white: #ffffff;
  --black: #000000;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1a365d 0%, #3182ce 100%);
  --gradient-accent: linear-gradient(135deg, #38a169 0%, #48bb78 100%);
  --gradient-text: linear-gradient(135deg, #3182ce 0%, #38a169 100%);
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Open Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  /* Font Sizes */
  --h1-font-size: 3.5rem;
  --h2-font-size: 2.5rem;
  --h3-font-size: 1.75rem;
  --h4-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;
  --smaller-font-size: 0.75rem;
  
  /* Font Weights */
  --font-light: 300;
  --font-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;
  --font-bold: 700;
  
  /* Spacing */
  --header-height: 4.5rem;
  --section-padding: 6rem 0;
  --container-margin: 0 1.5rem;
  --mb-0-25: 0.25rem;
  --mb-0-5: 0.5rem;
  --mb-0-75: 0.75rem;
  --mb-1: 1rem;
  --mb-1-25: 1.25rem;
  --mb-1-5: 1.5rem;
  --mb-2: 2rem;
  --mb-2-5: 2.5rem;
  --mb-3: 3rem;
  
  /* Border Radius */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* ===== RESPONSIVE TYPOGRAPHY ===== */
@media screen and (max-width: 992px) {
  :root {
    --h1-font-size: 2.5rem;
    --h2-font-size: 2rem;
    --h3-font-size: 1.5rem;
    --h4-font-size: 1.125rem;
    --normal-font-size: 0.938rem;
    --small-font-size: 0.813rem;
    --smaller-font-size: 0.75rem;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--normal-font-size);
  background-color: var(--white);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  font-family: var(--font-heading);
  line-height: 1.2;
}

ul {
  list-style: none;
}

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

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

button {
  cursor: pointer;
  border: none;
  outline: none;
}

/* ===== REUSABLE CSS CLASSES ===== */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-margin);
  padding-right: var(--container-margin);
}

.section {
  padding: var(--section-padding);
}

.section__header {
  text-align: center;
  margin-bottom: var(--mb-3);
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: var(--mb-1);
}

.section__subtitle {
  font-size: var(--normal-font-size);
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--mb-0-5);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  font-weight: var(--font-medium);
  font-size: var(--normal-font-size);
  transition: var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

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

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

.btn--secondary:hover {
  background: var(--primary-color);
  color: var(--white);
}

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

/* ===== HEADER & NAVIGATION ===== */
.header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-fixed);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: var(--transition-normal);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo h2 {
  font-size: var(--h3-font-size);
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  gap: var(--mb-2);
}

.nav__link {
  font-weight: var(--font-medium);
  color: var(--text-color);
  transition: var(--transition-fast);
  position: relative;
}

.nav__link:hover,
.nav__link.active-link {
  color: var(--secondary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background: var(--gradient-primary);
  transition: var(--transition-normal);
}

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

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
}

.nav__toggle,
.nav__close {
  display: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-color);
}

/* ===== HOME ===== */
.home {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.home__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-3);
  align-items: center;
}

.home__content {
  z-index: 2;
}

.home__title {
  font-size: var(--h1-font-size);
  margin-bottom: var(--mb-1);
  line-height: 1.1;
}

.home__description {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: var(--mb-2-5);
  line-height: 1.7;
}

.home__actions {
  display: flex;
  gap: var(--mb-1);
  margin-bottom: var(--mb-3);
  flex-wrap: wrap;
}

.home__stats {
  display: flex;
  gap: var(--mb-2);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  color: var(--secondary-color);
  font-family: var(--font-mono);
}

.stat__label {
  font-size: var(--small-font-size);
  color: var(--text-light);
  font-weight: var(--font-medium);
}

.home__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.home__blob {
  width: 400px;
  height: 400px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  background: var(--gradient-primary);
  padding: 1rem;
  box-shadow: var(--shadow-xl);
}

.home__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.floating-element {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--secondary-color);
  box-shadow: var(--shadow-lg);
  animation: float 3s ease-in-out infinite;
}

.floating-element--1 {
  top: 20%;
  right: 10%;
  animation-delay: 0s;
}

.floating-element--2 {
  bottom: 30%;
  left: 10%;
  animation-delay: 1s;
}

.floating-element--3 {
  top: 60%;
  right: 20%;
  animation-delay: 2s;
}

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

.digital-clock {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(0, 0, 0, 0.9);
  color: var(--accent-color);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
}

.clock-display {
  font-size: 1.5rem;
  font-weight: var(--font-bold);
  margin-bottom: var(--mb-0-25);
}

.time-part {
  color: var(--accent-color);
}

.milliseconds {
  color: var(--secondary-color);
}

.clock-label {
  font-size: var(--small-font-size);
  text-align: center;
  color: var(--white);
}

/* ===== SERVICES ===== */
.services {
  background-color: var(--neutral-color);
}

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

.service-card {
  background: var(--white);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.service-card__icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--mb-1-5);
  font-size: 2rem;
  color: var(--white);
}

.service-card__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.service-card__description {
  color: var(--text-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.6;
}

.service-card__features {
  list-style: none;
}

.service-card__features li {
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
  margin-bottom: var(--mb-0-5);
  font-size: var(--small-font-size);
}

.service-card__features i {
  color: var(--accent-color);
  font-size: 0.75rem;
}

/* ===== TECHNOLOGY ===== */
.technology__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-3);
  align-items: center;
}

.tech-feature {
  display: flex;
  gap: var(--mb-1);
  margin-bottom: var(--mb-2);
}

.tech-feature__icon {
  width: 60px;
  height: 60px;
  background: var(--gradient-accent);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  flex-shrink: 0;
}

.tech-feature__content h3 {
  font-size: var(--h4-font-size);
  margin-bottom: var(--mb-0-5);
}

.tech-feature__content p {
  color: var(--text-light);
  line-height: 1.6;
}

.technology__image {
  position: relative;
  display: flex;
  justify-content: center;
}

.tech-img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.tech-stats {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--white);
  padding: var(--mb-1-5);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: var(--mb-1-5);
}

.tech-stat {
  text-align: center;
}

.tech-stat__number {
  font-size: var(--h4-font-size);
  font-weight: var(--font-bold);
  color: var(--secondary-color);
  font-family: var(--font-mono);
}

.tech-stat__label {
  font-size: var(--smaller-font-size);
  color: var(--text-light);
}

/* ===== ABOUT ===== */
.about {
  background-color: var(--neutral-color);
}

.about__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-3);
  align-items: center;
}

.about__image {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__img {
  width: 100%;
  max-width: 400px;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__experience {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--mb-1-5);
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.experience__number {
  font-size: var(--h2-font-size);
  font-weight: var(--font-bold);
  font-family: var(--font-mono);
}

.experience__text {
  font-size: var(--small-font-size);
  line-height: 1.2;
}

.about__description {
  color: var(--text-light);
  margin-bottom: var(--mb-1-5);
  line-height: 1.7;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: var(--mb-1);
  margin-bottom: var(--mb-2);
}

.value {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
}

.value i {
  width: 40px;
  height: 40px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
}

.value h4 {
  font-size: var(--h4-font-size);
  margin-bottom: var(--mb-0-25);
}

.value p {
  color: var(--text-light);
  font-size: var(--small-font-size);
}

/* ===== CONTACT ===== */
.contact__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--mb-3);
}

.contact__info h3 {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
}

.contact__info > p {
  color: var(--text-light);
  margin-bottom: var(--mb-2);
  line-height: 1.6;
}

.contact__details {
  margin-bottom: var(--mb-2);
}

.contact__detail {
  display: flex;
  align-items: center;
  gap: var(--mb-1);
  margin-bottom: var(--mb-1-5);
}

.contact__detail i {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
}

.contact__detail h4 {
  font-size: var(--h4-font-size);
  margin-bottom: var(--mb-0-25);
}

.contact__detail p {
  color: var(--text-light);
}

.contact__social {
  display: flex;
  gap: var(--mb-1);
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  transition: var(--transition-normal);
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* ===== FORM ===== */
.contact__form {
  background: var(--white);
  padding: var(--mb-2-5);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-lg);
}

.form__group {
  position: relative;
  margin-bottom: var(--mb-2);
}

.form__input {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: var(--border-radius-md);
  font-size: var(--normal-font-size);
  font-family: var(--font-body);
  transition: var(--transition-normal);
  background: transparent;
}

.form__input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
  top: -10px;
  left: 15px;
  font-size: var(--small-font-size);
  color: var(--secondary-color);
  background: var(--white);
  padding: 0 5px;
}

.form__label {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: var(--normal-font-size);
  transition: var(--transition-normal);
  pointer-events: none;
}

.form__textarea {
  resize: vertical;
  min-height: 120px;
}

.form__textarea + .form__label {
  top: 1rem;
  transform: none;
}

.form__textarea:focus + .form__label,
.form__textarea:not(:placeholder-shown) + .form__label {
  top: -10px;
  transform: none;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary-color);
  color: var(--white);
  padding: var(--mb-3) 0 var(--mb-1-5);
}

.footer__container {
  display: grid;
  gap: var(--mb-2-5);
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--mb-2);
}

.footer__title {
  font-size: var(--h3-font-size);
  margin-bottom: var(--mb-1);
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__subtitle {
  font-size: var(--h4-font-size);
  margin-bottom: var(--mb-1);
}

.footer__description {
  color: #cbd5e0;
  line-height: 1.6;
  margin-bottom: var(--mb-1-5);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--mb-0-5);
}

.footer__links a {
  color: #cbd5e0;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--mb-0-5);
}

.footer__links a:hover {
  color: var(--white);
  transform: translateX(5px);
}

.footer__social {
  display: flex;
  gap: var(--mb-1);
  margin-top: var(--mb-1);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--mb-2);
  border-top: 1px solid #4a5568;
  color: #cbd5e0;
  flex-wrap: wrap;
  gap: var(--mb-1);
}

.footer__legal {
  display: flex;
  gap: var(--mb-1-5);
}

.footer__legal a {
  color: #cbd5e0;
  transition: var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--white);
}

/* ===== SCROLL UP ===== */
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -20%;
  background: var(--gradient-primary);
  opacity: 0.8;
  padding: 0.5rem;
  border-radius: 50%;
  z-index: var(--z-tooltip);
  transition: var(--transition-normal);
  color: var(--white);
  font-size: 1.25rem;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrollup:hover {
  background: var(--gradient-accent);
  opacity: 1;
}

.show-scroll {
  bottom: 3rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media screen and (max-width: 992px) {
  .container {
    margin-left: var(--mb-1-5);
    margin-right: var(--mb-1-5);
  }
  
  .home__container,
  .technology__container,
  .about__container,
  .contact__container {
    grid-template-columns: 1fr;
    gap: var(--mb-2);
  }
  
  .home__image {
    order: -1;
  }
  
  .home__blob {
    width: 300px;
    height: 300px;
  }
  
  .floating-element {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .tech-stats {
    position: static;
    margin-top: var(--mb-1);
    justify-content: center;
  }
  
  .about__experience {
    position: static;
    margin-bottom: var(--mb-1);
    display: inline-block;
  }
}

@media screen and (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    padding: var(--mb-2) 0;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-normal);
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
  }
  
  .nav__list {
    flex-direction: column;
    align-items: center;
    gap: var(--mb-1-5);
  }
  
  .nav__toggle,
  .nav__close {
    display: block;
  }
  
  .nav__close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
  }
  
  .show-menu {
    top: var(--header-height);
  }
  
  .home__actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .home__stats {
    justify-content: center;
  }
  
  .services__container {
    grid-template-columns: 1fr;
  }
  
  .digital-clock {
    position: static;
    margin-top: var(--mb-2);
    text-align: center;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media screen and (max-width: 576px) {
  .home__blob {
    width: 250px;
    height: 250px;
  }
  
  .floating-element {
    display: none;
  }
  
  .tech-stats {
    flex-direction: column;
    gap: var(--mb-1);
  }
  
  .about__values {
    gap: var(--mb-1-5);
  }
  
  .value {
    flex-direction: column;
    text-align: center;
  }
  
  .contact__container {
    gap: var(--mb-2);
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== SCROLL ANIMATIONS ===== */
.section {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.section.animate {
  opacity: 1;
}

/* ===== LOADING STATES ===== */
.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--secondary-color);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

