:root {
  /* Colors */
  --primary: #00A6ED;
  --primary-dark: #007BB5;
  --secondary: #0D3B66;
  --bg-color: #F0F4F8;
  --surface: #FFFFFF;
  --text-main: #1E293B;
  --text-light: #64748B;
  --white: #FFFFFF;

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);

  /* Fonts */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

ul {
  list-style: none;
}

/* Utilities */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: var(--section-padding);
}

.bg-light {
  background: rgba(255, 255, 255, 0.5);
}

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

/* Background Shapes */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.6;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--primary);
  top: -100px;
  right: -50px;
  opacity: 0.2;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--secondary);
  bottom: 0;
  left: -50px;
  opacity: 0.1;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--secondary);
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-heading);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 166, 237, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 166, 237, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-block {
  width: 100%;
  justify-content: center;
  border: none;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--secondary);
}

.logo .dot {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

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

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

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-socials {
  display: flex;
  gap: 15px;
}

.nav-socials a {
  font-size: 1.2rem;
  color: var(--secondary);
}

.nav-socials a:hover {
  color: var(--primary);
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transform: translateY(-100%);
  transition: 0.4s ease-in-out;
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.mobile-links a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--secondary);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding-top: 80px;
  /* Nav height */
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-width);
  padding: 0 20px;
}

.hero-text {
  flex: 1;
}

.greeting {
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

.typing-text {
  font-size: 2rem;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-main);
  max-width: 500px;
  margin-bottom: 30px;
}

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

.img-wrapper {
  padding: 10px;
  position: relative;
  z-index: 1;
}

.hero-image img {
  width: 350px;
  max-width: 100%;
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
}

.mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--secondary);
  border-radius: 20px;
  position: relative;
}

.mouse::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  animation: scroll 1.5s infinite;
}

@keyframes scroll {
  0% {
    top: 8px;
    opacity: 1;
  }

  100% {
    top: 20px;
    opacity: 0;
  }
}

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-subtitle {
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-img img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.about-text {
  padding: 40px;
}

.about-text p {
  margin-bottom: 15px;
  color: var(--text-light);
}

.about-text strong {
  color: var(--secondary);
  font-weight: 600;
}

/* Skills Section */
.skills-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.skill-card {
  padding: 30px;
  text-align: center;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.9);
}

.skill-icon {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tech-tag {
  background: rgba(0, 166, 237, 0.1);
  color: var(--primary-dark);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
}

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

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 2px;
}

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

.timeline-item.left {
  left: 0;
}

.timeline-item.right {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  right: -10px;
  background-color: var(--white);
  border: 4px solid var(--primary);
  top: 24px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-item.right::after {
  left: -10px;
}

.timeline-content {
  padding: 20px 30px;
  position: relative;
  border-radius: 15px;
}

.timeline-content .date {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 5px;
}

.timeline-content h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
}

.timeline-content h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 10px;
}

/* Contact */
.contact-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary);
}

input,
textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.8);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: 0.3s;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 237, 0.1);
  background: #fff;
}

/* Footer */
footer {
  background: var(--secondary);
  color: var(--white);
  padding: 40px 0;
  margin-top: 50px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.social-links a {
  font-size: 1.5rem;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
  color: var(--primary);
}

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

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

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

  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }

  .timeline-item::after {
    left: 21px;
  }

  .timeline-item.right {
    left: 0;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .nav-socials {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .glass-nav {
    padding: 15px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .scroll-indicator {
    display: block;
    /* Ensure it's visible */
    bottom: 20px;
    /* Adjust position if needed */
  }

  /* Add padding to ensure content doesn't overlap with the indicator */
  .hero-section {
    padding-bottom: 80px;
  }
}

/* Animations Classes */
.fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(30px);
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease forwards;
  opacity: 0;
  transform: translateX(-30px);
}

.fade-in-right {
  animation: fadeInRight 0.8s ease forwards;
  opacity: 0;
  transform: translateX(30px);
}

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

@keyframes fadeInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}