/* Dark Theme with Red Accents */
:root {
  /* Color Scheme */
  --bg-dark:rgba(26, 4, 4, 0.63);
  --card-dark: #080403;
  --card-light: #6b0808;
  --text-white: #ffffff;
  --text-muted: #f7f2f2;
  --accent-red: #f31d1d;
  --accent-dark-red: #d32f2f;
  --shadow-red: 0 0 15px rgba(241, 11, 11, 0.6);
  
  /* 3D Effects */
  --transition-3d: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  line-height: 1.6;
  padding-top: 80px; /* For fixed nav */
}

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

section {
  padding: 100px 0;
}

/* Fixed Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(37, 37, 37, 0.98);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 15px 0;
  transition: var(--transition-3d);
}

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

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
}

.logo span {
  color: var(--accent-red);
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-white);
  font-weight: 500;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-red);
  transition: var(--transition-3d);
}

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

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text-white);
  transition: var(--transition-3d);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  flex: 1;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--accent-red);
}

.hero-content h2 {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  max-width: 500px;
}

.hero-btns {
  display: flex;
  gap: 20px;
}

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

/* 3D Profile Image */
.profile-3d {
  width: 350px;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  transform: rotateY(15deg) rotateX(5deg);
  transition: var(--transition-3d);
  box-shadow: var(--shadow-red);
  border: 3px solid var(--accent-red);
}

.profile-3d:hover {
  transform: rotateY(0) rotateX(0) scale(1.05);
}

.profile-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Section Titles */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--accent-red);
  border-radius: 2px;
}

/* 3D Cards */
.card-3d {
  background: var(--card-dark);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 30px rgba(255, 58, 58, 0.1);
  transition: var(--transition-3d);
  border: 1px solid #333;
}

.card-3d:hover {
  background: var(--card-light);
  transform: translateY(-10px) rotateY(5deg);
  box-shadow: 0 15px 40px var(--shadow-red);
}

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

.about-img img {
  width: 300px;
  border-radius: 15px;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  position: relative;
}

.about-text h3::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--accent-red);
}

.about-text p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  line-height: 1.8;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px;
}

.detail-item i {
  font-size: 1.5rem;
  color: var(--accent-red);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 58, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-item h4 {
  font-size: 1rem;
  margin-bottom: 5px;
  color: var(--text-muted);
}

.detail-item p {
  font-size: 1rem;
  margin: 0;
  font-weight: 500;
}

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

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-category h3 i {
  color: var(--accent-red);
}

.skill-item {
  margin-bottom: 20px;
}

.skill-item p {
  margin-bottom: 10px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.skill-bar {
  width: 100%;
  height: 10px;
  background-color: #383838;
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--accent-red);
  border-radius: 5px;
  position: relative;
}

.skill-level::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgba(255,255,255,0.1) 0%, 
    rgba(255,255,255,0.3) 50%, 
    rgba(255,255,255,0.1) 100%);
  animation: shine 2s infinite;
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

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

.project-img {
  height: 250px;
  overflow: hidden;
  position: relative;
}

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

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

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 58, 58, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  opacity: 0;
  transition: var(--transition-3d);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  width: 50px;
  height: 50px;
  background-color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  font-size: 1.2rem;
  transition: var(--transition-3d);
}

.project-link:hover {
  background-color: var(--accent-dark-red);
  color: var(--text-white);
  transform: translateY(-5px);
}

.project-info {
  padding: 25px;
}

.project-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.project-info p {
  margin-bottom: 15px;
  color: var(--text-muted);
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.project-tech span {
  background-color: #383838;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--text-white);
  font-weight: 500;
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-links a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  color: var(--accent-red);
  transition: var(--transition-3d);
}

.project-links a:hover {
  color: var(--text-white);
}

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

/* Contact Section */
.contact-content {
  display: flex;
  gap: 50px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 30px;
  color: var(--text-muted);
  line-height: 1.8;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--accent-red);
  width: 50px;
  height: 50px;
  background-color: rgba(255, 58, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.info-item p {
  margin: 0;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: rgba(255, 58, 58, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-red);
  transition: var(--transition-3d);
}

.social-links a:hover {
  background-color: var(--accent-red);
  color: var(--text-white);
  transform: translateY(-5px);
}

.contact-form {
  flex: 1;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background-color: #252525;
  border: 1px solid #383838;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  color: var(--text-white);
  transition: var(--transition-3d);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 3px rgba(255, 58, 58, 0.2);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Footer */
footer {
  background-color: #1e1e1e;
  color: var(--text-white);
  padding: 30px 0;
  text-align: center;
}

footer p {
  margin-bottom: 0;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--accent-red);
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 5px 20px rgba(255, 58, 58, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-3d);
  z-index: 999;
}

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

.back-to-top:hover {
  background-color: var(--accent-dark-red);
  transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .hero-content h1 {
    font-size: 3rem;
  }
}

@media (max-width: 992px) {
  .hero .container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-content {
    margin-bottom: 50px;
  }
  
  .hero-btns {
    justify-content: center;
  }
  
  .about-content {
    flex-direction: column;
  }
  
  .contact-content {
    flex-direction: column;
  }
  
  .hero-image {
    margin-top: 50px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--card-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: var(--transition-3d);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-content h2 {
    font-size: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .about-details {
    grid-template-columns: 1fr;
  }
  
  .profile-3d {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }
  
  .hero-btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .about-btns {
    flex-direction: column;
  }
}
/* Mobile Menu Styles */
.hamburger {
  display: none; /* Hidden by default on desktop */
  cursor: pointer;
}

.nav-links {
  display: flex;
}

.nav-links.active {
  display: flex; /* Or whatever your mobile menu style should be */
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
}

.back-to-top.active {
  display: block;
}