
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #0c0c0c;
  color: #f1f1f1;
  scroll-behavior: smooth;
}

h1, h2, h3 {font-weight: bold;
  font-family: 'Orbitron', sans-serif;
}

.loader {
  position: fixed;
  background: #000;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader::after {
  content: '';
  width: 60px;
  height: 60px;
  border: 6px solid #a4ff00;
  border-top: 6px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #101010;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  
}

.logo {
  color: #a4ff00;
  font-weight: bold;
  font-size: 1.8rem;
}

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

.nav-links a {font-weight: bold;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  background: #a4ff00;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}
.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  color: white;
  cursor: pointer;
}
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    right: 0;
    top: 70px;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }
}

/* Hero Section */
.hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to right, #0c0c0c, #111);
  text-align: center;
  padding: 2rem;
}
.hero-title {
  font-size: 3rem;
  color: #a4ff00;
  
}
.hero-sub {
  font-size: 1.3rem;
  color: #ccc;
}

/* Buttons */

/* Sections */
.section {
  padding: 4rem 2rem;
  text-align: center;
}
.section h2 {font-weight: bold;
  color: #a4ff00;
  margin-bottom: 1.5rem;
  font-size: 2rem;
}

/* Tech Icons */
.tech-icons i {
  font-size: 2rem;
  margin: 0 0.5rem;
  color: #a4ff00;
}

/* Project Tiles */
.project-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.project-card {
  background: #1b1b1b;
  border-radius: 10px;
  overflow: hidden;
  
  transition: transform 0.3s, box-shadow 0.3s;
}
.project-card:hover {
  transform: translateY(-5px);
  
}
.project-card img {
  width: 100%;
  display: block;
}
.card-content {
  padding: 1rem;
  text-align: left;
}
.card-content h3 {font-weight: bold;
  color: #a4ff00;
}

/* Contact */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.contact-form input,
.contact-form textarea {font-weight: bold;
  padding: 0.75rem;
  background: #2a2a2a;
  border: none;
  border-radius: 5px;
  color: white;
}

/* Social Icons */
.social-icons {
  margin-top: 1rem;
}
.social-icons a {font-weight: bold;
  color: #fff;
  font-size: 1.5rem;
  margin: 0 0.5rem;
  transition: color 0.3s;
}
.social-icons a:hover {
  color: #a4ff00;
}

/* Footer */
.footer {
  padding: 2rem;
  background: #101010;
  color: #aaa;
  text-align: center;
}


/* Resume nav button */
.nav-resume {
  color: #000 !important;
  background-color: #a4ff00;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  
  transition: background 0.3s, box-shadow 0.3s;
}
.nav-resume:hover {
  background-color: #c4ff55;
  
}

/* Animated Logo */
.logo {
  color: #a4ff00;
  font-weight: bold;
  font-size: 1.8rem;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% {  }
  50% {  }
}

/* Animate sections on scroll */
.section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.section.aos-animate {
  opacity: 1;
  transform: translateY(0);
}


/* Glow on scroll */
.glow-on-scroll.aos-animate {
  
  transition: box-shadow 1s ease-in-out;
}

/* Animated Tech Icons */
.tech-icons i {
  font-size: 2rem;
  margin: 0 0.5rem;
  color: #a4ff00;
  transition: transform 0.4s ease, color 0.4s ease;
}
.tech-icons i:hover {
  transform: scale(1.2) rotate(5deg);
  color: #d4ff66;
}


/* Light Mode Toggle */
  background: #f7f7f7;
  color: #111;
}
  background: #eaeaea;
}
  color: #000 !important;
  color: #111;
  background: #d4ff66;
  
}
  background: #fff;
  color: #111;
}
  background: #eaeaea;
  color: #333;
}


/* Section Title Animation */
.animated-title {
  display: inline-block;
  position: relative;
  animation: flicker 1.5s infinite alternate;
}
@keyframes flicker {
  0% { opacity: 1;  }
  50% { opacity: 0.85;  }
  100% { opacity: 1;  }
}


/* Custom Cursor */
body, a, button {
  cursor: url('https://cur.cursors-4u.net/games/gam-13/gam1242.cur'), auto;
}

/* Cinematic Intro */
.intro-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  color: #a4ff00;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  animation: fadeout 3s forwards 2.5s;
}
@keyframes fadeout {
  to { opacity: 0; visibility: hidden; }
}


/* Achievement Toast */
.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #000;
  color: #a4ff00;
  text-align: center;
  border-radius: 8px;
  padding: 1rem;
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.toast.show {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}


.logo .tagline {
  font-size: 0.75rem;
  color: #a4ff00;
  margin-left: 0.4rem;
  letter-spacing: 1px;
  font-weight: 500;
}


/* Skip Link Accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: absolute;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: #a4ff00;
  color: #000;
  font-weight: bold;
  z-index: 10000;
}

/* Last Updated */
.last-updated {
  font-size: 0.75rem;
  color: #777;
  margin-top: 1rem;
}

:focus {
  outline: 3px solid #6fcf97;
  outline-offset: 2px;
}


/* Force all buttons and hover states to use accessible dark green */



.button {
  background-color: #00ff88;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #00cc6f;
}

/* Unified text color for major elements */
h1, h2, h3, h4, h5, h6, .section-title, .project-title, a:not(.button) {
  color: #00ff88;
}

a:not(.button):hover {
  color: #00cc6f;
}

/* Style for major headings and section titles */
h1, h2, h3, .section-title {
  color: #00ff88;
  font-weight: 700;
  transition: color 0.3s ease;
}
h1:hover, h2:hover, h3:hover, .section-title:hover {
  color: #00cc6f;
}
