/* === GLOBAL STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: "Montserrat", sans-serif;
}

html, body {
  overflow-x: hidden;
}

body {
  background: linear-gradient(to bottom right, #dbe6ff, #66aaff);
  background-attachment: fixed;
  background-size: cover;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  z-index: -1;
}

/* === HEADER === */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(10px + env(safe-area-inset-top, 0)) 40px 10px 40px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.logo { 
  width: 120px;
  height: auto; 
}

.menu { 
  display: flex; 
  gap: 30px; 
}

.menu a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.menu a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130%;
  height: 180%;
  background: rgba(255,255,255,0.4);
  border-radius: 25px;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.menu a:hover::before {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.menu a:hover { 
  color: #fff; 
}

/* === SOCIAL BUTTON === */
.social-btn {
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 25px;
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.2s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* === DROPDOWN === */
.social-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateY(-10px);
  z-index: 999;
}

.social-btn:hover .social-dropdown,
.social-btn.active .social-dropdown,
.social-dropdown.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.social-dropdown a {
  color: white;
  text-decoration: none;
  padding: 10px 0;
  text-align: center;
  width: 100%;
  transition: background 0.2s ease;
}

.social-dropdown a:hover {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
}

/* === PAGE SECTIONS === */
.page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.page h1 { 
  font-size: 3rem; 
  margin-bottom: 15px; 
}

.page p, .page span {
  font-size: 1.2rem;
  max-width: 600px;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.page.in-view p,
.page.in-view span { 
  opacity: 1; 
  transform: translateY(0); 
}

/* === ABOUT PAGE === */
.about-container {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 40px 0;
  gap: 100px;
}

.about-container .left-text,
.about-container .right-text { 
  display: flex; 
  flex-direction: column; 
  gap: 20px; 
}

.about-container .left-text p { 
  text-align: left; 
  font-size: 1.5rem; 
  line-height: 1.6; 
}

.about-container .right-text { 
  text-align: right; 
}

.about-container .right-text p { 
  font-size: 1.5rem; 
  line-height: 1.6; 
}

.about-bg-logo {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, 20px);
  width: 60%;
  max-width: 70%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: all 1s ease-out;
}

.page#about.in-view .about-bg-logo {
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

/* === PROJECTS CAROUSEL === */
.projects-carousel {
  position: relative;
  width: 90%;
  max-width: 1200px;
  overflow: hidden;
  margin: 40px auto;
  padding: 40px 0;
  z-index: 1;
}

.carousel-track {
  display: flex;
  align-items: center;
  transition: transform 0.5s ease;
}

.carousel-item {
  flex: 0 0 300px;
  aspect-ratio: 9/16;
  margin: 0 20px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  opacity: 0.5;
  transform: scale(0.8);
  transition: all 0.5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  background: black;
}

.carousel-item.active {
  opacity: 1;
  transform: scale(1);
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: background 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.4);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .carousel-item { flex: 0 0 180px; margin: 0 10px; }
  .carousel-btn { display: none; }
}

/* === PROJECTS BACKGROUND LOGO === */
.projects-bg-logo {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, 20px);
  width: 60%;
  max-width: 70%;
  height: auto;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  transition: all 1s ease-out;
}

.page#projects.in-view .projects-bg-logo {
  transform: translate(-50%, -50%);
  opacity: 0.08;
}

/* === CONTACT PAGE === */
#contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 0;
  color: white;
  text-align: center;
  position: relative;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  z-index: 1;
}

.contact-box {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 18px 22px;
  width: 100%;
  max-width: 400px;
  word-break: break-word;
  overflow-wrap: anywhere;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.contact-box:hover {
  background: rgba(255,255,255,0.15);
  transform: translateY(-3px);
}

.contact-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  min-width: 0;
}

.contact-info strong {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 3px;
}

.contact-info span {
  font-size: 0.95rem;
  color: #e6e6e6;
  word-break: break-all;
}

/* === SCROLLING TEXT FIXED LOOP === */
.scrolling-text {
  position: absolute;
  bottom: 0;
  width: 100vw;
  overflow: hidden;
  white-space: nowrap;
  background: rgba(255,255,255,0.05);
  padding: 12px 0;
}

.scrolling-text .inner {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 35s linear infinite;
}

.scrolling-text span {
  display: inline-block;
  font-size: 1.2rem;
  font-weight: 600;
  color: white;
  margin-right: 40px;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}

@keyframes scrollText {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) { 
  .carousel-item { flex: 0 0 220px; }
  .about-container .left-text p,
  .about-container .right-text p { font-size: 1.3rem; }
  .page#about.in-view .about-bg-logo,
  .page#projects.in-view .projects-bg-logo { width: 55%; max-width: 65%; }
}

@media (max-width: 768px) {
  .top-bar { flex-direction: column; gap: 12px; padding: 15px 0; }
  .about-container { flex-direction: column; align-items: center; gap: 20px; padding: 20px 10px; }
  .about-container .left-text, .about-container .right-text { text-align: center; width: 100%; }
  .about-container .left-text p, .about-container .right-text p { font-size: 1.2rem; line-height: 1.5; }
  .page#about.in-view .about-bg-logo, .page#projects.in-view .projects-bg-logo { width: 80%; max-width: 90%; opacity: 0.5; }

  .carousel-item { flex: 0 0 180px; aspect-ratio: 9/16; margin: 0 10px; }
  .projects-carousel { padding: 60px 0; }
  .carousel-btn { display: none; }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-box {
    max-width: 100%;
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .about-container .left-text p,
  .about-container .right-text p { font-size: 1rem; line-height: 1.4; }
}

/* === CONTACT PAGE SPACING FIX === */
#contact p { margin-bottom: 40px; text-align: center; }

.contact-container { display: flex; flex-direction: column; align-items: center; gap: 25px; margin-bottom: 60px; }
.contact-info a { color: white; text-decoration: none; cursor: default; }

.site-footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  color: white;
  padding: 25px 20px;
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer p { margin: 0; }
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  display: none; /* hidden by default */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  font-size: 1rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.cookie-banner form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.cookie-banner input {
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
}

.cookie-banner input::placeholder {
  color: rgba(255,255,255,0.6);
}

.cookie-btn {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 25px;
  background: rgba(255,255,255,0.1);
  color: white;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.cookie-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}
