:root {
  --bg: #0d0d0d;
  --card-bg: #1a1a1a;
  --primary: #00ffcc;
  --accent: #ff00ff;
  --text: #e0e0e0;
  --shadow: rgba(0, 255, 204, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  display: flex;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Roboto', sans-serif;
  scroll-behavior: smooth;
}

/* Toggle Button */
.toggle-btn {
  position: fixed; top: 15px; left: 15px;
  background: var(--primary); color: #121212;
  padding: 10px 12px; border: none; border-radius: 6px;
  font-size: 1.4em; z-index: 1000; cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
}

/* Sidebar */
.sidebar {
  width: 240px; height: 100vh;
  background-color: var(--card-bg); color: var(--text);
  padding: 30px 20px; position: fixed;
  display: flex; flex-direction: column; gap: 80px;
  box-shadow: 2px 0 12px var(--shadow); z-index: 999;
  transition: width 0.3s ease;
}
.sidebar-header { font-size: 1.6em; font-weight: bold; color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.sidebar-links { list-style: none; display: flex; flex-direction: column; gap: 40px; }
.sidebar-links li a { color: var(--accent); text-decoration: none; font-size: 1.1em; transition: 0.2s; }
.sidebar-links li a:hover { color: var(--primary); text-shadow: 0 0 6px var(--primary); }
.sidebar.collapsed { width: 60px; align-items: center; padding: 20px 10px; }
.sidebar.collapsed .sidebar-title { display: none; }
.sidebar.collapsed .sidebar-links li a { font-size: 0; position: relative; }
.sidebar.collapsed .sidebar-links li::before { content: '•'; color: var(--accent); font-size: 1.4em; }

/* Main Content */
.main-content { margin-left: 240px; padding: 40px; width: 100%; transition: margin-left 0.3s ease; }
.sidebar.collapsed + .main-content { margin-left: 60px; }
.card-container { background-color: var(--card-bg); padding: 30px; border-radius: 16px; margin-bottom: 40px; box-shadow: 0 0 20px var(--shadow); }

/* Sections */
.content-section { display: none; opacity: 0; transition: opacity 0.5s ease; }
.content-section.active { display: block; opacity: 1; }

/* Hero */
.hero-content { text-align: center; padding: 60px 20px; }
.hero-content h1 { font-size: 3em; color: var(--accent); text-shadow: 0 0 12px var(--accent); }
.hero-content p { font-size: 1.5em; margin: 20px 0; }
#typed-text { font-weight: bold; color: var(--primary); text-shadow: 0 0 8px var(--primary); }
#cursor { animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

/* About */
.about-container { display: flex; flex-direction: column; align-items: center; gap: 20px; text-align: center; }
.about-img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 4px solid var(--primary); box-shadow: 0 0 12px var(--primary); }
.about-text { max-width: 700px; font-size: 1.1em; line-height: 1.6; }

/* Skills */
.skills-list { display: flex; flex-direction: column; gap: 20px; max-width: 600px; margin: auto; }
.skill label { font-weight: bold; }
.skill-bar { background: #333; border-radius: 10px; overflow: hidden; height: 14px; }
.skill-bar .fill { background: var(--primary); height: 100%; transition: width 1s ease; box-shadow: 0 0 8px var(--primary); }

/* Projects */
.project-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.project-item { background-color: var(--card-bg); padding: 25px; border-radius: 12px; box-shadow: 0 0 14px var(--shadow); transition: 0.3s ease; }
.project-item:hover { transform: translateY(-5px); box-shadow: 0 0 24px var(--accent); }
.project-link, .btn { background: var(--primary); color: #121212; padding: 10px 20px; border-radius: 8px; text-decoration: none; font-weight: bold; margin-top: 10px; display: inline-block; box-shadow: 0 0 10px var(--primary); }
.project-link:hover, .btn:hover { background: var(--accent); color: #fff; box-shadow: 0 0 12px var(--accent); }

/* Contact */
#contact h2 { text-align: center; color: var(--accent); text-shadow: 0 0 8px var(--accent); }
.contact-info { margin-bottom: 20px; font-size: 1.1em; color: var(--text); text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.contact-info p { margin: 8px 0; }
.contact-form { display: flex; flex-direction: column; gap: 15px; max-width: 600px; margin: auto; }
.contact-form input, .contact-form textarea { padding: 12px; border-radius: 8px; background: #1a1a1a; border: 1px solid #333; color: var(--text); box-shadow: 0 0 8px var(--primary); }

/* Footer */
footer { text-align: center; padding: 30px; background: var(--card-bg); color: var(--text); border-radius: 12px; box-shadow: 0 0 10px var(--accent); }

/* Responsive */
@media (max-width: 768px) {
  .sidebar { position: fixed; left: -100%; top: 0; height: 100%; z-index: 999; }
  .sidebar.open { left: 0; }
  .main-content { margin-left: 0; padding: 20px; }
}
