/* Base Styles & Variables */
:root {
  --primary-color: #9e000d;
  --primary-dark: #7a000a;
  --primary-light: #c1121f;
  --secondary-color: #0e0905;
  --text-color: #272727;
  --text-light: #555;
  --bg-light: #f8f8f8;
  --white: #ffffff;
  --black: #000000;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: auto;
  font-family: 'Quicksand', sans-serif;
  color: var(--text-color);
  background-color: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* Layout & Components */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 10rem;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-subtitle {
  color: var(--text-light);
  font-size: 1.2rem;
  /* margin-top: 0.5rem; */
}

/* Navigation */
.navbar-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 9%;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 1rem 9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.navbar-container.scrolled {
  padding: 1rem 9rem;
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.navbar-container .logo img {
  width: 170px;
  transition: var(--transition);
}

.navbar-container.scrolled .logo img {
  width: 140px;
}

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

.nav-list li a {
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-color);
  transition: var(--transition);
}

.nav-list li a:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.hamburger-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 5px 0;
  transition: var(--transition);
}

/* Hero Section */
#home {
  padding-top: 19rem;
  height: 100vh;
}

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

.content-description {
  flex: 1;
}

.content-description .title {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content-description p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.cta-button {
  display: inline-block;
  padding: 0.8rem 2.5rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.cta-button:hover {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(158, 0, 13, 0.2);
}

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

.floating-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px;
  filter: drop-shadow(5px 5px 15px rgba(0, 0, 0, 0.1));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Social Media Sidebar */
.social-media-sidebar {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 999;
}

.social-media ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: var(--primary-color);
  padding: 1rem 0.8rem;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.social-media a {
  color: var(--white);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
}

.social-media a:hover {
  color: var(--primary-color);
  background-color: var(--white);
  transform: scale(1.1);
}

/* About Section */
.about-container {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.profile-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 20px 100px 20px 100px;
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.7);
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 15px 15px 15px rgba(0, 0, 0, 0.5);
}

.about-content {
  flex: 1;
  background-color: var(--bg-light);
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.about-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2rem;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--white);
  padding: 0.8rem 1.2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.highlight-item i {
  color: var(--primary-color);
}

/* Skills Section */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.skill-meter {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  margin: 0.5rem 0 1rem;
  position: relative;
  overflow: hidden;
}

.skill-level {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
}

.skill-percent {
  position: absolute;
  right: 0;
  top: -25px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-color);
}

.soft-skills li, .tools-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.soft-skills i, .tools-list i {
  color: var(--primary-color);
}

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

.project-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

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

.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.project-content {
  padding: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.project-tech span {
  background-color: #f0f0f0;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-light);
}

.project-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: var(--border-radius);
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.project-link.disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}

/* Contact Section */
.contact-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.contact-list li:hover {
  transform: translateY(-5px);
}

.contact-list i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(158, 0, 13, 0.1);
  border-radius: 50%;
}

.contact-list h4 {
  margin-bottom: 0.3rem;
  font-size: 1.1rem;
}

.contact-list a {
  color: var(--primary-color);
  font-weight: 600;
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(158, 0, 13, 0.1);
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--border-radius);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(158, 0, 13, 0.2);
}

/* Footer */
.footer {
  background-color: var(--bg-light);
  padding: 2rem 7rem 0.5rem 7rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo img {
  width: 170px;
  margin-bottom: 1rem;
}

.footer-links h4,
.footer-social h4 {
  margin-bottom: 1.5rem;
  font-size: 1.2rem;
  color: var(--primary-color);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-light);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

.social-media ul,
.social-media li {
  list-style: none;
  padding: auto;
  margin: auto;
}


.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeIn 1s ease forwards;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
  .about-container {
    flex-direction: column;
  }
  
  .profile-image {
    max-width: 300px;
    margin-bottom: 2rem;
  }
}

@media screen and (max-width: 768px) {
  .navbar-container {
    padding: 1rem;
  }
  
  .nav-list {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    z-index: 1000;
  }
  
  .nav-list.active {
    right: 0;
  }
  
  .nav-list ul {
    flex-direction: column;
    gap: 2rem;
  }
  
  .hamburger-menu {
    display: block;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .social-media-sidebar {
    display: none;
  }
  
  .content {
    flex-direction: column-reverse;
    text-align: center;
  }
  
  .floating-image {
    max-width: 300px;
    margin-bottom: 2rem;
  }
  
  .section {
    padding: 4rem 0;
  }
}

@media screen and (max-width: 576px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-links ul,
  .social-icons {
    justify-content: center;
  }
}