@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;700&display=swap');

:root {
  --color-bg: #FAFAF5;
  --color-surface: #ffffff;
  --color-primary: #84CC16; /* Refined Lime */
  --color-secondary: #F59E0B; /* Amber */
  --color-text: #1C1C16; /* Deep Olive Black */
  --color-text-muted: #6B7280; /* Gray 500 */
  --color-border: rgba(28, 28, 22, 0.08);
  --color-accent: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  --font-main: 'Plus Jakarta Sans', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.05), 0 1px 2px -1px rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

/* Base Layout */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 8rem 0;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: var(--transition);
}

nav.scrolled {
  padding: 0.75rem 0;
  box-shadow: var(--shadow-sm);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  background: var(--color-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, rgba(132, 204, 22, 0.08) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content .highlight {
  background: var(--color-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 550px;
  margin-bottom: 3rem;
}

/* Image Wrapper */
.photo-wrapper {
  position: relative;
  width: 100%;
  border-radius: 2.5rem;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}

.photo-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 4px 15px -1px rgba(132, 204, 22, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(132, 204, 22, 0.4);
}

.btn-outline {
  border: 1.5px solid var(--color-border);
  color: var(--color-text);
  margin-left: 0.75rem;
  background: white;
}

.btn-outline:hover {
  background: var(--color-bg);
  border-color: var(--color-primary);
}

/* Lists & Grids */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.skill-card {
  background: var(--color-surface);
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.skill-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

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

.project-card {
  border-radius: 1.5rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.project-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.project-info {
  padding: 1.5rem;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.tag {
  background: #f1f5f9;
  color: var(--color-text-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Info Cards */
.info-card {
  background: white;
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid var(--color-border);
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  padding: 4rem 0;
  background: white;
  border-top: 1px solid var(--color-border);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Mobile Toggle & Menu */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  z-index: 1001;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Compatibility Fixes */
@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .hero {
    padding-top: 100px;
    padding-bottom: 4rem;
  }

  .photo-wrapper {
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
  }

  .nav-content.menu-active .nav-links {
    right: 0;
  }

  .nav-content.menu-active .mobile-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-content.menu-active .mobile-toggle span:nth-child(2) { opacity: 0; }
  .nav-content.menu-active .mobile-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-inline: auto;
  }

  .hero-btns {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .btn-outline {
    margin-left: 0;
  }

  .logo {
    z-index: 1001;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.75rem;
  }
  
  .container {
    padding: 0 1.25rem;
  }

  .skill-card, .project-card {
    padding: 1.5rem;
  }
}
