@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  /* Premium Dark Theme */
  --bg-color: #030305;
  --surface-color: rgba(20, 20, 30, 0.4);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(255, 255, 255, 0.02);
  
  /* Text */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Vibrant Accents */
  --accent-cyan: #00f2fe;
  --accent-magenta: #fe0979;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-magenta) 100%);
  --accent-gradient-flow: linear-gradient(270deg, #00f2fe, #4facfe, #fa709a, #fe0979);
  
  --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

h1, h2, h3, h4, h5, .logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 3.5rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

/* Background Glowing Orbs */
.bg-orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.4;
  animation: floatOrb 20s infinite alternate cubic-bezier(0.4, 0, 0.2, 1);
}
.orb-1 {
  width: 40vw; height: 40vw;
  background: var(--accent-cyan);
  top: -10%; left: -10%;
}
.orb-2 {
  width: 50vw; height: 50vw;
  background: var(--accent-magenta);
  bottom: -20%; right: -10%;
  animation-delay: -10s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(10vw, 10vh) scale(1.2); }
}

/* Typography Enhancements */
.gradient-text {
  background: var(--accent-gradient-flow);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease infinite;
}
.hero-p {
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  font-size: 1.1rem;
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Intro Container */
.intro-container { display: flex; gap: 1.5rem; margin-bottom: 2.5rem; position: relative; max-width: 650px;}
.intro-line { width: 2px; background: rgba(255, 255, 255, 0.1); position: relative; border-radius: 2px; }
.intro-line::before {
  content: ''; position: absolute; top: 0; left: -3px; width: 8px; height: 8px;
  background: var(--accent-magenta); border-radius: 50%; box-shadow: 0 0 10px var(--accent-magenta);
}
.hero .intro { margin-bottom: 0; }

/* Features Row */
.features-row { display: flex; gap: 2rem; margin-bottom: 3.5rem; flex-wrap: wrap; }
.feature-tag { display: flex; align-items: center; gap: 1rem; }
.f-icon { width: 45px; height: 45px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: center; align-items: center; font-size: 1.3rem; background: rgba(20,20,30,0.5); }
.f-code { color: #ff4d6d; } .f-mobile { color: #00f2fe; } .f-rocket { color: #c471ed; }
.f-text { display: flex; flex-direction: column; }
.f-text strong { font-family: 'Outfit', sans-serif; font-size: 1.1rem; }
.f-text span { font-size: 0.8rem; color: #94a3b8; line-height: 1.3; }
.text-pink { color: #ff4d6d; } .text-cyan { color: #00f2fe; } .text-purple { color: #c471ed; }

/* Glassmorphism 2.0 */
.glass-card {
  background: var(--surface-color);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 0 20px var(--glass-glow), 0 10px 40px rgba(0, 0, 0, 0.5);
  border-radius: 24px;
  padding: 3rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.05), transparent);
  transform: skewX(-20deg);
  transition: 0.7s;
}
.glass-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: inset 0 0 20px var(--glass-glow), 0 20px 50px rgba(0, 242, 254, 0.15);
}
.glass-card:hover::before {
  left: 200%;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* Navbar */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 2rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: var(--transition);
}
nav.scrolled {
  padding: 1.2rem 5%;
  background: rgba(3, 3, 5, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
}
.logo { font-size: 1.8rem; text-decoration: none; }
.nav-links { display: flex; gap: 3rem; list-style: none; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}
.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, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 25px rgba(254, 9, 121, 0.3);
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, var(--accent-magenta) 0%, var(--accent-cyan) 100%);
  z-index: -1;
  transition: var(--transition);
  opacity: 0;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.4);
}
.btn-primary:hover::before { opacity: 1; }

.btn-secondary {
  background: rgba(255,255,255,0.05);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-3px);
}

/* Premium Buttons v2 */
.hero-btns-v2 { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn-premium { display: flex; align-items: center; gap: 1rem; padding: 0.8rem 1rem; border-radius: 20px; text-decoration: none; transition: var(--transition); min-width: 260px; flex: 1; max-width: 300px;}
.btn-premium.primary { background: linear-gradient(135deg, #00f2fe 0%, #fe0979 100%); box-shadow: 0 10px 30px rgba(254, 9, 121, 0.3); color: white; border: 1px solid rgba(255,255,255,0.2);}
.btn-premium.secondary { background: rgba(20, 20, 30, 0.4); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.1); color: white; }
.icon-box { width: 50px; height: 50px; background: rgba(0,0,0,0.2); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; }
.user-icon { border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); background: transparent; }
.btn-text { flex: 1; display: flex; flex-direction: column; }
.btn-text strong { font-size: 1.15rem; font-family: 'Outfit', sans-serif; margin-bottom: 2px;}
.btn-text span { font-size: 0.75rem; opacity: 0.8; line-height: 1.3; font-weight: 300;}
.arrow-box { width: 35px; height: 35px; background: white; color: black; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-weight: bold; }
.btn-premium.secondary .arrow-box { background: transparent; color: white; }
.btn-premium:hover { transform: translateY(-5px); }
.btn-premium.primary:hover { box-shadow: 0 15px 40px rgba(254, 9, 121, 0.5); }
.btn-premium.secondary:hover { border-color: rgba(255,255,255,0.3); }

/* Sections */
section { padding: 8rem 5%; position: relative; z-index: 2; }
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 110px;
}
.hero-inner {
  width: 100%;
}
.hero-content {
  max-width: 800px;
  padding-top: 2rem;
}
.profile-wrapper {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1/1;
  margin: 0 auto;
  border-radius: 50%;
  padding: 15px;
  background: transparent;
  box-shadow: 
    inset 0 0 0 3px var(--accent-magenta),
    inset 0 0 30px var(--accent-magenta),
    0 0 0 2px rgba(0, 242, 254, 0.5),
    0 0 40px rgba(0, 242, 254, 0.4);
  animation: float 6s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-wrapper::before {
  content: ''; position: absolute;
  top: -15px; left: -15px; right: -15px; bottom: -15px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: inset 0 0 50px rgba(0, 242, 254, 0.1);
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: none;
  background: transparent;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}
.profile-wrapper:hover .profile-img {
  transform: scale(1.05);
}
.hero h1 { font-size: 5.5rem; margin-bottom: 1.5rem; }
.hero .intro { font-size: 1.4rem; color: var(--text-muted); margin-bottom: 3rem; font-weight: 400; max-width: 600px;}
.hero-btns { display: flex; gap: 1.5rem; }

/* Grid Layouts */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; }

/* Skills Matrix */
.about-text h3, .about-skills h3 { font-size: 2rem; margin-bottom: 1.5rem; }
.about-text p { font-size: 1.15rem; color: var(--text-muted); }
.skills-container { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.5rem;}
.skill-info { display: flex; justify-content: space-between; margin-bottom: 0.8rem; font-weight: 500; font-size: 1.1rem;}
.skill-bar { width: 100%; height: 10px; background: rgba(255,255,255,0.05); border-radius: 5px; overflow: hidden; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);}
.skill-progress { height: 100%; background: var(--accent-gradient); border-radius: 5px; position: relative; }
.skill-progress::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent); }

/* Projects */
.project-card {
  border-radius: 24px;
  padding: 0;
}
.project-img { width: 100%; height: 250px; object-fit: cover; border-bottom: 1px solid var(--glass-border); transition: 0.5s; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-img-wrapper { overflow: hidden; border-radius: 24px 24px 0 0; }
.project-info { padding: 2.5rem; }
.project-info h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.project-info p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 1.5rem; }
.tech-stack { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.tech-tag { font-size: 0.85rem; font-weight: 600; padding: 0.4rem 1rem; background: rgba(0, 242, 254, 0.1); color: var(--accent-cyan); border: 1px solid rgba(0, 242, 254, 0.2); border-radius: 30px; letter-spacing: 1px; text-transform: uppercase;}

/* Services */
.service-icon { 
  font-size: 3.5rem; 
  margin-bottom: 1.5rem; 
  display: inline-block;
  background: var(--accent-gradient); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  animation: float 4s ease-in-out infinite; 
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

/* Contact Form */
.contact-container { max-width: 800px; margin: 0 auto; }
.form-group { margin-bottom: 2rem; }
.form-control {
  width: 100%; padding: 1.2rem 1.5rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--accent-cyan); background: rgba(0,0,0,0.5); box-shadow: 0 0 20px rgba(0, 242, 254, 0.1); }
textarea.form-control { resize: vertical; min-height: 180px; }
.contact-msg { display: none; padding: 1.2rem; border-radius: 12px; margin-bottom: 2rem; font-weight: 600; text-align: center; font-size: 1.1rem;}
.contact-msg.success { background: rgba(16, 185, 129, 0.1); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); display: block; }
.contact-msg.error { background: rgba(239, 68, 68, 0.1); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); display: block; }

/* Socials & Footer */
.social-links { display: flex; gap: 1.5rem; list-style: none; justify-content: center; margin-bottom: 2rem;}
.social-links a { color: var(--text-muted); font-size: 1.8rem; transition: var(--transition); display: inline-block; text-decoration: none;}
.social-links a:hover { color: var(--accent-cyan); transform: scale(1.2) translateY(-5px); }
footer { padding: 4rem 5%; text-align: center; border-top: 1px solid var(--glass-border); margin-top: 6rem; position: relative; z-index: 2;}
footer p { color: var(--text-muted); font-size: 1.1rem; }

/* Scroll to Top */
.scroll-top { position: fixed; bottom: 2.5rem; right: 2.5rem; width: 60px; height: 60px; border-radius: 50%; background: var(--accent-gradient); color: #fff; border: none; font-size: 1.5rem; cursor: pointer; opacity: 0; visibility: hidden; transition: var(--transition); z-index: 99; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(254, 9, 121, 0.4);}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-8px) scale(1.1); }

/* Animations - Scroll Reveal */
.reveal-up { opacity: 0; transform: translateY(60px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-up.active { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-80px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-left.active { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(80px); transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1); }
.reveal-right.active { opacity: 1; transform: translateX(0); }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; cursor: pointer; gap: 6px; z-index: 1001; }
.menu-toggle .bar { width: 30px; height: 3px; background-color: #fff; border-radius: 3px; transition: var(--transition); }
.menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--accent-cyan);}
.menu-toggle.active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--accent-magenta);}

/* Responsive */
@media(max-width: 1024px) {
  h2 { font-size: 3rem; }
  .hero h1 { font-size: 4.5rem; }
  section { padding: 6rem 5%; }
  .grid-2 { gap: 3rem; }
}

@media(max-width: 768px) {
  .hero h1 { font-size: 3rem; padding-right: 40%; line-height: 1.1; margin-bottom: 1rem; max-width: 100%; }
  .hero .intro { font-size: 1.1rem; max-width: 100%; }
  .hero .hero-p { max-width: 100%; }
  .grid-2 { grid-template-columns: 1fr; }
  
  /* Place image on the right side of the text */
  .hero-inner { display: block; position: relative; }
  .hero-image {
    position: absolute;
    top: 10px;
    right: 0;
    width: 38%;
    max-width: 160px;
  }
  .hero-btns { margin-top: 2rem; display: flex; flex-wrap: wrap; }
  
  .glass-card { padding: 2rem; }
  
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 300px; height: 100vh;
    background: rgba(3, 3, 5, 0.98); backdrop-filter: blur(25px);
    flex-direction: column; padding-top: 100px; align-items: center;
    border-left: 1px solid var(--glass-border);
    transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1); 
    box-shadow: -20px 0 50px rgba(0,0,0,0.5);
  }
  .nav-links.active { right: 0; }
  .nav-links li { margin-bottom: 2rem; }
  .nav-links a { font-size: 1.5rem; }
}

@media(max-width: 480px) {
  h2 { font-size: 2.5rem; margin-bottom: 3rem;}
  .hero h1 { font-size: 2.8rem; }
  .project-img { height: 200px; }
  .hero-btns { flex-direction: column; width: 100%; }
  .hero-btns .btn { width: 100%; }
  .nav-links { width: 100%; } /* Full width mobile menu */
}
