/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --gray: #64748b;
  --white: #ffffff;
  --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-hover: linear-gradient(
    135deg,
    var(--secondary) 0%,
    var(--primary) 100%
  );
  --shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Light theme specific */
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --nav-bg: rgba(255, 255, 255, 0.8);
  --card-bg: #ffffff;
  --card-bg-alt: #f8fafc;
  --border-color: #e2e8f0;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --nav-bg: rgba(15, 23, 42, 0.8);
  --card-bg: #1e293b;
  --card-bg-alt: #0f172a;
  --light: #1e293b;
  --dark: #f8fafc;
  --gray: #94a3b8;
  --white: #0f172a;
  --border-color: #334155;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--gray);
  border-radius: 5px;
  border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: var(--transition);
}

.nav-menu a:hover::after {
  width: 100%;
}

.nav-menu a:hover {
  color: var(--primary);
}

.theme-toggle {
  background: var(--gradient);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  margin-right: 15px;
}

.theme-toggle:hover {
  transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle {
  background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
  color: #1a1a2e;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 50px;
  background: radial-gradient(
    circle at top right,
    var(--bg-tertiary) 0%,
    var(--bg-primary) 100%
  );
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: var(--primary);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 6s ease-in-out infinite;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: var(--secondary);
  opacity: 0.08;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite reverse;
  z-index: 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.hero-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-text {
  animation: fadeInLeft 1s ease;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.greeting {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 10px;
}

.name {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.1;
}

.title {
  font-size: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 20px;
  font-weight: 600;
}

.tagline {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.btn {
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient);
  background-size: 200% auto;
  color: var(--white);
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.6);
  background-position: right center;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.social-links a:hover {
  background: var(--gradient);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
  border-color: transparent;
}

.hero-image {
  animation: fadeInRight 1s ease;
  display: flex;
  justify-content: center;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.profile-container {
  position: relative;
  width: 350px;
  height: 350px;
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 2;
}

.profile-decoration {
  position: absolute;
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--gradient);
  border-radius: 30px;
  z-index: 1;
  opacity: 0.3;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  color: var(--primary);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

/* Sections */
.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  color: var(--text-primary);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 4px;
}

/* About Section */
.about {
  background: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.about-text strong {
  color: var(--text-primary);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.stat-item {
  text-align: center;
  padding: 30px;
  background: var(--card-bg);
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.stat-item:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  cursor: pointer;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Skills Section */
.skills {
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.skills-category {
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}

.skills-category h3 {
  font-size: 1.3rem;
  margin-bottom: 25px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-category h3 i {
  color: var(--primary);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.skill-bar {
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
}

.soft-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.soft-skill-tag {
  padding: 10px 18px;
  background: var(--bg-tertiary);
  border-radius: 25px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.soft-skill-tag:hover {
  background: var(--gradient);
  color: var(--white);
  cursor: pointer;
}

.languages-category {
  grid-column: span 2;
}

.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.language-item {
  text-align: center;
  padding: 25px;
  background: var(--bg-tertiary);
  border-radius: 15px;
  transition: var(--transition);
}

.language-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.language-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.language-item h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.language-level {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 15px;
}

.language-bar {
  height: 6px;
  background: rgba(0, 120, 212, 0.2);
  border-radius: 10px;
  overflow: hidden;
}

.language-progress {
  height: 100%;
  background: var(--gradient);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s ease;
}

/* Experience Section */
.experience {
  background: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-left: 40px;
  margin-bottom: 50px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -10px;
  top: 0;
  width: 24px;
  height: 24px;
  background: var(--bg-secondary);
  border: 4px solid var(--primary);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-secondary);
}

.timeline-content {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.timeline-content:hover {
  box-shadow: var(--shadow);
  transform: translateX(10px);
  border-color: var(--primary);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.timeline-header h3 {
  font-size: 1.3rem;
  color: var(--text-primary);
}

.timeline-date {
  background: var(--gradient);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.timeline-company {
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Expandable Experience Content */
.timeline-expandable {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  opacity: 0;
}

.timeline-expandable.expanded {
  max-height: 500px;
  opacity: 1;
}

.read-more-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  transition: var(--transition);
  margin-top: 10px;
}

.read-more-btn:hover {
  color: var(--secondary);
}

.read-more-btn i {
  transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
  transform: rotate(180deg);
}

.read-more-btn.expanded span::before {
  content: "Show Less";
}

.read-more-btn.expanded span {
  font-size: 0;
}

.read-more-btn.expanded span::before {
  font-size: 0.9rem;
}

.timeline-details {
  list-style: none;
  margin-bottom: 20px;
}

.timeline-details li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.timeline-details li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--primary);
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-tags span {
  padding: 5px 12px;
  background: var(--bg-secondary);
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 500;
}

/* Certifications Section */
.certifications {
  background: var(--bg-primary);
  transition: background-color 0.3s ease;
  overflow: hidden;
}

/* Carousel Styles */
.cert-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}

.cert-carousel {
  overflow: hidden;
  flex: 1;
  border-radius: 20px;
}

.cert-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 30px;
}

.cert-card {
  background: var(--card-bg);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  min-width: calc(100% - 0px);
  flex-shrink: 0;
  border: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .cert-card {
    min-width: calc(50% - 15px);
  }
}

@media (min-width: 1024px) {
  .cert-card {
    min-width: calc(33.333% - 20px);
  }
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
  cursor: pointer;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gradient);
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
  z-index: 10;
}

.carousel-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: var(--bg-tertiary);
  cursor: pointer;
  transition: var(--transition);
}

.indicator:hover {
  background: var(--primary);
  opacity: 0.7;
}

.indicator.active {
  background: var(--gradient);
  width: 35px;
  border-radius: 10px;
}

.cert-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-card:hover .cert-image {
  transform: scale(1.1);
}

.cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 120, 212, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-preview-btn {
  background: var(--white);
  color: var(--primary);
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.cert-preview-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.cert-content {
  padding: 25px;
  text-align: center;
}

.cert-badge {
  width: 50px;
  height: 50px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -45px auto 15px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
}

.cert-badge i {
  font-size: 1.3rem;
  color: #ffffff;
}

.cert-card h3 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cert-issuer {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.cert-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Certificate Modal */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.cert-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  max-width: 900px;
  max-height: 90vh;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.cert-modal.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  transition: var(--transition);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  transform: rotate(90deg);
  color: var(--accent);
}

.modal-image {
  max-width: 100%;
  max-height: 75vh;
  border-radius: 15px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-title {
  color: #ffffff;
  text-align: center;
  margin-top: 20px;
  font-size: 1.3rem;
}

/* Education Section */
.education {
  background: var(--bg-secondary);
  transition: background-color 0.3s ease;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.education-card {
  display: flex;
  gap: 25px;
  background: var(--card-bg);
  padding: 35px;
  border-radius: 20px;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.education-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px);
  border-color: var(--primary);
}

.education-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.education-icon i {
  font-size: 1.5rem;
  color: var(--white);
}

.education-content h3 {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.education-school {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.education-gpa {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  margin-bottom: 10px;
}

.education-details {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Contact Section */
.contact {
  background: #0f172a;
  color: #ffffff;
}

.contact .section-title {
  color: #ffffff;
}

.contact .section-title::after {
  background: var(--gradient);
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: -30px auto 50px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  width: 55px;
  height: 55px;
  background: var(--gradient);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 1.3rem;
  color: #ffffff;
}

.contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: #ffffff;
}

.contact-details a,
.contact-details p {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--accent);
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Footer */
.footer {
  background: #020617;
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.6);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.3rem;
  transition: var(--transition);
}

.footer-social a:hover {
  color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-text {
    order: 2;
  }

  .hero-image {
    order: 1;
  }

  .tagline {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .profile-container {
    width: 280px;
    height: 280px;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: row;
    justify-content: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .languages-category {
    grid-column: span 1;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--bg-secondary);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 50px;
    gap: 30px;
    transition: var(--transition);
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .name {
    font-size: 2.5rem;
  }

  .title {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    flex-direction: column;
  }

  /* Carousel Mobile Styles */
  .cert-carousel-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .carousel-btn {
    display: none;
  }

  .cert-carousel {
    order: 1;
  }

  .carousel-indicators {
    order: 2;
  }

  /* Enable swipe on mobile */
  .cert-track {
    cursor: grab;
  }

  .cert-track:active {
    cursor: grabbing;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-marker {
    left: 2px;
  }

  .education-grid {
    grid-template-columns: 1fr;
  }

  .education-card {
    flex-direction: column;
    text-align: center;
  }

  .education-icon {
    margin: 0 auto;
  }

  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Animation on scroll */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Parallax effect for sections */
.section {
  position: relative;
}

/* Card hover micro-interactions */
.cert-card,
.education-card,
.stat-item,
.skill-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Floating animation for decorative elements */
@keyframes floatAnimation {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  25% {
    transform: translateY(-10px) rotate(1deg);
  }
  50% {
    transform: translateY(-5px) rotate(-1deg);
  }
  75% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.profile-decoration {
  animation: floatAnimation 6s ease-in-out infinite;
}

/* Pulse animation for buttons */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 4px 15px rgba(0, 120, 212, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 120, 212, 0.6);
  }
}

.btn-primary:hover {
  animation: pulse 1.5s ease-in-out infinite;
}

/* Glowing effect for active nav links */
.nav-menu a.active {
  color: var(--primary);
}

.nav-menu a.active::after {
  width: 100%;
  box-shadow: 0 0 10px var(--primary);
}
