/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&family=Rubik&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  background: radial-gradient(circle at top left, #1e1e2f, #000000);
  color: white;
  scroll-behavior: smooth;
  transition: background 0.5s, color 0.5s;
  overflow-x: hidden;
}

body.light-mode {
  background: #f4f4f4;
  color: #111;
}

header {
  padding: 2rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 0 20px rgba(0, 255, 224, 0.1);
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.2rem;
  color: #00ffe0;
  text-shadow: 0 0 15px #00ffe0;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

nav a {
  text-decoration: none;
  color: inherit;
  position: relative;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  transition: 0.3s;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background: #00ffe0;
  left: 0;
  bottom: -4px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.theme-toggle {
  margin-left: 1rem;
  padding: 0.5rem 1rem;
  border: none;
  background: #00ffe0;
  color: black;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 0 10px #00ffe0;
  transition: background 0.3s, transform 0.2s;
}

.theme-toggle:hover {
  background: #00ddc1;
  transform: scale(1.05);
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  padding: 2rem;
  animation: slideUp 1s ease-in-out forwards;
  background: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d') no-repeat center center / cover;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: -1;
}

@keyframes slideUp {
  0% { transform: translateY(100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  padding: 3rem;
  border-radius: 20px;
  max-width: 650px;
  box-shadow: 0 0 25px rgba(0, 255, 224, 0.2);
  transition: transform 0.3s ease;
}

.hero-card:hover {
  transform: scale(1.02);
}

.hero-card h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: #00ffe0;
  text-shadow: 0 0 10px #00ffe0;
}

.hero-card p {
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.6;
}

section {
  padding: 4rem 2rem;
  max-width: 900px;
  margin: auto;
  position: relative;
  animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s;
  box-shadow: 0 0 10px rgba(0, 255, 224, 0.1);
}

.project-card:hover {
  transform: scale(1.03);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

input, textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background: #1e1e2f;
  color: white;
}

input:focus, textarea:focus {
  outline: none;
  border-color: #00ffe0;
  box-shadow: 0 0 5px #00ffe0;
}

button[type="submit"] {
  padding: 0.8rem;
  background: #00ffe0;
  color: black;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
  box-shadow: 0 0 10px #00ffe0;
}

button[type="submit"]:hover {
  background: #00ddc1;
}

footer {
  text-align: center;
  padding: 2rem;
  color: #aaa;
  font-size: 0.9rem;
  background: #111;
  margin-top: 4rem;
  border-top: 1px solid #222;
}

@media(max-width: 600px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }
}

.tech-stack {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: auto;
    text-align: center;
  }
  
.tech-stack h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
    color: #00ffe0;
    text-shadow: 0 0 10px #00ffe0;
  }
  
.stack-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
  }
  
.stack-icons div {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s;
    box-shadow: 0 0 15px rgba(0, 255, 224, 0.05);
  }
  
  .stack-icons div:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 255, 224, 0.3);
}
  
.stack-icons img {
    max-width: 50px;
    max-height: 50px;
}
.about-me {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: auto;
    text-align: center;
}
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
  }
  
  .skill-card {
    perspective: 1000px;
  }
  
  .skill-card .front,
  .skill-card .back {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    backface-visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.6s;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .skill-card .back {
    transform: rotateY(180deg);
    font-size: 0.85rem;
    padding: 1.2rem;
    color: #00ffe0;
  }
  
  .skill-card {
    position: relative;
    width: 100%;
    height: 120px;
  }
  
  .skill-card:hover .front {
    transform: rotateY(180deg);
  }
  
  .skill-card:hover .back {
    transform: rotateY(0deg);
  }
  
  .skill-card .front {
    transform: rotateY(0deg);
    z-index: 2;
  }
  
  .skill-card .back {
    z-index: 1;
  }
.about-me {
    text-align: center;
    font-size: large;
}