/* Base styles and variables */
:root {
  --animate-duration: 1.2s;
  --primary-bg-dark: rgb(24, 24, 24);
  --primary-text-light: #fff;
  --secondary-text-light: #ada8a8;
  --section-padding: clamp(30px, 5vw, 50px);
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  position: relative;
}

/* Typography */
h1 {
  color: var(--primary-text-light);
  font-size: clamp(30px, 5vw, 50px);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 800;
}

h2 {
  font-size: clamp(16px, 3vw, 20px);
  color: var(--secondary-text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

/* Navigation */
.navbar {
  background-color: var(--primary-bg-dark) !important;
  box-shadow: 2px 2px 4px black;
}

.navbar-brand img {
  width: 80px;
  height: 60px;
  object-fit: contain;
}

.navbar-nav {
  margin-left: auto;
}

/* Hero Section */
#hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1739924144825-4544ec14ee29?q=80&w=1887&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90oy1wYWdlfHx8fGVufDB8fHx8fA%3D%3D");
  background-position: center;
  background-size: cover;
  width: 100%;
  color: var(--primary-text-light);
  padding-top: 70px; /* Account for fixed navbar */
}

.hero-image img {
  width: clamp(150px, 30vw, 250px);
  text-align: center;
  margin-top: 20px;
  object-fit: cover;
  border: 10px solid rgba(0, 0, 0, 0.4);
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}

.hero-image img:hover {
  transform: scale(1.1);
}

.hero-title {
  text-align: center;
  margin-top: clamp(10px, 2vw, 15px);
}

/* Mission Section */
#mission-section {
  background-color: black;
  padding: var(--section-padding);
}

.mission-title {
  margin-bottom: clamp(20px, 5vw, 40px);
}

.mission-text {
  color: var(--primary-text-light);
  text-align: left;
  line-height: 1.6;
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  padding-top: clamp(20px, 5vw, 50px);
}

@media (max-width: 991px) {
  .mission-text {
    padding-top: 20px;
    text-align: center;
  }
}

/* Skills Section */
#skills-section {
  padding: var(--section-padding);
}

.skills-title h1 {
  color: black;
  margin-bottom: clamp(20px, 5vw, 40px);
}

#skills-section .col-lg-3 {
  padding: 20px;
  margin-bottom: 20px;
}

#skills-section .col-lg-3 i,
#skills-section .col-lg-3 img {
  display: block;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(80px, 10vw, 150px);
  padding-bottom: 5px;
  max-width: 150px;
  max-height: 150px;
  transition: color 0.3s ease-in-out, transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

#skills-section .col-lg-3 p {
  font-size: clamp(0.8rem, 2vw, 0.9rem);
  line-height: 1.4;
  padding: 35px 10px;
  max-width: 250px;
  margin: 0 auto;
  text-align: center;
  transition: transform 0.3s ease-in-out, color 0.3s ease-in-out;
}

/* Hover effects for skills */
#skills-section .col-lg-3:hover i,
#skills-section .col-lg-3:hover p {
  transform: scale(1.1);
  cursor: pointer;
}

#skills-section .col-lg-3:hover i.devicon-cplusplus-plain {
  color: #00599c;
}

#skills-section .col-lg-3:hover i.devicon-html5-plain-wordmark {
  color: #e34f26;
}

#skills-section .col-lg-3:hover i.devicon-css3-plain-wordmark {
  color: #264de4;
}

#skills-section .col-lg-3:hover i.devicon-bootstrap-plain-wordmark {
  color: #5e13ce;
}

#skills-section .col-lg-3:hover i.devicon-python-plain-wordmark {
  color: #ffe100;
}

#skills-section .col-lg-3:hover i.devicon-figma-plain {
  color: #F24E1E;
}

/* Contact Section */
#contact-section {
  color: var(--primary-text-light);
  background-color: black;
  padding: var(--section-padding);
}

.contact-icons {
  padding: clamp(20px, 5vw, 30px);
}

#contact-section a {
  text-decoration: none;
  color: var(--primary-text-light);
  margin: 0 20px;
}

#contact-section a i {
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out, color 0.3s ease-in-out;
  display: inline-block;
  font-size: clamp(60px, 10vw, 120px);
}

#contact-section a.linkedin:hover i {
  color: #0a66c2;
}

#contact-section a.github:hover i {
  filter: brightness(80%);
}

#contact-section a[href^="mailto"]:hover i {
  color: #ea4335;
}

#contact-section a:hover i,
#contact-section a:focus i {
  transform: scale(1.2);
  cursor: pointer;
}

/* Footer */
.footer-container {
  background-color: var(--primary-bg-dark);
  color: var(--primary-text-light);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 50px;
  padding: 12px 0;
}

/* Responsive adjustments */
@media (max-width: 767px) {
  #hero-section, #mission-section, #skills-section, #contact-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  #contact-section a {
    margin: 0 10px;
  }
  
  #skills-section .col-lg-3 p {
    padding: 20px 5px;
  }
}