/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Improved Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  background: #333;
  z-index: 1000;
  padding: 0 20px;
}
.nav-logo {
    height: 81px; /* Adjust size as needed */
    width: auto;
    margin-right: 15px; /* Space between logo and text */
}
.nav-brand a {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  flex: 1;
  justify-content: space-evenly;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links li {
  flex: 1;
}

.nav-links a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  background: #444;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background: #555;
  color: #ddd;
}


/* Hamburger Menu - Hidden by default */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: 0.3s;
}

/* Active navigation state */
.nav-links a.active {
    background: #667eea;
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

/* Main Content */
main {
  display: flex;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  height: 100vh;
}

section {
  flex: 0 0 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  scroll-snap-align: start;
  font-size: 2rem;
  color: white;
  background: #080808;
}

/* Section Background Colors */
#section1 {
  background: linear-gradient(135deg, #667eea 0%, #253346 100%);
  position: relative;
  overflow: hidden;
}

#section1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
      radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 50%),
      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

#section2 {
  background: #3c4d6f;
}
#section3 {
  background: #39456b;
}
#section4 {
  background: #242323;
}
#section5 {
  background: #0f1436;
}

/* Profile Picture Styles */
.profile-container {
  position: relative;
  margin-bottom: 2rem;
  animation: slideUp 1s ease-out 0.6s both;
}

.profile-pic {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 3;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: float 6s ease-in-out infinite;
}

.profile-pic:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Pulsing Circle Animation */
.circle-animation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse-circle 3s ease-in-out infinite;
  z-index: 1;
}

.circle-animation.delay-1 {
  animation-delay: 1s;
  width: 220px;
  height: 220px;
  border-width: 1.5px;
}

.circle-animation.delay-2 {
  animation-delay: 2s;
  width: 240px;
  height: 240px;
  border-width: 1px;
}

@keyframes pulse-circle {
  0%, 100% {
      opacity: 0;
      transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1.05);
  }
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
      transform: translateY(0) rotate(0deg);
  }
  33% {
      transform: translateY(-5px) rotate(1deg);
  }
  66% {
      transform: translateY(5px) rotate(-1deg);
  }
}

/* Hero Section Styles */
.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: 4rem;
  font-weight: bold;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideUp 1s ease-out 0.8s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  animation: slideUp 1s ease-out 1s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  animation: slideUp 1s ease-out 1.2s both;
}

.btn {
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: #fff;
  color: #667eea;
}

.btn-primary:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #fff;
}

.btn-secondary:hover {
  background: #fff;
  color: #667eea;
  transform: translateY(-2px);
}

@keyframes slideUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Styles for the 4-box layout in section2 */
.container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  width: 90%;
  height: 70%;
  padding: 20px;
  box-sizing: border-box;
}

.block {
  border: 1px solid #fff;
  padding: 20px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: background 0.3s;
}

.block:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.block h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.block p {
  font-size: 1.2rem;
  margin-bottom: 15px;
}

.block a {
  color: #00b7eb;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}

.block a:hover {
  color: #fff;
}

/* Social Links in Section 2 */
.social-links {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.social-links a {
  color: #00b7eb;
  text-decoration: none;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: #fff;
}

/* Iframe Styles */
iframe {
  background: transparent;
  border: none;
}

/* Swipe Hint Message */
#swipe-hint {
  display: none;
  position: fixed;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 1.2rem;
  z-index: 2000;
  animation: fade-in 1s ease-in-out;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Mobile Styles */
@media (max-width: 768px) {
  nav {
    justify-content: space-between;
    height: 60px;
  }
  
  .hamburger {
    display: flex;
    z-index: 1001;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 40%;
    height: 100vh;
    flex-direction: column;
    background: #333;
    transition: right 0.3s ease;
    justify-content: center;
    gap: 0;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links li {
    width: 100%;
    flex: none;
  }
  
  .nav-links a {
    height: 60px;
    font-size: 1.2rem;
    border-bottom: 1px solid #555;
  }
  
  .nav-links a.active {
        background: #667eea;
        border-left: 4px solid #fff;
        border-bottom: 1px solid #555;
  }

  /* Hide swipe hint when menu is open */
  body.menu-open #swipe-hint {
    display: none;
  }

  #swipe-hint {
    display: block;
  }

  .container {
    width: 95%;
    height: 60%;
    gap: 10px;
    padding: 10px;
  }

  .block {
    font-size: 1rem;
    padding: 10px;
  }

  .block h3 {
    font-size: 1.4rem;
  }

  .block p {
    font-size: 1rem;
  }

  .block a {
    font-size: 0.9rem;
  }

  .social-links {
    gap: 15px;
  }

  .social-links a {
    font-size: 1rem;
  }

  /* Mobile Responsive for Hero Section */
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 200px;
    text-align: center;
  }

  /* Mobile Responsive for Profile Picture */
  .profile-pic {
    width: 140px;
    height: 140px;
  }
  
  .circle-animation {
    width: 160px;
    height: 160px;
  }
  
  .circle-animation.delay-1 {
    width: 180px;
    height: 180px;
  }
  
  .circle-animation.delay-2 {
    width: 200px;
    height: 200px;
  }
  
  /* Adjust animation delays for mobile */
  .hero-title {
    animation: slideUp 1s ease-out 0.6s both;
  }
  
  .hero-subtitle {
    animation: slideUp 1s ease-out 0.8s both;
  }
  
  .hero-buttons {
    animation: slideUp 1s ease-out 1s both;
  }
}