/* ============================================
   GOOGLE FONTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
  /* Colors */
  --color-primary: #64FFDA; /* Teal/Green Accent */
  --color-bg-primary: #0A192F; /* Deep Navy Background */
  --color-bg-secondary: #112240; /* Card Background */
  --color-text-primary: #CCD6F6; /* Lightest Slate */
  --color-text-secondary: #8892B0; /* Light Slate */
  --color-text-muted: #8892B0;
  
  /* Fonts */
  --font-sans: 'Poppins', 'Calibre', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace;
  
  /* Spacing */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
  
  /* Layout */
  --nav-height: 100px;
  --nav-scroll-height: 70px;
  --container-width: 1200px;
  
  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 10px 0;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.1;
}

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

p {
  margin-bottom: 15px;
  color: var(--color-text-secondary);
}

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

.section {
  padding: 100px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-bg-primary);
  border: 1px solid var(--color-primary);
  font-weight: 600;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: rgba(100, 255, 218, 0.8);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  border-radius: 4px;
}

.btn-outline:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  border: 1px solid #25D366;
  font-weight: 600;
  border-radius: 4px;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
}

/* ============================================
   HEADER / NAVBAR
   ============================================ */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  height: var(--nav-height);
  padding: 0 50px;
  background: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: 100;
  transition: var(--transition);
  display: flex;
  align-items: center;
  box-shadow: none; /* Removed shadow by default */
}

.header.scrolled {
  height: var(--nav-scroll-height);
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
}

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-socials {
  display: flex;
  gap: 20px;
  margin-left: 30px;
  align-items: center;
}

.nav-social-link {
  font-size: 20px;
  color: var(--color-text-primary);
  transition: var(--transition);
}

.nav-social-link:hover {
  color: var(--color-primary);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--color-text-primary);
}

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

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 0; 
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px; /* Added significant gap */
}

.hero-content {
  flex: 1.5; /* Give more space to text */
  max-width: 800px; /* Increased from 600px */
}

.hero-greeting {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 16px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(28px, 5.5vw, 55px); /* Reduced slightly */
  font-weight: 600;
  color: #CCD6F6;
  margin-bottom: 10px;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: clamp(22px, 4.5vw, 42px); /* Reduced slightly */
  font-weight: 600;
  color: #8892B0;
  margin-bottom: 20px;
  white-space: nowrap;
}

.hero-description {
  max-width: 500px;
  font-size: 18px;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glowing Border Circle Image */
.hero-image .image-wrapper {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  padding: 5px; /* space for gradient border */
  background: linear-gradient(135deg, var(--color-primary), #00A3FF);
  box-shadow: 0 0 50px rgba(100, 255, 218, 0.2);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: var(--color-bg-primary); 
  display: block;
  border: 4px solid var(--color-bg-primary); /* inner border */
}

/* ============================================
   SECTION HEADERS (NUMBERED)
   ============================================ */
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  width: 100%;
}

/* Reset for contact section specifically if previously centered */
.section-header.center-text {
  flex-direction: row; 
  align-items: center;
  justify-content: flex-start;
}

.section-number {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-weight: 400;
  margin-right: 10px;
  font-size: 24px;
}

.section-title {
  font-size: 32px;
  color: #CCD6F6;
  margin: 0;
  margin-right: 20px;
  display: flex;
  align-items: center;
}

.section-line {
  flex: 1;
  height: 1px;
  background-color: #233554;
  max-width: 300px;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  max-width: 800px;
}

.education-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.grid {
  display: grid;
  gap: 25px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
  background-color: var(--color-bg-secondary);
  border-radius: 10px;
  padding: 0; /* REMOVED PADDING */
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  align-items: center;
  text-align: center;
  overflow: hidden; /* Important for edge-to-edge image */
}

.project-card:hover {
  transform: translateY(-7px);
}

.project-image-container {
  width: 100%;
  height: 220px;
  position: relative;
  background-color: #112240; 
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px; /* Greatly increased padding for smaller images */
}

.project-cover-img {
  width: 120px; /* Fixed size to ensure square box */
  height: 120px;
  object-fit: cover; /* Fill the square box */
  transition: var(--transition);
  border-radius: 20px; /* Visible rounding */
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* Hide old styles if not used */
.project-icon-lg {
  display: none; 
}

/* Wrapper for text content to ensure left alignment */
.project-content-wrapper {
  text-align: left;
  width: 100%;
}

.project-title {
  margin-bottom: 0;
  font-weight: 700;
  font-size: 24px;
  color: #CCD6F6;
  line-height: 1.2;
}

/* Icon specific style */
.project-external-link i {
  font-size: 24px; /* Slightly larger for balance */
  transition: var(--transition);
  display: block;
}

/* Dynamic colors for the link arrow, cleaner approach than JS inline styles */
/* We trigger these via JS adding a specific class to the card or link if needed */
/* For now making the generic link accent color */
/* Specific Project Accents removed to match tags (Primary Color) */
.project-external-link {
   color: var(--color-primary) !important;
}
.project-description {
  color: var(--color-text-secondary);
  font-size: 15px;
  margin-bottom: 20px;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 25px;
  margin-top: auto; /* Push to bottom */
}

.project-tag {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  /* Pill style based on feedback 'infinite' maybe means smaller/more dense? */
}

.project-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.project-footer a {
  color: var(--color-text-secondary);
  font-size: 20px;
  transition: var(--transition);
}

.project-footer a:hover {
  color: var(--color-primary);
}

/* ============================================
   EXPERIENCE SECTION (TIMELINE)
   ============================================ */
.experience-timeline {
  max-width: 800px;
  border-left: 2px solid #233554;
  padding-left: 30px;
  position: relative;
}

.experience-item {
  position: relative;
  margin-bottom: 50px;
}

.experience-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--color-primary);
}

.exp-role {
  font-size: 22px;
  color: #CCD6F6;
  font-weight: 600;
  margin-bottom: 5px;
}

.exp-company {
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.exp-period {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #A8B2D1;
  margin-bottom: 20px;
  display: block;
}

.exp-desc {
  font-size: 16px;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background-color: var(--color-bg-secondary); /* Dark card bg */
  border: 1px solid #233554; /* Subtle border */
  border-radius: 4px;
  color: #CCD6F6;
  font-family: var(--font-mono);
  font-size: 13px;
  transition: var(--transition);
  min-width: 140px; /* Ensure consistency */
  justify-content: center;
}

.skill-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-3px);
  background-color: rgba(100, 255, 218, 0.05);
}

.skill-icon {
  color: var(--color-primary);
  font-size: 16px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
/* Ensure header is left aligned */
#contact .section-header {
  justify-content: flex-start;
}

#contact .section-line {
  /* standard line, not centered */
  margin-left: 0;
  margin-right: 0;
}

.contact-text {
  text-align: center;
  margin: 0 auto 50px auto; /* Center the text block */
  max-width: 600px; /* Restrict width for readability */
  font-size: 18px;
  color: var(--color-text-secondary);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* But header needs to break out of text-align center if inherited? 
   No, section-header is flex, so it controls its own layout. 
   But if container has text-align center, flex children inherit alignment? No. 
   Flex items justify-content: flex-start handles horizontal. 
*/

.contact-text {
  font-size: 18px;
  color: var(--color-text-secondary);
  margin: 0 auto 50px auto; 
  max-width: 500px;
  text-align: center; /* Explicit center for text */
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.experience-item {
  transition: all 0.5s ease-in-out;
  opacity: 1;
  max-height: 500px;
  overflow: hidden;
}

.experience-item.hidden-item {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

#btn-view-more-exp {
  cursor: pointer;
  display: inline-block;
}

.social-links-footer {
  text-align: center;
  padding-bottom: 50px;
}

.social-text {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--color-text-primary);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-icon {
  font-size: 24px;
  color: var(--color-text-secondary);
  transition: var(--transition);
}

.social-icon:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--color-bg-primary); 
  padding: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
}

.footer-content {
  margin-bottom: 10px;
}

.footer-links a,
.footer-link {
  color: var(--color-primary);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 14px;
}

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

/* ============================================
   PRIVACY POLICY PAGE
   ============================================ */
body.privacy-page {
  padding-top: 80px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.privacy-header-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #112240;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-arrow {
  color: var(--color-primary);
  font-size: 20px;
  margin-right: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.back-arrow:hover {
  transform: translateX(-5px);
}

.header-title-text {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 18px;
  font-family: var(--font-sans);
}

.privacy-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
  width: 100%;
}

.privacy-card {
  background-color: rgba(17, 34, 64, 0.95);
  border: 1px solid rgba(100, 255, 218, 0.1);
  border-radius: 16px;
  padding: 50px;
  box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.main-title {
  text-align: center;
  color: var(--color-primary);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}

.subtitle {
  text-align: center;
  color: #8892B0;
  font-style: italic;
  margin-bottom: 40px;
  font-size: 15px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(100, 255, 218, 0.3), transparent);
  margin: 30px 0 50px 0;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section .section-title {
  color: var(--color-primary);
  font-size: 24px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.privacy-section .section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 2px;
  background: rgba(100, 255, 218, 0.3);
  margin-top: 8px;
}

.privacy-text {
  color: #8892B0;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.privacy-list {
  list-style: none;
  padding-left: 10px;
  margin-top: 10px;
}

.privacy-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
  color: #8892B0;
  font-size: 15px;
  line-height: 1.6;
}

.privacy-list li::before {
  content: '';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-size: 18px;
  line-height: 1.6;
}

.highlight-box {
  background: rgba(100, 255, 218, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
  padding: 25px;
  margin: 30px 0;
}

.highlight-title {
  color: #A8B2D1;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.subsection-title {
  color: #A8B2D1;
  font-size: 18px;
  font-weight: 600;
  margin: 20px 0 10px 0;
}

.action-footer {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

.btn-return {
  background-color: var(--color-primary);
  color: #0A192F;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 5px;
  letter-spacing: 1px;
  font-family: var(--font-mono);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none; /* Ensure link looks like button */
  display: inline-block;
}

.btn-return:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(100, 255, 218, 0.4);
}

@media (max-width: 768px) {
  .privacy-card {
    padding: 25px;
  }
}

/* ============================================
   MOBILE RESPONSIVENESS
   ============================================ */
@media screen and (max-width: 968px) { /* Tablet/Smaller Laptops */
  :root {
      --container-width: 100%;
      --space-2xl: 4rem;
  }
  
  .container {
      padding: 0 40px;
  }
}

@media screen and (max-width: 768px) { /* Mobile Devices */
  :root {
      --nav-height: 80px;
      --space-2xl: 3rem;
  }

  /* General Layout */
  .container {
      padding: 0 25px;
  }
  
  .section {
      padding: 60px 0;
  }

  /* Navbar */
  .nav-menu {
      position: fixed;
      top: 0;
      right: -100%;
      background-color: #112240;
      width: 80%;
      height: 100vh;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      transition: 0.3s;
      box-shadow: -10px 0 30px rgba(0,0,0,0.3);
      z-index: 100;
  }

  .nav-menu.show-menu {
      right: 0;
  }

  .nav-toggle {
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      width: 30px;
      height: 21px;
      z-index: 200; /* Above the menu */
  }
  
  .nav-toggle span {
      display: block;
      width: 100%;
      height: 3px;
      background-color: var(--color-primary);
      transition: all 0.3s ease;
  }

  /* Hamburger Animation */
  .nav-toggle.active span:nth-child(1) {
      transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle.active span:nth-child(2) {
      opacity: 0;
  }
  .nav-toggle.active span:nth-child(3) {
      transform: translateY(-9px) rotate(-45deg);
  }

  /* Hero Section */
  .hero-container {
      flex-direction: column-reverse;
      gap: 30px;
      text-align: center;
      padding-top: 50px; /* Space for fixed header */
  }

  .hero-content {
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .hero-title {
      font-size: 32px;
  }
  
  .hero-subtitle {
     font-size: 24px;
     white-space: normal; /* Allow wrapping */
  }
  
  .hero-description {
      text-align: center;
      font-size: 16px;
  }
  
  .hero-cta {
      justify-content: center;
  }

  .hero-image .image-wrapper {
      width: 220px;
      height: 220px;
  }

  /* Grids */
  .grid-3 {
      grid-template-columns: 1fr; /* Single column */
  }

  .skills-grid {
      gap: 10px;
  }
  
  .skill-chip {
      padding: 8px 15px;
      font-size: 12px;
      min-width: unset;
      flex: 1 1 40%; /* 2 per row roughly */
  }

  /* Section Headers */
  .section-header {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
  }
  
  .section-line {
      width: 100%;
      max-width: 100px; /* Short underline */
  }

  /* About */
  .education-item {
      font-size: 12px;
      flex-direction: column; /* Stack icon and text */
      text-align: center;
      align-items: center;
  }

  /* Contact */
  .contact-actions {
      flex-direction: column;
      width: 100%;
  }
  
  .contact-actions .btn {
      width: 100%;
  }

  /* Footer */
  .footer-content, .footer-links {
      flex-direction: column;
      gap: 10px;
  }
  
  /* Reset "Hidden" items for mobile if we want to show less initially? 
     Logic mostly handled by JS, but css can help */
     
  /* Privacy Page Mobile */
  .privacy-header-bar {
      padding: 0 20px;
  }
  .header-title-text {
      font-size: 16px;
  }
  .privacy-card {
      padding: 25px;
  }
  .main-title {
      font-size: 24px;
  }
}

@media screen and (max-width: 380px) { /* Small Phones */
   .hero-image .image-wrapper {
       width: 180px;
       height: 180px;
   }
   .skill-chip {
       flex: 1 1 100%; /* 1 per row */
   }
}

