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

:root {
  /* Core Colors - Elegant Light Theme */
  --bg-dark: #F8F5F2; /* Cream background */
  --bg-surface: rgba(234, 219, 200, 0.5); /* Beige Surface */
  --bg-surface-hover: rgba(218, 192, 163, 0.7); /* Tan Soft */
  --border-light: rgba(218, 192, 163, 0.6);
  --border-glow: rgba(16, 44, 87, 0.15); /* Navy glow */
  
  /* Text Colors */
  --text-primary: #102C57; /* Navy Text */
  --text-secondary: #3E5879; /* Muted Blue Text */
  --text-muted: rgba(62, 88, 121, 0.8);
  
  /* Accent Colors */
  --accent-cyan: #102C57;
  --accent-blue: #3E5879;
  --accent-purple: #DAC0A3;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #102C57, #3E5879);
  --grad-secondary: linear-gradient(135deg, #3E5879, #DAC0A3);
  --grad-text: linear-gradient(to right, #102C57, #3E5879);
  
  /* Effects */
  --blur-glass: blur(16px);
  --shadow-glow: 0 0 40px -10px rgba(16, 44, 87, 0.15);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.8);
  
  /* Layout */
  --container-max: 1200px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

/* Animated Background Mesh */
.bg-mesh {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  z-index: -1;
  background: 
    radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
  pointer-events: none;
}

h1, h2, h3, h4, .logo {
  font-family: 'Outfit', sans-serif;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* Gradient Text Utility */
.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-alt {
  background: var(--grad-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px; /* Pill shape */
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  z-index: 1;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(16, 44, 87, 0.11);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 25px rgba(16, 44, 87, 0.12);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  backdrop-filter: var(--blur-glass);
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: rgba(16, 44, 87, 0.12);
  transform: translateY(-3px);
}

.btn i {
  font-size: 1.1em;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(3px);
}

/* Glass Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(248, 245, 242, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(16, 44, 87, 0.105);
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 5px 0;
  background: rgba(248, 245, 242, 0.85);
  box-shadow: 0 4px 30px rgba(234, 219, 200, 0.6);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: height 0.3s ease;
}

header.scrolled nav {
  height: 65px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width 0.3s ease;
  border-radius: 2px;
}

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

.hamburger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  outline: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* Page Sections */
section {
  padding: 120px 0;
  position: relative;
}

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

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  margin-bottom: 15px;
  letter-spacing: -1px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

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

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

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 44, 87, 0.08);
  border: 1px solid rgba(16, 44, 87, 0.2);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px; height: 8px;
  background: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 2s infinite;
}

.hero-content h1 {
  font-size: clamp(3.5rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -2px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.hero-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-img-wrapper {
  position: relative;
  width: 380px;
  height: 480px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.hero-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 30px;
  border: 1px solid rgba(16, 44, 87, 0.11);
  pointer-events: none;
}

.hero-img-bg {
  position: absolute;
  inset: -20px;
  background: conic-gradient(from 180deg at 50% 50%, #102C57 0deg, #DAC0A3 180deg, #3E5879 360deg);
  filter: blur(40px);
  opacity: 0.4;
  animation: rotateGlow 10s linear infinite;
  z-index: -1;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  filter: grayscale(20%) contrast(1.1);
}

.hero-img-wrapper:hover .hero-photo {
  transform: scale(1.03);
  filter: grayscale(0%) contrast(1.1);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
  backdrop-filter: var(--blur-glass);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

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

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.stat-card {
  background: rgba(16, 44, 87, 0.102);
  border: 1px solid rgba(16, 44, 87, 0.105);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-fast);
}

.stat-card:hover {
  background: rgba(16, 44, 87, 0.105);
  border-color: rgba(16, 44, 87, 0.11);
  transform: translateY(-5px);
}

.stat-val {
  font-size: 2.5rem;
  font-family: 'Outfit';
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  display: inline-block;
}

.stat-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Skills/Tech Stack Grid */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-category-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: var(--blur-glass);
}

.skill-category-box h3 {
  font-size: 1.5rem;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.skill-category-box h3 i {
  color: var(--accent-cyan);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 20px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(234, 219, 200, 0.6);
  border: 1px solid rgba(16, 44, 87, 0.105);
  border-radius: 16px;
  transition: var(--transition-bounce);
}

.tech-item:hover {
  background: rgba(16, 44, 87, 0.105);
  border-color: rgba(16, 44, 87, 0.115);
  transform: translateY(-5px) scale(1.05);
}

.tech-item i {
  font-size: 2.5rem;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: var(--transition-fast);
}

/* Custom Brands Colors on Hover Override */
.tech-item:hover i.fa-python { color: #3776AB; -webkit-text-fill-color: #3776AB; }
.tech-item:hover i.fa-js { color: #F7DF1E; -webkit-text-fill-color: #F7DF1E; }
.tech-item:hover i.fa-php { color: #777BB4; -webkit-text-fill-color: #777BB4; }
.tech-item:hover i.fa-react { color: #61DAFB; -webkit-text-fill-color: #61DAFB; }
.tech-item:hover i.fa-database { color: #4479A1; -webkit-text-fill-color: #4479A1; }

.tech-item span {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.tech-item:hover span {
  color: var(--text-primary);
}

/* Projects Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  backdrop-filter: var(--blur-glass);
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(16, 44, 87, 0.4);
  box-shadow: 0 20px 40px rgba(218, 192, 163, 0.6), 0 0 20px rgba(16, 44, 87, 0.1);
}

.project-img-box {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.project-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.project-card:hover .project-img-box img {
  transform: scale(1.08);
}

.project-content {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-status {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-bottom: 8px;
}

.project-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex: 1;
}

.project-tech {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.tech-tag {
  background: rgba(16, 44, 87, 0.105);
  color: var(--text-secondary);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(16, 44, 87, 0.11);
}

.project-links {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

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

/* Education / Certification Timeline (Simplified Grid for now) */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.cert-card {
  padding: 32px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: var(--transition-fast);
}

.cert-card:hover {
  background: rgba(16, 44, 87, 0.105);
  border-color: rgba(16, 44, 87, 0.115);
}

.cert-icon {
  width: 48px;
  height: 48px;
  background: rgba(16, 44, 87, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-info h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.cert-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.cert-link {
  font-size: 0.9rem;
  color: var(--accent-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cert-link:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 48px;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.method-icon {
  width: 50px;
  height: 50px;
  background: rgba(16, 44, 87, 0.103);
  border: 1px solid rgba(16, 44, 87, 0.108);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.2rem;
  transition: var(--transition-bounce);
}

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

.method-details span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.method-details a, .method-details p {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(16, 44, 87, 0.11);
  padding: 16px;
  border-radius: 12px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  background: rgba(218, 192, 163, 0.6);
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

/* Footer */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.social-links a {
  width: 44px;
  height: 44px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
}

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

/* Animations Trigger */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 44, 87, 0.3); }
  70% { box-shadow: 0 0 0 10px rgba(34, 211, 238, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0); }
}

@keyframes rotateGlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content {
    order: 2;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    order: 1;
  }
  .hero-img-wrapper {
    width: 320px;
    height: 400px;
  }
  
  .about-grid, .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: rgba(248, 245, 242, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: left 0.4s ease;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-content h1 {
    font-size: 3rem;
  }
}
