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

html, body {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* Nice blue gradient background */
  overflow-x: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #ffffff;
  line-height: 1.6;
  overflow-x: hidden;

  /* Prevent bounce/over-scroll on mobile */
  overscroll-behavior: none;
  -webkit-overflow-scrolling: touch;
}

/* Sticky Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(20px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a:hover {
  color: #00d4ff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #00d4ff;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Main Content */
.main-content {
  margin-top: 80px;
  min-height: calc(100vh - 80px);
  background: transparent; /* Let the body gradient show through */
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  background: transparent;
  min-height: 100vh;
}

/* Contact Button - Top Right */
.contact-btn {
  position: fixed;
  right: 2rem;
  top: 2rem;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #00d4ff, #0099cc);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

/* Lock Screen Button */
.lock-screen-btn {
  position: fixed;
  top: 8px; /* Moved higher up */
  right: 20px;
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lock-screen-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

/* Enhanced responsive positioning for all screen sizes */
@media (max-width: 1200px) {
  .lock-screen-btn {
    top: 8px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 1.15rem;
  }
}

@media (max-width: 768px) {
  .lock-screen-btn {
    top: 6px; 
    right: 15px;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .lock-screen-btn {
    top: 5px; 
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }
}

@media (max-width: 360px) {
  .lock-screen-btn {
    top: 4px; 
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }
}

/* Additional safety for very large screens */
@media (min-width: 1920px) {
  .lock-screen-btn {
    top: 10px;
    right: 30px;
    width: 52px;
    height: 52px;
    font-size: 1.25rem;
  }
}

/* Contact Section Styles */
.contact-section {
  text-align: center;
  margin-bottom: 3rem;
}

.contact-email-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.contact-email-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1));
  border: 2px solid rgba(0, 212, 255, 0.3);
  border-radius: 16px;
  color: #00d4ff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.contact-email-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.contact-email-btn:hover::before {
  left: 100%;
}

.contact-email-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.3);
  border-color: rgba(0, 212, 255, 0.5);
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.15), rgba(0, 153, 204, 0.15));
}

.email-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

.email-text {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  letter-spacing: 0.5px;
}

.email-arrow {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.contact-email-btn:hover .email-icon {
  transform: scale(1.1);
}

.contact-email-btn:hover .email-arrow {
  transform: translateX(5px);
}

/* Mobile responsive for contact section */
@media (max-width: 768px) {
  .contact-email-btn {
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
  }
  
  .email-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .contact-email-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
  }
  
  .email-text {
    font-size: 0.9rem;
  }
}

.phone-contact-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.phone-contact-overlay.active {
  opacity: 1;
  visibility: visible;
}

.phone-contact {
  width: 320px;
  height: 500px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 25px;
  border: 3px solid rgba(0, 212, 255, 0.3);
  padding: 2rem;
  text-align: center;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.phone-contact-overlay.active .phone-contact {
  transform: scale(1);
}

.phone-notch {
  width: 120px;
  height: 25px;
  background: #000;
  border-radius: 0 0 15px 15px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.phone-contact h3 {
  margin-top: 2rem;
  margin-bottom: 2rem;
  color: #00d4ff;
  font-size: 1.3rem;
}

.phone-contact-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.phone-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.phone-contact-link:hover {
  background: rgba(0, 212, 255, 0.2);
  transform: translateY(-2px);
}

.close-phone {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 0;
  margin-bottom: 2rem;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(45deg, #fff, #00d4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero h2 {
  font-size: 1.3rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* Enhanced Cards with Hover Effects */
.card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d4ff, transparent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.card:hover::before {
  transform: scaleX(1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 212, 255, 0.4);
}

.card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #00d4ff;
}

.card p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.card li:last-child {
  border-bottom: none;
}

/* Animated Stats */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.stat-card {
  background: rgba(26, 26, 46, 0.6);
  backdrop-filter: blur(20px);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  border: 1px solid rgba(0, 212, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: #00d4ff;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Status Bar */
.status-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 3;
}

.status-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 1rem;
}

.status-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Battery Indicator */
.battery {
  width: 20px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 2px;
  position: relative;
}

.battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0 1px 1px 0;
}

.battery-level {
  height: 100%;
  width: 70%;
  background: #00d4ff;
  border-radius: 1px;
}

/* Enhanced Time Display - Higher up */
.time {
  color: #fff;
  font-size: 4rem;
  font-weight: 300;
  margin-top: 4rem;
  letter-spacing: 3px;
  text-shadow: 0 4px 12px rgba(0,0,0,0.3);
  position: relative;
  z-index: 2;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.time::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  border-radius: 2px;
}

/* Enhanced Date - Higher up */
.date {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.2rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  z-index: 2;
  font-weight: 400;
  letter-spacing: 1px;
}

/* Enhanced Slide Container - Bottom of screen */
.slide-container {
  width: 85%;
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  height: 60px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  overflow: hidden;
  user-select: none;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 2;
}

.slide-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.1) 50%, 
    transparent 100%);
  border-radius: 30px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.slide-container:hover::before {
  opacity: 1;
}

.slide-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  opacity: 0.8;
  pointer-events: none;
  letter-spacing: 1px;
  transition: opacity 0.2s;
  white-space: nowrap;
  z-index: 1;
  font-weight: 500;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.3) 20%, 
    rgba(255,255,255,0.6) 40%, 
    rgba(255,255,255,1) 60%, 
    rgba(255,255,255,0.6) 80%, 
    rgba(255,255,255,0.3) 90%, 
    rgba(255,255,255,0.1) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textWave 6s linear infinite;
}

@keyframes textWave {
  0% { background-position: 200% 0; }
  100% { background-position: 0% 0; }
}

.slider {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: pan-x;
  user-select: none;
  margin-left: 2px;
}

.slider:active {
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transform: scale(0.95);
}

.slider-icon {
  font-size: 1.5rem;
  color: #333;
  user-select: none;
}

/* Wallpaper switcher indicator */
.wallpaper-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 3;
}

.wallpaper-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
}

.wallpaper-dot.active {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

/* App Section */
.app-section {
  text-align: center;
  margin-bottom: 3rem;
}

.app-store-btn {
  display: inline-block;
  background: linear-gradient(45deg, #00d4ff, #0099cc);
  color: white;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
  border: 1px solid rgba(0, 212, 255, 0.3);
}

.app-store-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
  background: linear-gradient(45deg, #0099cc, #00d4ff);
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* iPhone Lock Screen Overlay Styles */
.landing-overlay {
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.7s;
}
.landing-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.iphone {
  width: 340px;
  height: 700px;
  background: #111;
  border-radius: 48px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.7);
  border: 6px solid #222;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  z-index: 2;
}
.notch {
  width: 120px;
  height: 28px;
  background: #222;
  border-radius: 0 0 18px 18px;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.lockscreen {
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%),
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
  background-blend-mode: overlay;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  overflow: hidden;
  transition: background 0.5s ease;
}

/* Wallpaper variations */
.lockscreen.wallpaper-1 {
  background: 
    linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%),
    radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(0, 212, 255, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.lockscreen.wallpaper-2 {
  background: 
    linear-gradient(135deg, #2d1b69 0%, #11998e 50%, #38ef7d 100%),
    radial-gradient(circle at 20% 80%, rgba(56, 239, 125, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(17, 153, 142, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(45, 27, 105, 0.1) 0%, transparent 50%);
}

.lockscreen.wallpaper-3 {
  background: 
    linear-gradient(135deg, #667eea 0%, #764ba2 100%),
    radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(118, 75, 162, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(0, 212, 255, 0.1) 0%, transparent 50%);
}

.lockscreen.wallpaper-4 {
  background: 
    linear-gradient(135deg, #ff6b6b 0%, #ee5a24 50%, #feca57 100%),
    radial-gradient(circle at 20% 80%, rgba(255, 107, 107, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(238, 90, 36, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(254, 202, 87, 0.1) 0%, transparent 50%);
}