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

:root {
  /* Fox Theme Colors */
  --fox-orange: #ff6b35;
  --fox-orange-light: #ff8c5a;
  --fox-orange-dark: #e55a2b;
  --dark-bg: #0f1419;
  --dark-surface: #1a1f2e;
  --dark-surface-light: #252b3a;
  --text-primary: #e6e6e6;
  --text-secondary: #a0a0a0;
  --text-muted: #6b7280;
  --accent-blue: #64b5f6;
  --accent-green: #81c784;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid var(--dark-surface-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 600;
  font-size: 1.25rem;
}

/* Added logo image styles */
.logo-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.logo-image-small {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--fox-orange);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--fox-orange);
  transition: width 0.3s ease;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: 0.3s;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-surface) 100%);
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.highlight {
  color: var(--fox-orange);
  position: relative;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--fox-orange), var(--fox-orange-light));
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.btn {
  padding: var(--spacing-md) var(--spacing-xl);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--fox-orange), var(--fox-orange-light));
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--dark-surface-light);
}

.btn-secondary:hover {
  border-color: var(--fox-orange);
  color: var(--fox-orange);
}

/* Simplified fox visual without animations */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.fox-container {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fox-illustration {
  position: relative;
  z-index: 2;
}

.fox-image {
  width: 300px;
  height: 300px;
  filter: drop-shadow(0 10px 30px rgba(240, 75, 15, 0.5));
  border-radius: 100%;
}

.code-elements {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.code-symbol {
  position: absolute;
  font-weight: 600;
  font-size: 1.2rem;
  opacity: 0.7;
}

.code-symbol:nth-child(1) {
  top: 15%;
  left: 10%;
  color: var(--accent-blue);
  font-size: 1.5rem;
}

.code-symbol:nth-child(2) {
  top: 60%;
  right: 15%;
  color: var(--accent-green);
}

.code-symbol:nth-child(3) {
  bottom: 20%;
  left: 20%;
  color: var(--fox-orange);
  font-size: 1rem;
}

/* Section Styles */
.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  color: var(--text-primary);
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--fox-orange), var(--fox-orange-light));
  border-radius: 2px;
}

/* About Section */
.about {
  padding: var(--spacing-2xl) 0;
  background: var(--dark-surface);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--spacing-2xl);
  align-items: start;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.skills h3 {
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--spacing-sm);
}

.skill-item {
  background: var(--dark-surface-light);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-md);
  text-align: center;
  font-weight: 500;
  color: var(--text-primary);
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.skill-item:hover {
  border-color: var(--fox-orange);
  transform: translateY(-2px);
  color: var(--fox-orange);
  box-shadow: var(--shadow-md);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--dark-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-surface-light);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--fox-orange);
  margin-bottom: var(--spacing-xs);
}

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

/* Projects Section */
.projects {
  padding: var(--spacing-2xl) 0;
  background: var(--dark-bg);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-xl);
}

.project-card {
  background: var(--dark-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--dark-surface-light);
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--fox-orange);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  color: white;
  text-decoration: none;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--fox-orange);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: var(--fox-orange-light);
  transform: scale(1.05);
}

.project-content {
  padding: var(--spacing-lg);
}

.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.project-description {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
  line-height: 1.6;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.tech-tag {
  background: var(--dark-bg);
  color: var(--fox-orange);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--fox-orange);
}

/* Contact Section */
.contact {
  padding: var(--spacing-2xl) 0;
  background: var(--dark-surface);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
}

.contact-info h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.contact-methods {
  display: flex;
  flex-direction: row;
  gap: var(--spacing-md);
}

.contact-method {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  text-decoration: none;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.contact-method:hover {
  color: var(--fox-orange);
  background: var(--dark-bg);
}

.contact-icon {
  font-size: 1.25rem;
}

.contact-form {
  background: var(--dark-bg);
  padding: var(--spacing-xl);
  border-radius: var(--radius-xl);
  border: 1px solid var(--dark-surface-light);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: var(--spacing-md);
  background: var(--dark-surface);
  border: 1px solid var(--dark-surface-light);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--fox-orange);
}

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

/* Footer */
.footer {
  background: var(--dark-bg);
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--dark-surface-light);
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

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

.footer-right p {
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--dark-bg);
    flex-direction: column;
    justify-content: start;
    align-items: center;
    padding-top: var(--spacing-2xl);
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--spacing-xl);
  }

  .hero-visual {
    order: -1;
  }

  .fox-container {
    width: 250px;
    height: 250px;
  }

  .fox-image {
    width: 220px;
    height: 220px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }

  .footer-content {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    
  }

  .contact-methods
  {
    display: block;
  }
}

@media (max-width: 480px) {
  .contact-methods
  {
    display: block;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

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

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

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

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

  .skills {
    display: block;
    padding: var(--spacing-2xl);
  }

  .about-stats {
    display: block;
  }

  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
  }

  .fox-container {
    width: 200px;
    height: 200px;
  }

  .fox-image {
    width: 180px;
    height: 180px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--fox-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--fox-orange-light);
}
