/* ---------- GLOBAL RESET & BASE STYLES ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

html { 
  scroll-behavior: smooth; 
}

html, 
body {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

body {
  background: #ffffff;
  color: #1f2937;
}

h1, h2, h3 {
  font-weight: 600; 
  letter-spacing: 1px; 
}

/* ---------- NAVBAR & HEADER ---------- */
.navbar, 
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 100px; 
  background: transparent;
  z-index: 1000; 
  transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
  overflow: visible !important;
}

.logo img {
  height: 40px; 
  width: auto;  
  display: block;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-block;
  text-decoration: none;
  color: #ffffff;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.navbar a, 
.nav-menu a {
  margin-left: 40px;
  text-decoration: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.navbar a:hover,
.nav-menu a:hover,
.logo-text:hover {
  opacity: 0.8;
  color: #e5e7eb;
}

/* Scrolled State */
.navbar.scrolled,
.header.scrolled {
  background: #ffffff;
  padding: 15px 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e5e7eb;
}

.navbar.scrolled .logo-text,
.header.scrolled .logo-text,
.navbar.scrolled .nav-menu a,
.header.scrolled .nav-menu a,
.navbar.scrolled a,
.header.scrolled a {
  color: #1f2937;
}

.navbar.scrolled a:hover,
.header.scrolled a:hover,
.navbar.scrolled .logo-text:hover,
.header.scrolled .logo-text:hover {
  color: #6b7280;
  opacity: 1;
}

/* Nav Toggle (Mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  flex-direction: column;
  gap: 5px;
  z-index: 100000;
}

.nav-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar.scrolled .nav-toggle .bar,
.header.scrolled .nav-toggle .bar {
  background-color: #1f2937;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

/* ---------- HERO SHOWREEL ---------- */
.hero-showreel {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #000000;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
}

.slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6s ease-out;
}

.hero-slide.active .slide-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #ffffff;
  max-width: 800px;
  padding: 0 20px;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.8s ease 0.2s, opacity 0.8s ease 0.2s;
}

.hero-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.slide-category {
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 15px;
}

.hero-content h1 {
  font-size: 80px;
  letter-spacing: 4px;
  font-weight: 400;
  margin: 0;
}

.hero-content p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 15px;
}

/* Controls & Progress */
.showreel-nav {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  align-items: center;
  gap: 15px;
  z-index: 10;
}

.showreel-nav button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.showreel-nav button:hover {
  background: #ffffff;
  color: #000000;
}

.sr-progress-bar {
  width: 100px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.sr-progress-fill {
  width: 0%;
  height: 100%;
  background: #ffffff;
  transition: width 0.1s linear;
}

.scroll-down {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-size: 1.5rem;
  text-decoration: none;
  z-index: 99;
  display: inline-block;
  cursor: pointer;
  transition: opacity 0.3s ease;
  animation: bounce 2s infinite;
}

.scroll-down:hover {
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -8px); }
  60% { transform: translate(-50%, -4px); }
}

/* ---------- CORE PROJECTS AREA ---------- */
.projects {
  background-color: #f7f7f7; 
  padding: 100px 10%;
}

.projects h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 400;
}

.projects span {
  display: block;
  text-align: center;
  margin: 20px 0 80px;
  font-size: 16px;
  color: #6b7280;
}

.project {
  display: flex;
  gap: 80px;
  margin-bottom: 100px;
}

.project img {
  width: 55%;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
  transition: transform 0.5s ease-in-out;
}

/* ---------- CARD UI LAYOUTS ---------- */
.project-card {
  display: flex;
  background: #ffffff; 
  margin-bottom: 60px;
  overflow: hidden;
  align-items: stretch;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease; 
  cursor: pointer;
  position: relative;
}

.project-card:hover {
  background-color: #dfe6e9;
  transform: translateY(-5px); 
  box-shadow: 0 10px 25px rgba(0,0,0,0.1); 
}

.project-card:hover h3 { color: #000000; }
.project-card:hover p { color: #333333; }

.project-info {
  width: 50%;
  padding: 60px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  box-sizing: border-box;
}

.project-info small {
  color: #999999;
  font-size: 12px;
  margin-bottom: 10px;
  display: block;
}

.project-info h3 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.project-info p {
  font-size: 14px;
  color: #666666;
  line-height: 1.8;
}

/* ---------- PORTFOLIO IMAGE SLIDER ---------- */
.slider-container {
  width: 50%;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #f3f4f6;
}

.slider {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y; /* Allows vertical page scroll while handling horizontal swipe */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.prev, 
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.85);
  color: #1f2937;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30; /* Keep above slides and touch layers */
  transition: all 0.3s ease;
  touch-action: manipulation;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, 
.next:hover {
  background-color: #1f2937;
  color: #ffffff;
}

.prev i { margin-right: 2px; }
.next i { margin-left: 2px; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  pointer-events: none;
  z-index: 20;
}

.dot {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}

.dot.active {
  background: #ffffff;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  padding: 100px 10%;
  background-color: #ffffff;
  text-align: center; 
}

.about-content {
  max-width: 700px;
  margin: 0 auto; 
}

.about-description {
  text-align: justify; 
  text-justify: inter-word; 
  line-height: 1.8;
  color: #555555;
  margin-bottom: 40px;
  font-size: 16px;
}

.cv-button {
  display: inline-block;
  padding: 12px 35px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ---------- CONTACT & FOOTER ---------- */
.contact {
  padding-top: 100px;
  padding-bottom: 20px; 
  text-align: center;
  background-color: #f9f9f9;
}

.contact form {
  display: none;
}

.direct-contact {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #4b5563;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item i {
  font-size: 15px;
  color: #1f2937;
}

.contact-item:hover {
  color: #111827;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 40px; 
  margin-top: 35px;
}

.social-links a {
  font-size: 32px; 
  color: #1f2937; 
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-links a:hover {
  color: #6b7280; 
  transform: translateY(-3px); 
}

footer {
  margin-top: auto; 
  padding: 20px 100px 40px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9; 
  font-size: 12px;
  color: #888888;
}

footer a {
  text-decoration: none;
  color: #1f2937;
}

.credit {
  font-size: 10px;
  color: #9ca3af;
}

.designer-link {
  color: #6b7280;
  text-decoration: none;
  font-weight: 600;
  margin-left: 2px;
  transition: color 0.2s ease;
}

.designer-link:hover {
  color: #1f2937;
  text-decoration: underline;
}

/* ---------- SPLIT LANDING PAGE ---------- */
.landing-body {
  margin: 0;
  padding: 0;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.split-container {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
}

.split-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  position: relative;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: hidden;
  padding: 40px;
}

.architecture-side {
  background-color: #ffffff;
  color: #1f2937;
}

.webdev-side {
  background-color: #1a1a1a;
  color: #ffffff;
}

.architecture-side::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: #e5e7eb;
  transition: opacity 0.3s ease;
}

.split-content {
  max-width: 420px;
  text-align: center;
  z-index: 2;
}

.split-side h1 {
  font-size: 36px;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.split-side p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 40px;
  font-weight: 300;
  opacity: 0.8;
}

.explore-btn {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: padding 0.3s ease;
}

/* ---------- WEB DEV PORTFOLIO ACCENTS ---------- */
.dev-preview-container {
  border: 1px solid #e5e7eb;
  border-top: none;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
}

.browser-mockup-bar {
  background: #f3f4f6;
  border-bottom: 1px solid #e5e7eb;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 5;
}

.mockup-dot {
  width: 8px;
  height: 8px;
  background-color: #d1d5db;
  border-radius: 50%;
  display: inline-block;
}

.mockup-address-bar {
  background: #ffffff;
  color: #9ca3af;
  font-size: 11px;
  padding: 2px 20px;
  border-radius: 4px;
  margin-left: 15px;
  font-family: monospace;
  letter-spacing: 0;
  flex-grow: 0.4;
  text-align: left;
  text-decoration: none; 
  display: inline-block;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mockup-address-bar:hover {
  color: #1f2937; 
  background-color: #fafafa;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.tech-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.tag {
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.dev-project-info h3 {
  margin-bottom: 12px !important;
}

.project-features {
  margin: 20px 0;
}

.project-features h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  color: #1f2937;
}

.project-features ul {
  list-style: none;
  padding: 0;
}

.project-features li {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.project-features i {
  color: #10b981; 
  font-size: 11px;
}

.project-actions {
  display: flex;
  gap: 12px;
  margin-top: auto; 
  padding-top: 15px;
}

.dev-action-btn {
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.dev-action-btn.primary {
  background: #1a1a1a;
  color: #ffffff;
}

.dev-action-btn.secondary {
  background: transparent;
  color: #1a1a1a;
  border: 1px solid #1a1a1a;
}

.dev-action-btn.primary:hover {
  background: #4b5563;
}

.dev-action-btn.secondary:hover {
  background: #1a1a1a;
  color: #ffffff;
}

/* ---------- MINIMALIST FLOATING COOKIES POPUP ---------- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: calc(100% - 40px);
  max-width: 600px;
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px 24px;
  z-index: 9999; 
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  animation: floatUpPopup 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-content {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cookie-content p {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  letter-spacing: 0.1px;
}

.cookie-btn {
  background-color: #1a1a1a;
  color: #ffffff;
  border: none;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.cookie-btn:hover {
  background-color: #4b5563;
}

@keyframes floatUpPopup {
  from {
    transform: translateX(-50%) translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */
@media (min-width: 901px) {
  .split-side:hover { flex: 1.25; }
  .architecture-side:hover { background-color: #f9f9f9; }
  .webdev-side:hover { background-color: #111827; }
  .split-side:hover .explore-btn { padding-left: 15px; padding-right: 15px; }
  .split-side:hover h1 { transform: translateY(-5px); }
  .split-container:hover .split-side:not(:hover)::after { opacity: 0; }
}

@media (max-width: 900px) {
  .navbar, 
  .header,
  .navbar.scrolled,
  .header.scrolled {
    padding: 15px 20px; 
  }

  .projects, .contact, footer {
    padding: 40px 20px; 
  }

  .project {
    flex-direction: column;
  }

  .project-info {
    width: 100%;
    padding: 25px 20px 35px; 
    text-align: left; 
  }

  .project-info p {
    max-width: 100%; 
    margin-left: 0;
    margin-right: 0;
    line-height: 1.6;
  }

  .about-description {
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .slider-container {
    width: 100%;
  }

  /* Retain Arrow Controls on Mobile screens */
  .prev, .next {
    display: flex !important;
    width: 36px;
    height: 36px;
  }

  .prev { left: 10px; }
  .next { right: 10px; }

  footer {
    flex-direction: column;
    gap: 10px;
    padding: 30px 20px;
    text-align: center;
  }

  .split-container {
    flex-direction: column;
  }
  
  .landing-body {
    overflow: auto;
  }
  
  .split-side {
    height: 50vh;
    min-height: 350px;
  }
  
  .architecture-side::after {
    display: none;
  }
  
  .split-side h1 {
    font-size: 28px;
  }

  .swipe-hint {
    display: flex !important;
    position: absolute;
    bottom: 15px;      
    left: 50%;
    transform: translateX(-50%); 
    z-index: 10;        
    pointer-events: none; 
    user-select: none;
  }

  .swipe-hint span {
    background-color: rgba(0, 0, 0, 0.4); 
    color: #ffffff;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    backdrop-filter: blur(4px); 
    border: 1px solid rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 768px) {
  .logo-text { font-size: 16px; letter-spacing: 1px; }
  .hero-content h1 { font-size: 42px; }
  .showreel-nav { right: 50%; transform: translateX(50%); bottom: 70px; }

  .project-card {
    flex-direction: column;
  }
  
  .slider-container, 
  .project-info {
    width: 100%;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px 0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 99999 !important;
    border-bottom: 1px solid rgba(229, 231, 235, 0.6);
  }

  .nav-menu.active {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .nav-menu li {
    text-align: center;
    padding: 12px 0;
    width: 100%;
  }

  .nav-menu a {
    font-size: 16px;
    display: block;
    width: 100%;
    color: #1f2937 !important;
    margin-left: 0;
  }

  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .cookie-banner {
    bottom: 16px;
    padding: 16px;
  }
  
  .cookie-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .cookie-content p {
    font-size: 12px;
  }
  
  .cookie-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .project-actions {
    flex-direction: column;
    width: 100%;
  }
  .dev-action-btn {
    justify-content: center;
  }
}