/* Import Fonts */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Inter:wght@400;700&display=swap');

/* Variables */
:root {
  --bg: #fdfdfd;
  --fg: #111;
  --accent: #00aaff;
  --accent-light: rgba(0, 170, 255, 0.2);
  --btn-glow: #00d4ff;
}

[data-theme="dark"] {
  --bg: #121212;
  --fg: #eee;
  --accent: #4facfe;
  --accent-light: rgba(79, 172, 254, 0.2);
  --btn-glow: #00f2fe;
}

/* Global Settings */
* { margin:0; padding:0; box-sizing:border-box; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  transition: background .3s, color .3s;
}
a { color: var(--accent); text-decoration:none; }
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* Header */
.header {
  position: sticky;
  top:0; z-index:100;
  backdrop-filter: blur(10px);
  background: var(--bg)cc;
  padding: 15px 0;
  display:flex; align-items:center; justify-content: space-between;
}
.logo { height:50px; }
.nav ul { display:flex; gap:20px; }
.nav a { font-weight: bold; position: relative; }
.nav a.active::after {
  content: ''; position:absolute;
  width:100%; height:2px; background:var(--accent);
  bottom:-4px; left:0;
}

/* Theme toggle button */
.toggle-btn {
  background: none; border: none; cursor: pointer;
  font-size: 1.2rem; color: var(--fg);
}

/* Neon Background */
.neon-bg { position:fixed; inset:0; z-index:-1; overflow:hidden; }

/* Hero Section */
.hero {
  display:flex; flex-wrap: wrap; align-items:center;
  padding:80px 0;
}
.hero-text { flex:1; min-width:300px; }
.hero-text h2 {
  font-family:'Orbitron', sans-serif;
  font-size:2.8rem; color:var(--accent);
  position:relative;
}
.hero-text p { margin:20px 0; font-size:1.1rem; }
.btn-glow {
  display:inline-block; background:var(--accent); color:#fff;
  padding:12px 25px; border:none; border-radius:5px;
  box-shadow: 0 0 20px var(--btn-glow);
  transition: transform .2s, box-shadow .3s;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px var(--btn-glow);
}
.hero-img img {
  max-width:100%; border-radius:10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

/* Sections */
.section { padding:60px 0; }
.section h2 { text-align:center; margin-bottom:40px; font-family:'Orbitron'; color:var(--accent); }
.reveal {
  opacity:0; transform: translateY(30px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.reveal.show { opacity:1; transform: translateY(0); }

/* Services Grid */
.services-grid {
  display:flex; flex-wrap:wrap;
  justify-content: space-around;
  gap:30px;
}
.service-card {
  flex:1 1 260px; padding:20px;
  background: var(--bg);
  border-radius:10px;
  box-shadow: 0 0 15px var(--accent-light);
  text-align:center;
  transition: transform .3s;
}
.service-card i {
  font-size:2rem; color:var(--accent); margin-bottom:15px;
}
.service-card:hover { transform: translateY(-5px); }

/* Projects */
.project-grid {
  display:flex; flex-wrap:wrap;
  gap:30px; justify-content:center;
}
.project-card {
  flex:1 1 300px; border-radius:10px;
  overflow:hidden; background:#fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  transition: transform .3s;
}
.project-card img { width:100%; display:block; }
.project-card h3 {
  background: var(--accent);
  color:#fff;
  margin:0;
  padding:15px;
  font-family:'Orbitron';
}
.project-card p { padding:0 15px 15px; color:var(--fg); }
.project-card:hover { transform: translateY(-8px); }

/* Contact Form */
.contact-form {
  max-width:600px; margin:0 auto 40px;
  display:flex; flex-direction:column; gap:15px;
}
.contact-form input,
.contact-form textarea {
  padding:12px;
  border:2px solid var(--accent-light);
  border-radius:5px;
  background: var(--bg);
  color: var(--fg);
  transition: border-color .3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline:none; border-color:var(--accent);
}
.contact-info {
  text-align:center;
}
.contact-info i { color:var(--accent); margin-right:8px; }

/* Footer */
.footer {
  background: var(--bg);
  text-align:center;
  padding:20px 0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}
.footer .socials a {
  margin:0 8px; font-size:1.2rem; color:var(--accent);
}

/* Responsive */
@media (max-width:768px) {
  .hero { flex-direction: column; }
  .nav ul {
    flex-direction: column; background:var(--bg);
    position:absolute; top:70px; right:0; padding:10px;
    display:none;
  }
  .nav ul.show { display:flex; }
}

/* Glitch Text Animation */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  opacity: .8;
}
.glitch::before {
  animation: glitch-top 2s infinite linear alternate-reverse;
  clip-path: polygon(0 2%, 100% 2%, 100% 10%, 0 10%);
  color: #f0f;
}
.glitch::after {
  animation: glitch-bot 2s infinite linear alternate-reverse;
  clip-path: polygon(0 85%,100% 85%,100% 93%,0 93%);
  color: #0ff;
}
@keyframes glitch-top {
  0% { transform: translate(-2px, -2px); }
  100% { transform: translate(2px, 2px); }
}
@keyframes glitch-bot {
  0% { transform: translate(2px, 2px); }
  100% { transform: translate(-2px, -2px); }
}
