/* Base and Reset */
:root {
  --bg-color: #050505;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent-color: #39ff14;
  --border-color: #222222;
  --card-bg: #0a0a0a;
  --glass-bg: rgba(5, 5, 5, 0.85);
  
  --font-primary: 'Inter', sans-serif;
  --font-display: 'Outfit', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  cursor: none; /* Custom cursor */
}

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1 {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 0.5em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5em;
}

p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.highlight {
  color: var(--accent-color);
  display: inline-block;
  text-shadow: 0 0 15px rgba(57, 255, 20, 0.5);
}

.cert-badge {
  display: inline-block;
  padding: 0.3rem 1rem;
  background: var(--text-primary);
  color: var(--bg-color);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 2px;
  margin-right: 0.8rem;
  vertical-align: middle;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 9999;
  pointer-events: none;
}
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--text-primary);
}
.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(10, 10, 10, 0.4);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Container & Sections */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 8rem 0;
  position: relative;
}

.section-header {
  margin-bottom: 4rem;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-primary-sm {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  cursor: none;
}

.btn-primary-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.btn-primary, .btn-primary-sm {
  background-color: var(--accent-color);
  color: #000000;
  border: 1px solid var(--accent-color);
}
.btn-primary:hover, .btn-primary-sm:hover {
  background-color: transparent;
  color: var(--accent-color);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
  border-color: var(--accent-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
}
/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.nav-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-logo {
  height: 88px;  /* Increased size */
  width: auto;
  object-fit: contain;
  filter: invert(1);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.nav-links a:hover {
  color: var(--text-secondary);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 100px;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-profile-pic {
  max-width: 100%;
  width: 380px;
  height: 380px;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.15);
  transform: translateY(0);
  transition: all 0.5s ease;
}

.hero-profile-pic:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 50px rgba(57, 255, 20, 0.4);
  border-color: var(--accent-color);
}

.hero-subtitle {
  font-family: var(--font-primary);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.hero-bg-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(57,255,20,0.15) 0%, rgba(5,5,5,0) 70%);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  filter: blur(40px);
  animation: pulse 8s infinite alternate ease-in-out;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 3rem 2rem;
  border-radius: 10px;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 0, 0, 0.2);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.tech-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tech-stack li {
  padding: 0.3rem 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.skill-category {
  padding: 2rem;
  border-left: 1px solid var(--border-color);
  transition: border-color 0.4s ease;
}

.skill-category:hover {
  border-left-color: var(--text-primary);
}

.skill-category h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.skill-category p {
  font-size: 1rem;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 4rem;
  display: flex;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s ease;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--text-primary);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.project-card:hover::before {
  transform: scaleY(1);
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 2rem;
}

.project-link {
  display: inline-block;
  margin-top: 2rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  position: relative;
}

.project-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text-primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.project-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Projects CTA */
.projects-cta {
  text-align: center;
  margin-top: 3rem;
}

/* Contact */
.contact-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 5rem 3rem;
  border-radius: 10px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.contact-card p {
  margin: 0 auto 3rem auto;
}

.contact-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.5s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 4rem;
    gap: 2rem;
  }
  .hero-content {
    align-items: center;
    text-align: center;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-profile-pic {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 768px) {
  .nav-links {
      display: none;
  }
  .hero-actions {
      flex-direction: column;
      width: 100%;
  }
  .hero-actions a {
      width: 100%;
  }
  .project-card {
      padding: 2rem;
  }
  html {
     cursor: auto;
  }
  .cursor-dot, .cursor-outline {
      display: none;
  }
  .contact-links {
      flex-direction: column;
  }
}
