@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap");

:root {
  --primary: #f05941;
  --primary-light: #ed7663;
  --secondary: #be3144;
  --maroon: #c63221;
  --dark: #22092c;
  --bg-light: #ffffff;
  --bg-off-white: #f8f9fa;
  --text-main: #22092c;
  --text-muted: #555555;
  --text-light: #808080;
  --white: #ffffff;
  --shadow: 0 10px 30px -10px rgba(34, 9, 44, 0.1);
  --shadow-hover: 0 20px 40px -10px rgba(34, 9, 44, 0.2);
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.5);
  --blur: blur(12px);
  --warning: #ffc107;
  --success: #2ecc71;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-off-white);
}

::-webkit-scrollbar-thumb {
  background: var(--primary-light);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

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

.section-padding {
  padding: 8rem 0;
}

.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  box-shadow: 0 4px 15px rgba(240, 89, 65, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(240, 89, 65, 0.5);
}

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

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

.section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 5rem;
  text-align: center;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--dark), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title i {
  margin-right: 15px;
  color: var(--primary);
  /* Ensure icon has color since text fill is transparent */
  -webkit-text-fill-color: var(--primary);
  font-size: 0.9em;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 6px;
  background: var(--primary);
  border-radius: 3px;
}

/* Button Icon Styles */
.btn i {
  margin-left: 10px;
  transition: transform 0.3s ease;
}

.btn:hover i {
  transform: translateX(5px) translateY(-2px);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--blur);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
  padding: 1.2rem 0;
  transition: var(--transition);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
}

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

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
  font-size: 1.05rem;
}

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

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

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

.menu-btn {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
  background-color: var(--dark);
  /* Fallback */
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/images/backgrounds/hero-background.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
  opacity: 0.4;
  /* Darkened for contrast */
  animation: kenBurns 20s ease-in-out infinite alternate;
}

@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }

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

  100% {
    transform: scale(1) translate(0, 0);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(34, 9, 44, 0.8), rgba(34, 9, 44, 0.6));
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero-greeting {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-name {
  font-size: 5.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--white);
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  background: linear-gradient(to right, #ffffff, var(--primary), #ffffff);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientMove 3s linear infinite;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }

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

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  font-size: 0.95rem;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
}

.hero-status strong {
  color: var(--white);
}

.status-separator {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.4);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--success);
  animation: flicker 1.5s infinite;
}

.casual-status {
  color: var(--success);
  font-weight: 600;
  animation: flicker 1.5s infinite;
}

@keyframes shimmer {
  to {
    background-position: 200% center;
  }
}

@keyframes flicker {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.8);
  }
}

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

.hero-desc {
  display: block;
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 650px;
  line-height: 1.8;
  font-weight: 300;
}

.hero-desc span {
  display: inline;
}

.hero-btns {
  display: flex;
  gap: 1.5rem;
}

/* About Section */
.about {
  background-color: var(--bg-off-white);
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-img-wrapper {
  position: relative;
}

.about-img-wrapper::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(240, 89, 65, 0.1) 0%, transparent 70%);
  z-index: -1;
  border-radius: 50%;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
  transition: var(--transition);
  border: 4px solid var(--white);
}

.about-img:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px -10px rgba(34, 9, 44, 0.3);
}

.about-text h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
  background: linear-gradient(to right, var(--dark), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.stat-card {
  background: var(--white);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.stat-icon {
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.stat-card h4 {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-card p {
  font-size: 0.95rem;
  color: var(--dark);
  margin: 0;
  font-weight: 700;
}

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

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.social-icon:hover {
  transform: translateY(-5px);
  background: var(--primary);
  box-shadow: 0 10px 20px rgba(240, 89, 65, 0.3);
}

.social-icon img {
  width: 24px;
  height: 24px;
  filter: grayscale(100%);
  transition: var(--transition);
}

.social-icon:hover img {
  filter: grayscale(0%) brightness(200%);
}

/* Skills Section */
.skills {
  background-color: var(--bg-light);
  position: relative;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.5rem;
  position: relative;
  z-index: 2;
}

.skill-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
  align-items: flex-start;
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1), 0 0 20px var(--theme-color);
  border-color: var(--theme-color);
}

/* Icon Styling */
.skill-icon-wrapper {
  width: 70px;
  height: 70px;
  background: var(--bg-off-white);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.skill-main-icon {
  font-size: 2.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.skill-card:hover .skill-icon-wrapper {
  background: var(--primary);
  transform: rotate(-5deg) scale(1.1);
}

.skill-card:hover .skill-main-icon {
  color: var(--white);
  transform: rotate(5deg);
}

/* Content Styling */
.skill-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-tag {
  background: var(--bg-off-white);
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid transparent;
}

.skill-card:hover .tech-tag {
  background: var(--white);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}



.tech-tag:hover {
  background: var(--theme-color, var(--primary)) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
}

/* Theme Colors */
[data-theme="python"] {
  --theme-color: #306998;
}

[data-theme="cloud"] {
  --theme-color: #f57c00;
}

[data-theme="fullstack"] {
  --theme-color: #f0db4f;
}

[data-theme="genai"] {
  --theme-color: #9b59b6;
}

/* Adjust text color for light themes */
[data-theme="fullstack"] .tech-tag:hover,
[data-theme="cloud"] .tech-tag:hover {
  color: #333 !important;
}

/* Experience Section - Timeline Layout */
.experience {
  background-color: var(--bg-off-white);
  background-image: radial-gradient(rgba(34, 9, 44, 0.15) 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  overflow-x: hidden;
  position: relative;
}

.experience::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, var(--bg-off-white), transparent 10%, transparent 90%, var(--bg-off-white));
  pointer-events: none;
  z-index: 0;
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Central Line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--bg-off-white);
  /* Changed to background color to be filled */
  transform: translateX(-50%);
  border-radius: 2px;
  z-index: 0;
}

.timeline-line::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-light);
  opacity: 0.3;
  border-radius: 2px;
}

.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
  border-radius: 2px;
  transition: height 0.1s linear;
  z-index: 1;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 2rem;
  margin-bottom: 4rem;
  opacity: 0;
  /* Initial state for animation */
  transform: translateY(30px);
  transition: all 0.6s ease-out;
  z-index: 2;
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

/* Left Side Items */
.timeline-item.left {
  left: 0;
  text-align: right;
}

/* Right Side Items */
.timeline-item.right {
  left: 50%;
  text-align: left;
}

/* Timeline Dot */
.timeline-dot {
  position: absolute;
  top: 20px;
  width: 40px;
  /* Increased size */
  height: 40px;
  background: var(--white);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(240, 89, 65, 0.2);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
}

.timeline-item.left .timeline-dot {
  right: -22px;
  /* Half of dot width (20) + half of line width (2) */
}

.timeline-item.right .timeline-dot {
  left: -22px;
}

.timeline-dot i {
  color: var(--primary);
  font-size: 1.2rem;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 8px rgba(240, 89, 65, 0.3);
  background: var(--primary);
}

.timeline-item:hover .timeline-dot i {
  color: var(--white);
  transform: scale(1.2);
}

/* Animation for Dot Pop */
.timeline-item.animate .timeline-dot {
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

/* Date */
.timeline-date {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: inline-block;
}

/* Content Box */
.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

/* Arrows */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 30px;
  /* Adjusted for larger dot */
  width: 0;
  height: 0;
  border-style: solid;
  z-index: 1;
}

.timeline-item.left .timeline-content::before {
  right: -10px;
  border-width: 10px 0 10px 10px;
  border-color: transparent transparent transparent var(--white);
}

.timeline-item.right .timeline-content::before {
  left: -10px;
  border-width: 10px 10px 10px 0;
  border-color: transparent var(--white) transparent transparent;
}

.timeline-content h3 {
  font-size: 1.5rem;
  color: var(--dark);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.timeline-content h5 {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive Design */
@media (max-width: 768px) {
  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 80px;
    /* Increased padding */
    padding-right: 0;
    margin-bottom: 3rem;
  }

  .timeline-item.left,
  .timeline-item.right {
    left: 0;
    text-align: left;
  }

  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 8px;
    /* Line left (30) - half dot (20) - half line (2) = 8 */
    right: auto;
  }

  .timeline-item.left .timeline-content::before,
  .timeline-item.right .timeline-content::before {
    left: -10px;
    right: auto;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--white) transparent transparent;
  }
}

/* Projects Section - Featured Layout */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.project-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  isolation: isolate;
  /* Create stacking context */
  /* Card Styling */
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 24px;
  padding: 3rem;
  box-shadow: var(--shadow);
  overflow: hidden;
  /* For watermark */
  transition: var(--transition);
}

.project-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
}

/* Alternating Layout */
.project-card:nth-child(even) {
  direction: rtl;
}

.project-card:nth-child(even) .project-info {
  direction: ltr;
  text-align: right;
}

.project-card:nth-child(even) .tech-stack,
.project-card:nth-child(even) .project-link {
  justify-content: flex-end;
}

/* Project Image Container */
.project-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.2);
  position: relative;
  height: 400px;
  transition: var(--transition);
  background: var(--white);
  /* Fallback */
}

/* Image Overlay Effect */
.project-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

.project-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img img {
  transform: scale(1.1);
}

.project-card:hover .project-img::after {
  opacity: 1;
}

.project-card:hover .project-img {
  box-shadow: 0 30px 60px -20px rgba(34, 9, 44, 0.3);
  transform: translateY(-5px);
}

/* Project Info */
.project-info {
  position: relative;
  z-index: 2;
}

.project-info h3 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--dark);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(to right, var(--dark), var(--primary));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.project-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 1.1rem;
  line-height: 1.8;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Tech Stack */
.tech-stack {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.tech-icon {
  width: 35px;
  height: 35px;
  transition: var(--transition);
  filter: grayscale(100%);
  opacity: 0.7;
}

.project-card:hover .tech-icon {
  filter: grayscale(0%);
  opacity: 1;
  transform: translateY(-3px);
}

/* Project Link Button */
.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  font-size: 1.1rem;
  transition: var(--transition);
  padding-bottom: 5px;
  border-bottom: 2px solid transparent;
}

.project-link i {
  transition: transform 0.3s ease;
}

.project-link:hover {
  border-bottom-color: var(--primary);
}

.project-link:hover i {
  transform: translateX(5px);
}

/* Contact Section */
/* Contact Section */
.contact {
  background-color: var(--bg-off-white);
  background-image: radial-gradient(rgba(34, 9, 44, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
}

.contact-glass {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
  padding: 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--dark);
  font-weight: 800;
}

.contact-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  color: var(--dark);
  font-weight: 500;
}

.contact-item i {
  color: var(--primary);
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--dark);
  font-size: 0.95rem;
  margin-left: 0.5rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1.2rem;
  color: var(--text-light);
  transition: var(--transition);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  /* Space for icon */
  border: 2px solid transparent;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 12px;
  font-family: inherit;
  transition: var(--transition);
  font-size: 1rem;
  color: var(--dark);
}

.form-control:focus {
  outline: none;
  background-color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(240, 89, 65, 0.15);
}

.form-control:focus+.input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
  padding-top: 1rem;
}

.textarea-wrapper .input-icon {
  top: 1.2rem;
}

.send-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.send-btn i {
  transition: transform 0.3s ease;
}

.send-btn:hover i {
  transform: translateX(5px) translateY(-5px);
}

/* Responsive Contact */
@media (max-width: 768px) {
  .contact-glass {
    padding: 2rem;
  }

  .contact-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .contact-details {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  .send-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  align-items: center;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-light);
  opacity: 0.8;
  font-size: 0.95rem;
  max-width: 300px;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
  opacity: 1;
  padding-left: 5px;
}

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

.footer-bottom p {
  color: var(--text-light);
  opacity: 0.6;
  font-size: 0.9rem;
}

/* Scroll to Top */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
}

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

.scroll-top:hover {
  background: var(--white);
  color: var(--primary);
  transform: translateY(-5px);
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  border-top-color: var(--primary);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Footer */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .footer-brand p {
    margin: 0 auto;
  }

  .footer-social .social-links {
    justify-content: center;
  }
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.animate {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 0.1s;
}

.delay-200 {
  transition-delay: 0.2s;
}

.delay-300 {
  transition-delay: 0.3s;
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {

  .about-grid,
  .contact-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project-card:nth-child(even) {
    direction: ltr;
  }

  .project-card:nth-child(even) .project-info {
    text-align: left;
  }

  .project-card:nth-child(even) .tech-stack,
  .project-card:nth-child(even) .project-link {
    justify-content: flex-start;
  }

  .project-card:nth-child(even)::before {
    left: auto;
    right: 20px;
  }

  .project-img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .project-card {
    padding: 1.5rem;
    /* Reduced padding for mobile */
  }

  .project-info p {
    padding: 1rem;
    /* Reduced padding for mobile */
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .menu-btn {
    display: block;
  }

  .hero-name {
    font-size: 3.2rem;
    text-shadow: none;
    margin-bottom: 2rem;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-status {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(240, 89, 65, 0.2);
    backdrop-filter: blur(12px);
    padding: 0.8rem 1.5rem;
    margin-bottom: 2.5rem;
  }

  .casual-status,
  .status-separator {
    display: none;
  }

  .hero-status strong {
    color: var(--success);
    animation: flicker 1.5s infinite;
  }

  .hero::before {
    background: radial-gradient(circle at center, rgba(34, 9, 44, 0.5) 0%, rgba(34, 9, 44, 0.95) 100%);
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 1.2rem;
  }

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

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

  .hero {
    padding-top: 130px;
    /* Increased top padding for mobile */
    padding-bottom: 80px;
    /* Added bottom padding for mobile */
  }

  .hero-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(5px);
  }

  .about-text p,
  .project-info p,
  .timeline-content p {
    font-size: 0.95rem;
  }

  .contact-glass {
    padding: 2rem;
  }

  .contact-content-wrapper {
    gap: 3rem;
  }

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

  .contact-details {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }

  /* Timeline Mobile */
  .timeline::after {
    left: 31px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    /* Reduced padding for mobile */
    padding-right: 10px;
    /* Reduced padding for mobile */
  }

  .timeline-content {
    padding: 1.5rem;
    /* Reduced padding for mobile */
  }

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

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

  .right .timeline-date,
  .left .timeline-date {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    text-align: left;
    margin-bottom: 10px;
    display: block;
  }

  .timeline-dot {
    left: 32px;
    transform: translateX(-50%);
  }

  .timeline-line {
    left: 31px;
  }
}