:root {
  --primary: #0d1b2a;
  --text-on-dark: #f8f9fa;
  --accent: #1b263b;
  --highlight: #e0e1dd;
  --pop: #ff7f50;
  --secondary: #415a77;
  --success: #2d6a4f;
  --warning: #f77f00;
  --error: #d62828;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent));
  --gradient-secondary: linear-gradient(135deg, var(--pop), #ff6b35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --card-bg: white;
  --text-primary: var(--primary);
  --text-secondary: var(--secondary);
  --text-enhanced: #2c3e50;
  --border-color: rgba(0, 0, 0, 0.1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--highlight);
  color: var(--primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition);
}

/* Dark Theme */
.dark-theme {
  --primary: #e0e1dd;
  --accent: #778da9;
  --highlight: #0d1b2a;
  --secondary: #8b9dc3;
  --text-on-dark: #f8f9fa;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --card-bg: #1e1e1e;
  --text-primary: #e0e1dd;
  --text-secondary: #8b9dc3;
  --text-enhanced: #a8bcd0;
  --border-color: rgba(255, 255, 255, 0.1);
  background: #0d1b2a;
  color: var(--primary);
}

.dark-theme .navbar {
  background: rgba(27, 38, 59, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .navbar.scrolled {
  background: rgba(27, 38, 59, 0.98);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.dark-theme .nav-brand .brand-text,
.dark-theme .nav-link,
.dark-theme .theme-toggle {
  color: var(--primary);
}

.dark-theme .mobile-menu-toggle span {
  background: var(--primary);
}

.dark-theme .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dark-theme .card,
.dark-theme .project-card,
.dark-theme .timeline-content,
.dark-theme .certification-card,
.dark-theme .certification-progress,
.dark-theme .courses-list,
.dark-theme .highlight-item,
.dark-theme .stat-item,
.dark-theme .contact-item,
.dark-theme .goal-card {
  background: #1b263b;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.dark-theme .carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  color: var(--primary);
}

.dark-theme .carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.dark-theme .hero,
.dark-theme .goals-hero {
  background: linear-gradient(135deg, #0d1b2a 0%, #1b263b 100%);
}

.dark-theme .shape {
  background: rgba(224, 225, 221, 0.1);
}

.dark-theme .section-title {
  color: var(--primary);
}

.dark-theme .about-intro,
.dark-theme .hero-description,
.dark-theme .project-description,
.dark-theme .contact-info p {
  color: var(--secondary);
}

.dark-theme .experience-section {
  background: var(--highlight);
}

.dark-theme .name {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dark-theme .timeline::before {
  background: var(--secondary);
}

.dark-theme .timeline-marker {
  border-color: var(--highlight);
}

.dark-theme .contact-card {
  background: #1e2936;
  border-color: rgba(255, 255, 255, 0.15);
}

.dark-theme .timeline-content {
  background: #1e2936;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.dark-theme .timeline-content:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.dark-theme .timeline-content::before {
  border-right-color: #1e2936;
}

.dark-theme .timeline-date {
  background: rgba(255, 111, 97, 0.2);
}

.dark-theme .contact-section,
.dark-theme .certifications-section {
  background: var(--highlight);
}

.dark-theme .progress-bar {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.dark-theme .progress-fill {
  background: var(--gradient-secondary);
  box-shadow: none;
}

.dark-theme .project-showcase-image,
.dark-theme .carousel-image {
  background: #1e2936;
}

.dark-theme .footer {
  background: #1b263b;
  color: var(--primary);
}

.dark-theme .social-link {
  color: var(--secondary);
}

.dark-theme .social-link:hover {
  color: var(--pop);
}

.dark-theme .back-to-top {
  background: var(--gradient-secondary);
  color: white;
}

.dark-theme .contact-form .form-group input,
.dark-theme .contact-form .form-group textarea {
  background: #1b263b;
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-theme .contact-form .form-group input:focus,
.dark-theme .contact-form .form-group textarea:focus {
  border-color: var(--pop);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.dark-theme .contact-form .form-group label {
  color: var(--secondary);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-content {
  text-align: center;
  color: var(--text-on-dark);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid var(--pop);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  width: 100%;
  flex-wrap: nowrap;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-brand .brand-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: rgba(13, 27, 42, 0.1);
}

.dark-theme .nav-link:hover,
.dark-theme .nav-link.active {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.2rem;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}



/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: linear-gradient(135deg, var(--highlight) 0%, #f8f9fa 100%);
  overflow: hidden;
  padding: 2rem 0;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  background: rgba(255, 127, 80, 0.1);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 10%;
  animation-delay: 2s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: 1s;
}

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

.hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
  max-width: 800px;
  padding: 2rem;
  margin-bottom: 2rem;
}

.profile-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 0.2s both;
  object-fit: cover;
  object-position: center;
}

.hero-title {
  margin-bottom: 1rem;
}

.greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s ease 0.4s both;
}

.name {
  display: block;
  font-size: 4rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease 0.6s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--pop);
  font-weight: 600;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease 0.8s both;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeInUp 1s ease 1s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease 1.2s both;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

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

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

.scroll-indicator {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  animation: fadeInUp 1s ease 1.4s both;
  z-index: 10;
}

.scroll-arrow {
  color: var(--secondary);
  font-size: 1.5rem;
  animation: bounce 2s infinite;
  cursor: pointer;
}

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

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

/* Sections */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 3rem;
  position: relative;
}

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

.contact-section .section-title::after {
  background: var(--pop);
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-intro {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.about-highlights {
  display: grid;
  gap: 1.5rem;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: left;
}

.highlight-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.highlight-item i {
  font-size: 1.5rem;
  color: var(--pop);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.highlight-item h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.highlight-item p {
  color: var(--secondary);
  line-height: 1.6;
}

.about-stats {
  display: grid;
  gap: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--pop);
  display: block;
  margin-bottom: 0.5rem;
}

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

/* Experience Section */
.experience-section {
  background: white;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--highlight);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 20px;
  height: 20px;
  background: var(--pop);
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-sm);
}

.timeline-content {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.timeline-content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 20px;
  width: 0;
  height: 0;
  border: 8px solid transparent;
  border-right-color: white;
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--pop);
  font-weight: 600;
  margin-bottom: 0.8rem;
  padding: 0.3rem 0.8rem;
  background: rgba(255, 111, 97, 0.1);
  border-radius: 20px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.timeline-content h4 {
  font-size: 1.1rem;
  color: var(--pop);
  margin-bottom: 1.2rem;
  font-weight: 600;
}

.timeline-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline-content li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 1rem;
  color: var(--secondary);
  line-height: 1.6;
  font-size: 1rem;
}

.timeline-content li::before {
  content: '●';
  position: absolute;
  left: 0;
  top: 0.1rem;
  color: var(--pop);
  font-size: 1rem;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

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

.project-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2rem 1rem;
}

.project-icon {
  font-size: 2rem;
  color: var(--pop);
}

.project-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
}

.project-description {
  padding: 0 2rem 1.5rem;
  color: var(--secondary);
  line-height: 1.6;
}

.project-progress {
  padding: 0 2rem 1.5rem;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.progress-bar {
  height: 8px;
  background: var(--highlight);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  width: 0;
  transition: width 1s ease 0.5s;
  border-radius: 4px;
  box-shadow: none;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 2rem 1.5rem;
}

.tag {
  background: var(--pop);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-showcase {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: transparent;
  border-radius: var(--border-radius);
  margin-top: 1.5rem;
}

.carousel-showcase {
  margin-top: 0;
  height: auto;
  background: transparent;
}

.project-showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition);
  display: block;
}

.project-showcase-image:hover {
  transform: scale(1.05);
}



.carousel-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: var(--border-radius);
  background: transparent;
  margin-top: 1.5rem;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.7);
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Certifications Section */
.certifications-section {
  background: white;
}

.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.certification-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.certification-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.certification-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.certification-icon {
  font-size: 1.5rem;
  color: var(--pop);
}

.certification-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.certification-progress {
  margin-top: 1rem;
}

.certification-progress .progress-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.certification-progress .progress-bar {
  height: 8px;
  background: var(--highlight);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: none;
}

.dark-theme .certification-progress .progress-bar {
  background: rgba(255, 255, 255, 0.15);
}

.certification-progress .progress-fill {
  height: 100%;
  background: var(--gradient-secondary);
  width: 0;
  transition: width 1s ease 0.5s;
  border-radius: 4px;
  box-shadow: none;
}

.progress-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-align: right;
  font-weight: 500;
}

.course-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.course-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.5rem 0;
}

.course-icon {
  font-size: 1rem;
  color: var(--pop);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.course-name {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.instructor-link {
  color: var(--pop);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

.instructor-link:hover {
  color: var(--pop);
  border-bottom-color: var(--pop);
  opacity: 0.8;
}

@media (max-width: 768px) {
  .certifications-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .certification-card {
    padding: 1.5rem;
  }
  
  .course-item {
    gap: 0.75rem;
  }

  .project-showcase,
  .carousel-container {
    height: 160px;
  }

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

/* Contact Section */
.contact-section {
  background: white;
}

.contact-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-enhanced);
  font-weight: 400;
  margin: 2rem auto 4rem;
  max-width: 600px;
  line-height: 1.6;
  padding: 0 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.contact-card:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: var(--pop);
}

.contact-card-content {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.contact-card-icon {
  font-size: 2rem;
  color: var(--pop);
  margin-top: 0.2rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.contact-card:hover .contact-card-icon {
  transform: scale(1.1);
}

.contact-card-text {
  flex: 1;
}

.contact-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.contact-card-detail {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.contact-card-link {
  text-decoration: none;
  transition: var(--transition);
  color: inherit;
}

.contact-card-link:hover .contact-card-detail {
  color: var(--pop);
  transform: translateX(3px);
}

.contact-card-link .contact-card-detail {
  color: var(--text-secondary);
}

.contact-form {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.contact-form h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--highlight);
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: white;
  color: var(--primary);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--pop);
  box-shadow: 0 0 0 3px rgba(255, 127, 80, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 3rem 0 2rem;
}

.footer-content {
  text-align: center;
}

.footer-section h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-on-dark);
}

.footer-section p,
.footer-section a {
  color: rgba(248, 249, 250, 0.8);
  text-decoration: none;
  line-height: 1.6;
}

.footer-section a:hover {
  color: var(--pop);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: var(--text-on-dark);
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--pop);
  transform: translateY(-2px);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(248, 249, 250, 0.6);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-secondary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  opacity: 0;
  visibility: hidden;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

/* Notification */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius);
  color: white;
  font-weight: 500;
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  max-width: 400px;
}

.notification-success {
  background: var(--success);
}

.notification-error {
  background: var(--error);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-content {
    flex-direction: column;
  }
  
  .contact-details {
    max-width: 100%;
  }
}

@media (max-width: 768px) {




  .hero-content {
    padding: 1rem;
  }

  .name {
    font-size: 2.5rem;
  }

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

  .btn {
    width: 100%;
    max-width: 300px;
  }

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

  .timeline {
    padding-left: 0;
  }

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

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 5px;
  }

  .timeline-content {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .timeline-content::before {
    left: -8px;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }

  .timeline-content li {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }

  .about-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .stat-number {
    font-size: 2rem;
  }

  .back-to-top {
    bottom: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 3rem 0;
  }

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

  .hero-content {
    padding: 0.5rem;
  }

  .name {
    font-size: 2rem;
  }

  .greeting {
    font-size: 1.2rem;
  }

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

  .profile-photo {
    width: 150px;
    height: 150px;
  }

  .project-card,
  .highlight-item,
  .stat-item,
  .timeline-content {
    padding: 1.5rem;
  }

  .project-showcase,
  .carousel-container {
    aspect-ratio: 4/3;
  }

  .contact-description {
    font-size: 1rem;
    margin: 1.5rem auto 3rem;
    max-width: none;
    padding: 0 1rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .contact-card {
    padding: 1.5rem;
  }

  .contact-card-content {
    gap: 1rem;
  }

  .contact-card-icon {
    font-size: 1.5rem;
  }

  .carousel-container,
  .project-showcase {
    aspect-ratio: 4/3;
  }
  
  .project-showcase-image,
  .carousel-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .footer {
    padding: 2rem 0 4rem;
  }

  .notification {
    top: 10px;
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

/* Mobile Navigation Responsiveness */
@media (max-width: 768px) {
  .nav-right {
    gap: 1rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-link {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .nav-content {
    padding: 1rem;
  }
  
  .nav-brand .brand-text {
    font-size: 1.3rem;
  }
  
  .nav-right {
    gap: 0.5rem;
  }
  
  .nav-links {
    gap: 0.5rem;
  }
  
  .nav-link {
    padding: 0.3rem 0.6rem;
    font-size: 0.85rem;
  }
}

/* Goals Page - No Hover Effects Override */
.goals-page .nav-link:hover {
  background: transparent !important;
  color: var(--text-secondary) !important;
}

.goals-page .theme-toggle,
.goals-page .theme-toggle:hover {
  transition: none !important;
  background: transparent !important;
  transform: none !important;
}

/* Goals Page Styles */
.goals-hero {
  background: linear-gradient(135deg, var(--highlight) 0%, #f8f9fa 100%);
  color: var(--primary);
  padding: 8rem 0 4rem;
  text-align: center;
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.goals-hero .name {
  font-size: 3.5rem;
  font-weight: 800;
}

.goals-section {
  background: var(--highlight);
  padding: 4rem 0;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.goal-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}


.goal-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--pop);
  padding-bottom: 0.5rem;
}

.goal-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--pop);
  margin: 1.5rem 0 0.8rem 0;
}

.goal-subsection:first-child .goal-subtitle {
  margin-top: 0;
}

.goal-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.goal-list li {
  padding: 0.6rem 0;
  color: var(--text-secondary);
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  font-weight: 400;
}

.goal-list li:last-child {
  border-bottom: none;
}

.goal-list li.completed {
  text-decoration: line-through;
  color: rgba(var(--text-secondary-rgb, 65, 90, 119), 0.6);
}

.goal-list li.completed strong {
  text-decoration: none;
  color: var(--pop);
  font-weight: 600;
}

.dark-theme .goal-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-theme .goal-list li.completed {
  color: rgba(139, 157, 195, 0.6);
}

.goals-footer {
  background: var(--primary);
  color: var(--text-on-dark);
  padding: 2rem 0;
  text-align: center;
}

.goals-footer .footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
}

.goals-footer .social-link {
  width: 50px;
  height: 50px;
  background: var(--pop);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.2rem;
  transition: var(--transition);
}


/* Mobile Optimization for Goals */
@media (max-width: 768px) {
  .goals-hero {
    padding: 6rem 0 3rem;
    min-height: 300px;
  }
  
  .goals-hero .name {
    font-size: 2.5rem;
  }
  
  .goals-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .goal-card {
    padding: 1.5rem;
  }
  
  .goal-title {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .goals-hero .name {
    font-size: 2rem;
  }
  
  .goal-card {
    padding: 1.25rem;
  }
  
  .goals-footer {
    padding: 2rem 0 4rem;
  }
}

/* Animation delays for staggered loading */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }

.highlight-item:nth-child(1) { animation-delay: 0.1s; }
.highlight-item:nth-child(2) { animation-delay: 0.2s; }
.highlight-item:nth-child(3) { animation-delay: 0.3s; }

/* Smooth transitions for all interactive elements */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
