:root {
  color-scheme: dark;
  font-family: 'Segoe UI', Trebuchet MS, sans-serif;
  font-size: 16px;
  color: #e6e9ff;
  background: #05070f;
  --bg: #05070f;
  --surface: rgba(12, 18, 38, 0.88);
  --surface-soft: rgba(16, 24, 52, 0.75);
  --surface-strong: rgba(8, 12, 24, 0.96);
  --text: #e6e9ff;
  --muted: #94a2c4;
  --accent: #6ee2ff;
  --accent-soft: #9184ff;
  --accent-alt: #f3c15e;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 28px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(110, 226, 255, 0.12), transparent 28%),
              radial-gradient(circle at 20% 20%, rgba(217, 126, 255, 0.14), transparent 22%),
              linear-gradient(180deg, #070b16 0%, #03040a 100%);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(110, 226, 255, 0.4);
  }
  50% {
    box-shadow: 0 0 40px rgba(110, 226, 255, 0.7);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* ============ SCROLL ANIMATIONS ============ */
.animate-on-scroll {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

.animate-on-scroll.visible {
  opacity: 1;
  animation: fadeInUp 0.8s ease-out;
}

/* ============ NAVIGATION ============ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-link img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-link:hover {
  transform: scale(1.05);
}

.logo-svg {
            width: 140px;
  transition: all 0.3s ease;
}

.logo-svg:hover {
  filter: drop-shadow(0 0 8px rgba(110, 226, 255, 0.4));
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.menu-toggle span {
  width: 25px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(10px, -10px);
}

/* ============ HERO SECTION ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 1200px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-text h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 600;
  margin: 1rem 0;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.95rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  color: #05070f;
  box-shadow: 0 8px 24px rgba(110, 226, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(110, 226, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(110, 226, 255, 0.1);
  transform: translateY(-3px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.floating-card {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, rgba(110, 226, 255, 0.15), rgba(145, 132, 255, 0.15));
  border: 1px solid var(--border);
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 4s ease-in-out infinite;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(110, 226, 255, 0.1);
}

.card-icon {
  font-size: 120px;
  animation: pulse 2s ease-in-out infinite;
}

/* ============ SECTION CONTAINER & TITLE ============ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 2rem;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 3rem;
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============ ABOUT SECTION ============ */
.about {
  background: radial-gradient(circle at 30% 50%, rgba(110, 226, 255, 0.08), transparent 50%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
}

.image-frame {
  position: relative;
  width: 280px;
  height: 350px;
  margin: 0 auto;
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  border: 2px solid var(--border);
  position: relative;
  z-index: 2;
}

.image-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(135deg, rgba(110, 226, 255, 0.3), rgba(145, 132, 255, 0.3));
  border-radius: 20px;
  z-index: 1;
  animation: glow 3s ease-in-out infinite;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-intro {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1rem;
}

.about-bio {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.fact {
  background: rgba(110, 226, 255, 0.08);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid var(--border);
  text-align: center;
}

.fact-number {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.fact-label {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.skills-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.skill-tag {
  background: rgba(145, 132, 255, 0.15);
  color: var(--accent-soft);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(145, 132, 255, 0.3);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============ SKILLS SECTION ============ */
.skills {
  background: linear-gradient(180deg, rgba(110, 226, 255, 0.05), transparent);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.skill-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(110, 226, 255, 0.2);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.4rem;
  margin: 1rem 0;
  color: var(--text);
}

.skill-card p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.skill-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.skill-list li {
  color: var(--muted);
  padding: 0.5rem 0;
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
}

.skill-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ============ PROJECTS SECTION ============ */
.projects {
  background: radial-gradient(circle at 70% 30%, rgba(145, 132, 255, 0.08), transparent 50%);
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  color: #05070f;
  border-color: transparent;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  grid-template-rows: 200px 1fr;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(110, 226, 255, 0.2);
}

.project-image {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(110, 226, 255, 0.1), rgba(145, 132, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-image {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(110, 226, 255, 0.2), rgba(145, 132, 255, 0.2));
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--muted);
  font-weight: 600;
}

.project-card:hover .placeholder-image {
  background: linear-gradient(135deg, rgba(110, 226, 255, 0.3), rgba(145, 132, 255, 0.3));
  transform: scale(1.05);
}

.project-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-info h3 {
  font-size: 1.2rem;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.project-info p {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-tools span {
  background: rgba(145, 132, 255, 0.15);
  color: var(--accent-soft);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  font-size: 0.75rem;
  border: 1px solid rgba(145, 132, 255, 0.2);
}

/* ============ CASE STUDIES SECTION ============ */
.case-studies {
  background: linear-gradient(180deg, transparent, rgba(110, 226, 255, 0.05));
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.case-study {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.case-study:hover {
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(110, 226, 255, 0.15);
}

.case-study h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
}

.case-study-section {
  margin-bottom: 1.5rem;
}

.case-study-section h4 {
  color: var(--text);
  font-size: 1rem;
  margin: 1rem 0 0.5rem 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.case-study-section p {
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.case-study-section ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0 0;
}

.case-study-section li {
  color: var(--muted);
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  line-height: 1.5;
}

.case-study-section li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ============ TESTIMONIALS SECTION ============ */
.testimonials {
  background: radial-gradient(circle at 20% 80%, rgba(217, 126, 255, 0.08), transparent 50%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  border-color: var(--accent-soft);
  box-shadow: 0 15px 40px rgba(145, 132, 255, 0.15);
}

.testimonial-stars {
  color: var(--accent-alt);
  font-size: 1.2rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05070f;
  font-weight: 700;
  flex-shrink: 0;
}

.author-name {
  color: var(--text);
  font-weight: 600;
}

.author-title {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ============ CONTACT SECTION ============ */
.contact {
  background: linear-gradient(180deg, rgba(110, 226, 255, 0.05), rgba(145, 132, 255, 0.05));
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contact-details {
  margin: 2rem 0;
}

.contact-item {
  margin-bottom: 1.5rem;
}

.contact-label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.contact-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: var(--accent-alt);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-link {
  width: 45px;
  height: 45px;
  background: rgba(110, 226, 255, 0.1);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: linear-gradient(135deg, #6ee2ff, #9184ff);
  border-color: transparent;
  transform: translateY(-5px);
}

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2.5rem;
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(110, 226, 255, 0.05);
  box-shadow: 0 0 20px rgba(110, 226, 255, 0.1);
}

.contact-form .btn {
  width: 100%;
  margin-top: 1rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--surface-strong);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.footer-main p {
  color: var(--muted);
  margin: 0.5rem 0;
  font-size: 0.95rem;
}

.footer-main p:first-child {
  color: var(--text);
  font-weight: 600;
}

.footer-links a {
  color: var(--accent);
  font-weight: 600;
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-alt);
}

/* ============ MOBILE RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--surface-strong);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 400px;
  }

  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border);
  }

  .menu-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-visual {
    min-height: 250px;
  }

  .floating-card {
    width: 250px;
    height: 250px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  section {
    padding: 4rem 1rem;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .about-text h3 {
    font-size: 1.5rem;
  }

  .nav-brand {
    /* Mobile logo sizing */
  }

  .logo-link img {
    height: 40px;
    width: auto;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .filter-container {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
  }
}
