/* 
  --------------------------------------------------------------------------------
  STYLES.CSS - Premium Personal Portfolio 
  Aesthetic: Modern Editorial / Dark Luxury
  --------------------------------------------------------------------------------
*/

:root {
  /* Colors */
  --bg-color: #0a0f1e;        /* Deep Navy */
  --bg-lighter: #12192c;     /* Lighter Navy for cards */
  --text-primary: #f5f0e8;    /* Warm Off-white */
  --text-secondary: rgba(245, 240, 232, 0.7);
  --accent-color: #e8884a;    /* Burnt Amber */
  --accent-hover: #cf7539;
  --glass-bg: rgba(10, 15, 30, 0.8);
  
  /* Typography */
  --f-display: 'Roboto Slab', serif;
  --f-body: 'Roboto', sans-serif;
  --f-mono: 'Roboto Mono', monospace;
  
  /* Layout */
  --header-height: 80px;
  --container-max: 1200px;
  --transition-smooth: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
  scroll-behavior: smooth;
}

section[id] {
  scroll-margin-top: var(--header-height);
}

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

h1, h2, h3, h4, .font-serif {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

section {
  padding: 100px 0;
  position: relative;
}

/* Utility Classes for Animation (Triggered by JS) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* 1. HEADER / NAVIGATION */
header {
  height: var(--header-height);
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: var(--transition-smooth);
  background: var(--bg-color); /* Added solid background */
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
}

header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  height: 70px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
}

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

.logo {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--accent-color);
}

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

.nav-links a {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  opacity: 0.8;
}

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

.nav-btn {
  padding: 8px 25px !important;
  color: var(--bg-color) !important;
  border-radius: 50px;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-weight: 600;
  opacity: 1 !important;
}

.nav-btn:hover {
  color: var(--bg-color) !important;
  transform: translateY(-2px);
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-primary);
}

/* 2. HERO BANNER */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--header-height);
  overflow: hidden;
  background: linear-gradient(135deg, #0a0f1e 0%, #12192c 100%);
  position: relative;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-content h1 span {
  display: block;
}

.hero-subtitle {
  font-size: 0.55em;
  font-weight: 300;
  margin-top: 0.5rem;
  letter-spacing: 0.06em;
  font-family: var(--f-display);
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn {
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  display: inline-block;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(232, 136, 74, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(245, 240, 232, 0.3);
}

.btn-outline:hover {
  background-color: rgba(245, 240, 232, 0.1);
  border-color: var(--text-primary);
}

.btn-stop {
  background-color: #ff4d00; /* Vibrant Orange */
  color: #fff;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 12px 60px;
  box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
}

.btn-stop:hover {
  background-color: #e64500;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 77, 0, 0.4);
}

.btn-stop:active {
  transform: translateY(0);
}

.adhd-text {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  font-style: normal;
  animation: fadeIn 0.5s ease forwards;
}

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

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-10px) translateX(-50%); }
  60% { transform: translateY(-5px) translateX(-50%); }
}

/* 3. ABOUT SECTION */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  aspect-ratio: 1/1;
  background: linear-gradient(135deg, var(--bg-lighter) 0%, var(--accent-color) 100%);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.about-image::after {
  content: "PROFILE PHOTO";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: 1.5rem;
  opacity: 0.2;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.read-more {
  color: var(--accent-color);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.read-more:hover {
  gap: 12px;
}

/* COUNTERS SECTION */
.counters {
  background: var(--bg-lighter);
  padding: 80px 0;
  border-top: 1px solid rgba(245, 240, 232, 0.05);
  border-bottom: 1px solid rgba(245, 240, 232, 0.05);
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.counter-item {
  flex: 1;
  padding: 20px;
  border-radius: 12px;
  transition: var(--transition-smooth);
}

.counter-item.has-border {
  border: 1px solid var(--accent-color);
}

.pulse-active.counting {
  animation: countPulse 1.5s infinite ease-in-out;
  color: var(--accent-color);
  display: inline-block;
}

@keyframes countPulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.counter-item .count {
  display: block;
  font-family: var(--f-mono);
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 10px;
}

.counter-item p {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.7;
}

/* 4. MY WORK (SERVICES) SECTION */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.section-header p {
  color: var(--text-secondary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.services-grid.home-services {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1200px) {
  .services-grid.home-services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-grid, .services-grid.home-services {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: var(--bg-lighter);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(245, 240, 232, 0.05);
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: rgba(232, 136, 74, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 25px;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 15px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* 5. SKILLS SECTION */
.skills-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
}

.skill-category h3 {
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-item .skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-family: var(--f-mono);
  font-weight: 500;
}

.skill-bar {
  height: 6px;
  background: rgba(245, 240, 232, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent-color);
  width: 0; /* Animated by JS */
  transition: width 1.5s cubic-bezier(0.19, 1, 0.22, 1);
  border-radius: 10px;
}

.soft-skills-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.badge {
  padding: 10px 20px;
  background: var(--bg-lighter);
  border: 1px solid rgba(245, 240, 232, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  font-family: var(--f-mono);
  font-weight: 500;
  transition: var(--transition-smooth);
}

.badge:hover {
  border-color: var(--accent-color);
  background: rgba(232, 136, 74, 0.05);
}

/* 6. PORTFOLIO PREVIEW */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.project-card {
  background: var(--bg-lighter);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(245, 240, 232, 0.05);
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(232, 136, 74, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-image {
  aspect-ratio: 16/9;
  background: var(--bg-lighter);
  border-radius: 15px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-image-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-display);
  opacity: 0.3;
}

.project-info h3 {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 10px;
}

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

.project-tags {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 12px;
  background: rgba(245, 240, 232, 0.05);
  border-radius: 4px;
  color: var(--accent-color);
  font-family: var(--f-mono);
  font-weight: 500;
}

.view-project {
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-project:hover {
  gap: 8px;
  color: var(--accent-color);
}

.portfolio-footer {
  text-align: center;
  margin-top: 60px;
}

/* 7. WORK EXPERIENCE (TIMELINE) */
.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 2px;
  background: rgba(245, 240, 232, 0.1);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  background-color: inherit;
  width: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  right: -8px;
  background-color: var(--accent-color);
  border: 4px solid var(--bg-color);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.left { left: 0; }
.right { left: 50%; }

.right::after { left: -8px; }

.timeline-content {
  padding: 30px;
  background-color: var(--bg-lighter);
  position: relative;
  border-radius: 15px;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.timeline-text {
  flex: 1;
}

.timeline-logo {
  width: 60px;
  height: 60px;
  background: #fefefe;
  border-radius: 12px;
  margin-left: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(245, 240, 232, 0.1);
}

.timeline-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.timeline-content .date {
  color: var(--accent-color);
  font-family: var(--f-mono);
  font-weight: 500;
  margin-bottom: 10px;
  display: block;
}

.timeline-content h3 {
  font-weight: 500;
  margin-bottom: 5px;
}

.timeline-content .company {
  font-weight: 500;
  opacity: 0.7;
  margin-bottom: 15px;
  display: block;
}

/* 8. TESTIMONIALS CAROUSEL */
.testimonials-slider {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  width: 100%;
}

.testimonials-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 0; /* Removing gaps to handle spacing via padding on cards for easier calculation */
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
}

.testimonial-card {
  flex: 0 0 33.333333%;
  padding: 0 15px; /* Half of 30px gap */
  box-sizing: border-box;
  background: transparent;
  border: none;
}

/* Inner card styling to preserve gaps */
.testimonial-card-inner {
  background: rgba(245, 240, 232, 0.03);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(245, 240, 232, 0.05);
  height: 100%;
}

.testimonial-card i {
  font-size: 2rem;
  color: var(--accent-color);
  opacity: 0.3;
  margin-bottom: 20px;
}

.testimonial-card p {
  font-style: italic;
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--text-secondary);
}

.testimonials-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(245, 240, 232, 0.2);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dot.active {
  background-color: var(--accent-color);
  transform: scale(1.3);
  opacity: 1;
}

/* Responsive Card Widths */
@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 50%;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 100%;
  }
}

.reviewer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.avatar {
  width: 50px;
  height: 50px;
  background: var(--accent-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reviewer-info h4 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 2px;
}

.reviewer-info span {
  font-size: 0.8rem;
  opacity: 0.6;
}

/* 9. CONTACT SECTION */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

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

.contact-lead {
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-weight: 300;
  font-size: 1.2rem;
}

.resume-wrapper {
  margin-bottom: 50px;
}

.contact-details {
  display: flex;
  flex-direction: row;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 50px;
  width: 100%;
}

.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  min-width: 200px;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.contact-item:hover {
  transform: translateY(-5px);
}

.contact-item:hover i {
  background: var(--accent-color);
  color: var(--bg-primary);
}

.contact-item i {
  width: 60px;
  height: 60px;
  background: var(--bg-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 1.5rem;
}

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

.social-icon {
  width: 45px;
  height: 45px;
  background: var(--bg-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-5px);
}

/* 10. FOOTER */
footer {
  padding: 80px 0 30px;
  background: #060a14;
  border-top: 1px solid rgba(245, 240, 232, 0.05);
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
  align-items: center;
}

.footer-logo {
  font-family: var(--f-display);
  font-size: 1.8rem;
  margin-bottom: 20px;
  display: block;
}

.footer-about p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-nav a {
  font-size: 0.9rem;
  opacity: 0.6;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--accent-color);
}

.footer-social {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(245, 240, 232, 0.05);
}

.footer-bottom p {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .about-grid, .skills-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .timeline::after { left: 31px; }
  .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
  .timeline-item.right { left: 0%; }
  .timeline-item::after { left: 23px; right: auto; }
  
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-social { justify-content: flex-start; }

  .counters-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-color);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    z-index: 999;
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-content h1 { font-size: 3rem; }
  
  .counters-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { align-items: flex-start; }
}
