/* Reset and Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #e5e5e5;
  background: #0a0a0a;
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}
button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
}

.hero-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  animation: fadeIn 1s ease-out;
}

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

.profile-image-wrapper {
  flex-shrink: 0;
  width: 350px;
  height: 350px;
  position: relative;
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(229, 9, 20, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(229, 9, 20, 0.4);
}

.hero-text {
  flex: 1;
}

.hero-title {
  margin-bottom: 1rem;
}

.greeting {
  display: block;
  font-size: 1.5rem;
  font-weight: 300;
  color: #999;
  margin-bottom: 0.5rem;
}

.name {
  display: block;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #e50914 0%, #ff6b6b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #999;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: #b3b3b3;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  padding: 0.875rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: #e50914;
  color: #fff;
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.btn-primary:hover {
  background: #ff1f1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(229, 9, 20, 0.6);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #e50914;
}

.btn-secondary:hover {
  background: #e50914;
  transform: translateY(-2px);
}

/* Skills Section */
.skills-section {
  padding: 5rem 0;
  background: #0f0f0f;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #fff;
}

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

.skill-card {
  background: #1a1a1a;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.skill-card:hover {
  transform: translateY(-5px);
  border-color: #e50914;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.2);
}

.skill-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.skill-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.skill-card p {
  color: #999;
  font-size: 0.95rem;
}

/* Footer Section */
.footer-section {
  padding: 5rem 0 3rem;
  background: #0a0a0a;
  text-align: center;
}

.footer-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-subtitle {
  font-size: 1.2rem;
  color: #999;
  margin-bottom: 3rem;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

.contact-btn {
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.email-btn {
  background: #e50914;
  color: #fff;
}

.email-btn:hover {
  background: #ff1f1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 9, 20, 0.4);
}

.whatsapp-btn {
  background: #25d366;
  color: #fff;
}

.whatsapp-btn:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.linkedin-btn {
  background: #0077b5;
  color: #fff;
}

.linkedin-btn:hover {
  background: #006399;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(0, 119, 181, 0.4);
}

.github-btn {
  background: #333;
  color: #fff;
}

.github-btn:hover {
  background: #24292e;
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(36, 41, 46, 0.4);
}

.footer-bottom {
  padding-top: 3rem;
  border-top: 1px solid #1a1a1a;
  color: #666;
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.active {
  display: flex;
  opacity: 1;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  width: 95%;
  max-width: 1400px;
  max-height: 90vh;
  background: #141414;
  border-radius: 12px;
  overflow-y: auto;
  z-index: 1001;
  padding: 2rem;
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.modal-close:hover {
  background: #e50914;
  transform: rotate(90deg);
}

.modal-header {
  margin-bottom: 2rem;
}

.modal-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.modal-header p {
  color: #999;
  font-size: 1rem;
}

/* Carousel */
.carousel-container {
  position: relative;
  margin-bottom: 3rem;
}

.carousel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  transition: all 0.3s ease;
}

.carousel-container:hover .carousel-nav {
  opacity: 1;
}

.carousel-nav:hover {
  background: #e50914;
}

.carousel-nav-left {
  left: -25px;
}

.carousel-nav-right {
  right: -25px;
}

.carousel-item {
  flex: 0 0 320px;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #1a1a1a;
}

.carousel-item:hover {
  transform: scale(1.05);
  z-index: 5;
  box-shadow: 0 10px 40px rgba(229, 9, 20, 0.4);
}

.carousel-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.carousel-item:hover img {
  opacity: 0.7;
}

.carousel-item-content {
  padding: 1rem;
}

.carousel-item-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.carousel-item-desc {
  font-size: 0.9rem;
  color: #999;
  line-height: 1.5;
}

.carousel-item-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag {
  background: rgba(229, 9, 20, 0.2);
  color: #e50914;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.grid-item {
  background: #1a1a1a;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.grid-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.3);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.grid-item-content {
  padding: 1.5rem;
}

.grid-item-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #fff;
}

.grid-item-desc {
  font-size: 0.95rem;
  color: #999;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Lazy Loading */
.lazy {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lazy.loaded {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  .profile-image-wrapper {
    width: 280px;
    height: 280px;
  }
  .name {
    font-size: 2.8rem;
  }
  .hero-description {
    max-width: 100%;
  }
  .hero-buttons {
    justify-content: center;
  }
  .carousel-item {
    flex: 0 0 280px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }
  .hero-section {
    padding: 3rem 0;
  }
  .profile-image-wrapper {
    width: 240px;
    height: 240px;
  }
  .greeting {
    font-size: 1.2rem;
  }
  .name {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.2rem;
  }
  .hero-description {
    font-size: 1rem;
  }
  .section-title,
  .footer-title {
    font-size: 2rem;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .contact-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 4rem;
  }
  .contact-btn {
    width: 100%;
    justify-content: center;
  }
  .modal-content {
    width: 100%;
    max-height: 95vh;
    padding: 1.5rem;
    border-radius: 12px 12px 0 0;
  }
  .carousel-item {
    flex: 0 0 240px;
  }
  .carousel-nav {
    display: none;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .profile-image-wrapper {
    width: 200px;
    height: 200px;
  }
  .name {
    font-size: 1.8rem;
  }
  .hero-subtitle {
    font-size: 1rem;
  }
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  .modal-header h2 {
    font-size: 1.5rem;
  }
  .carousel-item {
    flex: 0 0 200px;
  }
}
