:root {
  --primary: #793338;
  --secondary: #324b4a;
  --tertiary: #eceeff;
}

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

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

  body {
    font-family: "kranto-normal", sans-serif;
    font-weight: 400;
    font-style: normal;
    /* font-size: 20px; */
    color: var(--tertiary);
    background-color: #000;
    line-height: 1.6;
  }

  header {
    position: fixed;
    width: 100%;
    z-index: 1000;
  }
  
  .navbar {
    /* background-color: rgba(var(--secondary), 0.8); */
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
    font-weight: bold;
  }

  .nav-links {
    list-style: none;
    display: flex;
    gap: 1rem;
  }

  .nav-links a {
    text-decoration: none;
    color: #fff;
    position: relative;
    transition: color 0.3s ease;
  }

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

  .nav-links a:hover {
    color: #f39c12;
  }

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


  /* Hero Section */
  .hover-card {
    position: relative;
    width: 130px;
    height: 70px;
    margin: auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    align-items: center;
    /* color: red; */
    background-color: var(--primary);
  }
  
  /* Background element */
  .hover-bg {
    position: absolute;
    bottom: -100%; /* Starts off-screen */
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--tertiary);
    z-index: 1;
    pointer-events: none;
    /* color: var(--tertiary); */
  }
  
  /* Content stays above the background */
  .hover-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 20px;
    color: var(--tertiary);
    /* transition: color 0.3s ease; */
  }

  .hero {
    padding-top: 30%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.5)), url('images/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
  }

  .hero-content {
    max-width: 800px;
    padding: 0 1rem;
  }

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

  .hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .hero-button {
    padding: 1rem 2rem;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
  }

  .hero-button:hover {
    background: #d35400;
    transform: scale(1.1);
  }


  /* Sections */
  .section {
    padding: 4rem 1rem;
    text-align: center;
    background: #111;

  }

  .section:nth-of-type(even) {
    background: #222;
  }

  #bio {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #bio > p {
    max-width: 700px;
    text-align: left;
    padding: auto;
  }

  #intro {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #intro > p {
    max-width: 700px;
    text-align: left;
    padding: auto;
  }

  #comp-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: auto;
  }

  footer {
    text-align: center;
    padding: 1rem;
    background: #000;
  }

  footer a:hover {
    color: grey !important;
  }

  .card {
    background: #222;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  }

  /* Contact Section */
.contact-section {
  background: #1a1a1a;
  color: #fff;
  padding: 4rem 1rem;
  text-align: center;
  max-width: 600px;
  margin: 4rem auto;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-title {
  font-size: 2rem;
  margin-bottom: 2rem;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: bold;
  color: var(--tertiary);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid #444;
  border-radius: 6px;
  background: #2c2c2c;
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.contact-button {
  background: var(--tertiary);
  color: black;
  padding: 1rem;
  font-size: 1.2rem;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
  background: var(--primary);
  color: var(--tertiary);
  transform: translateY(-3px);
}

/* Mobile Styles (up to 768px) */
@media (max-width: 768px) {
  /* Navbar */
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    width: 100%;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
  }

  /* Hero Section */
  .hero {
    padding-top: 20%;
    height: auto;
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
    width: 100%;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 1rem;
  }

  .hover-card {
    width: 100%;
    max-width: 200px;
    height: 60px;
    margin: 1rem auto;
  }

  .hero-button {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* Sections */
  .section {
    padding: 2rem 1rem;
    width: 100%;
  }

  #bio > p {
    font-size: 1rem;
    text-align: justify;
    padding: 0 1rem;
    width: 100%;
  }

  .card {
    padding: 1rem;
    font-size: 1rem;
    width: 100%;
    margin: 1rem 0;
  }

  /* Contact Section */
  .contact-section {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 100%;
    margin: 2rem auto;
  }

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

  .contact-form {
    gap: 1rem;
    width: 100%;
  }

  .contact-button {
    padding: 0.75rem;
    font-size: 1rem;
    width: 100%;
  }
}

/* Extra Small Devices (up to 480px) */
@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

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

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

  .hover-content {
    padding: 10px;
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}
