/*=============== VARIABLES ===============*/
:root {
  /* Colors */
  --primary-color: #18d26e;
  --primary-glow: rgba(24, 210, 110, 0.3);
  --secondary-color: #35e888;
  --accent-color: #4ceb95;
  
  --bg-dark: #040404;
  --bg-darker: #000000;
  --bg-card: rgba(255, 255, 255, 0.05);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.6);
  
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Poppins', sans-serif;
  
  /* Spacing */
  --container-width: 1200px;
  --section-padding: 80px 0;
  
  /* Effects */
  --transition: all 0.3s ease;
  --border-radius: 12px;
  --box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

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

/* Background with image */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-dark) url('../assets/images/bg2.jpg') top right no-repeat;
  background-size: cover;
  background-attachment: fixed;
  z-index: -2;
}

/* Noise overlay */
.noise-overlay::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: url('../assets/images/noise.gif');
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

/*=============== CONTAINER ===============*/
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/*=============== HEADER ===============*/
.header {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 0;
}

.header-content {
  text-align: center;
  animation: fadeInUp 1s ease;
}

.name {
  font-size: clamp(36px, 6vw, 64px);
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.name a {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: clamp(20px, 3vw, 28px);
  color: var(--text-secondary);
  margin-bottom: 40px;
  min-height: 40px;
}

.typed-text {
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 4px;
}

.cursor {
  display: inline-block;
  width: 3px;
  background-color: var(--primary-color);
  margin-left: 4px;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/*=============== NAVIGATION ===============*/
.nav-menu ul {
  display: flex;
  gap: 30px;
  list-style: none;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  position: relative;
  transition: var(--transition);
}

.nav-link::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:hover::before,
.nav-link.active::before {
  width: 60%;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: 8px;
  font-size: 24px;
  color: var(--text-primary);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
}

.mobile-toggle:hover {
  background: var(--bg-card-hover);
  transform: scale(1.05);
}

/*=============== SECTIONS ===============*/
.section {
  padding: var(--section-padding);
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title h2 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 15px;
  font-weight: 500;
}

.section-title h2::after {
  content: "";
  display: inline-block;
  width: 80px;
  height: 1px;
  background: var(--accent-color);
  margin-left: 15px;
  vertical-align: middle;
}

.section-title p {
  font-size: clamp(32px, 5vw, 48px);
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
}

.section .container {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 50px 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/*=============== RESUME SECTION ===============*/
.resume-embed {
  position: relative;
  width: 100%;
  padding-top: 141.43%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  border-radius: var(--border-radius);
  overflow: hidden;
  background: var(--bg-card);
}

.resume-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: none;
}

.resume-link {
  text-align: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary-color);
  color: var(--bg-dark);
  font-weight: 600;
  font-size: 16px;
  border-radius: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--primary-glow);
  color: var(--bg-dark);
}

/*=============== PROJECTS SECTION ===============*/
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.project-card:hover {
  background: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(24, 210, 110, 0.3);
}

.project-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--bg-dark);
  transition: var(--transition);
}

.project-card:hover .project-icon {
  background: var(--bg-dark);
  color: var(--primary-color);
  transform: scale(1.1);
}

.project-card h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.project-card h3 a {
  color: var(--text-primary);
  transition: var(--transition);
}

.project-card:hover h3 a {
  color: var(--bg-dark);
}

.project-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
  flex-grow: 1;
}

.project-card:hover p {
  color: rgba(0, 0, 0, 0.8);
}

.project-tech {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  font-size: 12px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: var(--transition);
}

.project-card:hover .tech-tag {
  background: rgba(0, 0, 0, 0.2);
  color: var(--bg-dark);
}

/*=============== FOOTER ===============*/
.footer {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  padding: 30px 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
  margin-bottom: 15px;
  color: var(--text-muted);
  font-size: 14px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-primary);
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-color);
  color: var(--bg-dark);
  transform: translateY(-4px);
}

/*=============== ANIMATIONS ===============*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeInUp 0.6s ease;
}

/*=============== RESPONSIVE ===============*/
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }
  
  .header {
    min-height: 100vh;
    padding: 60px 0 40px;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: var(--transition);
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-menu ul {
    flex-direction: column;
    gap: 0;
  }
  
  .nav-link {
    display: block;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .section .container {
    padding: 30px 20px;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .name {
    font-size: 32px;
  }
  
  .tagline {
    font-size: 18px;
  }
  
  .section-title p {
    font-size: 28px;
  }
}
