/* ===== PREMIUM COLOR PALETTE ===== */
:root {
  --primary: #1e3c72;
  --primary-light: #2a5298;
  --secondary: #2ecc71;
  --accent: #3498db;
  --warm-accent: #f39c12;
  --light-bg: #f7f9fc;
  --dark-bg: #1a1a1a;
  --card-bg: #ffffff;
  --text-dark: #1a1a1a;
  --text-light: #34495e;
  --text-muted: #7f8c8d;
  --border: #e1e8ed;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(135deg, #f7f9fc 0%, #e8f0f7 100%);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ===== NAVBAR ===== */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.2rem 0;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo a {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: -1px;
}

.nav-logo a:hover {
  filter: brightness(1.1);
}

.dot {
  color: var(--secondary);
}

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

.nav-menu.active {
  display: flex;
}

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  transition: var(--transition);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary), var(--accent));
  transition: width 0.4s ease;
}

.nav-link:hover::after {
  width: 100%;
}

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

.nav-link.cta-btn {
  background: linear-gradient(135deg, var(--secondary), #27ae60);
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  transition: var(--transition);
}

.nav-link.cta-btn::after {
  display: none;
}

.nav-link.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(46, 204, 113, 0.3);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  margin: 5px 0;
  border-radius: 5px;
  transition: var(--transition);
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0;
  background: linear-gradient(135deg, #e3f2fd 0%, #f1f8e9 50%, #e0f2f1 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -2px;
}

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

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 500px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #27ae60);
  color: white;
  box-shadow: 0 10px 30px rgba(46, 204, 113, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(46, 204, 113, 0.35);
}

.btn-secondary {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-4px);
}

.btn-small {
  padding: 0.7rem 1.3rem;
  font-size: 0.9rem;
}

.btn-outline {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  background: transparent;
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

.btn-large {
  padding: 1.2rem 2.8rem;
  font-size: 1.1rem;
}

.btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text-light);
}

.meta-label {
  font-size: 1.2rem;
  color: var(--secondary);
}

.meta-item a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
}

.meta-item a:hover {
  color: var(--accent);
}

/* ===== HERO VISUAL ===== */
.hero-visual {
  position: relative;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-box {
  background: white;
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--border);
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-decoration {
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), rgba(52, 152, 219, 0.1));
  border-radius: 50%;
  filter: blur(40px);
}

/* ===== SECTIONS ===== */
.about, .skills, .projects, .contact {
  padding: 100px 0;
}

.about, .projects {
  background: white;
}

.skills, .contact {
  background: linear-gradient(135deg, #f7f9fc 0%, #e8f0f7 100%);
}

.section-title {
  font-size: 2.8rem;
  font-weight: 900;
  margin-bottom: 3.5rem;
  text-align: center;
  color: var(--primary);
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  font-size: 1.05rem;
  margin-bottom: 1.8rem;
  color: var(--text-light);
  line-height: 1.9;
}

.about-cta {
  margin-top: 2.5rem;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.highlight-box {
  background: white;
  border: 1px solid var(--border);
  padding: 2.2rem;
  border-radius: 15px;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.highlight-box:hover {
  border-color: var(--secondary);
  box-shadow: 0 12px 35px rgba(46, 204, 113, 0.15);
  transform: translateY(-5px);
}

.highlight-box h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  color: var(--primary);
  font-weight: 700;
}

.highlight-box p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== SKILLS SECTION ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.skill-card {
  background: white;
  border: 1px solid var(--border);
  padding: 2.8rem 2rem;
  border-radius: 15px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.skill-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 15px 45px rgba(46, 204, 113, 0.2);
}

.skill-icon {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--secondary);
  font-weight: bold;
}

.skill-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
  font-weight: 700;
}

.skill-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

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

.project-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 2.5rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--secondary);
  box-shadow: 0 15px 45px rgba(46, 204, 113, 0.2);
}

.project-header {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.project-icon {
  font-size: 2.2rem;
  color: var(--secondary);
  font-weight: bold;
}

.project-card h3 {
  font-size: 1.2rem;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.project-card p {
  color: var(--text-light);
  margin-bottom: 1.8rem;
  flex-grow: 1;
  font-size: 0.95rem;
  line-height: 1.7;
}

.project-tags {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.tag {
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.08), rgba(39, 174, 96, 0.08));
  color: var(--secondary);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(46, 204, 113, 0.15);
}

/* ===== CONTACT SECTION ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  padding: 3.5rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: #f8f9fc;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: white;
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.1);
}

.form-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 1.8rem;
}

.form-note code {
  color: var(--accent);
  background: rgba(52, 152, 219, 0.08);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--primary);
  padding: 2.5rem 0;
  margin-top: 80px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 500;
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0 20px;
  }

  .hero-title {
    font-size: 2.3rem;
  }

  .hero-visual {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 100%;
    text-align: center;
    padding: 1.5rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-meta {
    flex-direction: column;
    gap: 1rem;
  }

  .stats-box {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }

  .footer-content {
    padding: 0 20px;
  }
}
