/* General */
* { margin:0; padding:0; box-sizing:border-box; }
body { 
  font-family: 'Inter', sans-serif; 
  background:#0a0a0a; /* Slightly deeper black for contrast */
  color:#e0e0e0; /* Softer white for text */
  scroll-behavior: smooth; 
  line-height: 1.7;
}

/* Accent Color */
:root {
  --accent: #64ffda; /* Modern teal accent – change if you prefer purple (#a78bfa) or blue (#60a5fa) */
}

/* Navbar */
nav {
  position: fixed;
  top:0; left:0;
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:24px 48px; /* More breathing room */
  background: rgba(10,10,10,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); /* Safari support */
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: all 0.4s ease;
}
nav.scrolled { background: rgba(10,10,10,0.9); } /* Optional: darker on scroll (add JS if wanted) */

nav h1 { 
  font-size:22px; 
  font-weight:600;
  letter-spacing:1px;
}
nav .links a {
  margin-left:32px;
  text-decoration:none;
  color:#b0b0b0;
  font-weight:500;
  position:relative;
  transition: color 0.3s ease;
}
nav .links a::after {
  content:'';
  position:absolute;
  bottom:-6px; left:0;
  width:0;
  height:2px;
  background:var(--accent);
  transition: width 0.3s ease;
}
nav .links a:hover {
  color:#fff;
}
nav .links a:hover::after {
  width:100%;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:0 24px;
}
.hero h2 { 
  font-size:60px; 
  font-weight:700;
  margin-bottom:16px;
  letter-spacing:-1px;
}
.hero p { 
  font-size:20px; 
  opacity:0.8; 
  max-width:700px;
}

/* Sections */
.section { 
  padding:140px 48px; 
  max-width:1100px; 
  margin:auto; 
}
.section h3 { 
  font-size:38px; 
  margin-bottom:48px; 
  font-weight:600;
  position:relative;
}
.section h3::after {
  content:'';
  position:absolute;
  bottom:-12px; left:0;
  width:60px;
  height:3px;
  background:var(--accent);
}
.section p { 
  font-size:18px; 
  opacity:0.85; 
}

/* Projects Grid */
.projects {
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:32px;
  margin-top:32px;
}
.card {
  background:#181818;
  padding:32px;
  border-radius:20px;
  transition: all 0.4s ease;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.card:hover {
  background:#202020;
  transform:translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: var(--accent);
}

/* Footer */
footer {
  text-align:center;
  padding:80px 24px;
  opacity:0.6;
  font-size:15px;
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 48px;
  margin-top: 40px;
}

.skill-group {
  width: 100%;
}

.skill-category-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 8px;
}

.skill-category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Optional: Make the inner grids responsive */
.skill-group .projects {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity:0; transform:translateY(30px); }
  to { opacity:1; transform:translateY(0); }
}
.hero, .section {
  animation: fadeIn 1.2s ease-out forwards;
}

/* Responsive */
@media (max-width:768px){
  .hero h2 { font-size:44px; }
  nav { padding:20px 24px; flex-direction:column; align-items:flex-start; }
  nav .links { margin-top:16px; }
  nav .links a { margin-left:0; margin-right:24px; }
  .section { padding:100px 24px; }
}

/* Tablet and below */
@media (max-width: 1024px) {
  nav {
    padding: 20px 32px;
  }
  
  .section {
    padding: 120px 32px;
  }
  
  .hero h2 {
    font-size: 50px;
  }
  
  .projects {
    grid-template-columns: 1fr; /* Single column on tablets for better readability */
    gap: 28px;
  }
}

/* Phone (small screens) */
@media (max-width: 768px) {
  nav {
    padding: 18px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  nav h1 {
    font-size: 20px;
  }
  
  nav .links {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  nav .links a {
    margin-left: 0;
    font-size: 15px;
  }
  
  .hero {
    padding: 0 24px;
    justify-content: center;
  }
  
  .hero h2 {
    font-size: 42px;
    letter-spacing: -0.5px;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section {
    padding: 100px 24px;
  }
  
  .section h3 {
    font-size: 32px;
    margin-bottom: 40px;
  }
  
  .section h3::after {
    width: 50px;
  }
  
  .section p {
    font-size: 17px;
  }
  
  .projects {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
  
  .card {
    padding: 28px;
  }
  
  footer {
    padding: 70px 24px;
    font-size: 14px;
  }
}

/* Very small phones */
@media (max-width: 480px) {
  nav {
    padding: 16px 20px;
  }
  
  nav .links {
    gap: 16px;
  }
  
  nav .links a {
    font-size: 14.5px;
  }
  
  .hero {
    padding: 0 20px;
  }
  
  .hero h2 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 17px;
  }
  
  .section {
    padding: 90px 20px;
  }
  
  .section h3 {
    font-size: 30px;
  }
  
  .card {
    padding: 24px;
    border-radius: 16px;
  }
  
  footer {
    padding: 60px 20px;
  }
}