/* ============================================
   NEW PORTFOLIO DESIGN - MODERN & CLEAN
   ============================================ */

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

/* ============================================
   CSS VARIABLES FOR NEW THEME
   ============================================ */
:root {
  --primary-color: #0ea5e9;
  --secondary-color: #f97316;
  --dark-bg: #0f172a;
  --darker-bg: #020617;
  --light-bg: #f1f5f9;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --text-lighter: #94a3b8;
  --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --accent-gradient-2: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] {
  --primary-color: #38bdf8;
  --secondary-color: #fb923c;
  --light-bg: #1e293b;
  --white: #0f172a;
  --text-dark: #f1f5f9;
  --text-light: #cbd5e1;
  --text-lighter: #94a3b8;
  --card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text-dark);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   SCROLLBAR STYLING
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--secondary-color);
}

/* ============================================
   TOP NAVIGATION
   ============================================ */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .top-nav {
  background: rgba(15, 23, 42, 0.9);
}

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

.nav-logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

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

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

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-bg);
  position: relative;
  overflow: hidden;
  padding: 100px 20px 50px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #8b5cf6 100%);
  opacity: 0.1;
  z-index: 0;
}

[data-theme="dark"] .hero-background {
  opacity: 0.2;
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  margin: 0 auto 2rem;
  display: block;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.3);
  animation: float 3s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.2;
}

[data-theme="dark"] .hero-title {
  color: var(--light-bg);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-lighter);
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}

[data-theme="dark"] .hero-description {
  color: var(--text-light);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

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

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

.social-links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.3rem;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-5px);
}

/* ============================================
   SECTION STYLES
   ============================================ */
.section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

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

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

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

.about-text p {
  margin-bottom: 1.5rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.highlight-card {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.highlight-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.highlight-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.highlight-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.3rem;
}

.highlight-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ============================================
   TIMELINE (EXPERIENCE)
   ============================================ */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: var(--primary-color);
}

.timeline-item {
  display: flex;
  margin-bottom: 3rem;
  position: relative;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  position: relative;
}

[data-theme="dark"] .timeline-content {
  background: var(--light-bg);
}

.timeline-content:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-5px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  border: 4px solid var(--white);
  z-index: 1;
}

[data-theme="dark"] .timeline-marker {
  border-color: var(--dark-bg);
}

.timeline-date {
  display: inline-block;
  background: var(--accent-gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.timeline-company {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 1rem;
}

.timeline-description {
  color: var(--text-light);
  line-height: 1.6;
}

.timeline-description ul {
  margin-top: 1rem;
  padding-left: 1.5rem;
}

.timeline-description li {
  margin-bottom: 0.5rem;
}

/* ============================================
   SKILLS - PROGRESS BARS
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.skill-category-card {
  background: var(--light-bg);
  padding: 2rem;
  border-radius: 15px;
  transition: all 0.3s ease;
}

.skill-category-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
}

.skill-category-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-category-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
}

.skill-item {
  margin-bottom: 1.5rem;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 500;
  color: var(--text-dark);
}

.skill-level {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 10px;
  transition: width 1s ease;
  animation: progressAnimation 1.5s ease-in-out;
}

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

.project-card {
  background: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

[data-theme="dark"] .project-card {
  background: var(--light-bg);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--primary-color);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-content {
  padding: 1.5rem;
}

.project-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.project-description {
  color: var(--text-light);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.project-tag {
  background: rgba(14, 165, 233, 0.1);
  color: var(--primary-color);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.project-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

/* ============================================
   PHOTOGRAPHY SLIDESHOW
   ============================================ */
.photography-section {
  background: var(--light-bg);
  padding: 40px 20px;
  border-radius: 15px;
  margin: 2rem 0;
}

.slideshow-container {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.mySlides {
  display: none;
  cursor: pointer;
}

.mySlides img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: 15px;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 2.5rem;
  transition: all 0.3s ease;
  border-radius: 0 8px 8px 0;
  user-select: none;
  z-index: 10;
  background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .prev,
[data-theme="dark"] .next {
  background: rgba(15, 23, 42, 0.8);
}

.next {
  right: 0;
  border-radius: 8px 0 0 8px;
}

.prev:hover, .next:hover {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

#myModal {
  display: none;
  position: fixed;
  z-index: 99999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.95);
}

.modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

.close {
  position: absolute;
  top: 30px;
  right: 50px;
  color: #f1f1f1;
  font-size: 50px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 100000;
}

.close:hover,
.close:focus {
  color: var(--secondary-color);
  text-decoration: none;
}

.modal-content {
  animation: zoom 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)}
  to {transform: scale(1)}
}

/* ============================================
   DOCUMENTARIES SECTION
   ============================================ */
.documentary-card {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  transition: all 0.3s ease;
}

[data-theme="dark"] .documentary-card {
  background: var(--light-bg);
}

.documentary-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--card-shadow-hover);
}

.documentary-card h5 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1.2rem;
}

.documentary-card iframe {
  border-radius: 10px;
  border: none;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.education-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
  border-left: 4px solid var(--primary-color);
}

[data-theme="dark"] .education-card {
  background: var(--light-bg);
}

.education-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--card-shadow-hover);
  border-left-width: 8px;
}

.education-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.education-location {
  color: var(--secondary-color);
  font-weight: 500;
  margin-bottom: 1rem;
}

.education-degree {
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.coursework-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.education-card ul {
  padding-left: 1.5rem;
}

.education-card li {
  color: var(--text-light);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* ============================================
   CERTIFICATES SECTION
   ============================================ */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.certificate-item {
  background: var(--light-bg);
  padding: 1.5rem;
  border-radius: 15px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
}

.certificate-item:hover {
  border-color: var(--primary-color);
  transform: translateY(-5px);
  box-shadow: var(--card-shadow);
}

.certificate-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.certificate-item a:hover {
  color: var(--secondary-color);
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  background: var(--primary-color);
  color: white;
  padding: 1rem 2rem;
  border-radius: 10px;
  margin: 2rem 0 1.5rem;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--light-bg);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(10px);
  box-shadow: var(--card-shadow);
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: var(--text-dark);
}

.contact-details p {
  color: var(--text-light);
}

.contact-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark-bg);
  color: var(--text-lighter);
  padding: 2rem;
  text-align: center;
}

[data-theme="dark"] .footer {
  background: var(--darker-bg);
}

.footer p {
  margin-bottom: 1rem;
}

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

.footer-link {
  color: var(--text-lighter);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* ============================================
   THEME TOGGLE
   ============================================ */
.theme-toggle-new {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-gradient);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(14, 165, 233, 0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle-new:hover {
  transform: scale(1.1) rotate(180deg);
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.6);
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes progressAnimation {
  from {
    width: 0;
  }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background: var(--white);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    padding: 2rem 0;
  }

  [data-theme="dark"] .nav-menu {
    background: var(--dark-bg);
  }

  .nav-menu.active {
    left: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    padding-left: 60px;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-marker {
    left: 30px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 60px 15px;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image {
    width: 150px;
    height: 150px;
  }

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

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }

  .theme-toggle-new {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
}
