/* =========================
   VARIABLES
========================= */
:root {
  --accent-blue: #3b82f6;
  --bg-dark: #0b0f19;
  --bg-secondary: #111827;
  --text-primary: #f5f5f5;
  --text-secondary: #cbd5e1;
}

/* =========================
   GLOBAL STYLES
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  scroll-behavior: smooth;
}

.section {
  padding: 80px 20px;
}

span {
  color: var(--accent-blue);
}

/* =========================
   REVEAL ANIMATIONS
========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

/* =========================
   HERO SECTION
========================= */
.hero {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #0b0f19, #111827);
  position: relative;
  overflow: hidden;
}

.hero-container {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 35px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-buttons .btn {
  margin: 10px;
  padding: 14px 28px;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.hero-buttons .btn.primary {
  background: var(--accent-blue);
  color: #fff;
}

.hero-buttons .btn.outline {
  border: 2px solid var(--accent-blue);
  color: var(--accent-blue);
}

.hero-buttons .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Floating shapes */
.hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.2;
  animation: float 6s infinite ease-in-out;
}

.shape-1 { width: 100px; height: 100px; background: var(--accent-blue); top: 10%; left: 15%; }
.shape-2 { width: 150px; height: 150px; background: #3b82f660; bottom: 15%; right: 10%; }
.shape-3 { width: 80px; height: 80px; background: #60a5fa50; top: 50%; left: 70%; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(10px);
  z-index: 999;
  transition: all 1s ease;
}

.navbar.scrolled { background: rgba(11, 15, 25, 0.95); padding: 12px 50px; }

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  list-style: none;
}

.nav-links li { margin-left: 25px; }

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
  transition: 0.3s;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--accent-blue);
  transition: width 0.3s;
  position: absolute;
  bottom: 0;
  left: 0;
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* Hamburger menu for mobile */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 200px;
    flex-direction: column;
    background: var(--bg-secondary);
    height: calc(100% - 70px);
    padding-top: 20px;
    transition: right 0.3s ease;
  }

  .nav-links.show { right: 0; }

  .nav-links li { margin: 15px 0; text-align: center; }
  .hamburger { display: flex; }
}

/* =========================
   ABOUT SECTION
========================= */
.about-section {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-secondary));
}

.about-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 50px;
  background: rgba(17, 24, 39, 0.9);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.about-container h2 { font-size: 2.2rem; margin-bottom: 10px; text-align: center; }
.about-line { width: 70px; height: 4px; background: var(--accent-blue); margin: 0 auto 30px auto; border-radius: 2px; }
.about-container p { font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); margin-bottom: 20px; }
.about-container p strong { color: var(--text-primary); }

/* =========================
   SKILLS SECTION
========================= */
.skills-section { background: var(--bg-secondary); }

.skills-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px;
  text-align: center;
}

.skills-container h2 { font-size: 2.2rem; margin-bottom: 10px; }
.skills-line { width: 70px; height: 4px; background: var(--accent-blue); margin: 0 auto 40px auto; border-radius: 2px; }

.skills-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 50px;
}

.skills-group h3 { margin-bottom: 20px; color: var(--text-primary); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 20px; }
.skill-card {
  padding: 18px;
  background: #1f2933;
  border-radius: 12px;
  font-weight: 500;
  transition: 0.3s ease;
  cursor: default;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.45);
}

/* =========================
   PROJECTS SECTION
========================= */
.projects-section { text-align: center; padding: 60px 20px; }
.projects-line { width: 70px; height: 4px; background: var(--accent-blue); margin: 0 auto 40px auto; border-radius: 2px; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); /* smaller cards */
  gap: 20px;
  margin-top: 40px;
}

.project-card {
  background: #1f2933;
  border-radius: 12px;
  max-width: 350px;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  font-size: 0.8rem;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

.project-image { position: relative; overflow: hidden; }
.project-image img { width: 100%; max-height: 200px; object-fit: cover; transition: transform 0.4s ease; }
.project-card:hover .project-image img { transform: scale(1.05); }

.overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(59, 130, 246, 0.6);
  opacity: 0; display: flex; justify-content: center; align-items: center;
  transition: opacity 0.3s ease;
}

.project-card:hover .overlay { opacity: 1; }

.overlay-buttons { display: flex; gap: 12px; }
.overlay-btn { padding: 6px 10px; font-size: 0.7rem; border-radius: 6px; text-decoration: none; color: #fff; background: rgba(17, 24, 39, 0.85); transition: transform 0.2s, background 0.3s; }
.overlay-btn:hover { transform: translateY(-3px); background: var(--accent-blue); }

.project-card h3 { margin: 8px 0 4px; font-size: 0.9rem; color: var(--text-primary); }
.project-card p { color: var(--text-secondary); font-size: 0.75rem; padding: 0 6px 10px; }

/* =========================
   CONTACT SECTION
========================= */
.contact-section {
  background: linear-gradient(180deg, var(--bg-secondary), var(--bg-dark));
}

.contact-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 70px 50px;
  background: rgba(17, 24, 39, 0.95);
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
}

.contact-container h2 { font-size: 2.2rem; margin-bottom: 10px; }
.contact-line { width: 70px; height: 4px; background: var(--accent-blue); margin: 0 auto 25px auto; border-radius: 2px; }
.contact-text { color: var(--text-secondary); margin-bottom: 40px; line-height: 1.7; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 14px 16px; background: #1f2933; border: 1px solid transparent;
  border-radius: 10px; color: var(--text-primary); font-size: 0.95rem; outline: none;
  transition: 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-blue); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.btn.full { width: 100%; margin-top: 10px; font-size: 1rem; }

.contact-links { margin-top: 35px; font-size: 0.9rem; color: var(--text-secondary); }
.contact-links a { color: var(--accent-blue); text-decoration: none; }
.contact-links span { margin: 0 10px; }

/* =========================
   FOOTER
========================= */
.footer {
  background: #060914;
  padding-top: 60px;
  margin-top: 100px;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  text-align: center;
}

.footer-brand h3 { font-size: 1.5rem; margin-bottom: 10px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.95rem; }

.footer-links a,
.footer-social a { display: block; margin: 8px 0; color: var(--text-secondary); text-decoration: none; transition: 0.3s; }
.footer-links a:hover,
.footer-social a:hover { color: var(--accent-blue); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 20px; text-align: center; color: var(--text-secondary); font-size: 0.85rem;
}

/* =========================
   MEDIA QUERIES
========================= */
@media (max-width: 768px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-buttons .btn { font-size: 0.9rem; padding: 12px 22px; }

  .about-container { padding: 40px 25px; }
  .about-container h2 { font-size: 1.8rem; }

  .skills-container { padding: 50px 20px; }
  .projects-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 15px; }
  .project-image img { max-height: 100px; }
  .contact-container { padding: 50px 25px; }
  .contact-container h2 { font-size: 1.8rem; }
}
