@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/* Smooth scrolling for the whole website */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}


/* ================= LOADING SCREEN ================= */

#loader-overlay {
  position: fixed;
  inset: 0;
  background: #211811;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  padding: 20px;        /* safe zone on small screens */
  box-sizing: border-box;
}

#loader-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-spinner {
  --uib-size: 60px;
  --uib-color: rgb(194, 123, 0);
  --uib-speed: 1.5s;
  --dot-size: calc(var(--uib-size) * 0.17);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: var(--uib-size);
  width: var(--uib-size);
  animation: smoothRotate calc(var(--uib-speed) * 1.8) linear infinite;
  background: transparent !important;
}

.dot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  width: 100%;
  animation: rotate var(--uib-speed) ease-in-out infinite;
}

.dot::before {
  content: '';
  height: var(--dot-size);
  width: var(--dot-size);
  border-radius: 50%;
  background-color: var(--uib-color);
  transition: background-color 0.3s ease;
}

.dot:nth-child(2),
.dot:nth-child(2)::before {
  animation-delay: calc(var(--uib-speed) * -0.835 * 0.5);
}

.dot:nth-child(3),
.dot:nth-child(3)::before {
  animation-delay: calc(var(--uib-speed) * -0.668 * 0.5);
}

.dot:nth-child(4),
.dot:nth-child(4)::before {
  animation-delay: calc(var(--uib-speed) * -0.501 * 0.5);
}

.dot:nth-child(5),
.dot:nth-child(5)::before {
  animation-delay: calc(var(--uib-speed) * -0.334 * 0.5);
}

.dot:nth-child(6),
.dot:nth-child(6)::before {
  animation-delay: calc(var(--uib-speed) * -0.167 * 0.5);
}

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

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

/* ================= END OF LOADING SCREEN ================= */




:root {
  /* Python-inspired bronze and copper palette */
  --bronze: #211811;
  --bronze-light: #493124;
  --copper: #A9673F;
  --copper-light: #D4A477;
  --copper-muted: #BFA087;
  --copper-ivory: #F5EBDD;

  /* Retained for other website sections */
  --forest: #0B3026;
  --forest-light: #164535;
  --sage: #C7D9B4;
  --ivory: #F5F3E8;
  --muted: #B8CBAF;
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--copper-ivory);
}

/* =========================
   MAIN NAVIGATION
========================= */

.navbar {
  width: 100%;
  min-height: 104px;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;

  background: var(--bronze);
  border-bottom: 1px solid rgba(212, 164, 119, 0.3);

  position: relative;
  z-index: 10;
}

/* =========================
   BRAND AND LOGO
========================= */

.brand {
  display: flex;
  align-items: center;
  gap: 15px;

  color: var(--copper-ivory);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  width: 70px;
  height: 70px;


  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
  flex-shrink: 0;
  color: var(--copper-light);
}

.brand-logo img {
  width: 90%;
  height: 90%;

  object-fit: contain;
  display: block;
  border-radius: 50%;
}

.brand-logo svg {
  width: 39px;
  height: 39px;
}

.brand-name {
  font-size: 25px;
  font-weight: 600;
  letter-spacing: 4px;
}

.brand-tagline {
  margin-top: 7px;
  color: var(--copper-muted);
  font-size: 9px;
  letter-spacing: 2.5px;
  white-space: nowrap;
}

/* =========================
   DESKTOP NAVIGATION LINKS
========================= */

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav-links a {
  position: relative;
  padding: 12px 0;

  color: var(--copper-ivory);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;

  transition: color 0.25s ease;
}

/* Active and hover colours */
.nav-links a:hover,
.nav-links a.active {
  color: var(--copper-light);
}

/* Animated underline on desktop */
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 0;

  width: 0;
  height: 2px;
  background: var(--copper);

  transition: width 0.25s ease;
}

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

/* =========================
   SEARCH BUTTON
========================= */

.search-btn {
  display: flex;
  align-items: center;
  justify-content: center;

  background: transparent;
  border: none;
  color: var(--copper-ivory);

  cursor: pointer;
  padding: 8px;

  transition: color 0.25s ease;
}

.search-btn svg {
  width: 22px;
  height: 22px;
}

.search-btn:hover {
  color: var(--copper-light);
}

/* =========================
   MOBILE MENU BUTTON
========================= */

.menu-btn {
  display: none;

  background: transparent;
  color: var(--copper-ivory);

  border: 1px solid rgba(212, 164, 119, 0.4);
  border-radius: 8px;

  padding: 9px;
  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.menu-btn:hover {
  background: var(--bronze-light);
  border-color: var(--copper);
}

.menu-btn svg {
  width: 24px;
  height: 24px;
  display: block;
}

/* =========================
   TABLET LAYOUT
========================= */

@media (max-width: 1050px) {
  .navbar {
    padding: 18px 4%;
  }

  .brand-name {
    font-size: 21px;
    letter-spacing: 3px;
  }

  .nav-links {
    gap: 20px;
  }
}

/* =========================
   MOBILE LAYOUT
========================= */

@media (max-width: 760px) {
  .navbar {
    min-height: 86px;
    padding: 14px 5%;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .brand-logo svg {
    width: 31px;
    height: 31px;
  }

  .brand-name {
    font-size: 17px;
    letter-spacing: 2px;
  }

  .brand-tagline {
    font-size: 7px;
    letter-spacing: 1.2px;
  }

  /* Show hamburger button */
  .menu-btn {
    display: block;
  }

  /* Dropdown menu */
  .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    padding: 0 5%;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    background: var(--bronze);
    border-top: 1px solid rgba(212, 164, 119, 0.2);
    z-index: 1000;

    /* Hidden state */
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;

    /* Smooth dropdown animation */
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }

  /* Dropdown open state */
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;

    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Dropdown links without underlines */
  .nav-links a {
    display: block;
    padding: 14px 0;

    color: var(--copper-ivory);
    text-decoration: none;
    border-bottom: 1px solid rgba(212, 164, 119, 0.1);

    transition: color 0.2s ease;
  }

  /* Remove animated underlines on mobile */
  .nav-links a::after {
    display: none;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--copper-light);
  }

  /* Search alignment if included */
  .search-btn {
    justify-content: flex-start;
  }
}


/* =========================
   ACCESSIBILITY
========================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}






/* =========================
   HOME HERO SECTION
========================= */

.home-section {
    position: relative;
    min-height: calc(100vh - 104px);
    padding: 80px 8%;
  
    display: flex;
    align-items: center;
  
    overflow: hidden;
    isolation: isolate;
  
    /* Full background image with dark bronze overlay */
    background-image:
      linear-gradient(
        90deg,
        rgba(30, 20, 14, 0.88) 0%,
        rgba(30, 20, 14, 0.68) 40%,
        rgba(30, 20, 14, 0.25) 100%
      ),
      url("main-imgs/python.png");
  
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  
    color: var(--copper-ivory);
  }
  
  /* Text content over the image */
  .home-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
  }
  
  /* Small heading */
  .home-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
  
    color: var(--copper-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
  }
  
  .home-label::before {
    content: "";
    width: 32px;
    height: 1px;
    background: var(--copper);
  }
  
  /* Main heading */
  .home-content h1 {
    margin-bottom: 26px;
    color: var(--copper-ivory);
  
    font-size: clamp(42px, 5vw, 72px);
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -2.5px;
  }
  
  .home-content h1 span {
    color: var(--copper-light);
  }
  
  /* Description */
  .home-description {
    max-width: 470px;
    margin-bottom: 36px;
  
    color: #F0DFCF;
    font-size: 16px;
    line-height: 1.9;
  }
  
  /* Buttons container */
  .home-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  /* Shared button styles */
  .btn-primary,
  .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
  
    padding: 15px 22px;
    border-radius: 6px;
  
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
  
    transition:
      background 0.25s ease,
      color 0.25s ease,
      transform 0.25s ease,
      border-color 0.25s ease;
  }
  
  /* Primary copper button */
  .btn-primary {
    background: var(--copper-light);
    color: var(--bronze);
    border: 1px solid var(--copper-light);
  }
  
  .btn-primary:hover {
    background: var(--copper-ivory);
    border-color: var(--copper-ivory);
    transform: translateY(-2px);
  }
  
  /* Secondary transparent button */
  .btn-secondary {
    background: rgba(48, 32, 24, 0.2);
    color: var(--copper-ivory);
    border: 1px solid rgba(245, 235, 221, 0.55);
  }
  
  .btn-secondary:hover {
    border-color: var(--copper-light);
    color: var(--copper-light);
    transform: translateY(-2px);
  }
  
  /* =========================
     TABLET
  ========================= */
  
  @media (max-width: 1050px) {
    .home-section {
      padding: 65px 5%;
    }
  }
  
  /* =========================
     MOBILE
  ========================= */
  
  @media (max-width: 760px) {
    .home-section {
      min-height: calc(100vh - 86px);
      padding: 65px 6%;
  
      /* Adjust image position for narrower screens */
      background-position: 58% center;
  
      /* Stronger overlay for text readability */
      background-image:
        linear-gradient(
          90deg,
          rgba(30, 20, 14, 0.88) 0%,
          rgba(30, 20, 14, 0.70) 100%
        ),
        url("main-imgs/python.png");
    }
  
    .home-content {
      max-width: 100%;
    }
  
    .home-content h1 {
      font-size: clamp(42px, 10vw, 60px);
      letter-spacing: -1.5px;
    }
  
    .home-description {
      font-size: 14px;
      line-height: 1.8;
    }
  
    .home-buttons {
      gap: 12px;
    }
  }
  
  /* Accessibility: reduce button animation */
  @media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-secondary {
      transition: none;
    }
  }

  /* =========================
   END HOME HERO SECTION
========================= */
  


/* =========================
   PORTFOLIO / GALLERY SECTION
========================= */

.portfolio-section {
  padding: 90px 0 100px;
  color: var(--bronze, #302018);
  overflow: hidden;
}

/* MAIN HEADING */

.heading-portfolio {
  max-width: 760px;
  margin: 0 auto 55px;
  padding: 0 24px;
  text-align: center;
}

.portfolio-label {
  margin-bottom: 16px;
  color: var(--copper, #A9673F);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
}

.heading-portfolio h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.15;
}

.portfolio-description {
  max-width: 520px;
  margin: 0 auto;
  color: #79695D;
  font-size: 16px;
  line-height: 1.8;
}

/* GALLERY INTRODUCTION */

.profile-scroll-wrapper {
  width: 100%;
}

.gallery-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
  gap: 8px;
  margin: 0 auto 24px;
  padding: 0 6%;
  box-sizing: border-box;
}

.Gal {
  margin: 0;
  color: var(--bronze, #302018);
  font-size: 28px;
  font-weight: 600;
}

.gla-words {
  width: 100%;
  margin: 0 auto;
  color: #79695D;
  font-size: 14px;
  text-align: center;
}

/* HORIZONTAL SCROLL */

.profile-scroll {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 10px 6% 28px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-color: var(--copper, #A9673F) #E7D8C8;
  scrollbar-width: thin;
}

.profile-scroll::-webkit-scrollbar {
  height: 7px;
}

.profile-scroll::-webkit-scrollbar-track {
  background: #E7D8C8;
  border-radius: 10px;
}

.profile-scroll::-webkit-scrollbar-thumb {
  background: var(--copper, #A9673F);
  border-radius: 10px;
}

/* INDIVIDUAL IMAGE CARDS */

.gallery-card {
  position: relative;
  flex: 0 0 340px;
  height: 420px;
  overflow: hidden;
  border: 1px solid rgba(169, 103, 63, 0.2);
  border-radius: 14px;
  background: #302018;
  scroll-snap-align: start;
  box-shadow: 0 8px 24px rgba(48, 32, 24, 0.10);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(48, 32, 24, 0.18);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

/* IMAGE CAPTION OVERLAY */

.gallery-caption {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 30px 22px 20px;
  color: #F5EBDD;
  background: linear-gradient(
    to top,
    rgba(30, 20, 14, 0.92),
    rgba(30, 20, 14, 0)
  );
}

.gallery-caption span {
  color: #D4A477;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
}

.gallery-caption p {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

/* TABLET AND MOBILE */

@media (max-width: 768px) {
  .portfolio-section {
    padding: 65px 0 75px;
  }

  .heading-portfolio {
    margin-bottom: 40px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 0 6%;
  }

  .Gal {
    font-size: 24px;
  }

  .profile-scroll {
    gap: 16px;
    padding-right: 6%;
    padding-left: 6%;
  }

  .gallery-card {
    flex-basis: 78vw;
    max-width: 340px;
    height: 380px;
  }

  .gla-words {
    font-size: 13px;
  }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
  .gallery-card,
  .gallery-card img {
    transition: none;
  }

  .profile-scroll {
    scroll-behavior: auto;
  }
}





/* ===== CONTACT SECTION ===== */
.contact-section {
  padding: 90px 8%;
  background: #211811;
  color: #f5e6d3;
}

.contact-section .portfolio-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Contact card layout */
.contact-boxes {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Individual contact card */
.contact-box {
  display: flex;
  align-items: center;
  gap: 22px;

  width: 100%;
  max-width: 480px;
  padding: 28px;

  background: #2d2118;
  border: 1px solid rgba(197, 139, 85, 0.35);
  border-radius: 14px;

  color: #f5e6d3;
  text-decoration: none;

  transition:
      transform 0.3s ease,
      border-color 0.3s ease,
      background-color 0.3s ease,
      box-shadow 0.3s ease;
}

/* Email icon container */
.contact-icon {
  width: 58px;
  height: 58px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(197, 139, 85, 0.12);
  border: 1px solid rgba(197, 139, 85, 0.3);
  border-radius: 12px;
  color: #C58B55;
}

.contact-icon svg {
  width: 28px;
  height: 28px;
}

/* Contact text */
.contact-info h3 {
  margin: 0 0 8px;
  color: #C58B55;
  font-size: 1.25rem;
}

.contact-info p {
  margin: 0 0 12px;
  color: #f5e6d3;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.contact-action {
  color: #C58B55;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

/* Hover and keyboard focus */
.contact-box:hover,
.contact-box:focus-visible {
  transform: translateY(-5px);
  background: #36271c;
  border-color: #C58B55;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  outline: none;
}

.contact-box:hover .contact-action,
.contact-box:focus-visible .contact-action {
  color: #f5e6d3;
}

/* Mobile layout */
@media (max-width: 600px) {
  .contact-section {
      padding: 65px 6%;
  }

  .contact-box {
      gap: 16px;
      padding: 22px 18px;
  }

  .contact-icon {
      width: 48px;
      height: 48px;
  }

  .contact-icon svg {
      width: 24px;
      height: 24px;
  }

  .contact-info h3 {
      font-size: 1.1rem;
  }

  .contact-info p {
      font-size: 0.9rem;
  }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .contact-box,
  .contact-action {
      transition: none;
  }

  .contact-box:hover,
  .contact-box:focus-visible {
      transform: none;
  }
}











/* ================= FOOTER ================= */
.footer-section {
  width: 100%;
  background: #211811;
  color: #F5EBDD;
  padding: 80px 20px 40px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 50px;
}

.footer-links h3,
.footer-contact h3,
.footer-social h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #F5EBDD;
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 2px solid #A9673F;
}

.footer-links a {
  display: block;
  color: #F5EBDD;
  text-decoration: none;
  margin-bottom: 12px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: #D4A477;
  transform: translateX(4px);
}

.footer-contact p {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.footer-contact a {
  color: #F5EBDD;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover { color: #D4A477;
  ; }

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #F5EBDD;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.social-link:hover { transform: translateX(4px); }
.social-link:hover span {   color: #D4A477;}
.social-link:hover img { filter: brightness(1.2); }

.social-icon-img {
  width: 32px;
  height: 32px;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  padding-top: 10px;
  border-top: 1px solid rgba(245, 235, 221, 0.35);
  font-size: 0.95rem;
  color: #F5EBDD;
}

.footer-bottom p,
.rights {
  margin: 2px 0;
  line-height: 1.9;
  color: #F5EBDD;
}

.morks-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1px;
  margin-top: 0;
}

.footer-Morks {
  font-size: 1rem;
  color: #F5EBDD;
}

.Morkslogo {
  width: 40px;
  height: auto;
  margin-bottom: 3px;
}

.morks-name {
  font-weight: bolder;
  color: #B59410;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
  }

  .social-link { justify-content: center; }
}
/* ================= END OF FOOTER ================= */



