/* ===================== GLOBAL ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
  }  
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #333;
  scroll-behavior: smooth;
  transition: background .3s, color .3s;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
#preloader span {
  width: 50px;
  height: 50px;
  border: 5px solid #e67e22;
  border-top: 5px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #111;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  z-index: 1000;
  transition: .3s;
}
header.scrolled { background: #000; }

.logo { font-size: 1.4rem; font-weight: bold; }

nav ul {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  list-style: none;
}

nav a {
  color: white;
  text-decoration: none;
  transition: .3s;
}
nav a:hover { color: #e67e22; }

nav button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}
nav button:hover { transform: scale(1.2); }

/* Social buttons */
.social-fixed {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 1000;
}
.social-fixed img {
  width: 40px;
  height: 40px;
  display: block;
}

/* Sections */
section { padding: 6rem 5%; min-height: 100vh; opacity: 0; transform: translateY(40px); transition: 1s; }
section.show { opacity: 1; transform: translateY(0); }

/* Hero */
#home {
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.9)), url('images/hero.jpg') center/cover no-repeat;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
#home h1 { font-size: 3.5rem; }
#home p { font-size: 1.3rem; margin: 1rem 0; }
#home button {
  padding: .8rem 1.5rem;
  border: none;
  background: #e67e22;
  color: white;
  font-size: 1rem;
  border-radius: 30px;
  cursor: pointer;
}

/* Portfolio */
.portfolio-grid, .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.portfolio-btn, .gallery img {
  position: relative;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.portfolio-btn img, .gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  transition: transform .3s ease;
}
.portfolio-btn:hover img, .gallery img:hover { transform: scale(1.05); }
.portfolio-btn span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
  pointer-events: none;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 5px; }

/* Page Navigation */
.page-nav {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  margin: 3rem auto 4rem;
  padding: 0 5%;
}
.page-nav button {
  padding: .8rem 1.6rem;
  border: none;
  background: #e67e22;
  color: white;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: .3s;
}
.page-nav button:hover { transform: scale(1.05); }

/* ===== CONTACT PAGE PREMIUM STYLE ===== */
/* Center the left text vertically */
.contact-wrap {
    max-width: 1100px;
    margin: 6rem auto;
    padding: 0 6%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center; /* This centers left and right vertically */
}
/* Make submit button more visible */
.contact-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    background: #e67e22; /* Bright orange for visibility */
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: transform .3s, box-shadow .3s;
    box-shadow: 0 5px 15px rgba(230, 126, 34, 0.5); /* subtle shadow */
}
.contact-form button:hover {
    background: #cf6d15; /* slightly darker on hover */
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(230, 126, 34, 0.6);
}
/* Center the text inside the left column */
.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center; /* vertical centering */
    height: 100%; /* fill the column height */
    text-align: center;
}

/* Intro text */
.contact-intro {
    max-width: 600px;
    margin: 1.5rem auto 0;
    font-size: 1.05rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
}
body.dark .contact-intro { color: #aaa; }

/* Form */
.contact-form {
    background: var(--card);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px var(--shadow);
}

/* Input groups */
.form-group { position: relative; margin-bottom: 2rem; }

/* Inputs */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 0;
    border: none;
    border-bottom: 2px solid #ddd;
    background: transparent;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: .3s;
}
.form-group textarea { resize: none; height: 120px; }

/* Labels */
.form-group label {
    position: absolute;
    left: 0;
    top: 1.2rem;
    font-size: .9rem;
    color: #777;
    pointer-events: none;
    transition: .3s;
}

/* Floating labels on focus or filled */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: .75rem;
    color: var(--accent);
}

/* Focus border */
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

/* Submit button */
.contact-form button {
    width: 100%;
    padding: 1rem;
    border: none;
    background: var(--accent);
    color: white;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: .3s;
}
.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,.15);
}

/* Success message */
.form-success {
    display: none;
    margin-top: 1.5rem;
    color: green;
    font-weight: 500;
    text-align: center;
}

/* Mobile responsiveness */
@media(max-width:900px){
    .contact-wrap { grid-template-columns: 1fr; gap: 3rem; }
}

/* Footer */
footer { background: #000; color: white; text-align: center; padding: 1.5rem; }

/* Dark Mode */
body.dark { background: #121212; color: #f1f1f1; }
body.dark header { background: #1e1e1e; box-shadow: 0 2px 5px rgba(255,255,255,0.05); }
body.dark nav a { color: #f1f1f1; }
body.dark footer { background: #1e1e1e; }
body.dark #contact input, body.dark #contact textarea { background: #1e1e1e; color: white; border: 1px solid #333; }
body.dark #contact button { background: #f1f1f1; color: #111; }
#contact-content {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 100vh;
  }
  /* Hero slider */
  .hero-slider {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    overflow: hidden;
    margin: 0;
    padding: 0;
  }
  
  .hero-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.7s ease-in-out;
  }
  
  .hero-slider .slide {
    min-width: 100%;
    height: 100%;
  }
  
  .hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  
  /* Overlay text */
  .hero-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 10;
  }
  
  .hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-text p {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
  }
  /* Hero Button (View Work) */
.hero-text .hero-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #e67e22;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none; /* remove underline */
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
  }
  
  .hero-text .hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(230,126,34,0.6);
  }
  


  /* Arrows */
  .hero-slider button.prev-slide,
  .hero-slider button.next-slide {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    color: white;
    background: rgba(0,0,0,0.3);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 10;
  }
  
  .hero-slider button.prev-slide { left: 20px; }
  .hero-slider button.next-slide { right: 20px; }
  
  .hero-slider button.prev-slide:hover,
  .hero-slider button.next-slide:hover {
    background: rgba(0,0,0,0.6);
  }
  