:root {
  --primary-dark: #0a0a0a;
  --secondary-dark: #111111;
  --accent-red: #ff2e2e;
  --accent-orange: #ff6b35;
  --accent-gradient: linear-gradient(135deg, #ff2e2e 0%, #ff6b35 100%);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #ffffff;
  --text-secondary: #b0b0b0;
  --text-muted: #777777;
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 10px 30px rgba(255, 45, 45, 0.2);
  --border-radius: 24px;
  --border-radius-sm: 16px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--primary-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

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

section {
  padding: 100px 0;
}

.section-title {
  margin-bottom: 60px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.8rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin-bottom: 15px;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  font-family: "Poppins", sans-serif;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 45, 45, 0.3);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 25px 0;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: flex;
  align-items: center;
}

.logo i {
  margin-right: 10px;
  font-size: 2rem;
}

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

.nav-links li {
  margin-left: 40px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover {
  color: white;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding-top: 180px;
  padding-bottom: 120px;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 45, 45, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 107, 53, 0.1) 0%,
      transparent 50%
    );
  position: relative;
  overflow: hidden;
}

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

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 20px;
  margin-bottom: 60px;
}

.developer-image {
  width: 400px;
  height: 500px;
  border-radius: var(--border-radius);
  background: linear-gradient(
    135deg,
    rgba(255, 45, 45, 0.2) 0%,
    rgba(255, 107, 53, 0.2) 100%
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  box-shadow: var(--shadow-dark);
}

.developer-image::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: url("images/men.avif") center/cover;
  border-radius: calc(var(--border-radius) - 10px);
}

/* Tech Stack Section */
.tech-stack {
  padding: 80px 0;
  background: var(--secondary-dark);
}

.tech-stack .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tech-stack h3 {
  font-size: 1.5rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--text-secondary);
}

.tech-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px;
}

.tech-pill {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: 50px;
  padding: 15px 30px;
  font-weight: 600;
  color: var(--text-primary);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-dark);
}

.tech-pill:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
}

.tech-pill i {
  color: var(--accent-orange);
  font-size: 1.2rem;
}

/* About Section */
.about {
  background: var(--primary-dark);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
}

.about-image {
  flex: 1;
}

.about-image .image-wrapper {
  width: 100%;
  max-width: 400px;
  height: 500px;
  border-radius: var(--border-radius);
  background: linear-gradient(
    135deg,
    rgba(255, 45, 45, 0.2) 0%,
    rgba(255, 107, 53, 0.2) 100%
  );
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.about-image .image-wrapper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  right: 20px;
  bottom: 20px;
  background: url("images/about-image.png") center/cover;
  border-radius: calc(var(--border-radius) - 10px);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  font-size: 2.2rem;
  margin-bottom: 30px;
  color: white;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 50px;
}

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

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Skills Section */
.skills {
  background: var(--secondary-dark);
}

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

.skill-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 40px;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-glow);
  border-color: rgba(255, 107, 53, 0.3);
}

.skill-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}

.skill-card-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-orange);
  font-size: 1.8rem;
}

.skill-card-header h3 {
  font-size: 1.8rem;
  color: white;
}

.skill-item {
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

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

.skill-percentage {
  color: var(--accent-orange);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

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

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

.project-card {
  background: var(--secondary-dark);
  border-radius: var(--border-radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-dark);
}

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

.project-image {
  height: 220px;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 45, 0.2) 0%,
    rgba(255, 107, 53, 0.2) 100%
  );
  position: relative;
  overflow: hidden;
}

.project-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 45, 45, 0.4) 0%,
    rgba(255, 107, 53, 0.4) 100%
  );
  opacity: 0.3;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-content {
  padding: 30px;
}

.project-content h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: white;
}

.project-content p {
  color: var(--text-secondary);
  margin-bottom: 25px;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}

.tech-tag {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-orange);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent-gradient);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  margin-bottom: 60px;
  position: relative;
}

.timeline-item:nth-child(odd) {
  justify-content: flex-end;
  padding-right: 50px;
}

.timeline-item:nth-child(even) {
  justify-content: flex-start;
  padding-left: 50px;
}

.timeline-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius-sm);
  padding: 30px;
  width: calc(50% - 30px);
  box-shadow: var(--shadow-dark);
  position: relative;
}

.timeline-content::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent-gradient);
  border-radius: 50%;
  top: 40px;
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -60px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -60px;
}

.timeline-date {
  color: var(--accent-orange);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

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

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

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Contact Section */
.contact {
  background: var(--secondary-dark);
}

.contact-content {
  display: flex;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-form {
  flex: 1;
}

.contact-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-dark);
}

.contact-card h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: white;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.contact-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 107, 53, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  color: var(--accent-orange);
  font-size: 1.3rem;
}

.contact-text h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
  color: white;
}

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

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 1.3rem;
  transition: var(--transition);
  text-decoration: none;
}

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

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-secondary);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-sm);
  color: white;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-orange);
  background: rgba(255, 255, 255, 0.08);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
.footer {
  padding: 60px 0 30px;
  background: var(--primary-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
  }

  .hero-content {
    text-align: center;
    margin-bottom: 60px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

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

  .about-content {
    flex-direction: column;
  }

  .contact-content {
    flex-direction: column;
  }

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

  .timeline-item {
    justify-content: flex-start !important;
    padding-left: 80px !important;
    padding-right: 0 !important;
  }

  .timeline-content {
    width: 100%;
  }

  .timeline-content::before {
    left: -60px !important;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links li {
    margin: 15px 0;
  }

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

  .hero h1 {
    font-size: 2.3rem;
  }

  .section-title h2 {
    font-size: 2.2rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 30px;
  }
}

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

  .hero-btns {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

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

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

  .about-stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
