/* --- Global Styles & Variables --- */
:root {
  /* Neon Cyan / Dark Theme */
  --bg-color: #020a13;
  /* Almost black blue */
  --bg-secondary: #0b1622;
  /* Slightly lighter for cards */
  --primary-color: #00f0ff;
  /* Neon Cyan */
  --secondary-accent: #0077b6;
  /* Darker blue for depth */
  --text-color: #ccd6f6;
  /* White-ish text */
  --text-muted: #8892b0;
  /* Muted grey/blue text */
  --white: #ffffff;
  --transition: all 0.3s ease;
}

/* --- Fix for Browser Autofill Background --- */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0px 1000px var(--bg-secondary) inset !important;
  -webkit-text-fill-color: var(--white) !important;
  border: 1px solid var(--primary-color) !important;
  transition: background-color 5000s ease-in-out 0s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  background-color: var(--bg-color);
  color: var(--text-color);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
  background: var(--secondary-accent);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-color);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Buttons with Cyan Glow --- */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--primary-color);
  padding: 10px 30px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  margin-top: 20px;
  transition: var(--transition);
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: var(--primary-color);
  color: var(--bg-color);
  box-shadow: 0 0 20px var(--primary-color);
  transform: translateY(-3px);
}

.btn-small {
  text-decoration: none;
  display: inline-block;
  font-size: 0.8rem;
  padding: 5px 15px;
  color: var(--primary-color);
  transition: var(--transition);
  font-weight: 600;
}

.btn-small:hover {
  border-bottom: 1px solid var(--primary-color);
  color: var(--secondary-accent);
}

/* --- Header --- */
header {
  background: rgba(2, 10, 19, 0.9);
  backdrop-filter: blur(10px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
}

.logo span {
  color: var(--primary-color);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}

.nav-links {
  display: flex;
}

.nav-links li {
  margin-left: 30px;
}

.nav-links a {
  color: var(--text-color);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--white);
}

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 70% 50%, rgba(0, 240, 255, 0.05) 0%, var(--bg-color) 60%);
  padding-top: 70px;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.hero-content {
  flex: 1;
}

.hero-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.hero-content h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin: 10px 0;
  color: var(--white);
  letter-spacing: -1px;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.hero-content .typewriter {
  color: var(--secondary-accent);
  font-weight: bold;
}

.social-icons a {
  font-size: 1.8rem;
  margin-right: 20px;
  color: var(--text-muted);
  transition: var(--transition);
}

.social-icons a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
  text-shadow: 0 0 10px var(--primary-color);
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

/* --- General Section Styles --- */
.section {
  padding: 100px 0;
}

.bg-light {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: var(--white);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  border-radius: 2px;
}

/* --- About & Skills --- */
.about-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-muted);
}

.about-content p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.highlight {
  color: var(--primary-color);
  font-weight: 600;
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.3);
}

.skills {
  margin-top: 40px;
}

.skill-tag {
  display: inline-block;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 8px 20px;
  border-radius: 4px;
  margin: 8px;
  font-weight: 500;
  transition: var(--transition);
}

.skill-tag:hover {
  background: rgba(0, 240, 255, 0.2);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.project-card {
  background: rgba(2, 10, 19, 0.8);
  border: 1px solid rgba(0, 240, 255, 0.2);
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.card-image {
  width: 100%;
  height: 350px;
  position: relative;
  overflow: hidden;
  background: #000;
  border-bottom: 1px solid rgba(0, 240, 255, 0.1);
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
  opacity: 0.8;
}

.project-card:hover .card-image img {
  opacity: 1;
}

/* Corner Design HUD UI  */
.corner-design {
  position: absolute;
  width: 30px;
  height: 30px;
  background: #0c0a0b;
  z-index: 10;
  border: 1px solid rgba(0, 255, 255, 0.2);
  pointer-events: none;
}

.top-left {
  top: 0;
  left: 0;
  border-radius: 0 0 20px 0;
}

.top-right {
  top: 0;
  right: 0;
  border-radius: 0 0 0 20px;
}

.bottom-left {
  bottom: 0;
  left: 0;
  border-radius: 0 20px 0 0;
}

.bottom-right {
  bottom: 0;
  right: 0;
  border-radius: 20px 0 0 0;
}

.card-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-info h3 {
  color: var(--primary-color);
  font-family: "Courier New", monospace;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.card-info p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.card-tags {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag-tiny {
  font-size: 0.7rem;
  padding: 2px 8px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  background: rgba(0, 240, 255, 0.05);
  border-radius: 3px;
}

.card-btns {
  display: flex;
  gap: 15px;
}

/* --- Contact --- */
.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  resize: none;
  padding: 15px;
  margin-bottom: 20px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  color: var(--white);
  font-size: 1rem;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* --- Footer --- */
footer {
  background: var(--bg-color);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  text-align: center;
  padding: 30px 0;
}

.visual-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-image {
    justify-content: center;
    margin-bottom: 40px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    height: 100vh;
    background: var(--bg-color);
    flex-direction: column;
    width: 100%;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease-in;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-links.active {
    transform: translateX(0%);
  }

  .nav-links li {
    margin: 20px 0;
  }

  .hamburger {
    display: block;
  }
}

/* --- Modal Overlay --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 10, 19, 0.85);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-content {
  background: var(--bg-secondary);
  border: 1px solid var(--primary-color);
  padding: 40px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  animation: modalSlide 0.4s ease-out;
}

@keyframes modalSlide {
  from {
    transform: translateY(20px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.status-dot {
  width: 10px;
  height: 10px;
  background: #00ff00;
  border-radius: 50%;
  box-shadow: 0 0 8px #00ff00;
}

.modal-content h3 {
  color: var(--white);
  letter-spacing: 1px;
}

.modal-content p {
  color: var(--text-muted);
  margin-bottom: 25px;
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 3000;
}

.toast {
  background: var(--bg-secondary);
  color: var(--primary-color);
  border-left: 4px solid var(--primary-color);
  padding: 15px 25px;
  margin-top: 10px;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Courier New", monospace;
  font-weight: bold;
  font-size: 0.9rem;
  text-transform: uppercase;
  animation: toastSlideIn 0.3s ease forwards, toastFadeOut 0.5s ease 3s forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastFadeOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}