/* ========================================
   VARIABLES & RESET
   ======================================== */
:root {
  --primary: #004aad;
  --primary-light: #1e90ff;
  --primary-dark: #003580;
  --accent: #00d4ff;
  --text-dark: #1d1d1f;
  --text-medium: #424245;
  --text-light: #86868b;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-tertiary: #fbfbfd;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background: var(--bg-tertiary);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 1.1rem;
}

.nav-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-medium);
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

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

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
  background: linear-gradient(135deg, rgba(0,74,173,0.03), rgba(30,144,255,0.02));
}

.hero-content {
  text-align: center;
  max-width: 800px;
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 20px 60px rgba(0,74,173,0.3);
  object-fit: cover;
  margin-bottom: 32px;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: 1.8rem;
  color: var(--text-medium);
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-description {
  font-size: 1.3rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 48px;
}

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

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,74,173,0.25);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  color: white;
}

.btn-gradient:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 30px rgba(30,144,255,0.3);
}

.btn-white {
  background: white;
  color: var(--primary);
}

.btn-white:hover {
  background: var(--bg-secondary);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: white;
  border: 2px solid white;
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 1.1rem;
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-link:hover {
  gap: 12px;
  color: var(--primary-light);
}

/* ========================================
   SECTIONS
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 100px 20px;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-badge {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, rgba(0,74,173,0.1), rgba(30,144,255,0.1));
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-content p {
  font-size: 1.2rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.about-content strong {
  color: var(--primary);
}

.highlight-card {
  background: linear-gradient(135deg, rgba(0,74,173,0.05), rgba(30,144,255,0.05));
  padding: 32px;
  border-radius: 16px;
  border-left: 4px solid var(--primary);
  margin-top: 40px;
}

.highlight-card h3 {
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.highlight-card p {
  font-size: 1.1rem;
  color: var(--text-medium);
  line-height: 1.8;
  margin: 0;
}

/* ========================================
   EXPERTISE GRID
   ======================================== */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.expertise-card {
  background: white;
  padding: 40px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
  border-left: 4px solid transparent;
}

.expertise-card:nth-child(1) { border-left-color: var(--primary); }
.expertise-card:nth-child(2) { border-left-color: var(--primary-light); }
.expertise-card:nth-child(3) { border-left-color: var(--accent); }

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

.expertise-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.expertise-card h3 {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.7;
}

/* ========================================
   WHY ME SECTION
   ======================================== */
.why-grid {
  display: grid;
  gap: 24px;
}

.why-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--primary);
  transition: all 0.4s ease;
  display: flex;
  gap: 24px;
}

.why-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-md);
}

.why-number {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.3;
  flex-shrink: 0;
}

.why-card h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   PROJECTS PREVIEW
   ======================================== */
.projects-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.project-preview-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s ease;
}

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

.project-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(0,74,173,0.1), rgba(30,144,255,0.1));
  color: var(--primary);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.project-preview-card h3 {
  font-size: 1.4rem;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.project-preview-card p {
  font-size: 1.05rem;
  color: var(--text-medium);
  line-height: 1.6;
  margin-bottom: 20px;
}

.cta-center {
  text-align: center;
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  text-align: center;
}

.cta-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  color: white;
}

.cta-text {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 20px 40px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  gap: 32px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.2);
}

.footer-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-title {
  color: rgba(255,255,255,0.7);
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.footer-copyright {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-lg);
    padding: 2rem;
  }
  
  .nav-menu.active {
    left: 0;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.4rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .contact-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .why-card {
    flex-direction: column;
  }
  
  .footer-content {
    text-align: center;
  }
  
  .footer-left {
    justify-content: center;
  }
  
  .footer-links {
    justify-content: center;
  }
}

/* ========================================
   ANIMATIONS AOS
   ======================================== */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.95);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}