/* Base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  width: 100%;
  min-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 100%;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #f5f5f5;
  overflow-x: hidden;
}

/* =========================
   Typography
========================= */

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1.2;
  background: linear-gradient(90deg, #ff7034, #ffb534);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1.3;
  background: linear-gradient(90deg, #ff7034, #ffb534);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

h3, h4 {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(90deg, #ff7034, #ffb534);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-weight: 500;
}

body, p, li, span {
  font-family: 'Roboto', sans-serif;
  font-weight: 400;
  color: #ccc;
  line-height: 1.6;
}

p strong, span.highlight {
  font-weight: 500;
  color: #ff7034; 
}

.button, .cta {
  font-family: 'Fredoka One', cursive;
  font-weight: 400;
  color: #fff;
  background: #ff7034;
  padding: 0.7rem 1.5rem;
  border-radius: 12px;
  text-decoration: none;
  display: inline-block;
  transition: transform 0.2s;
}

.button:hover, .cta:hover {
  transform: translateY(-3px);
}

 /* =========================
   Navigation
========================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .5rem 3rem; 
  background-color: #1e1e1e;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 2px solid #ff7034;
  background-image: linear-gradient(to right, #1e1e1e, #2a2a2a);
  background-clip: padding-box;
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.logo img {
  height: 80px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem; 
}

.nav-links a {
  text-decoration: none;
  color: #f5f5f5;
  font-size: 1.2rem;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #ff7034;
}

/* Dropdown parent */
.dropdown {
  position: relative;
}

/* Dropdown menu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;          
  left: 50%;          
  transform: translateX(-50%); 
  background-color: #1e1e1e;
  padding: 0.5rem 0;
  border-radius: 4px;
  min-width: 220px;
  z-index: 1000;
  list-style: none;
}


.dropdown:hover .dropdown-content,
.dropdown-content:hover {
  display: block;
}

/* Dropdown links */
.dropdown-content li {
  padding: 0.5rem 1rem;
}

.dropdown-content li a {
  display: block;
  padding: 0.5rem 1rem;
  color: #f5f5f5;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

/* Highlight hovered item */
.dropdown-content li a:hover {
  background-color: #ff7034; 
  color: #121212; 
}

/* =========================
    Hero Section
========================= */
body.landing-page {
  background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
  background-attachment: fixed; /* Keep background fixed */
  background-size: cover; /* Cover entire viewport */
  padding-bottom: 170px; 
  min-height: 100vh; /* Ensure full height */
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 350px); /* Increased from 200px to give more space */
  height: auto;
  width: 100%;
  margin: 0 auto;
  padding: 2rem;
  padding-top: 120px; /* Add top padding to clear the navbar */
  padding-bottom: 6rem; /* Add extra padding at bottom */
  text-align: center;
  background: transparent;
  position: relative;
  overflow: visible;
}

/* Floating shapes */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  z-index: 0;
}

.hero::before {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,112,52,0.2) 0%, transparent 70%);
  top: -100px;
  left: -100px;
  animation: float 6s ease-in-out infinite alternate;
}

.hero::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,181,52,0.15) 0%, transparent 70%);
  bottom: -80px;
  right: -50px;
  animation: float 8s ease-in-out infinite alternate-reverse;
}

@keyframes float {
  0% { transform: translateY(0) translateX(0); }
  100% { transform: translateY(20px) translateX(20px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
  width: 100%; /* Ensure full width */
  max-width: 100%; /* Prevent overflow */
  text-align: center; /* Center text */
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 200;
}

.highlight {
  background: linear-gradient(90deg, #ff7034, #ffb534);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.5rem;
  color: #ccc;
}

/* =========================
    Particle Canvas
========================= */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* =========================
    Horse Game Section
========================= */

.horse-game {
  position: fixed;   
  bottom: 0;        
  left: 0;
  right: 0;
  width: 100%;
  height: 200px;
  text-align: center;
  background: transparent;
  z-index: 999;
  overflow: visible;
}

/* Game area */
#game-area {
  position: relative;
  width: 100%;
  height: 100%;
  font-family: monospace;
  color: #ff7034;
  overflow: hidden;
  background: transparent;
}

/* Horse */
#horse {
  position: absolute;
  bottom: 4px; 
  left: 10px;
  font-family: monospace;
  font-size: 4px;
  line-height: 1.2;
  z-index: 2;
  white-space: pre;
  background: transparent;
   display: block !important;
  visibility: visible !important;
  color: #ff7034 !important;
  opacity: 1 !important;
}

#obstacles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.instructions {
 display: none;
}

/* Ground line */
#game-area .ground {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, #ff7034 0%, #ffb534 100%);
  z-index: 1;
}

.horse-game-ui {
  position: absolute;
  bottom: 300px; /* Moved down from 210px - much closer to horse game */
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 1000;
  color: #ffb534;
}

#start-game-btn {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  background: #1a1a1a;
  border: 2px solid #ff7034;
  border-radius: 6px;
  color: #ff7034;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  margin-bottom: 0.5rem;
}

#start-game-btn:hover {
  background: #ff7034;
  color: #121212;
}

#current-score,
#best-score {
  font-size: 1rem;
  color: #ffb534;
  margin-top: 0.3rem;
}

@media (max-width: 1024px) {
  .hero {
    min-height: calc(100vh - 400px); /* Even more space on tablet */
  }
  
  .hero-content h1 {
    font-size: 2.5rem; /* Slightly smaller title */
  }
  
  .horse-game-ui {
    bottom: 160px; /* Move button higher */
  }
  
  .instructions {
    bottom: 190px; /* Move instructions higher */
  }
}

/* =========================
   Project Page Sections
========================= */

/* Hero / Video Banner */
.project-hero {
  position: relative;
  width: 100%;
  height: 80vh; 
  overflow: hidden;
}

.project-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero .hero-overlay {
  position: absolute;
  top: 0;
  left: 0; 
  width: 30%; 
  height: 100%;
  background: rgba(0, 0, 0, 0.6); 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
  box-sizing: border-box;
  text-align: left; 
}

.project-hero .hero-overlay h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  color: #ff7034;
}

.project-hero .hero-overlay p {
  font-size: 1.2rem;
  max-width: 90%;
  margin: 0;
  color: #ccc;
}


/* Info Section */
.project-info {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1100px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.project-summary {
  background-color: #2a1e0e;
  border-left: 5px solid #ff7034;
  padding: 1.5rem;
  flex: 1 1 300px;
  min-width: 500px;
  color: #f5f5f5;
}

.project-summary h2 {
  color: #ff7034;
  margin-bottom: 0.5rem;
}

.project-details {
  flex: 2 1 400px;
  min-width: 300px;
  color: #f5f5f5;
}

.project-details h2 {
  color: #ff7034;
  margin-bottom: 0.5rem;
}


.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 2px solid #ff7034;
  border-radius: 6px;
  color: #ff7034;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s, color 0.3s;
}

.project-link img {
  width: 24px;
  height: 24px;
}

.project-link:hover {
  background: #ff7034;
  color: #121212;
}


/* Gallery Section */
.project-gallery {
  padding: 2rem;
  max-width: 1000px;
  margin: 4rem auto;
}

.project-gallery h2 {
  text-align: center;
  color: #ff7034;
  margin-bottom: 1rem;
}

.project-gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 1rem;
}

.project-gallery .gallery-grid img {
  width: 100%;
  border-radius: 8px;
  border: 2px solid #ff7034;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-gallery .gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 112, 52, 0.7);
}

/* Tools / Icons Section */
.project-tools {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 0 2rem;
  text-align: center;
}

.project-tools h2 {
  color: #ff7034;
  margin-bottom: 1rem;
}

.project-tools .tools-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.project-tools .tools-icons .tool {
  position: relative;
  display: inline-block;
}

.project-tools .tools-icons img {
  width: 40px;
  height: 40px;
  transition: transform 0.3s;
  cursor: pointer;
}

.project-tools .tools-icons img:hover {
  transform: scale(1.2);
}

/* Tooltip on hover */
.project-tools .tools-icons .tool span {
  visibility: hidden;
  width: max-content;
  background-color: #ff7034;
  color: #121212;
  text-align: center;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-size: 0.8rem;
  white-space: nowrap;
}

.project-tools .tools-icons .tool:hover span {
  visibility: visible;
}

.lightbox-overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background-color: rgba(0,0,0,0.9);
  display:flex;
  justify-content:center;
  align-items:center;
  opacity:0;
  pointer-events:none;
  transition: opacity 0.4s ease;
  z-index:2000;
}

.lightbox-overlay.active {
  opacity:1;
  pointer-events:auto;
}

.lightbox-content {
  position: relative;
  max-width: 900px;
  max-height: 90%;
  width: 80%;
  overflow: visible;
}

.lightbox-img {
  max-width: 100%;
  max-height: 80vh;
  border: 4px solid #ff7034;
  border-radius: 8px;
  position: relative;
  transform: translateX(0) scale(1);
  transition: transform 0.5s ease, opacity 0.5s ease;
  opacity: 1;
}

/* Slide animations */
.lightbox-img.slide-out-left {
  transform: translateX(-120%) scale(0.8);
  opacity: 0;
}

.lightbox-img.slide-out-right {
  transform: translateX(120%) scale(0.8);
  opacity: 0;
}

.lightbox-img.slide-in-left {
  transform: translateX(-120%) scale(0.8);
  opacity: 0;
}

.lightbox-img.slide-in-right {
  transform: translateX(120%) scale(0.6);
  opacity: 0;
}


.lightbox-prev, .lightbox-next {
  position:absolute;
  top:50%;
  font-size:2rem;
  color:#ff7034;
  cursor:pointer;
  user-select:none;
  z-index:10;
  transition: transform 0.2s ease;
}

.lightbox-prev { left:-50px; transform:translateY(-50%) scale(1); }
.lightbox-next { right:-50px; transform:translateY(-50%) scale(1); }

.lightbox-prev:hover, .lightbox-next:hover {
  transform:translateY(-50%) scale(1.2); 
}

.lightbox-close {
  position:absolute;
  top:-50px;
  right:0;
  font-size:2rem;
  color:#ff7034;
  cursor:pointer;
  user-select:none;
  transition: transform 0.2s ease;
}

.lightbox-close:hover { transform: scale(1.2); }

/* =========================
    About Me Page Styles
========================= */

/* General Settings */
.about-container,
.values-grid,
.experience-grid,
.education-grid,
.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
}

/* =========================
    About Hero
========================= */
.about-hero {
  background: linear-gradient(to bottom, #1a1a1a, #2a2a2a);
  padding: 8rem 2rem 4rem;
}

.about-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.about-photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}

.about-text h1 {
  color: #ff7034;
  margin-bottom: 1rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.about-text p {
  color: #ccc;
  line-height: 1.6;
  font-size: 1rem;
}

/* =========================
    Skills Section
========================= */


.about-tools {
  text-align: left;
  padding: 6rem 2rem 4rem;
  display: flex;
  justify-content: center;
}

.skills-wrapper {
  max-width: 800px;
  width: 100%;
}

.about-tools h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: #ff7034;
  font-size: 2rem;
  font-weight: 700;
}

.skill-row {
  display: flex;
  gap: 4rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.skill-category-name {
  color: #ff7034;
  min-width: 140px;
  flex-shrink: 0;
  font-weight: 600;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
}

.tool {
  text-align: center;
  flex: 0 0 auto;
}

.tool img {
  width: 50px;
  height: 50px;
  margin-bottom: 0.3rem;
}

.tool p {
  font-size: 0.85rem;
  margin-bottom: 0.3rem;
  color: #fff;
  font-weight: 500;
}

.skill-dots {
  margin-top: 0.3rem;
}

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin: 0 1px;
  border-radius: 50%;
  background: #555;
}

.dot.filled {
  background: #ff7034;
}

/* =========================
    Values Section
========================= */
.about-values {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 2rem;
  text-align: center; 
}

.about-values h2 {
  color: #ff7034;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
  text-align: center; 
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  perspective: 1000px; 
  margin-top: 1.2rem;
}

.value-card {
  height: 250px; 
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.value-card:hover .card-inner {
  transform: rotateY(180deg);
}


.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 16px;
  backface-visibility: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
}


.card-front h3 {
  background: linear-gradient(90deg, #ff7034, #ffb534);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.3rem;
  font-weight: 700;
}


.card-back {
  transform: rotateY(180deg);
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* =========================
    Experience & Education
========================= */
.about-experience,
.about-education {
  max-width: 1000px;
  margin: 4rem auto;
  padding: 2rem;
}

.about-experience h2,
.about-education h2 {
  color: #ff7034;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  font-weight: 700;
}

.experience-grid,
.education-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.experience-card,
.education-card {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.experience-card:hover,
.education-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.5);
}

.experience-card h3,
.education-card h3 {
  background: linear-gradient(90deg, #ff7034, #ffb534);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.experience-card .date,
.education-card .date {
  color: #aaa;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  font-style: italic;
}

.experience-card p,
.education-card p {
  color: #ddd;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =========================
    Contact Section
========================= */
.about-contact {
  text-align: center;
  padding: 4rem 2rem;
  background: #111;
}

.about-contact h2 {
  color: #ff7034;
  margin-bottom: 1rem;
  font-size: 2rem;
  font-weight: 700;
}

.about-contact p {
  color: #ccc;
  font-size: 1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  background: linear-gradient(145deg, #1e1e1e, #2a2a2a);
  padding: 1.4rem;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 20px rgba(0,0,0,0.5);
}

.contact-card img {
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
}

hr {
  border: none;      
  margin: 1.5rem 0;     
}


/* =========================
    Projects
========================= */

/* Page Title */
.projects-page {
  padding: 8rem 4rem 4rem 4rem; 
  background: #1a1a1a;
  color: #fff;
  text-align: center;
}

.projects-page h1 {
  font-size: 3rem;
  margin-bottom: 4rem;
}


.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  max-width: 1200px;   
  margin: 0 auto;
}


.project-card {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s;
}


.project-image {
  position: relative;
  overflow: hidden;
  border: 2px solid #ff7034;
  border-radius: 12px;
  width: 100%;
  max-width: 350px;
  height: 220px;                 
  transition: transform 0.3s, box-shadow 0.3s;
}


.project-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;            
  transition: transform 0.3s;
}


.project-image:hover img {
  transform: scale(1.08);
}

.project-image:hover {
  box-shadow: 0 0 25px #ff7034;
  transform: scale(1.05);
}

/* Hover Dark Overlay */
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  opacity: 0;
  transition: opacity 0.3s;
}

.project-image:hover::after {
  opacity: 1;
}

/* Bottom Fade Overlay */
.project-overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 0.8rem 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.2) 80%, transparent);
  color: #fff;
  font-size: 1rem;
  text-align: left;
  border-radius: 0 0 12px 12px;
  opacity: 0;                   
  transition: opacity 0.3s;
  z-index: 1;
}

/* Reveal overlay text on hover */
.project-image:hover .project-overlay {
  opacity: 1;
}

/* Project Title */
.project-title {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  color: #ffb534;
  text-align: center;
}


