:root {
  --primary: #6366f1;
  --secondary: #8b5cf6;
  --accent: #ec4899;
  --dark: #0f172a;
  --light: #f8fafc;
  --gray: #64748b;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

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

body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--light);
  color: var(--dark);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Floating Hire Me Button */
.hire-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--gradient);
  color: white;
  padding: 18px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.4);
  transition: all 0.4s ease;
  animation: pulse 3s infinite;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hire-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 25px 50px rgba(99, 102, 241, 0.6);
}

@keyframes pulse {

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

  50% {
    transform: scale(1.05);
  }
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 25px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: 0.4s;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.9);
}

.navbar.scrolled {
  padding: 15px 8%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 2.2rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  position: relative;
  transition: 0.4s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: -8px;
  left: 0;
  background: var(--gradient);
  transition: 0.4s;
  border-radius: 2px;
}

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

.cv-btn {
  background: var(--gradient);
  color: white;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark);
}

.mobile-menu {
  position: fixed;
  top: 80px;
  left: -100%;
  width: 100%;
  background: white;
  padding: 30px 8%;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
  z-index: 999;
  text-align: center;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu a {
  display: block;
  padding: 18px;
  font-size: 1.3rem;
  color: var(--dark);
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu .cv-btn {
  display: inline-block;
  margin-top: 20px;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 120px 8% 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e0dffc 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: var(--primary);
  opacity: 0.1;
  border-radius: 50%;
  filter: blur(120px);
}

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

.hero h4 {
  font-size: 1.4rem;
  color: var(--primary);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 4.8rem;
  line-height: 1.1;
  margin: 15px 0;
  font-weight: 700;
}

.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero h2 {
  font-size: 2.4rem;
  margin: 25px 0;
  color: var(--dark);
}

.typing {
  color: var(--primary);
  font-weight: 700;
}

.cursor {
  animation: blink 1s infinite;
  color: var(--primary);
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.hero-buttons {
  margin: 50px 0;
}

.btn-primary,
.btn-secondary {
  padding: 18px 40px;
  margin-right: 20px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: 0.4s;
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
  transform: translateY(-6px);
}

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

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

.social-links {
  display: flex;
  gap: 18px;
  margin-top: 40px;
}

.social-links a {
  width: 55px;
  height: 55px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: 0.4s;
}

.social-links a:hover {
  transform: translateY(-12px);
  background: var(--gradient);
  color: white;
}

.hero-img {
  width: 420px;
  height: 520px;
  position: relative;
  background: url("assets/profile.jpeg") center/cover no-repeat;
  border-radius: 30px;
  box-shadow: 0 30px 80px rgba(99, 102, 241, 0.35);
}

.img-border {
  position: absolute;
  inset: -20px;
  border: 4px solid var(--primary);
  border-radius: 35px;
  opacity: 0.3;
}

/* Sections */
section {
  padding: 120px 8%;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 80px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

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

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

.stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat h3 {
  font-size: 3rem;
  color: var(--primary);
}

.skill span {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.bar {
  height: 12px;
  background: #e0e7ff;
  border-radius: 6px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--gradient);
  width: 0;
  transition: width 2s ease;
  border-radius: 6px;
}

/* Services, Portfolio, Contact */
.services-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card,
.project {
  background: white;
  padding: 40px 30px;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: 0.4s;
}

.service-card:hover,
.project:hover {
  transform: translateY(-20px);
}

.service-card .icon {
  font-size: 3.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 20px;
}

.project img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(99, 102, 241, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s;
  border-radius: 20px;
}

.project:hover .overlay {
  opacity: 1;
}

/* Contact Form */
.contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

input,
textarea {
  padding: 20px;
  border: none;
  border-radius: 15px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: inherit;
  font-size: 1.1rem;
}

.large {
  padding: 20px 50px;
  font-size: 1.2rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 60px;
  background: var(--dark);
  color: white;
}

.heart {
  color: #e91e63;
}

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

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

  .hero-img {
    width: 340px;
    height: 420px;
    margin-top: 50px;
  }

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

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

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

  .hero h2 {
    font-size: 1.8rem;
  }

  section {
    padding: 80px 5%;
  }

  .input-group {
    grid-template-columns: 1fr;
  }
}