@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
  --bg-color: #050505;
  --text-color: #ffffff;
  --text-muted: #888888;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-hover: rgba(255, 255, 255, 0.12);
  --primary-color: #ffffff;
  --secondary-color: #aaaaaa;
  --accent-color: #cccccc;
  --card-blur: 16px;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: url('../assets/images/mickey-cursor-small.png'), auto !important;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Liquid Orbs */
body::before,
body::after {
  content: '';
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.4;
  animation: float 20s infinite ease-in-out alternate;
}

body::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 60%);
  top: -10%;
  left: -10%;
}

body::after {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05), transparent 60%);
  bottom: -10%;
  right: -10%;
  animation-delay: -10s;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(5%, 10%) scale(1.1);
  }

  100% {
    transform: translate(-5%, -5%) scale(0.9);
  }
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  line-height: 1.2;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  background: linear-gradient(to right, var(--text-color), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all var(--transition-speed);
}

nav.scrolled {
  padding: 1rem 0;
  background: rgba(9, 9, 14, 0.7);
  backdrop-filter: blur(var(--card-blur));
  border-bottom: 1px solid var(--glass-border);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-weight: 400;
  font-size: 1rem;
  transition: color var(--transition-speed);
}

.nav-links a:hover {
  color: var(--accent-color);
}

/* Glassy utility classes */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2rem;
  transition: transform var(--transition-speed), background var(--transition-speed);
}

.glass-card:hover {
  transform: translateY(-5px);
  background: var(--glass-hover);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed);
  border: none;
  font-family: inherit;
  font-size: 1rem;
  animation: morph 4s ease-in-out infinite;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.btn-primary:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.1);
}

.btn-outline {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--card-blur));
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--text-color);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-areas: 
    "heading image"
    "details image";
  gap: 0 4rem;
  align-items: center;
}

.hero-heading {
  grid-area: heading;
  align-self: end;
}

.hero-details {
  grid-area: details;
  align-self: start;
}

.hero-image-container {
  grid-area: image;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  aspect-ratio: 1 / 1;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: morph 8s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(10px);
}

.hero-heading h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-heading .highlight {
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.job-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 0.5rem;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
}

.typewriter-cursor {
  color: var(--primary-color);
  animation: blink 1s step-end infinite;
  margin-left: 5px;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 600px) {
  .job-title {
    font-size: 1.5rem;
    justify-content: center;
  }
}

.hero-details p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 500px;
}

.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--card-blur));
  border: 1px solid var(--glass-border);
  border-radius: 2rem;
  width: fit-content;
  margin: 0 auto;
}

.stat-item {
  text-align: center;
  min-width: 150px;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: var(--glass-border);
}

@media (max-width: 900px) {
  .stats-bar {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }
  
  .stat-divider {
    width: 50%;
    height: 1px;
  }
}

@keyframes morph {
  0% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }
}

.hero-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
  filter: grayscale(100%);
}

.hero-image-container:hover img {
  transform: scale(1.05);
  filter: grayscale(20%);
}

/* Sections General */
section {
  padding: 6rem 0;
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--glass-border);
}

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

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.project-status {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-completed {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-in-progress {
  background: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
  animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.status-canceled {
  background: rgba(239, 68, 68, 0.1);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tech-badge {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.3rem 0.8rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: hsla(var(--badge-hue, 200), 70%, 60%, 0.1);
  color: hsl(var(--badge-hue, 200), 80%, 75%);
  border: 1px solid hsla(var(--badge-hue, 200), 70%, 60%, 0.2);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.tech-badge:hover {
  transform: translateY(-2px);
  background: hsla(var(--badge-hue, 200), 70%, 60%, 0.2);
  box-shadow: 0 4px 10px hsla(var(--badge-hue, 200), 70%, 60%, 0.1);
}

.project-link {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent-color);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap var(--transition-speed);
}

.project-link:hover {
  gap: 0.8rem;
}

.view-all-container {
  text-align: center;
}

/* Skills Section */
.skills-table {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--glass-border);
}

.skill-row {
  display: flex;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.skill-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-category-title {
  width: 250px;
  flex-shrink: 0;
  font-weight: 600;
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

@media (max-width: 768px) {
  .skill-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .skill-category-title {
    width: 100%;
  }
}

/* Certificates Section */
.certificates-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.cert-icon {
  width: 50px;
  height: 50px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cert-info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.cert-info p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  padding: 2rem;
}

.blog-date {
  font-size: 0.8rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.read-more {
  color: white;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  transition: all var(--transition-speed);
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-3px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  color: white;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-speed);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid var(--glass-border);
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}


.modal-desc-section {
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 0.5rem;
  border-left: 3px solid var(--accent-color);
}

.modal-desc-section h4 {
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.modal-actions {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-content {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "heading"
      "image"
      "details";
    text-align: center;
    gap: 2rem;
  }

  .hero-heading {
    align-self: center;
  }

  .hero-details {
    align-self: center;
  }

  .hero-details p {
    margin: 0 auto 2rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .social-links {
    justify-content: center;
    margin-bottom: 2rem;
  }
}

/* Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--text-color);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 600px) {
  .hero-heading h1 {
    font-size: 3rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
  }

  .nav-links a:hover {
    border-color: var(--glass-border);
    background: var(--glass-bg);
  }
}

/* Scroll to Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  width: 55px;
  height: 55px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  transition: all 0.4s ease;
  animation: morph 4s ease-in-out infinite;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.05);
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.scroll-top-btn:hover {
  background: var(--glass-hover);
  color: white;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -5px) scale(1.1);
}

@media (max-width: 600px) {
  .scroll-top-btn {
    bottom: 20px;
    width: 45px;
    height: 45px;
  }
}