/* CSS Variables for consistent theming */
:root {
  --primary-color: #3498db;
  --primary-dark: #2980b9;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --bg-color: #fff;
  --section-bg: #f8f9fa;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 8px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
  color: var(--dark-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.highlight {
  color: var(--primary-color);
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  font-size: 2.5rem;
  padding-bottom: 1rem;
}

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

/* Header */
.header {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow);
}

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

.logo h1 {
  color: var(--light-color);
  margin: 0;
  font-size: 1.8rem;
}

.nav ul {
  display: flex;
  list-style: none;
}

.nav li {
  margin-left: 1.5rem;
}

.nav a {
  color: var(--light-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 0;
  position: relative;
}

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

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

.nav a:hover::after {
  width: 100%;
}

/* Hero Section - Modern Design */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
  position: relative;
  color: var(--light-color);
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Animated background particles effect */
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(52, 152, 219, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(231, 76, 60, 0.15) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  position: relative;
  z-index: 1;
}

.hero-image {
  flex: 1;
  max-width: 450px;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Glowing ring effect around image */
.hero-image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3498db, #e74c3c, #9b59b6);
  opacity: 0.4;
  filter: blur(30px);
  animation: pulse 3s ease-in-out infinite;
  z-index: 0;
}

@keyframes pulse {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.4;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.6;
  }
}

.hero-image img {
  width: 100%;
  max-width: 380px;
  border-radius: 50%;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(52, 152, 219, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
  border: 6px solid rgba(255, 255, 255, 0.15);
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

.hero-image img:hover {
  transform: scale(1.08) rotate(2deg);
  border-color: rgba(52, 152, 219, 0.5);
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.5),
    0 0 60px rgba(52, 152, 219, 0.5),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
}

.hero-text {
  flex: 1;
  animation: fadeInUp 1s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text h2 {
  font-size: 3.5rem;
  color: var(--light-color);
  margin-bottom: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-text .highlight {
  background: linear-gradient(135deg, #3498db, #9b59b6, #e74c3c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 5s ease infinite;
  background-size: 200% 200%;
}

@keyframes gradientShift {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.2);
}

.hero-text p:first-of-type {
  font-size: 1.5rem;
  font-weight: 600;
  color: #3498db;
  margin-bottom: 1rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.4s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: var(--light-color);
  box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
  position: relative;
  z-index: 1;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6);
}

.btn-secondary {
  background: #e74c3c;
  color: var(--light-color);
  border: 2px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: red;
  border-color: rgba(52, 152, 219, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(52, 152, 219, 0.4);
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--section-bg);
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

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

.feature {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.feature h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.feature p {
  margin-bottom: 0;
  color: var(--text-color);
  opacity: 0.8;
}

/* Skills Section */
.skills {
  padding: 6rem 0;
  background-color: var(--bg-color);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-category {
  background-color: var(--section-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
}

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

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.skill-category h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--primary-color);
}

.skill-category ul {
  list-style-type: none;
  text-align: left;
}

.skill-category li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

.skill-category li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Learning Journey Section */
.journey {
  padding: 6rem 0;
  background-color: var(--section-bg);
}

.journey-summary {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  color: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}

.journey-summary h3 {
  color: white;
  margin-bottom: 1rem;
}

.journey-summary p {
  margin-bottom: 0;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--light-color);
  padding: 3rem 0;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-info {
  margin-bottom: 2rem;
}

.footer-info h3 {
  color: var(--light-color);
  margin-bottom: 0.5rem;
}

.footer-info p {
  opacity: 0.8;
  margin-bottom: 0;
}

.footer-copy p {
  margin-bottom: 0.5rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

}

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }

  .nav ul {
    margin-top: 1rem;
  }

  .nav li {
    margin: 0 0.5rem;
  }

  .hero {
    padding: 7rem 0 2rem;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

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

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

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

/* Exploration Section */
.exploration {
  padding: 6rem 0;
  background-color: var(--bg-color);
}

.exploration-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.exploration-intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-color);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.tech-card {
  background: var(--section-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  border-top: 4px solid var(--primary-color);
}

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

.tech-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.tech-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.tech-card p {
  margin-bottom: 1.5rem;
  color: var(--text-color);
  opacity: 0.9;
}

.tech-card ul {
  list-style-type: none;
  text-align: left;
}

.tech-card li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-color);
}

.tech-card li::before {
  content: '▶';
  position: absolute;
  left: 0;
  color: var(--accent-color);
  font-size: 0.8rem;
}

/* Technical Skills Section */
.technical {
  padding: 6rem 0;
  background-color: var(--section-bg);
}

.skills-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skills-category {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.skills-category h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.3rem;
  border-bottom: 2px solid var(--section-bg);
  padding-bottom: 0.5rem;
}

.skills-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.skill-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.skill-tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Achievements Section */
.achievements {
  padding: 6rem 0;
  background-color: var(--bg-color);
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 3rem;
  max-width: 1000px;
  margin: 0 auto;
}

.achievement-category {
  background: var(--section-bg);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.achievement-category h3 {
  color: var(--primary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-size: 1.4rem;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 0.5rem;
}

.certification-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.certification-item {
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border-left: 4px solid var(--accent-color);
  transition: var(--transition);
}

.certification-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.certification-item h4 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.cert-platform {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 1rem;
}

.cert-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.achievement-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: var(--bg-color);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.achievement-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

.achievement-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.achievement-content h4 {
  color: var(--dark-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.achievement-content p {
  margin-bottom: 0;
  color: var(--text-color);
  opacity: 0.9;
  font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }



  .nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav li {
    margin: 0.5rem;
  }

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

@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
  }

  .nav ul {
    margin-top: 1rem;
  }

  .nav li {
    margin: 0 0.5rem;
  }

  .hero {
    padding: 7rem 0 2rem;
  }

  .hero-text h2 {
    font-size: 2.5rem;
  }

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

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

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

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

  .skills-tags {
    justify-content: flex-start;
  }

  .achievement-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-text h2 {
    font-size: 2rem;
  }

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

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


  .journey-summary {
    padding: 1.5rem;
  }

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

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

  .skills-category {
    padding: 1.5rem;
  }

  .tech-card {
    padding: 2rem 1.5rem;
  }
}

.javascript-demo {
  background: var(--section-bg);
  padding: 2rem;
  border-radius: var(--border-radius);
  margin-bottom: 3rem;
  box-shadow: var(--shadow);
}

.demo-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  border-left: 4px solid var(--primary-color);
}

.demo-section h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.demo-controls {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  align-items: center;
  color: #1a1a1a
}

.demo-input {
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.demo-output {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  min-height: 60px;
  font-family: 'Courier New', monospace;
}

.counter-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.counter-display {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 50px;
  text-align: center;
}

.error {
  color: #dc3545;
  font-weight: bold;
}


/* Modern Glassmorphism Card */
.card {
  position: relative;
  padding: 3.2rem 2.4rem;
  /* slightly larger padding */
  border-radius: 20px;
  margin: 1rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: 0.4s ease;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
}

/* Glow border on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 0.5;
}

.card:hover h3,
.card:hover p,
.card:hover .card-link {
  opacity: 1;
  color: inherit;
  position: relative;
  z-index: 2;
}

/* Hover floating */
.card:hover {
  transform: translateY(-12px) scale(1.02);
}

.card-icon {
  font-size: 3.7rem;
  margin-bottom: 1.4rem;
}

.card h3 {
  color: var(--primary-color);
  font-size: 1.55rem;
  margin-bottom: 0.8rem;
}

.card p {
  opacity: 0.85;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.card-link {
  color: var(--accent-color);
  font-weight: 700;
  display: inline-block;
  margin-top: 1rem;
  transition: 0.35s ease;
}

.card:hover .card-link {
  transform: translateX(8px);
}

.language-selector select {
  padding: 6px 10px;
  font-size: 15px;
  border-radius: 6px;
}

@media(max-width:900px) {
  header .container {
    flex-direction: column;
    gap: 10px;
  }

  nav ul {
    flex-direction: column;
    text-align: center;
  }
}

/* Table Styles */
.journey-table {
  width: 100%;
  border-collapse: collapse;
  margin: 30px 0;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}

.journey-table th {
  background-color: #4a6fa5;
  color: white;
  text-align: left;
  padding: 15px;
  font-weight: 600;
}

.journey-table td {
  padding: 15px;
  border-bottom: 1px solid #e0e0e0;
}

.journey-table tr:nth-child(even) {
  background-color: #f8f9fa;
}

.journey-table tr:hover {
  background-color: #f1f3f5;
}

.day-number {
  font-weight: bold;
  color: #4a6fa5;
  font-size: 1.1em;
}

.day-title {
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.day-focus {
  font-style: italic;
  color: #666;
  margin-bottom: 10px;
  font-size: 0.9em;
}

.day-description {
  margin-bottom: 10px;
  line-height: 1.5;
}

.day-topics {
  margin: 0;
  padding-left: 20px;
}

.day-topics li {
  margin-bottom: 5px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .journey-table {
    display: block;
    overflow-x: auto;
  }

  .journey-table th,
  .journey-table td {
    padding: 10px;
    font-size: 0.9em;
  }
}