@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap');

:root {
  --first-hue: 260;
  --second-hue: 216;

  --first-color: hsl(var(--first-hue), 91%, 64%);
  --first-color-dark: hsl(var(--first-hue), 62%, 20%);
  --title-color: hsl(var(--second-hue), 8%, 90%);
  --text-color: hsl(var(--second-hue), 8%, 80%);
  --body-color: hsl(var(--second-hue), 28%, 12%);
  --container-color: hsl(var(--second-hue), 28%, 15%);
  --white-color: #fff;

  --first-gradient: linear-gradient(150deg, var(--first-color) 0%, var(--white-color) 100%);
  --second-gradient: linear-gradient(260deg, var(--first-color-dark) 0%, var(--white-color) 100%);
}

/* Light Mode Theme */
html[data-theme="light"] {
  --first-color: hsl(var(--first-hue), 91%, 50%);
  --first-color-dark: hsl(var(--first-hue), 62%, 30%);
  --title-color: hsl(var(--second-hue), 12%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 20%, 95%);
  --container-color: hsl(var(--second-hue), 20%, 88%);
  --white-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body,
button,
input,
textarea {
  font-family: "Space Grotesk", sans-serif;
  font-size: medium;
}

body {
  background: var(--body-color);
  color: var(--text-color);
  line-height: 1.75;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3 {
  color: var(--title-color);
  font-weight: bold;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

/* Utilities */
.button,
.input,
.text-area {
  border: none;
  outline: none;
  background: none;
}

.img {
  display: block;
  max-width: 100%;
}

.section {
  padding-block: 6rem 4rem;
}

/* Buttons */
.button {
  margin-top: 3rem;
  display: inline-flex;
  background: var(--second-gradient);
  color: var(--white-color);
  padding: 1.25rem 2rem;
  border-radius: .5rem;
  font-weight: bold;
  transition: background 0.3s;
}

.button:hover {
  background: linear-gradient(280deg, var(--first-color) 0%, var(--first-color-dark) 100%);
}

.button:focus {
  outline: 2px solid var(--first-color);
  outline-offset: 3px;
}

/* Containers */
.container {
  max-width: 1320px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.grid {
  display: grid;
}

/* Header */
.header {
  background: transparent;
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav,
.nav-list,
.nav-btns {
  display: flex;
}

.nav {
  align-items: center;
  justify-content: space-between;
  column-gap: 3rem;
  height: 4.5em;
}

.nav-logo,
.nav-link,
.change-theme {
  color: var(--title-color);
}

.nav-logo {
  font-size: 1rem;
  font-weight: bold;
}

.nav-menu {
  margin-left: auto;
}

.nav-list {
  column-gap: 2.75rem;
}

.nav-link {
  font-weight: 300;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--first-color);
}

.change-theme {
  border: none;
  outline: none;
  background: transparent;
  /* remove white background */
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  /* optional: makes it round */
  display: flex;
  align-items: center;
  justify-content: center;
}

.change-theme:focus {
  outline: 2px solid var(--first-color);
  /* optional custom focus */
  outline-offset: 3px;
}


.nav-btns {
  align-items: center;
  column-gap: 1rem;
}

.nav-close,
.nav-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--title-color);
}

/* Home Section */
.home-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  column-gap: 3rem;
  padding-top: 6rem;
}

.home-data {
  max-width: 600px;
}

.home-title {
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

.home-job {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: normal;
}

.home-description {
  font-size: 1.125rem;
  margin-block: 1.5rem 2rem;
}

.home-image-wrapper {
  max-width: 400px;
  background: var(--second-gradient);
  border-radius: 51% 49% 77% 23% / 65% 50% 50% 35%;
  overflow: hidden;
  margin-left: auto;
  display: flex;
  justify-content: center;
  align-items: center;
  aspect-ratio: 1/1;
}

.home-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.home-social {
  row-gap: 1rem;
}

.home-social-link {
  color: var(--title-color);
  font-size: large;
  transition: color 0.3s;
  margin-left: 1.5rem;
}

.home-social-link:hover,
.home-social-link:focus {
  color: var(--first-color);
}

.about-container {
  grid-template-columns: 3fr 6fr 2fr;
  align-items: center;
  column-gap: 4rem;
  row-gap: 2rem;
}

.data-grid {
  grid-column: auto;
  column-gap: normal;
}

.about-experience {
  width: 280px;
  height: 420px;
  background: var(--second-gradient);
  border-radius: 1rem;
  display: grid;
  place-content: center;
  margin-top: 3rem;
}

.about-experience .button {
  margin-top: 3rem;
  /* ensures extra spacing above My Work */
}

.about-no,
.about-title {
  color: var(--white-color);
}

.about-no {
  font-size: 7.5rem;
  font-weight: bold;
  line-height: 1;
  margin-bottom: .25rem;
}

.about-title {
  font-size: large;
  text-align: center;
}

.about-description {
  font-size: 50px;
  margin-bottom: 2rem;
}

.text-gradient {
  -webkit-text-fill-color: hsla(var(--second-hue), 8%, 85%, 0.2%);
  background: var(--first-gradient);
  background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
}

.about-data {
  column-gap: 3rem;
  position: relative;
}

.about-data .button {
  margin-top: 5rem;
  /* increases gap before "My Work" button */
}

.about-item {
  font-size: large;
  margin-bottom: 0.125rem;
}

.about-details {
  margin-top: 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 3rem;
  text-align: center;
}

.services-container {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.services-card {
  background: var(--container-color);
  padding: 2rem;
  border-radius: 1rem;
  transition: background 0.3s;
  display: flex;
  flex-direction: column;
}

.services-card:hover {
  background: var(--second-gradient);
}

.services-no {
  color: var(--title-color);
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.services-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--title-color);
}

.services-card .services-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-color);
}

/* Skills section styles */
.skills-section {
  padding-block: 4rem 3rem;
}

.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.skills-category {
  text-align: center;
  color: var(--title-color);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.skills-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  justify-items: center;
}

.skill-item {
  background: var(--container-color);
  border-radius: .75rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
}

.skill-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--second-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.skill-icon img {
  width: 40px;
  height: 40px;
  display: block
}

.skill-name {
  color: var(--title-color);
  font-weight: 600;
  display: block
}

.skill-level {
  color: var(--text-color);
  font-size: .85rem;
  display: block;
  margin-top: .25rem
}

/* Remove duplicate/unused helper styles (kept compact above) */
.skills-level {
  font-size: small;
}

/* Contact Section */
.contact-section {
  padding-block: 4rem 3rem;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--title-color);
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--second-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-details {
  display: flex;
  flex-direction: column;
}

.contact-label {
  color: var(--title-color);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.contact-value {
  color: var(--text-color);
  font-size: 0.9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  color: var(--title-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--text-color);
  color: var(--title-color);
  padding: 0.75rem 0;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.form-input:focus {
  outline: none;
  border-bottom-color: var(--first-color);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* =========================================
   PAYMENT & QUOTE SYSTEM STYLES
   ========================================= */

/* Container for PayPal Smart Buttons */
#paypal-button-container {
  margin: 20px 0;
  min-height: 150px;
  /* Prevents sidebar jumping while PayPal loads */
  transition: all 0.3s ease;
}

/* Quote Notice - Appears when custom items are present */
.quote-notice {
  background-color: #fffaf0;
  /* Elegant cream-gold tint */
  border-left: 4px solid var(--accent-gold);
  padding: 15px;
  margin: 15px 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.5;
  display: none;
  /* Controlled by JavaScript */
  animation: fadeIn 0.4s ease-in-out;
}

.quote-notice i {
  color: var(--accent-gold);
  margin-right: 8px;
}

/* Styling for the Primary Action Button */
.checkout-btn {
  width: 100%;
  margin-top: 10px;
  font-weight: 600;
  letter-spacing: 1px;
}

/* Sidebar Polish */
.cart-summary {
  padding-top: 25px;
  border-top: 1px solid #eee;
  margin-top: auto;
  /* Pushes summary to bottom of sidebar */
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary-dark);
}

#paypal-button-container {
  margin-top: 20px;
  width: 100%;
}

.quote-notice {
  background: #fff3cd;
  color: #856404;
  padding: 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 10px;
  border-left: 4px solid #ffc107;
}

/* Smooth Scroll for the Nav Link */
html {
  scroll-behavior: smooth;
}

.products-section {
  padding: 80px 10%;
  background-color: #f9f9f9;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* The Gallery Grid */
.product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

/* Individual Product Cards */
.product-card {
  background: #7355c4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(32, 26, 78, 0.1);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-info {
  padding: 20px;
  text-align: center;
}

/* Animation for smooth appearance */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media screen and (max-width: 768px) {
  .home-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-image-wrapper {
    margin: 2rem auto 0;
  }

  .about-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-title,
  .services-description {
    margin-left: 0;
    text-align: center;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  /* Mobile nav */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100%;
    background: var(--container-color);
    flex-direction: column;
    padding: 2rem;
    transition: right 0.3s;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-list {
    flex-direction: column;
    row-gap: 1.5rem;
  }

  .nav-toggle,
  .nav-close {
    display: block;
  }

  .nav-close {
    align-self: flex-end;
  }

  /* Skills responsive adjustments */
  .skills-container {
    grid-template-columns: 1fr;
  }

  .skills-list {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 1rem;
    justify-items: center;
  }

  /* Contact responsive adjustments */
  .contact-container {
    grid-template-columns: 1fr;
  }
}

/* Footer */
.footer {
  background: var(--container-color);
  padding: 2rem;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
}

.footer-text {
  color: var(--text-color);
  font-size: 0.9rem;
  text-align: left;
}

.footer-socials {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--second-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white-color);
  font-size: 1.1rem;
  transition: transform 0.3s, background 0.3s;
  text-decoration: none;
}

.footer-social-link:hover {
  transform: translateY(-3px);
  background: linear-gradient(280deg, var(--first-color) 0%, var(--first-color-dark) 100%);
}

.footer-credit {
  text-align: right;
}

.footer-credit-text {
  color: var(--text-color);
  font-size: 0.9rem;
}

.footer-credit-link {
  color: var(--first-color);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-credit-link:hover {
  color: var(--white-color);
}

.quote-container {
  padding: 80px 10%;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

#quote-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
  border: 1px solid #ddd;
  font-weight: bold;
  color: #333;
}

.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #0056b3;
}

.quote-container {
  padding: 80px 10%;
  background-color: #ffffff;
  border-top: 1px solid #eee;
}

#quote-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
  border: 1px solid #ddd;
  font-weight: bold;
  color: #333;
}

.submit-btn {
  background-color: #007bff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.submit-btn:hover {
  background-color: #0056b3;
}

/* Media Query for mobile form */
@media screen and (max-width: 600px) {
  .quote-container {
    padding: 40px 20px;
  }
}

/* Media Query for mobile form */
@media screen and (max-width: 600px) {
  .quote-container {
    padding: 40px 20px;
  }
}

@media screen and (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-text {
    text-align: center;
    order: 1;
  }

  .footer-socials {
    order: 2;
  }

  .footer-credit {
    text-align: center;
    order: 3;
  }
}

@media screen and (max-width: 992px) {
  .products-section {
    padding: 60px 5%;
  }

  .product-gallery {
    gap: 20px;
  }
}

/* For Mobile Phones (Screens smaller than 600px) */
@media screen and (max-width: 600px) {
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

  .product-gallery {
    /* Forces 1 column on very small screens if minmax isn't enough */
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .product-card img {
    height: 180px;
    /* Slightly shorter images for mobile to save scroll space */
  }

  /* Disable hover lift on touch devices to prevent "sticky" hover states */
  .product-card:hover {
    transform: none;
  }
}