/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #000000;
  color: #ffffff;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: 'Poppins', sans-serif;
}

/* Header and Navigation */
header {
  background-color: #111111;
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

h1 {
  color: #ff4444;
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ff4444;
}

/* Main content */
main {
  margin-top: 80px;
}

/* Hero Section */
#hero {
  background: linear-gradient(135deg, #000000 0%, #222222 100%);
  padding: 4rem 2rem;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.hero-text {
  flex: 1;
}

.hero-text h2 {
  font-size: 3rem;
  color: #ff4444;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: #cccccc;
  max-width: 600px;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-image img {
  max-width: 300px;
  border-radius: 50%;
  border: 4px solid #ff4444;
  box-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

/* Sections */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

section h2 {
  color: #ff4444;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
}

.project-card {
  background-color: #111111;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
}

.project-card img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1.5rem;
}

.project-card h3 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.project-card p {
  color: #cccccc;
  margin-bottom: 1.5rem;
}

/* About Me */
.aboutme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.aboutme-card {
  background-color: #111111;
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 4px solid #ff4444;
}

.aboutme-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(255, 68, 68, 0.2);
}

.aboutme-card h3 {
  color: #ff4444;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.aboutme-card p {
  color: #cccccc;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  background-color: #ff4444;
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #cc3333;
}

/* Experience */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-item {
  background-color: #111111;
  padding: 2rem;
  border-radius: 10px;
  border-left: 4px solid #ff4444;
}

.experience-item h3 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.company {
  color: #ff4444;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.duration {
  color: #cccccc;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.experience-item p {
  color: #cccccc;
}

/* Resume */
#resume p {
  text-align: center;
  color: #cccccc;
  margin-bottom: 2rem;
}

.resume-image {
  display: block;
  max-width: 400px;
  height: auto;
  margin: 2rem auto 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(255, 68, 68, 0.2);
}

/* Footer */
footer {
  background-color: #111111;
  padding: 2rem 0;
  text-align: center;
}

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

footer p {
  color: #cccccc;
  margin-bottom: 1rem;
}

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

.social-links a {
  color: #ffffff;
  font-size: 1.5rem;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: #ff4444;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    gap: 1rem;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  section h2 {
    font-size: 2rem;
  }

  .section-container {
    padding: 2rem 1rem;
  }
}

@media print {
  body, html {
    background: #fff !important;
    color: #000 !important;
  }

  nav, .btn, .social-links {
    display: none !important;
  }

  main {
    margin-top: 0 !important;
  }

  section, .section-container {
    page-break-inside: avoid;
  }

  img.resume-image {
    page-break-after: avoid;
  }
}