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

:root {
  --bg-color: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  --text-color: #e4e4e4;
  --accent-color: #00f7ff; /* neon cyan */
  --card-gradient: linear-gradient(135deg, #1c1c1c, #2b2b2b);
  --highlight: linear-gradient(90deg, #00f7ff, #7a00ff); /* cyan → purple */
}

body.dark {
  --bg-color: linear-gradient(135deg, #000000, #1a1a1a, #262626);
  --text-color: #f5f5f5;
  --card-gradient: linear-gradient(135deg, #141414, #1f1f1f);
}

body {
  font-family: 'Segoe UI', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  background: var(--card-gradient);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
  border-bottom: 1px solid rgba(0, 247, 255, 0.2);
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  background: var(--highlight);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.nav-links li a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links li a:hover {
  color: #00f7ff;
}

.theme-toggle {
  background: none;
  font-size: 1.4rem;
  border: none;
  cursor: pointer;
  color: var(--accent-color);
}

/* Hero Section */
.hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 5%;
  background: var(--card-gradient);
  border-radius: 20px;
  margin: 2rem 5%;
  box-shadow: 0 2px 20px rgba(0,0,0,0.6);
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 2.2rem;
  background: var(--highlight);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-image {
  flex-shrink: 0;
}

.hero-image img {
  width: 260px;
  border-radius: 15px;
  border: 3px solid var(--accent-color);
  box-shadow: 0 0 25px rgba(0, 247, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(122, 0, 255, 0.6);
}

/* Sections */
section {
  padding: 3rem 5%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

h2 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  background: var(--highlight);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.skills-list span {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--highlight);
  color: #fff;
  border-radius: 8px;
  margin: 0.3rem;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.skills-list span:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.6);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--card-gradient);
  padding: 1.2rem;
  border-radius: 15px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 247, 255, 0.7);
}

/* Contact */
#contact a {
  color: var(--accent-color);
  text-decoration: none;
}

.contact-list li {
  margin-bottom: 12px;
  font-size: 18px;
}

.contact-list i {
  margin-right: 8px;
  color: #00f7ff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--card-gradient);
  color: var(--text-color);
  font-size: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    text-align: center;
  }
  .hero-image {
    margin-top: 20px;
  }
  .nav-links {
    flex-direction: column;
    gap: 0.8rem;
  }
  h1, h2, h3 {
    font-size: 90%;
  }
  .contact-list {
    font-size: 14px;
  }
}

/* Section with glowing gradient border only */
section {
  position: relative;
  background: rgba(20, 20, 20, 0.95); /* clean dark background inside */
  border-radius: 16px;
  padding: 25px;
  margin: 25px 0;
  overflow: hidden;
  z-index: 1;
  transition: all 0.4s ease;
}

/* Gradient border effect */
section::before {
  content: "";
  position: absolute;
  inset: 0; /* cover whole section */
  padding: 2px; /* thickness of glowing border */
  border-radius: 16px;
  background: linear-gradient(120deg, #00f7ff, #00ffe7, #008cff, #00f7ff);
  background-size: 300% 300%;
  animation: borderGlow 6s linear infinite;
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0); /* keep inside transparent */
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  z-index: -1;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

html {
  scroll-behavior: smooth;
}

section {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}
section.show {
  opacity: 1;
  transform: translateY(0);
}
