@charset "UTF-8";
/* =========================
   VARIABLES
========================= */
:root {
  --color-primary: #1f2933;
  --color-accent: #2563eb;
  --color-background: #f9fafb;
  --color-text: #374151;
  --color-text-light: #6b7280;
  --color-heading: #111827;
  --color-card-bg: #ffffff;
  --color-border: #e5e7eb;
  --color-footer-bg: #1f2933;
  --color-footer-text: #b0b0b0;
}

/* Dark mode variables */
body.dark-mode {
  --color-primary: #e5e7eb;
  --color-accent: #60a5fa;
  --color-background: #111827;
  --color-text: #d1d5db;
  --color-text-light: #9ca3af;
  --color-heading: #f9fafb;
  --color-card-bg: #1f2937;
  --color-border: #374151;
  --color-footer-bg: #0f172a;
  --color-footer-text: #9ca3af;
}

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

body {
  font-family: "Inter", sans-serif;
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Headings - FIXED: Now change with dark mode */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  transition: color 0.3s ease;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

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

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

p {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

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

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

/* =========================
   UTILITY CLASSES
========================= */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* =========================
   HEADER / NAV WITH HAMBURGER
========================= */
.site-header {
  background: var(--color-card-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .nav {
  max-width: 1100px;
  margin: auto;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}
.site-header .logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  box-shadow: 0 0 14px rgba(37, 99, 235, 0.45);
}
.site-header {
  /* Hamburger Button */
}
.site-header .hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10;
}
.site-header .hamburger-line {
  width: 30px;
  height: 3px;
  background: var(--color-primary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 3px;
}
.site-header .hamburger.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.site-header .hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.site-header .hamburger.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}
.site-header .nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .nav-links a {
  font-weight: 600;
  color: var(--color-primary);
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header .nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-accent);
  transition: width 0.3s ease;
}
.site-header .nav-links a:hover {
  color: var(--color-accent);
}
.site-header .nav-links a:hover::after {
  width: 100%;
}

/* Mobile menu styles */
@media (max-width: 767px) {
  .site-header .hamburger {
    display: flex;
  }
  .site-header .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-card-bg);
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  }
  .site-header .nav-links.active {
    max-height: 300px;
    padding: 1rem 0;
  }
  .site-header .nav-links li {
    width: 100%;
    text-align: center;
  }
  .site-header .nav-links a {
    display: block;
    padding: 1rem;
  }
  .site-header .nav-links a::after {
    display: none;
  }
}
/* =========================
   HERO SECTION - FIXED for dark mode
========================= */
.hero {
  min-height: 90vh;
  background: url("image/lucas-k-wQLAGv4_OYs-unsplash.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
}
.hero .hero-overlay {
  width: 100%;
  background: rgba(15, 23, 42, 0.85);
  padding: 3rem 1.25rem;
  transition: background 0.3s ease;
}
.hero .hero-content {
  max-width: 1100px;
  margin: auto;
  color: #fff;
}
.hero .hero-content h1 {
  color: #ffffff !important; /* Keep white in hero */
}
.hero .hero-content p {
  color: #e5e7eb !important; /* Keep light gray in hero */
}

body.dark-mode .hero .hero-overlay {
  background: rgba(0, 0, 0, 0.9); /* Darker overlay in dark mode */
}

/* =========================
   BUTTONS
========================= */
.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--color-accent) 80%, black);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn-secondary:hover {
  background: var(--color-accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.2);
}

/* =========================
   SECTION TITLES
========================= */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  position: relative;
  color: var(--color-heading);
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--color-accent);
}

/* =========================
   SERVICES SECTION - FIXED for dark mode
========================= */
.services {
  padding: 4rem 1.25rem;
  background: var(--color-background);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.services .services-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.services .services-grid .service-card {
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-card-bg);
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
}
.services .services-grid .service-card h3 {
  color: var(--color-heading);
  margin-bottom: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.services .services-grid .service-card p {
  color: var(--color-text);
  margin-bottom: 0;
}
.services .services-grid .service-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-accent);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}
.services .services-grid .service-card:hover h3 {
  color: var(--color-accent);
}

/* =========================
   PORTFOLIO SECTION - FIXED for dark mode
========================= */
.portfolio {
  padding: 4rem 1.25rem;
  background: var(--color-background);
}
.portfolio .portfolio-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
.portfolio .portfolio-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.portfolio .portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}
.portfolio .portfolio-card:hover .portfolio-img {
  transform: scale(1.05);
}
.portfolio .portfolio-img {
  width: 100%;
  height: 220px;
  -o-object-fit: cover;
     object-fit: cover;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio .portfolio-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.portfolio .project-category {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}
.portfolio h3 {
  color: var(--color-heading);
  margin-bottom: 0.5rem;
}
.portfolio .project-location {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.portfolio .project-location::before {
  content: "📍";
  font-size: 0.9rem;
}
.portfolio .project-description {
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.6;
  flex-grow: 1;
}
.portfolio .project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.portfolio .tech-tag {
  background: var(--color-border);
  color: var(--color-text);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio .portfolio-link {
  color: var(--color-accent);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-self: flex-start;
  position: relative;
}
.portfolio .portfolio-link::after {
  content: "→";
  margin-left: 0.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.portfolio .portfolio-link:hover {
  transform: translateX(5px);
}
.portfolio .portfolio-link:hover::after {
  transform: translateX(3px);
}

/* =========================
   CONTACT SECTION - FIXED for dark mode
========================= */
.contact {
  padding: 4rem 1.25rem;
  text-align: center;
  background: var(--color-background);
}
.contact p {
  color: var(--color-text);
  max-width: 600px;
  margin: 0 auto 2rem;
}
.contact .contact-form {
  max-width: 500px;
  margin: 2rem auto 0;
  text-align: left;
}
.contact .form-group {
  margin-bottom: 1.5rem;
}
.contact .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-heading);
}
.contact .form-group input,
.contact .form-group textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--color-border);
  border-radius: 6px;
  font-family: inherit;
  background: var(--color-card-bg);
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.contact .form-group input:focus,
.contact .form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}
.contact .form-group input.error,
.contact .form-group textarea.error {
  border-color: #dc3545;
}
.contact .form-group input::-moz-placeholder, .contact .form-group textarea::-moz-placeholder {
  color: var(--color-text-light);
}
.contact .form-group input::placeholder,
.contact .form-group textarea::placeholder {
  color: var(--color-text-light);
}
.contact .error-message {
  display: block;
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
}
.contact .success-message {
  max-width: 500px;
  margin: 2rem auto 0;
  padding: 1rem;
  background: #d4edda;
  color: #155724;
  border-radius: 6px;
  border: 1px solid #c3e6cb;
}
.contact .direct-contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.contact .direct-contact p {
  color: var(--color-text);
}
.contact .direct-contact a {
  color: var(--color-accent);
  font-weight: 600;
}
.contact .direct-contact a:hover {
  text-decoration: underline;
}

/* =========================
   SCROLL TO TOP BUTTON
========================= */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
}
.scroll-to-top.visible {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}
.scroll-to-top:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

/* =========================
   DARK MODE TOGGLE BUTTON
========================= */
.dark-mode-toggle {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dark-mode-toggle:hover {
  background: var(--color-accent);
  transform: scale(1.1);
}

/* =========================
   FOOTER - FIXED for dark mode
========================= */
.site-footer {
  padding: 2rem;
  text-align: center;
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
}
.site-footer p {
  color: var(--color-footer-text);
  font-size: 0.9rem;
  margin: 0;
}

/* =========================
   RESPONSIVE BREAKPOINTS
========================= */
/* Tablet ≥768px */
@media (min-width: 768px) {
  .services .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Desktop ≥1024px */
@media (min-width: 1024px) {
  .services .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .portfolio .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Small Phones ≤430px */
@media (max-width: 430px) {
  .hero .hero-content h1 {
    font-size: 1.85rem;
  }
  .hero .hero-content p {
    font-size: 0.9rem;
  }
  .scroll-to-top,
  .dark-mode-toggle {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    bottom: 1rem;
  }
  .dark-mode-toggle {
    left: 1rem;
  }
  .scroll-to-top {
    right: 1rem;
  }
}/*# sourceMappingURL=style.css.map */