@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&family=Space+Mono:wght@400;700&family=Orbitron:wght@400;700;900&display=swap");

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

:root {
  --primary: #ff6b35;
  --secondary: #004e89;
  --accent: #f77f00;
  --dark: #1a1a1a;
  --light: #f5f5f5;
  --sky-color: #0a0e27;
  --ground-color: #1a1a2e;
  --fog-color: #0a0e27;
}

body.day-mode {
  --sky-color: #87ceeb;
  --ground-color: #90ee90;
  --fog-color: #87ceeb;
  --primary: #ff4500;
  --accent: #ff8c00;
  --dark: #ffffff;
  --light: #1a1a1a;
}

body {
  font-family: "Space Mono", monospace;
  background: var(--sky-color);
  color: var(--light);
  overflow-x: hidden;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><circle cx="12" cy="12" r="8" fill="%23ff6b35" opacity="0.6"/></svg>')
      12 12,
    auto;
  transition: background 1s ease, color 0.5s ease;
}

.profile-image-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 2rem;
  z-index: 1;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--primary);
  object-fit: cover;
  box-shadow: 0 10px 40px rgba(255, 107, 53, 0.4),
    0 0 30px rgba(255, 107, 53, 0.3);
  position: relative;
  z-index: 2;
  transition: transform 0.4s ease;
}

/* .profile-image:hover {
    transform: scale(1.1) rotate(5deg);
} */

.profile-glow {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--accent));
  opacity: 0.3;
  filter: blur(20px);
  animation: pulse-profile 3s infinite;
}

@keyframes pulse-profile {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.5;
  }
}

#canvas-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
}

#scroll-content {
  position: relative;
  z-index: 10;
  pointer-events: none;
}

.section {
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 8vw;
  pointer-events: all;
}

.section[data-section="0"],
.section[data-section="2"],
.section[data-section="4"],
.section[data-section="6"] {
  justify-content: flex-end;
}

.section[data-section="1"],
.section[data-section="3"],
.section[data-section="5"] {
  justify-content: flex-start;
}

.billboard-content {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(30px) saturate(180%);
  border: 3px solid var(--primary);
  border-radius: 25px;
  padding: 3rem;
  max-width: 550px;
  box-shadow: 0 25px 80px rgba(255, 107, 53, 0.4),
    0 0 60px rgba(255, 107, 53, 0.2), inset 0 0 40px rgba(255, 107, 53, 0.1);
  transform: translateX(100px);
  opacity: 0;
  transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

body.day-mode .billboard-content {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
  box-shadow: 0 25px 80px rgba(255, 69, 0, 0.3), 0 0 40px rgba(255, 140, 0, 0.2);
}

.billboard-content::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 107, 53, 0.1),
    transparent
  );
  animation: shimmer 3s infinite;
  pointer-events: none;  /* ADD THIS LINE */
  z-index: 0;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

.section[data-section="1"] .billboard-content,
.section[data-section="3"] .billboard-content,
.section[data-section="5"] .billboard-content {
  transform: translateX(-100px);
}

.section.active .billboard-content {
  transform: translateX(0);
  opacity: 1;
}

.billboard-content h2 {
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.billboard-content h3 {
  font-family: "Oswald", sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.billboard-content p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
  color: var(--light);
  position: relative;
  z-index: 1;
}

/* .tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  position: relative;
  z-index: 1;
} */

/* Tech Stack Grid */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(40px, 3fr));
    gap: 3rem;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    /* padding: 1.5rem 1rem; */
    /* background: rgba(255, 107, 53, 0.05); */
    /* border: 2px solid transparent; */
    /* border-radius: 15px; */
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.tech-item::before {
    content: '';
    position: absolute;
    inset: 0;
    /* border-radius: 15px; */
    /* background: linear-gradient(135deg, var(--primary), var(--accent)); */
    opacity: 0;
    /* transition: opacity 0.4s; */
    z-index: -1;
}

.tech-item:hover::before {
    opacity: 0.1;
}

/* .tech-item:hover {
    border-color: var(--primary);
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.3);
} */

.tech-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); */
    /* filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2)); */
}

.tech-item:hover img {
    transform: scale(1.2) rotateY(360deg);
    /* filter: drop-shadow(0 8px 16px rgba(255, 107, 53, 0.4)); */
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light);
    text-align: center;
    transition: color 0.3s;
}

.tech-item:hover span {
    color: var(--primary);
}

/* Special icons that need inversion in dark mode */
.nextjs-icon,
.vercel-icon {
    filter: invert(1) drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2));
}

body.day-mode .nextjs-icon,
body.day-mode .vercel-icon {
    filter: invert(0) drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2));
}

.tech-item:hover .nextjs-icon,
.tech-item:hover .vercel-icon {
    filter: invert(1) drop-shadow(0 8px 16px rgba(255, 107, 53, 0.4));
}

body.day-mode .tech-item:hover .nextjs-icon,
body.day-mode .tech-item:hover .vercel-icon {
    filter: invert(0) drop-shadow(0 8px 16px rgba(255, 107, 53, 0.4));
}

.threejs-icon,
.framer-icon {
    filter: drop-shadow(0 4px 8px rgba(255, 107, 53, 0.2));
}

.tech-item:hover .threejs-icon,
.tech-item:hover .framer-icon {
    filter: drop-shadow(0 8px 16px rgba(255, 107, 53, 0.4));
}

/* Responsive */
@media (max-width: 768px) {
    .tech-stack-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 1.5rem;
    }

    .tech-item {
        padding: 1rem 0.5rem;
    }

    .tech-item img {
        width: 50px;
        height: 50px;
    }

    .tech-item span {
        font-size: 0.75rem;
    }
}




.control-panel {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.control-btn {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3),
    0 0 20px rgba(255, 107, 53, 0.2);
  position: relative;
  overflow: hidden;
}

body.day-mode .control-btn {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary);
}

.control-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    45deg,
    transparent,
    rgba(255, 107, 53, 0.2),
    transparent
  );
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.control-btn:hover::before {
  transform: translateX(100%);
}

.control-btn:hover {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5),
    0 0 30px rgba(255, 107, 53, 0.4);
}

.control-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: var(--accent);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0%,
  100% {
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3),
      0 0 20px rgba(255, 107, 53, 0.2);
  }
  50% {
    box-shadow: 0 15px 50px rgba(255, 107, 53, 0.6),
      0 0 40px rgba(255, 107, 53, 0.5);
  }
}

.control-label {
  position: absolute;
  right: 85px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 26, 26, 0.95);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
  border: 2px solid var(--primary);
}

body.day-mode .control-label {
  background: rgba(255, 255, 255, 0.95);
  color: var(--dark);
}

.control-btn:hover .control-label {
  opacity: 1;
  transform: translateY(-50%) translateX(-10px);
}

.tech-tag {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  padding: 0.5rem 1.2rem;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
  position: relative;
  z-index: 1;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tech-tag:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
}

.project-list {
  list-style: none;
  position: relative;
  z-index: 1;
}

.project-item {
  background: rgba(255, 107, 53, 0.1);
  border-left: 4px solid var(--primary);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  transition: all 0.3s;
  position: relative;
  z-index: 1;
}

.project-item:hover {
  background: rgba(255, 107, 53, 0.2);
  transform: translateX(10px);
}

.project-item strong {
  color: var(--accent);
  font-size: 1.1rem;
}

.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1s, visibility 1s;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-title {
  font-family: "Orbitron", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 8px;
  margin-bottom: 1rem;
  animation: slideDown 1s ease-out;
}

.intro-subtitle {
  font-size: 1.5rem;
  color: var(--light);
  margin-bottom: 3rem;
  animation: fadeIn 1.5s ease-out;
}

.start-button {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  border: none;
  padding: 1.5rem 3rem;
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
  transition: all 0.3s;
  animation: pulse 2s infinite;
}

.start-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.scroll-indicator {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  color: var(--primary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 1000;
  transition: width 0.1s;
  box-shadow: 0 0 10px var(--primary);
}

@keyframes slideDown {
  from {
    transform: translateY(-100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-10px);
  }
}

/* .particles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 5;
        }

        .particle {
            position: absolute;
            width: 4px;
            height: 4px;
            background: var(--primary);
            border-radius: 50%;
            opacity: 0.6;
            animation: float-particle 3s infinite;
        } */

/* @keyframes float-particle {
            0%, 100% { 
                transform: translateY(0) translateX(0);
                opacity: 0.6;
            }
            50% { 
                transform: translateY(-20px) translateX(10px);
                opacity: 0.3;
            }
        } */

/* .speed-lines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 5;
            opacity: 0;
            transition: opacity 0.3s;
        }

        .speed-lines.active {
            opacity: 0.3;
        } */

/* .speed-line {
            position: absolute;
            width: 2px;
            height: 100px;
            background: linear-gradient(to bottom, transparent, var(--primary), transparent);
            animation: speed-line 1s linear infinite;
        }

        @keyframes speed-line {
            0% { transform: translateY(-100vh); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: translateY(100vh); opacity: 0; }
        } */

@media (max-width: 768px) {
  .billboard-content {
    max-width: 90%;
    padding: 2rem;
  }

  .billboard-content h2 {
    font-size: 2rem;
  }

  .intro-title {
    font-size: 3rem;
    letter-spacing: 4px;
  }

  .section {
    justify-content: center;
  }

  .section[data-section="1"],
  .section[data-section="3"],
  .section[data-section="5"] {
    justify-content: center;
  }

  .control-panel {
    top: 1rem;
    right: 1rem;
    flex-direction: row;
  }

  .control-btn {
    width: 60px;
    height: 60px;
  }

  .control-label {
    display: none;
  }
}


/* Social Media Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 2px solid;
    background: transparent;
    z-index: 10;
}

.social-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.social-btn:hover::before {
    transform: scaleX(1);
}

.social-btn svg {
    width: 24px;
    height: 24px;
    transition: transform 0.3s;
}

.social-btn:hover svg {
    transform: scale(1.2) rotate(5deg);
}

.social-btn span {
    position: relative;
    z-index: 1;
}

/* GitHub */
.social-btn.github {
    color: #ffffffdc;
    border-color: #575757;
}

body.day-mode .social-btn.github {
    color: #000000;
    border-color: #515151;
}
body.day-mode .social-btn.github:hover {
    color: #ffffff;
    background: #000000;
}

/* .social-btn.github::before {
    background: #333;
} */

.social-btn.github:hover {
    color: rgb(0, 0, 0);
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(51, 51, 51, 0.4);
    transform: translateY(-5px);
}

/* LinkedIn */
.social-btn.linkedin {
    color: #0077b5;
    border-color: #0077b5;
}

.social-btn.linkedin::before {
    background: #0077b5;
}

.social-btn.linkedin:hover {
    color: white;
    box-shadow: 0 10px 30px rgba(0, 119, 181, 0.4);
    transform: translateY(-5px);
}

/* Facebook
.social-btn.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.social-btn.facebook::before {
    background: #1877f2;
}

.social-btn.facebook:hover {
    color: white;
    box-shadow: 0 10px 30px rgba(24, 119, 242, 0.4);
    transform: translateY(-5px);
} */

/* Get In Touch Button */
.get-in-touch-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.5rem;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 10;
}

.get-in-touch-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }

    .social-btn {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}


/* Resume Download Button */
.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.resume-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.resume-btn:hover::before {
    opacity: 1;
}

.resume-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.resume-btn svg {
    transition: transform 0.3s;
}

.resume-btn:hover svg {
    transform: translateY(3px);
    animation: bounce-download 0.6s ease-in-out infinite;
}

@keyframes bounce-download {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .resume-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}


/* Project Buttons */
.project-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.project-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.live-btn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.live-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.code-btn {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.code-btn:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Show More Button */
.show-more-btn {
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.show-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.show-more-btn:hover::before {
    opacity: 1;
}

.show-more-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
}

/* Modal Styles - FIXED */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1;
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    max-height: 85vh;
    background: rgba(26, 26, 26, 0.98);
    border: 3px solid var(--primary);
    border-radius: 30px;
    padding: 3rem;
    overflow-y: auto;
    box-shadow: 
        0 30px 100px rgba(255, 107, 53, 0.5),
        0 0 80px rgba(255, 107, 53, 0.3);
    animation: slideUp 0.4s ease;
    z-index: 2;
}

body.day-mode .modal-content {
    background: rgba(255, 255, 255, 0.98);
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 50px;
    height: 50px;
    border: 3px solid var(--primary);
    background: rgba(26, 26, 26, 0.9);
    color: var(--primary);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

body.day-mode .modal-close {
    background: rgba(255, 255, 255, 0.9);
}

.modal-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg) scale(1.1);
}

.modal-title {
    font-family: 'Oswald', sans-serif;
    font-size: 3rem;
    color: var(--primary);
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
    position: relative;
    z-index: 1;
}

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

.project-card {
    background: rgba(255, 107, 53, 0.05);
    border: 2px solid var(--primary);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 53, 0.1), transparent);
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.6s;
    z-index: 0;
    pointer-events: none;
}

.project-card:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(255, 107, 53, 0.4);
    border-color: var(--accent);
}

.project-card h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.project-card p {
    color: var(--light);
    line-height: 1.6;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

/* Project Tags - FIXED */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.tag {
    background: rgba(255, 107, 53, 0.2);
    color: var(--accent);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--primary);
}

/* Project Buttons in Modal - FIXED */
.project-card .project-buttons {
    display: flex;
    gap: 0.8rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
}

.project-card .project-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 2rem 1.5rem;
    }

    .modal-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-buttons {
        flex-direction: column;
    }

    .project-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Scrollbar for modal */
.modal-content::-webkit-scrollbar {
    width: 10px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 107, 53, 0.1);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}


/* Contact Form Modal */
.contact-modal-content {
    max-width: 600px;
}

.contact-form {
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--primary);
    border-radius: 10px;
    background: rgba(255, 107, 53, 0.05);
    color: var(--light);
    font-family: 'Space Mono', monospace;
    font-size: 1rem;
    transition: all 0.3s;
}

body.day-mode .form-group input,
body.day-mode .form-group textarea {
    background: rgba(255, 107, 53, 0.1);
    color: var(--dark);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
    background: rgba(255, 107, 53, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    position: relative;
    z-index: 10;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.6);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    background: rgba(76, 175, 80, 0.2);
    border: 2px solid #4CAF50;
    color: #4CAF50;
    display: block;
}

.form-status.error {
    background: rgba(244, 67, 54, 0.2);
    border: 2px solid #f44336;
    color: #f44336;
    display: block;
}

/* Mobile Form Improvements */
@media (max-width: 768px) {
    .contact-modal-content {
        padding: 2rem 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

/* Improved Mobile Responsiveness */
@media (max-width: 768px) {
    /* Intro Screen */
    .intro-title {
        font-size: 2rem;
        letter-spacing: 3px;
    }

    .intro-subtitle {
        font-size: 1rem;
    }

    .start-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Billboard Content */
    .billboard-content {
        max-width: 90%;
        padding: 1.5rem;
        max-height: 80vh;
        overflow-y: auto;
    }

    .billboard-content h2 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }

    .billboard-content h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .billboard-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Profile Image */
    .profile-image-container {
        width: 120px;
        height: 120px;
        margin: 0 auto 1.5rem;
    }

    /* Sections Positioning */
    .section {
        justify-content: center !important;
        padding: 0 5vw;
    }

    /* Control Panel */
    .control-panel {
        top: 1rem;
        right: 1rem;
        flex-direction: row;
        gap: 0.5rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .control-label {
        display: none !important;
    }

    /* Progress Bar */
    .progress-bar {
        height: 3px;
    }

    /* Scroll Indicator */
    .scroll-indicator {
        font-size: 0.75rem;
        bottom: 1rem;
    }

    /* Project Items */
    .project-item {
        padding: 0.8rem;
        margin-bottom: 0.8rem;
    }

    .project-item strong {
        font-size: 1rem;
    }

    .project-item p {
        font-size: 0.85rem;
    }

    /* Project Buttons */
    .project-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .project-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
        font-size: 0.8rem;
    }

    .show-more-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
        margin-top: 1.5rem;
    }

    /* Tech Stack Grid */
    .tech-stack-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
        margin-top: 1.5rem;
    }

    .tech-item img {
        width: 45px;
        height: 45px;
    }

    .tech-item span {
        font-size: 0.7rem;
    }

    /* Social Links */
    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .social-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 0.9rem 1.2rem;
        font-size: 0.95rem;
    }

    .get-in-touch-btn {
        padding: 0.9rem 1.8rem;
        font-size: 1rem;
    }

    /* Resume Button */
    .resume-btn {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    /* Modal Improvements */
    .modal-content {
        width: 95%;
        max-height: 90vh;
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        top: 1rem;
        right: 1rem;
        font-size: 1.2rem;
    }

    /* Projects Grid in Modal */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .project-card {
        padding: 1.5rem;
    }

    .project-card h3 {
        font-size: 1.2rem;
    }

    .project-card p {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (phones in portrait, less than 576px) */
@media (max-width: 575px) {
    .billboard-content {
        padding: 1.2rem;
    }

    .billboard-content h2 {
        font-size: 1.5rem;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .profile-image-container {
        width: 100px;
        height: 100px;
    }
}