:root{
  --deep-navy: #141d26;
  --navy: #09263D;
  --magenta: #c41f5c;
  --canvas-white: #f5f5f5;
  --white: #ffffff;
  --text: #141d26;
  --max-width: 1100px;
  --radius: 10px;
  --gap: 24px;
}

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

html,body{
  height:100%
}



body{
  font-family: "Nunito", sans-serif;
  color:var(--text);
  background:var(--canvas-white);
  line-height:1.5;
}

section {
  scroll-margin-top: 100px; /* height of navbar */
}
/* Container */
.container{
  width:92%;
  max-width:var(--max-width);
  margin:0 auto;
}

/* Header / Nav */
.site-header{
  background: var(--navy);
  padding:1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
}

.nav-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
}

/* Logo */
.logo img{
  height: 50px; 
  display:block;
  margin:0 -2rem;
}

/* Nav */
.nav-list{
  list-style:none; 
  display:flex; 
  gap:2rem; 
  align-items:center;
}

.nav-list a{
  text-decoration:none; 
  color:var(--canvas-white); 
  font-weight:600; 
  font-family:"Montserrat",sans-serif;
}
.nav-list li a {
  position: relative;
  padding-bottom: 4px;
}

.nav-list li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--magenta);
  transition: width 0.25s ease;
}

.nav-list li a:hover::after {
  width: 100%;
}

.nav .dropdown{
  list-style-type: none;
  display:none; 
  position:absolute; 
  background:var(--deep-navy); 
  padding:1rem; 
  margin-top:6px; 
  box-shadow:0 6px 18px rgba(20,29,38,0.08); 
  border-radius:8px;
}

.has-drop:hover .dropdown{
  display:block;
}

/* Hamburger */
.hamburger{
  display:none; 
  width:42px; 
  height:36px; 
  border:0; 
  background:none; 
  cursor:pointer;
}

.hamburger span{
  display:block;
  height:3px;
  background:var(--white);
  margin:6px 0;
  border-radius:3px;
}

/* HERO */
.hero{
  background:#09263D;
  color:var(--white);
  padding:8rem 0;
  border-bottom:0.6em solid rgba(0,0,0,0.03);
}

.hero-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.hero-left{
  max-width:58%
}

.hero-right{
 margin-bottom: 10%;
}

.hero-title{
  font-family:"Montserrat",sans-serif;
  font-weight:800;
  font-size:4rem;
  line-height:1.20;
  margin-bottom:5%;
}
.hero-sub{
  font-size:1.5rem;
  opacity:0.95;
  margin-bottom:15%; 
  font-family:"Nunito",sans-serif
}

.hero-ctas .btn{
  margin-right:10px;
}


 
/* Buttons */
.btn{
  display:inline-block;
  padding:1rem 1.2rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-family:"Montserrat",sans-serif;
  
}

.btn.primary{
  background:var(--magenta); 
  color:var(--white);
  margin-right: 15%;
}

.btn.primary:hover{
  opacity: 0.8;
  transform: scale(1.02);
}

.btn.outline{
  background:transparent;
  color:var(--white);
  border:2px solid rgba(255,255,255,0.12)

}

.btn.outline:hover{
  opacity: 0.8;
  transform: scale(1.02);
}


/* Work sections */
.work-preview{
  padding:4rem 0;
}
.section-title{
  font-family:"Montserrat",sans-serif;
  font-size:2rem;
  color:var(--deep-navy);
  margin-bottom:1.5rem;
}

/* Card grid */
.card-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:5rem;
  margin-bottom:2.5rem;
}

.card{
  background:var(--white);
  border-radius:12px; 
  padding:14px;
  box-shadow:0 6px 16px rgba(20,29,38,0.06);
  text-align:center;
}

.card img{
  width:100%;
  height:200px;
  object-fit:cover;
  border-radius:8px;
  margin-bottom:0.8rem;
}

.card h3{
  font-size:1.2rem;
  margin-bottom:6px;
  color:var(--deep-navy);
}

.card p{
  color:var(--deep-navy);
  opacity:0.8;
  font-size:14px;
  margin-bottom:1.8rem;
}

.btn-small{
  padding:0.5rem 1.2rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:200;
  font-family:"Montserrat",sans-serif;
  background:var(--magenta); 
  color:var(--white);
  align-self: center;
  margin-bottom:1rem;
}

.btn-small:hover{
  opacity: 0.8;
  transform: scale(1.02);
}

/* List-grid for web dev items */
.list-grid{
  display:flex;
  flex-direction:column;
  gap:1.8rem;
  margin-bottom:2.5rem;
}
.list-item{
  display:flex;
  gap:2rem;
  align-items:center;
  background:var(--white);
  padding:1em;
  border-radius:10px;
  box-shadow:0 6px 16px rgba(20,29,38,0.06)
}

.list-item img{
  width:140px;
  height:100px;
  object-fit:cover;
  border-radius:8px;
}
.list-item h3{
  color:var(--deep-navy);
  font-size: 1.2rem;
  margin-top: -0.5rem;
  margin-bottom: 6px;
}
.list-item p{
 color:var(--deep-navy);
  opacity:0.8; 
  margin-bottom: 1rem;
}


/* About */
.about{
  padding:5rem 0;
  background-color: var(--navy);
  color: var(--canvas-white);
}

.about-inner{
  display:flex;
  gap:20px;
}

.about-text h2{
  font-family:"Montserrat",sans-serif;
  font-size:4rem;
  margin-bottom:1rem;
}

.about-text p{
  font-size:1.5rem;
  
}

.about-photo img{
  width:500px;
  border-radius:8px;
  object-fit:cover;
  margin-right: -5rem;
  margin-bottom: -5.4rem;
}

/* Contact */
.contact{
  padding:10rem 0;
  background:transparent;
}

.contact h2{
  font-size: 2.8rem;
  font-family:"Montserrat",sans-serif;
  margin-top: -8rem;
}

.contact-icons {
  display: flex;
  justify-content: center;
   flex-wrap: wrap;
  gap: 10rem;
  margin-top: 10rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--deep-navy); /* or your text color */
  font-size: 14px;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.contact-icons img {
  width: 100px;
  height: 100px;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
  margin-bottom: 1rem;
}

.contact-icons img:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

/* Footer */
.footer {
  background: var(--deep-navy);
  padding: 2rem 0;
  margin-top: 60px;
  color: var(--white);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.footer-socials a img {
  width: 30px;
  height: 30px;
  margin-left: 1.5rem;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-socials a img:hover {
  opacity: 0.8;
  transform: scale(1.1);
}

@media (max-width: 768px) {
    .hamburger {
    display: block;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--navy);
    display: none;
  }

  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .nav.open {
    display: block;
  }

 .dropdown {
    position: static;
    display: none;
    margin-top: 0.5rem;
   right: 5rem;
   top:4rem;
  }

  .has-drop.open .dropdown {
    display: block;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 0.9rem;
  }

  .hero-right img{
 width:200px ;
}

.hero-ctas .btn{
  margin-bottom: 1rem;
}

  .contact-icons img {
    width: 50px;
    height: 50px;
  }

  .contact-icons {
    gap: 2.5rem;
  }

  .footer p {
    font-size: 0.75rem;
  }
  .hero-header h1 {
    font-size: 1.6rem;
  }

  .hero-text h3 {
    font-size: 1.4rem;
  }
  
  .ui-sidebar {
    max-height: 60vh;
  }

  .ui-sidebar .ui-img {
    max-width: 200px;
  }

  .before-after img {
    max-width: 200px; 
  }

  .arrow {
    font-size: 2rem;
    transform: rotate(90deg);
  }
  .swatches {
    gap: 1rem;
  }
  .swatches span {
    width: 24px;
    height: 24px;
  }

}

@media (max-width: 1024px) {

  /* Fix header container */
  .container {
    width: 92%;
    margin: 0 auto;
  }

  /* Logo resize */
  .logo img {
    height: 40px;
    margin: 0;
  }

  /* HERO */
  .hero {
    padding: 6rem 0 4rem;
    text-align: center;
  }


  .hero-left {
    max-width: 50%;
  }

  .hero-title {
    font-size: 2.4rem;
  }

  .hero-sub {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-right {
    margin-bottom: 20rem;
   height: 2px;
}

  /* WORK CARDS */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .card img {
    height: 180px;
  }

  /* LIST ITEMS (Web Dev) */
  .list-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .list-item img {
    width: 100%;
    height: 160px;
  }

  /* ABOUT */
  .about-inner {
    flex-direction: column;
    text-align: center;
  }

  .about-text h2 {
    font-size: 2.4rem;
  }

  .about-text p {
    font-size: 1rem;
  }

  .about-photo img {
    width: 50%;
    margin: 0;
  }

  /* CONTACT */
  .contact {
    padding: 5rem 0;
  }

  .contact h2 {
    font-size: 2rem;
    margin-top: 0;
    text-align: center;
  }

  .contact-icons {
    gap: 3rem;
    margin-top: 4rem;
  }

  .contact-icons img {
    width: 60px;
    height: 60px;
  }

  .contact-item span {
    font-size: 0.85rem;
    text-align: center;
  }

  /* FOOTER */
  .footer {
    text-align: center;
  }

  .footer-inner {
    flex-direction: column;
    justify-content: center;
  }

  .footer-socials {
    margin: 0;
  }

  .footer-socials a img {
    margin-left: 1rem;
  }
  .hero-header h1 {
    font-size: 2.1rem;
  }

  .two-column-hero {
    gap: 24px;
  }

  .hero-media {
    flex: 0 0 240px;
  }

  .hero-text {
    flex: 1 1 420px;
  }

  .media-grid {
    gap: 3rem;
    flex-wrap: wrap;
  }

  .media-grid img {
    max-width: 200px;
  }

  /* Sidebar */
  .project-hero.two-column {
    grid-template-columns: 1fr 260px;
  }

  .ui-sidebar {
    max-height: 65vh;
  }

  .ui-sidebar .ui-img {
    max-width: 240px;
  }

  .media-grid2{
  flex-wrap: wrap;
  gap:3rem;
}

.media-grid2 img{
  max-width:400px;
}
  .before-after {
    flex-direction: column; /* stack vertically */
    gap: 1.5rem;
  }

  .arrow {
    transform: rotate(90deg); 
    font-size: 2.5rem;
  }
  .btn.link{
  display: block;
  margin-bottom: 1rem;
  max-width: 11rem;
  }
  .media-coffee{
    margin-top: 2rem;
  flex-direction: column;
}
.btn.primary.design{
  margin-top: 3rem;
}
}







/* Project page styles */
.project-page{
  background: var(--deep-navy);
  color: var(--canvas-white);
}
.project-hero{
  margin-top: 8rem;
}

.hero-header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  font-family:"Montserrat",sans-serif;
}

.hero-header p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
}

.two-column-hero {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.hero-media{
    flex: 0 0 300px; 
}
.hero-media img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 3rem;
}
.project-hero h3{
  font-size: 2rem;
  margin-bottom: 1rem;
  margin-top: 3rem;
  font-family:"Montserrat",sans-serif;
}

#key-points{
  margin-top: 2rem;
}
.hero-text{
  flex: 1 1 500px;
  margin-top: -2rem;
}

.media-grid{
  display:flex;
  gap:5rem;
}

.media-grid img{
  width:80%;
  max-width:220px;
  border-radius:8px
}
.logo-text{
  margin-bottom: 2rem;
}
.logo-img img{
  width:40%;
  background-color: var(--canvas-white);
}
/* UI kit swatches */
.project-hero.two-column {
  display: grid;
  grid-template-columns: 1fr 300px; /* main content | sidebar width */
  gap: 32px;
  align-items: flex-start;
}

.swatches{
  display:flex;
  gap:2rem;
  margin-top:8px;
 justify-content: center;
}
.swatches span {
  display:inline-block;
  width:30px;
  height:30px;
  border-radius:6px;
  border: 1px solid #ddd; /* subtle outline */
}
.ui-sidebar {
  width: 50vh;
  max-height: 72vh; 
  overflow-y: auto;
  float:right;
}

.ui-sidebar .ui-img {
  width: 100%;
  max-width: 300px; 
  height: auto;
  border-radius: 8px;
  margin: 0.8rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}
.ui-kit h4{
  font-size: 1.5rem;
  font-weight: bolder;
  color: var(--deep-navy);
  font-family:"Montserrat",sans-serif;
}
.ui-kit{
  margin-bottom: 1rem;
}
.ui-section h5 {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--deep-navy);
  opacity: 0.9;
}
.prototype{
  margin-bottom: 1rem;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4rem;
}

/* Shared styles */
.project-nav a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover */
.project-nav a:hover {
  color: var(--magenta);
}

/* Optional: align text */
.project-nav .prev {
  text-align: left;
}
.project-nav .next {
  text-align: right;
}

.project-nav.design a {
  color: var(--deep-navy);
}
/*My Runway section*/
.myhero-text{
  margin-top:-3rem;
  flex: 1 1 300px;
}

.before-after {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.before-after figure {
  text-align: center;
}

.before-after img {
  max-width: 260px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.arrow {
  font-size: 3rem;
  color: var(--magenta);
  font-weight: 700;
}

.ui-sidebar2 {
  width: 50vh;
  max-height: 80vh; 
  overflow-y: auto;
  float:right;
  margin-top: 5rem;
  margin-bottom: 2rem;
}
.ui-sidebar2 .ui-img {
  width: 100%;
  max-width: 300px; 
  height: auto;
  border-radius: 8px;
  margin: 0.8rem 0;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.hero-side{
  margin-top:-3rem;
  flex: 1 1 300px;
}

.media-grid2{
  display:flex;
  gap:5rem;
}

.media-grid2 img{
  width:500px;
  border-radius:8px
}

.project-hero h4{
   font-family:"Montserrat",sans-serif;
   font-size: 1.3rem;
   margin-top:1.2rem;
   margin-bottom: 1rem;
}

.btn.link{
  background:var(--magenta); 
  color:var(--white);
  margin-right: 10%;
}

.btn.link:hover{
  opacity: 0.8;
  transform: scale(1.02);
}


.media-coffee{
  display:flex;
  gap:5rem;
}

.media-coffee img{
  max-width:350px;
  border-radius:8px
}
.project-page.design{
  background-color: var(--canvas-white);
  color: var(--deep-navy);

}

.project-hero h5{
  font-family:"Montserrat",sans-serif;
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}