
*,
*::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;
  white-space: nowrap;
}

.hero-subtitle {
  margin-bottom: 196px; 
}

.hero-tagline {
  margin-bottom: 196px; 
}

.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);
}

.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;
}

/* RESPONSIVE BREAKPOINTS ------------------------------------------ */
@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .hero-photo-wrapper {
    justify-content: flex-start;
  }

  .hero-photo {
    max-width: 360px;
  }

  .hero-text > * {
  margin-bottom: 24px;  
  line-height: 4;     
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-side {
    grid-template-columns: 1fr;
  }

  .about-side .info-card:nth-child(3) {
    grid-column: auto;
  }

  .video-card {
    margin-top: 18px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 8px;
  }

  .main-nav ul {
    gap: 16px;
  }

  .hero {
    padding-top: 24px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-photo {
    max-width: 280px;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .about-side {
    grid-template-columns: 1fr;
  }

  .about-side .info-card:nth-child(3) {
    grid-column: auto;
  }

  .video-card {
    margin-top: 16px;
  }
  
}

#about.section {
  padding-bottom: 16px;      
}


.about-side {
  margin-bottom: 8px;       
}

#projects.section {
  padding-top: 24px;         
}


#projects.section h2 {
  margin-top: -80px;   
  text-align: center;  
}


.main-nav a.active {
  color: #4fb3ff;
}

.main-nav a.active::after {
  width: 100%;
}


.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.section-subtitle.portfolios-note {
  font-size: 18px;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

