@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Fira+Code:wght@400;500&display=swap');

:root {
  /* Dark Theme Colors */
  --bg-dark: #0f172a;
  --bg-darker: #0b1120;
  --bg-card: rgba(30, 41, 59, 0.7);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;

  /* Accents */
  --accent-primary: #38bdf8;
  /* Cyan-blue */
  --accent-secondary: #818cf8;
  /* Indigo */
  --accent-glow: rgba(56, 189, 248, 0.15);
  --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

  /* UI Elements */
  /*--border-color: rgba(255, 255, 255, 0.1);*/
  --glass-border: 1px solid rgba(255, 255, 255, 0.05);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Spacing & Sizing */
  --max-width: 1200px;
  --header-height: 80px;
  --radius-md: 12px;
  --radius-lg: 20px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Gradients */
.bg-blobs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.bg-blobs::before,
.bg-blobs::after {
  content: '';
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: blob-move 15s infinite alternate ease-in-out;
}

.bg-blobs::before {
  background: var(--accent-primary);
  top: -10%;
  left: -10%;
}

.bg-blobs::after {
  background: var(--accent-secondary);
  bottom: -10%;
  right: -10%;
  animation-duration: 20s;
  animation-direction: alternate-reverse;
}

/* Typography base */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  text-decoration: underline;
  color: var(--text-main);
}

.highlight {
  color: var(--accent-primary);
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Layout */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  scroll-margin-top: calc(var(--header-height) + 2rem);
}

/* Header & Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  transition: var(--transition-normal);
}

header.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  height: 70px;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo img {
  height: 65px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.logo:hover img {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.5rem 0;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  text-decoration: none;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition-normal);
  text-decoration: none;
  border: none;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-darker);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.4);
  color: var(--bg-darker);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--accent-primary);
}

.btn-outline:hover {
  background: var(--accent-glow);
  text-decoration: none;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  position: relative;
}

.hero-content {
  max-width: 800px;
}

.hero-greeting {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
  display: block;
}

.hero-title {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 600;
}

.hero-desc {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 3rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
}

/* Hero Grid Layout */
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 3rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-visual::before {
  content: '';
  position: absolute;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: -1;
  top: -10%;
  left: -10%;
}

/* Floating Animation */
.floating-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  animation: float 6s ease-in-out infinite;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: var(--glass-border);
}

/* Cards & Grid Containers */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: var(--transition-normal);
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Grid Layouts */
.services-grid,
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(56, 189, 248, 0.1);
  color: var(--accent-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

/* Experience Timeline */
.timeline {
  margin-top: 3rem;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3rem;
  bottom: 3rem;
  width: 2px;
  background: var(--border-color);
}

.timeline-item {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 4rem;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -6px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-dark);
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--accent-primary);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.timeline-company {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.timeline-details {
  list-style: none;
}

.timeline-details li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Rate Banner */
.rate-banner {
  background: var(--accent-gradient);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.rate-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><circle cx="2" cy="2" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  z-index: 0;
}

.rate-banner-content {
  position: relative;
  z-index: 1;
}

.rate-banner h2 {
  color: var(--bg-darker);
  margin-bottom: 0.5rem;
}

.rate-banner h2::after {
  display: none;
}

.rate-price {
  font-size: 4rem;
  font-weight: 800;
  color: var(--bg-darker);
  line-height: 1;
  margin: 1rem 0;
}

.rate-price span {
  font-size: 1.5rem;
  font-weight: 600;
}

.rate-desc {
  color: rgba(11, 17, 32, 0.8);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0;
}

/* Contact Form */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info-block {
  margin-bottom: 2rem;
}

.contact-info-block h3 {
  color: var(--text-main);
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-primary);
  font-size: 1.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  color: var(--text-main);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.form-control {
  width: 100%;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Footer */
footer {
  background: var(--bg-darker);
  padding: 3rem 0;
  text-align: center;
  border-top: var(--glass-border);
}

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-socials a {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: var(--glass-border);
  color: var(--text-main);
  transition: var(--transition-normal);
  font-size: 1.25rem;
}

.footer-socials a:hover {
  background: var(--accent-primary);
  color: var(--bg-darker);
  transform: translateY(-3px);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 0.875rem;
}

/* Mobile Nav Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Animations */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-100 {
  transition-delay: 100ms;
}

.delay-200 {
  transition-delay: 200ms;
}

.delay-300 {
  transition-delay: 300ms;
}

/* Keyframes */
@keyframes blob-move {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(10vw, 5vh) scale(1.2);
  }

  100% {
    transform: translate(-5vw, 15vh) scale(0.9);
  }
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

/* Launch Overlay */
.launch-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

.launch-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

.launch-btn-wrapper {
  text-align: center;
}

.launch-btn {
  font-size: 1.5rem;
  padding: 1.25rem 2.5rem;
  animation: pulse 2s infinite;
}

.launch-btn.clicked {
  animation: launch-anim 0.8s forwards;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.7);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 15px rgba(56, 189, 248, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
}

@keyframes launch-anim {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  20% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0);
    opacity: 0;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-visual {
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--header-height));
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    transition: var(--transition-normal);
    border-left: var(--glass-border);
  }

  .nav-links.active {
    right: 0;
  }

  .rate-price {
    font-size: 3rem;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}