/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

:root {
  --bg-color: #1a1a1a;
  --text-color: #e0e0e0;
  --accent-color: #b30000; /* Soul Red */
  --secondary-color: #4a4a4a;
  --font-primary: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

html {
  color: var(--text-color);
  background-color: var(--bg-color);
  font-family: var(--font-primary);
  font-size: 1em;
  line-height: 1.6;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin-top: 0;
  color: #ffffff;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff4d4d;
}

ul {
  list-style: none;
  padding: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 10px auto 0;
}

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  background-color: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 10px 0;
  border-bottom: 1px solid #333;
}

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

.logo a {
  display: block;
}

.profile-logo {
  height: 50px; /* Adjust size as needed */
  width: auto;
  border-radius: 50%; /* Optional: makes it circular */
}

.main-nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  color: #ccc;
  font-size: 1rem;
  font-weight: 500;
}

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

.header-cta .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  margin: 5px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ==========================================================================
   Hero Section (Cover Only)
   ========================================================================== */

.hero-section {
  position: relative;
  height: 60vh; /* Reduced height since text is moved */
  background-image: url('../img/cover.png');
  background-size: cover;
  background-position: center;
  /* No overlay needed if we want just the image, but keeping a subtle one might be good for consistency.
     Removing text overlay as requested. */
}

/* ==========================================================================
   Intro Section (Text moved here)
   ========================================================================== */

.intro-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--bg-color);
}

.intro-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 10px;
  letter-spacing: -2px;
  color: #fff;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 400;
  color: #ccc;
  margin-bottom: 20px;
}

.hero-slogan {
  font-size: 1.2rem;
  font-style: italic;
  margin-bottom: 40px;
  color: var(--accent-color);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--accent-color);
  color: #fff;
  border: none;
}

.btn-primary:hover {
  background-color: #cc0000;
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border: 2px solid var(--accent-color);
  color: var(--accent-color);
}

.btn-secondary:hover {
  background-color: var(--accent-color);
  color: #fff;
}

.btn-outline {
  border: 1px solid #fff;
  color: #fff;
}

.btn-outline:hover {
  background-color: #fff;
  color: #000;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
  font-size: 1.1rem;
  color: #ccc;
}

.about-graphic {
  flex: 1;
  display: flex;
  justify-content: center;
}

.intersection-graphic {
  position: relative;
  width: 300px;
  height: 200px;
}

.circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-color);
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: #fff;
}

.circle.chemistry {
  left: 0;
}

.circle.tech {
  right: 0;
}

.overlap {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.9rem;
  color: #fff;
  font-weight: 700;
  z-index: 10;
  text-shadow: 0 0 5px #000;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

.projects-section {
  background-color: #222;
}

.project-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 40px;
  border-left: 5px solid var(--accent-color);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
}

.project-title {
  font-size: 2rem;
  margin-bottom: 10px;
}

.project-role {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.project-desc {
  margin-bottom: 20px;
  color: #ccc;
}

.project-highlight {
  background-color: rgba(179, 0, 0, 0.1);
  padding: 15px;
  border-radius: 5px;
  margin-bottom: 20px;
  border-left: 3px solid var(--accent-color);
}

.project-features {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #ccc;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-stack li {
  background-color: #333;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: #fff;
}

.projects-cta {
  text-align: center;
  margin-top: 40px;
}

/* ==========================================================================
   Skills Section
   ========================================================================== */

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

.skills-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  border-bottom: 1px solid #333;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.skills-list li {
  background-color: #2a2a2a;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  border: 1px solid #333;
  transition: border-color 0.3s ease;
}

.skills-list li:hover {
  border-color: var(--accent-color);
}

/* ==========================================================================
   Experience Section
   ========================================================================== */

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #333;
  transform: translateX(-50%);
}

.timeline-item {
  margin-bottom: 50px;
  position: relative;
  width: 50%;
  padding: 0 40px;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  z-index: 1;
}

.timeline-item:nth-child(odd)::after {
  right: -10px;
}

.timeline-item:nth-child(even)::after {
  left: -10px;
}

.timeline-date {
  font-family: var(--font-mono);
  color: var(--accent-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.company {
  color: #888;
  font-style: italic;
}

/* ==========================================================================
   Footer / Contact
   ========================================================================== */

.site-footer {
  background-color: #111;
  padding: 80px 0 20px;
  border-top: 1px solid #333;
}

.footer-title {
  text-align: center;
  margin-bottom: 60px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
  margin-bottom: 60px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.contact-info a {
  color: #fff;
}

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

.contact-form {
  flex: 1;
  min-width: 300px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: #222;
  border: 1px solid #333;
  color: #fff;
  border-radius: 5px;
  font-family: var(--font-primary);
}

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

.footer-bottom {
  text-align: center;
  border-top: 1px solid #222;
  padding-top: 20px;
  color: #666;
  font-size: 0.9rem;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media only screen and (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #1a1a1a;
    padding: 20px 0;
    border-bottom: 1px solid #333;
    flex-direction: column;
    align-items: center;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .header-cta {
    display: none; /* Hide CTA on mobile or move it inside nav if preferred */
  }

  .about-content {
    flex-direction: column;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 60px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd)::after,
  .timeline-item:nth-child(even)::after {
    left: 10px;
  }
}
