
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

h2[id], h3[id] {
  scroll-margin-top: 90px;  
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
  background: linear-gradient(135deg, #0A0D20 0%, #121736 35%, #2A2580 70%, #4A2A95 100%);

  color: #ffffff;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 52px 0;
}

h2[id],
h3[id] {
  scroll-margin-top: 90px;  
}
 
.section h2 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 14px;
}

.section p {
  font-size: 15px;
  line-height: 1.7;
  color: #d7d7eb;
}

.section-subtitle {
  margin: 0 0 24px;
  font-size: 24px;
  color: #d7d7eb;
}

/* HEADER / NAV ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 8, 20, 0.9);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  width: 42px;
  height: 42px;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: #e6ebff;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #4fb3ff;
  transition: width 0.2s ease-out;
}

.main-nav a:hover::after {
  width: 100%;
}

.hero {
  padding: 70px 0 0;
  margin-bottom: 8px;  
}

.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 48px; 
}

.hero-text h1,
.hero-text .hero-subtitle,
.hero-text .hero-tagline,
.hero-text p {
  font-size: 18px;
  font-family: 'Inter', 'Poppins', system-ui, sans-serif;
}

.hero-text > * {
  margin-bottom: 14px;  
  line-height: 1.9;     
}

.hero-text h1 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 42px;
  margin: 0 0 8px;
}

.hero-text p:last-of-type {
  margin-bottom: 0; 
}

.hero-subtitle {
  font-size: 54px;
  font-weight: 600;
  margin: 0 0 56px;   
  color: #cdd5ff;
}

.hero-subtitle { font-size: 20px !important; }

.hero-tagline {
  font-size: 46px;
  max-width: 620px;
  color: #e2e6ff;
  margin: 0 0 56px;   
}

.hero-text p:last-of-type {
  font-size: 21px;   
}

.hero-photo-wrapper {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-photo {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  transform-origin: center;
}

.hero-photo-wrapper:hover .hero-photo {
  transform: scale(1.06);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

/* ABOUT ----------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: flex-start;
}

.stacked-section h3 {
  font-size: 19px;
  margin: 20px 0 8px;
}

.stacked-section p {
  margin: 0;
}

#about.section {
  padding-top: 8px;
  padding-bottom: 48px; 
}

.about-side {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 96px;     
  margin-bottom: 40px;
}

.info-card {
  background: rgba(6, 11, 40, 0.92);
  border-radius: 12px;
  padding: 18px 22px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(120, 160, 255, 0.35);
}

.info-card h3 {
  font-size: 18px;
  margin: 0 0 8px;
  text-align: center;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #d7d7eb;
}

.about-side .info-card:nth-child(3) {
  grid-column: 1 / -1;
}

.video-card {
  margin-top: 96px;
}

.video-placeholder {
  position: relative;
  border-radius: 10px;
  border: 2px solid rgba(115, 168, 255, 0.7);
  background: radial-gradient(circle at top left, rgba(127, 176, 255, 0.18), rgba(3, 5, 20, 0.9));
  height: 210px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.video-placeholder-text {
  font-size: 18px;
  font-weight: 700;
  color: #dfe4ff;
}

.play-button {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff335c;
  box-shadow: 0 0 24px rgba(255, 51, 92, 0.6);
  font-size: 26px;
}

/* PORTFOLIO ------------------------------------------------------- */
.portfolio-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  background: rgba(5, 10, 35, 0.96);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border 0.18s ease-out;
  border: 1px solid rgba(120, 160, 255, 0.35);
}

/* Center the Projects heading (desktop + mobile) */
#projects.section h2,
#projects h2,
#projects .container > h2,
#projects .container h2 {
  text-align: center !important;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}


.portfolio-card img {
  border-radius: 10px;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.75);
  border-color: #4fb3ff;
}

.portfolios-note {
  text-align: center;
  margin-top: 32px;
  font-size: 18px;
}

/* SERVICES -------------------------------------------------------- */
.two-col {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 40px;
  align-items: flex-start;
}

.services-list {
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.7;
  color: #d7d7eb;
  margin-bottom: 68px;
}

/* CONTACT --------------------------------------------------------- */
.contact-container h2 {
  text-align: center;
}

.contact-grid {
  margin-top: 24px;
  display: grid;
  grid-auto-flow: column;              
  grid-auto-columns: max-content;      
  justify-content: center;             
  gap: 24px;                           
}


.contact-card {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  border: none;
  transition: transform 0.2s ease-out, filter 0.2s ease-out;
}

.contact-card img {
  max-width: 130px;
  border-radius: 18px;
  box-shadow: 0 0 20px rgba(90, 120, 255, 0.65);
}

.contact-card:hover {
  transform: translateY(-6px) scale(1.03);
  filter: brightness(1.05);
}

/* FOOTER ---------------------------------------------------------- */
.site-footer {
  padding: 26px 0 40px;
  font-size: 18px;
  color: #c7c7d8;
  text-align: center;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(200, 210, 255, 0.35);
  margin-bottom: 14px;
}
/* =========================================================
   MOBILE VIEW (CLEAN SINGLE-COLUMN STACK)
   Phones + small tablets
   Paste this at the VERY BOTTOM of style.css
========================================================= */

@media (max-width: 768px) {

  /* Prevent zoom / horizontal scroll */
  html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }

  .container {
    padding: 0 16px;
  }

  /* ---------------- SECTIONS SPACING (reduce big gaps) ---------------- */
  .section {
    padding: 18px 0; /* tighter than desktop */
  }

  .section h2 {
    margin: 0 0 10px; /* reduce heading bottom space */
  }

  /* Override desktop about padding-bottom so it doesn't create a big gap */
  #about.section {
    padding-bottom: 24px;
  }

  /* Keep projects from drifting too far down */
  #projects.section {
    padding-top: 16px;
  }

  /* ---------------- HEADER ---------------- */
  .header-inner {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-area {
    justify-content: center;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
  }

  /* ---------------- HERO ---------------- */
  .hero {
    padding-top: 24px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-text {
    text-align: center;
  }

  .hero-text h1 {
    font-size: 28px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }

  .hero-photo-wrapper {
    justify-content: center;
  }

  .hero-photo {
    max-width: 260px;
  }

  /* ---------------- ABOUT ---------------- */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-side {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 0;
  }

  .info-card {
    padding: 14px;
  }

  /* ---------------- VIDEO ---------------- */
  .video-card {
    margin-top: 8px; /* reduce extra space */
  }

  .video-placeholder {
    height: 190px;
  }

  /* ---------------- SERVICES ---------------- */
  .two-col {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Desktop had 68px margin-bottom; this is the main white-space source */
  .services-list {
    margin-bottom: 12px;
  }

  /* ---------------- PORTFOLIO ---------------- */
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }

  .portfolios-note {
    margin-top: 12px;
    font-size: 14px;
  }

  /* ---------------- CONTACT ---------------- */
  .contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
  }

  .contact-card img {
    max-width: 110px;
  }

  /* ---------------- FOOTER ---------------- */
  .site-footer {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Force footer text layout exactly as requested */
  .site-footer p {
    display: block;
    margin: 6px 0;
  }

  .site-footer .copyright-line {
    white-space: nowrap;
  }

  /* “All rights reserved” on its own line under the copyright */
  .site-footer .rights-line {
    display: block;
  }
}
