/* Base Styles */
:root {
  --primary-color: #1e0b42;
  --secondary-color: #f8c51a;
  --accent-color: #4caf50;
  --text-color: #333;
  --light-text: #f8f9fa;
  --dark-text: #212529;
  --bg-light: #f8f9fa;
  --bg-dark: #1e0b42;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #fff;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--primary-color);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  margin: 15px auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: var(--dark-text);
  border: 2px solid var(--secondary-color);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--secondary-color);
}

.btn-secondary {
  background-color: transparent;
  color: var(--light-text);
  border: 2px solid var(--light-text);
  margin-left: 15px;
}

.btn-secondary:hover {
  background-color: var(--light-text);
  color: var(--primary-color);
}

/* Header & Navigation */
.navbar-top {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  background-color: white;
  z-index: 1000;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.navbar-top.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.logo h3 {
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
}

.nav-link {
  margin-left: 30px;
  font-weight: 600;
  color: var(--dark-text);
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--accent-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-toggler {
  border: none;
  background: transparent;
  padding: 5px;
}

/* Hero Section */
.hero-section {
  background-color: var(--bg-dark);
  color: var(--light-text);
  padding: 120px 0 80px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.image-container {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.profile-img {
  border-radius: 50%;
  width: 300px;
  height: 300px;
  object-fit: cover;
  border: 5px solid var(--secondary-color);
  transform: rotate(270deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.text-container {
  flex: 1 1 300px;
  padding: 20px;
}

.greeting {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.text-container h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.tagline {
  font-size: 1.2rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* About Section */
.about-section {
  background-color: var(--bg-light);
}

.about-content,
.about-passion {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
}

.about-image,
.passion-image {
  flex: 1 1 200px;
  display: flex;
  justify-content: center;
  background-color: #1e0b42;
}

.about-photo {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.about-text,
.passion-text {
  flex: 1 1 400px;
}

.about-text h3 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.about-text p,
.passion-text p {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.personal-info {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  align-items: center;
}

.info-label {
  font-weight: 600;
  margin-right: 10px;
  color: var(--primary-color);
}

.info-value {
  color: var(--text-color);
}

/* Skills Section */
.skills-section {
  background-color: #fff;
}

.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-category {
  background-color: var(--bg-light);
  padding: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.skill-category h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.skill-item {
  margin-bottom: 20px;
}

.skill-name {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.skill-bar {
  height: 10px;
  background-color: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background-color: var(--accent-color);
  border-radius: 5px;
}

/* Projects Section */
.projects-section {
  background-color: var(--bg-light);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}

.project-info p {
  margin-bottom: 15px;
  color: var(--text-color);
}

.project-link {
  color: var(--accent-color);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.project-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-dark);
  color: var(--light-text);
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1 1 300px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.info-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.info-item i {
  margin-right: 15px;
  color: var(--secondary-color);
  width: 20px;
  text-align: center;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-links a {
  color: var(--light-text);
  font-size: 1.2rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-3px);
}

.contact-form {
  flex: 1 1 400px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--light-text);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  background-color: var(--secondary-color);
  color: var(--dark-text);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.submit-btn:hover {
  background-color: var(--accent-color);
  color: var(--light-text);
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 40px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.footer-logo p {
  opacity: 0.8;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--light-text);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .hero-content,
  .about-content,
  .about-passion,
  .contact-content {
    flex-direction: column;
    text-align: center;
  }

  .about-passion {
    flex-direction: column-reverse;
  }

  .hero-buttons {
    justify-content: center;
  }

  .profile-img {
    width: 250px;
    height: 250px;
  }

  .text-container h1 {
    font-size: 2.2rem;
  }

  .nav-link {
    margin-left: 15px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 0;
  }

  .profile-img {
    width: 200px;
    height: 200px;
  }

  .text-container h1 {
    font-size: 1.8rem;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}
