@charset "utf-8";
/* Import fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Inter:wght@400;500;600;700&display=swap');
/* CSS Document */

/* -----------------------------------------------
   Global Colors (Light & Dark Themes)
------------------------------------------------- */
/* Light Theme */
:root {
  --bg: #F7F9FA;                   /* Fog Gray background */
  --card-bg: #FFFFFF;
  --card-soft: #EFF3F5;            /* Slightly tinted panels */
  --text: #49545A;                 /* Slate Text */
  --heading: #1E4E5F;              /* Harbor Blue */
  --primary: #1E4E5F;              /* Harbor Blue */
  --secondary: #6FAFBF;            /* Sea Glass */
  --accent: #DA6F47;               /* Buoy Orange */
  --border: #D5DADD;               /* Soft border gray */

  --overlay: rgba(0, 0, 0, 0.45);  /* Hero/tech overlay on light */
  --badge-bg: #FFFFFF;
  --badge-text: #333333;

  --input-bg: #FFFFFF;
  --input-border: #D5DADD;
  --input-placeholder: #7A858B;

  --footer-bg: #E2E7EB;

  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-strong: 0 4px 16px rgba(30, 78, 95, 0.25);
}

/* Dark Theme */
:root.dark {
  --bg: #0F2C35;                   /* Night Harbor Blue */
  --card-bg: #1B3A42;              /* Deep Slate cards */
  --card-soft: #122830;            /* Slightly darker panels */
  --text: #F2F7F8;                 /* Fog White */
  --heading: #7DBCC7;              /* Sea Glass Dual */
  --primary: #7DBCC7;              /* Sea Glass Dual */
  --secondary: #275F73;            /* Mid Harbor Blue */
  --accent: #C9643F;               /* Deepened Buoy Orange */
  --border: #3E5257;               /* Dark divider gray */

  --overlay: rgba(0, 0, 0, 0.6);   /* Stronger overlay on dark */
  --badge-bg: #F2F7F8;
  --badge-text: #1B3A42;

  --input-bg: #122830;
  --input-border: #3E5257;
  --input-placeholder: #AAB7BD;

  --footer-bg: #081920;

  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.4);
  --shadow-strong: 0 4px 16px rgba(125, 188, 199, 0.3);
}


body {
  font-family: 'Inter', sans-serif;
}

h1, h2, h3, .hero-text h1 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
}

button, .cta-button {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
/* -----------------------------------------------
   Global Styles
------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Consistent vertical spacing for sections */
.grid-container:not(.header) {
  padding-top: 80px;
  padding-bottom: 80px;
}

/* Headings inside sections */
section h2 {
  margin-bottom: 48px; /* instead of 16vh which can be huge */
  text-align: center;
  color: var(--heading);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  line-height: 1.6;
  color: var(--text);
  overflow-x: hidden;
  background-color: var(--bg);
}

a {
  text-decoration: none;
  color: var(--primary);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  display: block;
}

section {
  margin-right: auto;
  margin-left: auto;
}

footer {
  background-color: var(--footer-bg);
  color: var(--text);
}

/* -----------------------------------------------
   12-column Grid System
------------------------------------------------- */
.grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr); /* 12 equal columns */
  gap: 24px;                               /* space between columns */
  max-width: 1920px;                       /* max width of container */
  margin: auto;                            /* center container */
  padding: 64px 24px;
}

/* Column spans */
.col-1  { grid-column: span 1; }
.col-2  { grid-column: span 2; }
.col-3  { grid-column: span 3; }
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-9  { grid-column: span 9; }
.col-10 { grid-column: span 10; }
.col-11 { grid-column: span 11; }
.col-12 { grid-column: span 12; }

/* -----------------------------------------------
   Header & Navigation
------------------------------------------------- */
.header {
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;              /* override grid for header */
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

/* Logo block */
.logo {
  flex: 0 0 auto;
}

.logo img {
  display: block;
  max-width: 140px;   /* keeps logo from going huge */
  height: auto;
}

/* Nav wrapper */
.nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Hamburger button – hidden on desktop by default */
.nav-toggle {
  border: none;
  background: none;
  padding: 0.25rem;
  display: none;               /* will show on mobile */
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  margin-left: auto;
}

/* Hamburger lines */
.nav-toggle .bar {
  width: 1.5rem;
  height: 0.16rem;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Desktop nav links */
#nav-links {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-right: 16px;
  border-radius: 24px;
  box-shadow: 0px 0px 4px var(--secondary);
  padding: 8px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.nav a {
  display: block;
  font-weight: 700;
  color: var(--secondary);
}

/* -----------------------------------------------
   Hero Section
------------------------------------------------- */
.hero {
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  background-attachment: fixed;
  min-height: 256px;
  height: 50vh;
  padding-bottom: 80px;
}

.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--text);
  text-align: center;
  z-index: 2;
  margin-left: 0;
  position: relative;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 0;
  color: var(--secondary);
}

period {
  color: var(--accent);
}

.hero-text p {
  margin-top: 0;
  font-size: 1.5rem;
}

.hero-text::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(
    circle,
    rgba(125, 188, 199, 0.2) 0%,   /* Sea-glass-like glow */
    rgba(0, 0, 0, 0) 70%
  );
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: -1;
  filter: blur(40px);
}

.hero-accent {
  width: 64px;
  height: 4px;
  background: var(--secondary);
  border-radius: 4px;
  margin: 12px auto 24px auto;
}

.cta-button {
  display: inline-flex;
  padding: 8px 32px;
  border-radius: 2rem;
  background-color: var(--accent);
  color: #ffffff;
  box-sizing: border-box;
  width: fit-content;
  text-transform: uppercase;
  margin-left: auto;
  margin-right: auto;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.cta-button:hover {
  background-color: var(--secondary);
}

/* Hero image */
.hero-image img {
  box-sizing: border-box;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
}

/* -----------------------------------------------
   Services
------------------------------------------------- */
.services {
  background-image: linear-gradient(var(--bg), var(--card-soft));
  align-content: center;
}

.services h2 {
  color: var(--heading);
  display: block;
}

.service {
  text-align: center;
  color: var(--text);
}

.service img {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* -----------------------------------------------
   About Section
------------------------------------------------- */
.about {
  background-image: linear-gradient(var(--bg), var(--card-soft));
  align-content: center;
  padding-bottom: 128px;
}

.about h2 {
  color: var(--heading);
  display: block;
}

.about-card {
  background-image: linear-gradient(var(--card-bg), var(--card-soft));
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  min-height: 100%;
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.card-holder {
  padding: 24px;
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
}

.icon-circle {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  background-color: var(--primary);
  transform: translate(-50%, -50%);
  align-content: center;
  padding: 8px;
  box-sizing: border-box;
}

.icon-circle img {
  height: 100%;
  margin: auto;
}

/* -----------------------------------------------
   Works / Case Studies
------------------------------------------------- */
.works {
  background-color: var(--card-soft);
}

.works h2 {
  color: var(--heading);
}

.work-card {
  border-radius: 16px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  background-color: var(--card-bg);
  color: var(--text);
}

.work-card img {
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
}

.work-card p {
  padding: 16px;
  text-align: justify;
}

/* -----------------------------------------------
   Tech-Stack / Toolbox
------------------------------------------------- */
.tech-stack {
  background-image: url("images/WebDesignHeroImage.png");
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  align-content: center;
  text-align: center;
  position: relative;
  padding-bottom: 16vw;
  z-index: 1;
}

.tech-stack::after {
  content: "";
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay);
  position: absolute;
  z-index: 2;
}

.tech-stack > * {
  position: relative;
  z-index: 3;
}

.tech-stack h2 {
  color: #f4f4f4;
}

.badge {
  display: inline-block;
  min-width: 6rem;
  text-align: center;
  background: var(--badge-bg);
  color: var(--badge-text);
  padding: 8px 16px;
  margin: 0.2rem;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
  box-shadow: var(--shadow-soft);
}

.badge:hover {
  background: var(--secondary);
  color: #ffffff;
}

/* -----------------------------------------------
   Process Steps
------------------------------------------------- */
.process-step {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  color: var(--text);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

/* -----------------------------------------------
   Portfolio (generic items)
------------------------------------------------- */
.portfolio-item img {
  border-radius: 10px;
  box-shadow: var(--shadow-soft);
}

/* -----------------------------------------------
   Contact & Footer Content
------------------------------------------------- */
.contact {
  background-color: var(--card-soft);
  color: var(--text);
}

.social {
  display: flex;
  margin-top: 48px;
  justify-content: center;
}

.social-circle {
  background-color: var(--primary);
  border-radius: 100%;
  align-content: center;
  max-height: 15%;
  max-width: 15%;
  padding: 4% 4%;
  margin: auto 2%;
  box-sizing: border-box;
}

.contact p {
  margin-right: 4vh;
  align-content: center;
}

.contact h3 {
  text-align: center;
  color: var(--heading);
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0 4%;
  background-color: transparent;
}

.contact input,
.contact textarea {
  padding: 16px;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text);
}

.contact textarea {
  height: 16vh;
  margin-bottom: 1vh;
}

.contact input::placeholder {
  font-family: Arial, sans-serif;
  font-size: 19px;
  color: var(--input-placeholder);
}

.contact textarea::placeholder {
  font-family: Arial, sans-serif;
  font-size: 19px;
  color: var(--input-placeholder);
}

.contact-button {
  padding: 16px;
  background-color: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition-duration: 0.3s;
}

.contact-button:hover {
  background-color: var(--secondary);
}

.quick-links {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  margin-top: 0;
}

.quick-links a {
  color: var(--text);
}

.info {
  align-content: center;
  justify-content: center;
  color: var(--text);
}

.info img {
  max-width: 80%;
  margin: auto;
}

.info p {
  text-align: center;
}

/* -----------------------------------------------
   Responsive
------------------------------------------------- */
@media (max-width: 768px) {
  /* Layout */
  .grid-container {
    display: block;
    width: 100%;
    padding: 0; /* remove side padding that caused the "not to edge" look */
  }

  .grid-container:not(.header) {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .grid-container:not(.header) > * {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .grid-container.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 16px;
    position: relative;
    width: 100%;
    background-color: var(--bg);
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav {
    justify-content: flex-end;
    gap: 10px;
  }

  #nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;

    background: var(--bg);
    box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.6);
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--border);
    border-top: none;

    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.25s ease, opacity 0.2s ease;
  }

  #nav-links a {
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
    background: var(--bg);
  }

  #nav-links.is-open {
    max-height: 18rem;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-toggle.is-open .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.is-open .bar:nth-child(1) {
    transform: translateY(0.34rem) rotate(45deg);
  }

  .nav-toggle.is-open .bar:nth-child(3) {
    transform: translateY(-0.34rem) rotate(-45deg);
  }

  /* Hero */
  .hero {
    height: auto;
    min-height: 60vh;
    padding-bottom: 48px;
    background-attachment: scroll;
  }

  .hero-text h1 {
    font-size: 2.4rem;
    line-height: 1.15;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .cta-button {
    font-size: 0.9rem;
    padding: 8px 24px;
  }

  /* Section headings & type */
  section h2 {
    margin-bottom: 24px;
    font-size: 1.8rem;
  }

  .about-card p,
  .work-card p {
    font-size: 0.95rem;
  }

  .card-holder,
  .service,
  .work-card {
    margin-bottom: 24px;
  }

  .tech-badges {
    text-align: center;
  }

  .badge {
    margin: 0.25rem 0.35rem;
  }

  /* Footer / contact tweaks */
  .quick-links {
    box-sizing: border-box;
    display: inline-block;
    padding: 8vh 0;
  }

  .quick-links a {
    padding: 4vh 4vh;
  }

  .info {
    margin: auto;
    text-align: center;
  }

  .info p {
    margin-bottom: 8vh;
  }

  .info div {
    margin-bottom: 8vh;
  }

  .info img {
    margin-bottom: 8vh;
  }

  .icon-circle {
    transform: translateX(0%);
  }
}

/* WIDE MOBILE LANDSCAPE (phones sideways) */
@media only screen
  and (max-width: 900px)
  and (max-height: 500px)
  and (orientation: landscape) {

  .grid-container:not(.header) {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .hero {
    height: auto;
    min-height: 60vh;
    padding-top: 32px;
    padding-bottom: 32px;
    background-attachment: scroll;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero-text p {
    font-size: 1rem;
    margin-top: 8px;
  }

  .cta-button {
    padding: 6px 20px;
    font-size: 0.85rem;
    margin-top: 12px;
  }

  section h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
  }

  .card-holder,
  .service,
  .work-card {
    margin-bottom: 16px;
  }

  .about-card p,
  .work-card p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .quick-links {
    padding: 4vh 0;
  }

  .info img {
    max-width: 60%;
  }
}
