/*==================================================
   EDUWEB TECHNOLOGIES - PORTFOLIO STYLESHEET
   
   TABLE OF CONTENTS:
   1. Variables & Global Resets
   2. Typography & Base Layout
   3. Shared Header & Navbar
   4. Preloader Section
   5. Hero Section & Layered Portrait
   6. Introduction Text Section
   7. Infinite Marquee Section
   8. Selected Works List & Image Hover Reveal
   9. Interactive Services Section
   10. Footer & Big Typography
   11. Unified Responsive Media Queries
==================================================*/

/* --------------------------------------------------
   1. VARIABLES & GLOBAL RESETS
-------------------------------------------------- */
:root {
  --bg-color: #EBEBEB;
  --text-color: #111111;
  --border-color: rgba(17, 17, 17, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.portfolio-page {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  cursor: default;
}

/* --------------------------------------------------
   2. TYPOGRAPHY & BASE LAYOUT
-------------------------------------------------- */
h1, h2 {
  font-family: 'Syne', sans-serif;
  text-transform: uppercase;
  line-height: 0.9;
}

/* --------------------------------------------------
   3. SHARED HEADER & NAVBAR
-------------------------------------------------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 40px;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-color);
  position: relative;
  z-index: 10;
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 1px;
}

.nav-socials {
  display: flex;
  gap: 15px;
  font-size: 0.85rem;
  font-weight: 600;
}

.nav-socials a {
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-socials a:hover {
  background-color: var(--text-color);
  color: var(--bg-color);
}

.download-btn {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 10px 20px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.download-btn:hover {
  opacity: 0.85;
}

/* --------------------------------------------------
   4. PRELOADER SECTION
-------------------------------------------------- */
.intro-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #111111;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

.intro-loader::after {
  content: "EduWeb Technologies";
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 4px;
  color: #fff;
  opacity: 0.6;
  text-transform: uppercase;
}

/* --------------------------------------------------
   5. HERO SECTION & LAYERED PORTRAIT
-------------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 750px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  background-color: var(--bg-color);
  padding-top: 80px;
}

.hero-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1600px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Big Title Text (Behind Portrait Layer) */
.hero-text-wrapper {
  position: absolute;
  z-index: 1;
  width: 100%;
  text-align: center;
  top: 18%;
  transform: translateY(-50%);
  pointer-events: none;
}

.hero-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 7vw, 7.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-color);
  white-space: nowrap;
  margin: 0;
}

/* Foreground Portrait Layer */
.hero-portrait {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 80vh;
  max-height: 850px;
  display: flex;
  align-items: flex-end;
  pointer-events: none;
}

.hero-portrait img {
  height: 100%;
  width: auto;
  max-width: 95vw;
  object-fit: contain;
  object-position: bottom center;
}

/* Hero Info Overlay Cards */
.hero-box {
  position: absolute;
  bottom: 40px;
  z-index: 3;
  background-color: rgba(235, 235, 235, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 22px 25px;
  width: 300px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.hero-bottom-left {
  left: 40px;
  text-align: left;
  max-height: 380px;
  overflow-y: hidden;
}

.hero-bottom-right {
  right: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 280px;
}

.intro-headline {
  font-family: 'Syne', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero-services-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-services-list li {
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 0;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-services-list li span {
  color: #ff4500;
  font-weight: bold;
}

.stat-item p {
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  font-weight: 600;
}

.stat-number {
  font-family: 'Syne', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 2px;
}

.highlight-stat {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 20px;
  border-radius: 12px;
}

.highlight-stat p {
  color: #aaa;
}

/* --------------------------------------------------
   6. INTRODUCTION TEXT SECTION
-------------------------------------------------- */
.intro-section {
  padding: 150px 40px;
  background-color: var(--bg-color);
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.intro-container {
  position: relative;
  max-width: 1200px;
  width: 90%;
}

.intro-text {
  position: relative;
  z-index: 1;
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
  max-width: 1000px;
}

.intro-text span {
  opacity: 0.2;
  transition: opacity 0.1s ease;
}

.intro-profile {
  position: absolute;
  z-index: 2;
  bottom: -40px;
  right: 1%;
  width: 280px;
  height: 500px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(60px);
}

.intro-profile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --------------------------------------------------
   7. INFINITE MARQUEE SECTION
-------------------------------------------------- */
.marquee-section {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 40px 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}

.marquee-inner {
  display: flex;
  width: fit-content;
  animation: marquee 15s linear infinite;
}

.marquee-part {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-right: 40px;
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
}

.marquee-img {
  width: 140px;
  height: 65px;
  border-radius: 50px;
  object-fit: cover;
}

.marquee-section:hover .marquee-inner {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --------------------------------------------------
   8. WORKS SECTION & HOVER PREVIEW
-------------------------------------------------- */
.works-section {
  padding: 120px 40px;
}

.works-header h2 {
  font-size: clamp(3rem, 10vw, 8rem);
  margin-bottom: 60px;
  text-align: center;
}

.works-list {
  border-top: 2px solid var(--text-color);
}

.work-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: padding 0.4s ease;
}

.work-item:hover {
  padding: 40px 20px;
}

.work-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 4vw, 3rem);
  font-weight: 700;
  flex: 2;
}

.work-category, 
.work-year {
  flex: 1;
  font-size: 1rem;
  text-transform: uppercase;
}

.work-year {
  text-align: right;
}

.hover-reveal-img {
  position: fixed;
  top: 0;
  left: 0;
  width: 340px;
  height: 210px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  transform: translate(-50%, -50%) scale(0.8);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  background-color: #1a1a1a;
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
}

/* --------------------------------------------------
   9. INTERACTIVE SERVICES SECTION
-------------------------------------------------- */
.services-section {
  padding: 100px 40px 140px;
  background-color: var(--bg-color);
}

.services-header {
  text-align: center;
  margin-bottom: 60px;
}

.services-header h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
}

.services-grid-interactive {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card-item {
  position: relative;
  background-color: var(--text-color);
  color: var(--bg-color);
  border-radius: 32px;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 280px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.service-card-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.service-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.service-num {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0.5;
}

.service-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(235, 235, 235, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.service-card-item:hover .service-arrow {
  background-color: var(--bg-color);
  color: var(--text-color);
  transform: rotate(45deg);
}

.service-card-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1;
}

.service-card-body p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(235, 235, 235, 0.7);
  max-width: 420px;
}

.service-card-item::after {
  content: "";
  position: absolute;
  bottom: -50%;
  right: -20%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(91, 92, 255, 0.35), transparent 70%);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.service-card-item:hover::after {
  opacity: 1;
}

/* --------------------------------------------------
   10. FOOTER SECTION
-------------------------------------------------- */
.footer-section {
  background-color: var(--text-color);
  color: var(--bg-color);
  padding: 100px 40px 50px;
  position: relative;
  overflow: hidden;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 70vh;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  opacity: 0.7;
}

.footer-email-link {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--bg-color);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.3s ease;
}

.footer-email-link:hover {
  opacity: 0.7;
}

.footer-massive-text {
  text-align: center;
  margin: 40px 0;
}

.footer-massive-text h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 15vw, 15rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -3px;
  text-transform: uppercase;
  color: var(--bg-color);
  transition: transform 0.4s ease;
}

.footer-massive-text h2:hover {
  transform: scale(1.02);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(235, 235, 235, 0.15);
  padding-top: 30px;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 20px;
}

.social-col {
  display: flex;
  gap: 30px;
}

.social-col a {
  color: var(--bg-color);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 1px;
  transition: opacity 0.3s ease;
}

.social-col a:hover {
  opacity: 0.5;
}

/* --------------------------------------------------
   11. UNIFIED RESPONSIVE MEDIA QUERIES
-------------------------------------------------- */

/* Desktop Large (<= 1200px) */
@media (max-width: 1200px) {
  .hero-bottom-left {
    left: 20px;
  }
  
  .hero-bottom-right {
    right: 20px;
  }

  .intro-profile {
    display: none; /* Hide floating profile overlap on standard laptops */
  }
}

/* Tablets (<= 992px) */
@media (max-width: 992px) {
  .services-grid-interactive {
    grid-template-columns: 1fr;
  }

  .hero-section {
    min-height: 850px;
  }

  .hero-title {
    white-space: normal;
  }

  .hero-box {
    position: relative;
    bottom: auto;
    left: auto !important;
    right: auto !important;
    width: 100%;
    margin-top: 15px;
  }

  .hero-container {
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20px;
  }
}

/* Mobile Screens (<= 768px) */
@media (max-width: 768px) {
  .navbar {
    padding: 18px 20px;
  }

  .nav-socials {
    display: none;
  }

  .intro-section,
  .works-section,
  .services-section,
  .footer-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .work-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .work-category, 
  .work-year {
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}

/* Small Phones (<= 550px) */
@media (max-width: 550px) {
  .marquee-part {
    gap: 20px;
    padding-right: 20px;
  }

  .marquee-img {
    width: 90px;
    height: 45px;
  }

  .service-card-item {
    padding: 28px 24px;
  }
}