/* CSS Variables */
:root {
  /* Dark Theme */
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #1a1a1a;
  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --border: #333333;
  --success: #10b981;
  --gradient: linear-gradient(135deg, #3b82f6, #3b82f6);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.4);
}

[data-theme='light'] {
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #666666;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --border: #e5e7eb;
  --success: #059669;
  --gradient: linear-gradient(135deg, #2563eb, #2563eb);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

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

/* Typography */
h1,
h2,
h3,
h4 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

.highlight {
  color: var(--accent);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
}

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

.nav-links a {
  color: var(--text-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--bg-card);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: translateY(-2px) rotate(15deg);
}

.theme-icon {
  width: 20px;
  height: 20px;
  background-color: var(--text-primary);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")
    no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E")
    no-repeat center;
}

[data-theme='light'] .theme-icon {
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0-2a5 5 0 1 1 0 10A5 5 0 0 1 12 7Z'/%3E%3C/svg%3E")
    no-repeat center;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 9a3 3 0 1 0 0 6 3 3 0 0 0 0-6Zm0-2a5 5 0 1 1 0 10A5 5 0 0 1 12 7Z'/%3E%3C/svg%3E")
    no-repeat center;
}

/* Hero Section */
.hero {
  padding: 12rem 0 6rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--bg-card);
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2rem;
  border: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  background-color: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

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

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--bg-card);
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  font-size: 1.25rem;
}

.social-icons a:hover {
  background: var(--gradient);
  color: white;
  transform: translateY(-3px);
  border-color: transparent;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.image-container {
  position: relative;
  width: 340px;
  height: 340px;
}

.profile-img {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  filter: grayscale(0.1);
  transition: all 0.3s ease;
}

.profile-img:hover {
  filter: grayscale(0);
  transform: scale(1.02);
}

.image-decoration {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  background: var(--gradient);
  border-radius: 20px;
  z-index: 1;
  opacity: 0.5;
  transition: transform 0.3s ease;
}

.image-container:hover .image-decoration {
  transform: translate(15px, 15px);
}

/* Sections */
.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.section-line {
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0 auto;
}

/* Skills Section */
.skills {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.skill-category {
  background-color: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.skill-category.full-width {
  grid-column: span 3;
  text-align: center;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.skill-category-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--accent);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.skill-category-title i {
  font-size: 1.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient);
  border-radius: 8px;
  color: white;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  min-width: 140px;
}

.skill-info i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.skill-name {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.95rem;
  flex: 1;
}

.skill-level {
  width: 120px;
  height: 8px;
  background-color: var(--border);
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.level-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 4px;
  transition: width 1s ease;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
}

.skill-tag {
  padding: 0.5rem 1rem;
  background-color: var(--bg-primary);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.skill-tag:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Projects Carousel */
.projects {
  padding: 6rem 0;
  background-color: var(--bg-primary);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  padding: 1rem 0;
}

.carousel-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Laptop Mockup */
.laptop-mockup {
  position: relative;
  width: 500px;
  height: 350px;
  margin: 0 auto;
}

.laptop-screen {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 280px;
  background: #000;
  border-radius: 10px 10px 2px 2px;
  border: 10px solid #1a1a1a;
  border-bottom: 4px solid #1a1a1a;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

[data-theme='light'] .laptop-screen {
  border-color: #e5e7eb;
}

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

.laptop-screen:hover .project-screenshot {
  transform: scale(1.05);
}

.screen-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
  text-align: center;
}

.laptop-screen:hover .screen-overlay {
  opacity: 1;
}

.screen-overlay h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.screen-overlay p {
  color: #a0a0a0;
}

.laptop-base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 16px;
  background: #1a1a1a;
  border-radius: 2px 2px 6px 6px;
  z-index: 1;
}

[data-theme='light'] .laptop-base {
  background: #d1d5db;
}

/* Project Card */
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  width: 100%;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 20px;
}

.project-content {
  padding: 1.5rem;
}

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

.project-badge {
  padding: 0.5rem 1.25rem;
  background: var(--gradient);
  color: white;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-year {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  background-color: var(--bg-primary);
  border-radius: 15px;
  border: 1px solid var(--border);
}

.project-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--text-primary);
  line-height: 1.2;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.project-highlights {
  margin-bottom: 1.75rem;
}

.highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.highlight i {
  color: var(--success);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.highlight span {
  font-size: 0.9rem;
}

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

.tech-pill {
  padding: 0.4rem 0.9rem;
  background-color: var(--bg-primary);
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.tech-pill:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

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

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  flex: 1;
  min-width: 140px;
  justify-content: center;
}

.project-link.primary {
  background: var(--gradient);
  color: white;
}

.project-link.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.project-link.secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.project-link.secondary:hover {
  background-color: var(--bg-primary);
  transform: translateY(-2px);
}

/* Carousel Navigation */
.carousel-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
}

.carousel-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

.carousel-btn:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--gradient);
  transform: scale(1.2);
}

/* Contact Section */
.contact {
  padding: 6rem 0;
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-link,
.contact-text {
  font-size: 1.125rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 0.5rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-link:hover {
  color: var(--accent);
}

.contact-note {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
}

.contact-social {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: var(--bg-card);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
  font-weight: 500;
}

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

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  text-align: center;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.125rem;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

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

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

  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 600px;
  }

  .skill-category.full-width {
    grid-column: span 1;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 700px;
  }

  .laptop-mockup {
    width: 450px;
    height: 320px;
  }

  .laptop-screen {
    width: 380px;
    height: 250px;
  }

  .laptop-base {
    width: 410px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 8rem 0 4rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .skill-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .skill-info {
    min-width: 100%;
    justify-content: space-between;
  }

  .skill-level {
    width: 100%;
    margin-top: 0.25rem;
  }

  .project-card {
    gap: 2rem;
    padding: 0;
  }

  .laptop-mockup {
    width: 350px;
    height: 250px;
  }

  .laptop-screen {
    width: 300px;
    height: 200px;
    border-width: 8px;
  }

  .laptop-base {
    width: 320px;
  }

  .project-title {
    font-size: 1.75rem;
  }

  .carousel-nav {
    flex-direction: column;
    gap: 1.5rem;
  }

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

  .contact-social {
    flex-direction: column;
    align-items: center;
  }

  .project-links {
    flex-direction: column;
  }

  .project-link {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .laptop-mockup {
    width: 280px;
    height: 200px;
  }

  .laptop-screen {
    width: 240px;
    height: 160px;
    border-width: 6px;
  }

  .laptop-base {
    width: 260px;
  }

  .project-title {
    font-size: 1.5rem;
  }

  .project-description {
    font-size: 1rem;
  }

  .carousel-btn {
    width: 45px;
    height: 45px;
  }
}



#dev-protect-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  backdrop-filter: blur(6px);
}

.popup-box {
  background: #0f0f12;
  color: #fff;
  padding: 2rem;
  width: 320px;
  border-radius: 16px;
  text-align: center;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: scaleIn 0.25s ease;
}

.popup-box h2 {
  margin-bottom: 0.5rem;
}

.popup-box p {
  font-size: 0.95rem;
  opacity: 0.85;
}

.social-links {
  margin-top: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.social-links a {
  text-decoration: none;
  padding: 0.6rem;
  border-radius: 8px;
  background: #1a1a20;
  color: #fff;
  transition: 0.2s;
}

.social-links a:hover {
  background: #2a2a35;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
}

.close-btn:hover {
  color: #fff;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
