/* ==========================================================================
   MAIN SCSS - Portfolio Project
   Modern Dark Mode | Professional Design System
   ========================================================================== */
/* ==========================================================================
   VARIABLES - Color Palette & Design Tokens
   ========================================================================== */
/* ==========================================================================
   BASE - Reset, Body & Typography
   ========================================================================== */
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap");
:root {
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-elevated: #1a1a1a;
  --primary: #00d9ff;
  --primary-dark: #00b8d4;
  --primary-light: #4dffff;
  --primary-glow: rgba(0, 217, 255, 0.4);
  --secondary: #00d9ff;
  --accent: #0891b2;
  --text-main: #ffffff;
  --text-dim: #cccccc;
  --text-muted: #888888;
  --border: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(255, 255, 255, 0.15);
  --nav-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

body {
  background-color: #000000;
  color: #ffffff;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection {
  background: #00d9ff;
  color: #000000;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #1a1a1a;
  border-radius: 10px;
  border: 2px solid #000000;
}

::-webkit-scrollbar-thumb:hover {
  background: #888888;
}

.container {
  max-width: 1280px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

.text-gradient {
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #00d9ff;
  font-weight: 600;
  margin-bottom: 1rem;
  display: block;
}

code, pre, .code {
  font-family: "JetBrains Mono", "Courier New", monospace;
}

/* ==========================================================================
   COMPONENTS - Navbar, Buttons, Cards, Footer
   ========================================================================== */
@media (min-width: 992px) {
  .navbar {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (max-width: 991px) {
  .navbar-collapse.show ~ .container,
.navbar-collapse.show ~ .container-fluid,
.navbar-collapse.show ~ .container-lg,
.navbar-collapse.show ~ .container-md,
.navbar-collapse.show ~ .container-sm,
.navbar-collapse.show ~ .container-xl,
.navbar-collapse.show ~ .container-xxl {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100vw !important;
  }
}

.navbar {
  height: 80px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(2, 2, 5, 0.7);
  backdrop-filter: blur(15px);
}

@media (max-width: 768px) {
  .navbar {
    height: 70px;
  }
}

.navbar.scrolled {
  height: 70px;
  background: rgba(2, 2, 5, 0.95);
}

@media (max-width: 768px) {
  .navbar.scrolled {
    height: 65px;
  }
}

.navbar-brand.brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 576px) {
  .navbar-brand.brand {
    font-size: 1.25rem;
    gap: 0.5rem;
  }
}

.navbar-brand.brand i {
  color: #00d9ff;
}

@media (max-width: 576px) {
  .navbar-brand.brand i {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  .navbar-brand.brand span {
    display: none;
  }
}

.navbar-toggler {
  border: none;
  padding: 0.5rem;
  color: #ffffff;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler i {
  color: #ffffff;
}

@media (max-width: 991px) {
  .navbar-collapse {
    background: rgba(2, 2, 5, 0.98);
    padding: 1.5rem 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

.nav-link {
  color: #cccccc !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

@media (max-width: 991px) {
  .nav-link {
    padding: 0.75rem 1rem !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  }
  .nav-link:last-child {
    border-bottom: none;
  }
}

.nav-link:hover, .nav-link.active {
  color: #00d9ff !important;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.05) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.05) 0%, transparent 40%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  font-size: 0.85rem;
  color: #00d9ff;
  margin-bottom: 2rem;
}

.hero-blob {
  width: 100%;
  max-width: 450px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  animation: blob-morph 10s ease-in-out infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0 auto;
}

.hero-blob img {
  width: 95%;
  height: 95%;
  object-fit: cover;
  border-radius: inherit;
  border: 5px solid #000000;
}

@keyframes blob-morph {
  0%, 100% {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  }
  33% {
    border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%;
  }
  66% {
    border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%;
  }
}

.btn {
  padding: 0.8rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-primary {
  background: #00d9ff;
  border: 2px solid #00d9ff;
  color: #000000;
  font-weight: 700;
}

.btn-primary:hover {
  background: #4dffff;
  border-color: #4dffff;
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
  color: #000000;
}

.btn-outline-cyber {
  background: transparent;
  color: #00d9ff;
  border: 2px solid #00d9ff;
  font-weight: 700;
}

.btn-outline-cyber:hover {
  background: #00d9ff;
  border-color: #00d9ff;
  color: #000000;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
}

.card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100%;
}

.card:hover:not(.contact-card-gradient) {
  border-color: #00d9ff;
  transform: translateY(-5px);
  background: #1a1a1a;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.2);
}

.project-img-container {
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}

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

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

.tag {
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.4);
  border-radius: 50px;
  color: #00d9ff;
}

.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(0, 217, 255, 0.03) 100%);
  border-top: 1px solid rgba(0, 217, 255, 0.1);
}

@media (max-width: 768px) {
  .footer h5 {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .footer .navbar-brand.brand {
    font-size: 1.25rem;
  }
  .footer .navbar-brand.brand i {
    font-size: 1.1rem;
  }
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

@media (max-width: 576px) {
  .footer-link {
    font-size: 0.75rem;
  }
}

.footer-link:hover {
  color: #00d9ff;
  transform: translateX(5px);
}

.footer-social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  color: #00d9ff;
  text-decoration: none;
  transition: all 0.3s ease;
  background: rgba(0, 217, 255, 0.05);
}

@media (max-width: 576px) {
  .footer-social-btn {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
}

.footer-social-btn:hover {
  background: #00d9ff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
}

/* ==========================================================================
   UTILITIES - Helper Classes
   ========================================================================== */
.hero-blob-container {
  max-width: 350px;
}

.sticky-sidebar {
  position: sticky;
  top: 100px;
}

.contact-page {
  padding-top: 10rem;
}

.bg-surface {
  background: #0a0a0a;
}

.bg-icon-base {
  color: #000000;
}

.project-detail-hero,
.projects-hero,
.certifications-hero {
  padding-top: calc($nav-height + 2rem);
  background: linear-gradient(to bottom, #000000, #0a0a0a);
}

.related-projects-section {
  background: #0a0a0a;
}

.project-detail-img {
  min-height: 400px;
  object-fit: cover;
}

.project-img-small {
  height: 200px;
}

.project-detail-img-placeholder {
  min-height: 400px;
}

.progress-custom {
  height: 6px;
  background: #1a1a1a;
}

.progress-bar-custom {
  background: #00d9ff;
  box-shadow: 0 0 10px rgba(0, 217, 255, 0.4);
  transition: width 1s ease-out;
}

.icon-primary {
  color: #00d9ff;
}

.icon-secondary {
  color: #00d9ff;
}

.icon-accent {
  color: #0891b2;
}

.icon-box {
  width: 64px;
  height: 64px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-number-primary {
  color: #00d9ff;
}

.stat-number-secondary {
  color: #00d9ff;
}

.stat-number-accent {
  color: #0891b2;
}

.timeline-dot {
  position: absolute;
  translate: -50% 0;
  background: #00d9ff;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  left: -26px;
  top: 8px;
  box-shadow: 0 0 10px #00d9ff;
}

.tech-badge-small {
  font-size: 0.75rem;
}

.letter-spacing-1 {
  letter-spacing: 1px;
}

.footer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-card-gradient {
  background: linear-gradient(135deg, #0a0a0a, #1a1a1a);
}

.opacity-50 {
  opacity: 0.5;
}

/* ==========================================================================
   ANIMATIONS - Scroll Effects & Transitions
   ========================================================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HOMEPAGE - Clean Modern Design
   ========================================================================== */
.hero-main {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 0;
}

@media (max-width: 767px) {
  .hero-main {
    min-height: auto;
    padding: 5rem 0 3rem;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-main {
    padding: 6rem 0 4rem;
  }
}

.hero-bg-main {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at top right, rgba(0, 217, 255, 0.15), transparent 50%), radial-gradient(ellipse at bottom left, rgba(0, 217, 255, 0.15), transparent 50%);
  z-index: -1;
}

@media (max-width: 767px) {
  .hero-content-main {
    text-align: center;
  }
}

.hero-content-main h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .hero-content-main h1 {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

.hero-content-main .text-gradient {
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content-main .lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

@media (max-width: 767px) {
  .hero-content-main .lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 767px) {
  .hero-content-main .d-flex.flex-wrap {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-content-main .btn {
    font-size: 0.9rem;
    padding: 0.65rem 1.5rem;
  }
}

.info-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

@media (max-width: 767px) {
  .info-card {
    justify-content: center;
    font-size: 0.85rem;
  }
}

.info-card i {
  font-size: 1rem;
  color: #00d9ff;
  opacity: 0.8;
}

@media (max-width: 767px) {
  .info-card i {
    font-size: 0.9rem;
  }
}

.info-card span {
  color: #cccccc;
  font-size: 0.95rem;
}

@media (max-width: 767px) {
  .info-card span {
    font-size: 0.85rem;
  }
}

.hero-image-main {
  position: relative;
}

.hero-image-main::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2), transparent 70%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.hero-visual .hero-blob {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2rem 4rem rgba(0, 217, 255, 0.4));
}

.hero-visual .hero-blob .blob-path {
  filter: url(#goo);
}

.hero-visual .hero-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 6rem;
  color: white;
  text-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-1rem);
  }
}

.hero-img-profile {
  border-radius: 30px;
  box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

.hero-placeholder {
  width: 100%;
  aspect-ratio: 1;
  background: #0a0a0a;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
  border: 2px solid rgba(255, 255, 255, 0.08);
}

.social-links-hero {
  display: flex;
  gap: 1rem;
}

.social-links-hero .social-link {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(0, 217, 255, 0.1);
  border: 2px solid #00d9ff;
  color: #00d9ff;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.social-links-hero .social-link:hover {
  transform: translateY(-0.25rem);
  background: #00d9ff;
  color: #000000;
  box-shadow: 0 0 1.5rem rgba(0, 217, 255, 0.6);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.5;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator .scroll-mouse {
  width: 1.5rem;
  height: 2.5rem;
  border: 2px solid currentColor;
  border-radius: 1rem;
  position: relative;
}

.scroll-indicator .scroll-mouse .scroll-wheel {
  width: 0.25rem;
  height: 0.5rem;
  background: currentColor;
  border-radius: 0.25rem;
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@keyframes scrollWheel {
  0%, 100% {
    opacity: 0;
    top: 0.5rem;
  }
  50% {
    opacity: 1;
    top: 1rem;
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-0.5rem);
  }
}

.stats-highlight {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-box {
  text-align: center;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.stat-box:hover {
  background: #000000;
  transform: translateY(-0.25rem);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.stat-icon-secondary {
  background: linear-gradient(135deg, #00d9ff, #0891b2);
}

.stat-icon-accent {
  background: linear-gradient(135deg, #0891b2, #00d9ff);
}

.stat-icon-success {
  background: linear-gradient(135deg, #10b981, #059669);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #cccccc;
  margin: 0;
}

.featured-projects-main .section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.featured-projects-main .text-gradient {
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.project-card-main {
  background: #0a0a0a;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-img-main {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cccccc;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-info-main {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(0, 217, 255, 0.1);
  color: #00d9ff;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cta-main {
  padding: 5rem 0;
}

.cta-box {
  background: linear-gradient(135deg, #00d9ff 0%, #00d9ff 100%);
  border-radius: 30px;
  padding: 3rem 2rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .cta-box {
    padding: 4rem 3rem;
  }
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
}

.cta-box h2,
.cta-box p {
  color: white;
  position: relative;
  z-index: 1;
}

.cta-box .btn {
  position: relative;
  z-index: 1;
}
