/* CSS Custom Properties for Theme Colors */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e8b4a0;
  --accent-color: #d4a574;
  --text-primary: #2c3e50;
  --text-secondary: #5a6c7d;
  --text-light: #8a9ba8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f1f3f4;
  --border-color: #e1e8ed;
  --shadow-light: 0 2px 10px rgba(44, 62, 80, 0.1);
  --shadow-medium: 0 4px 20px rgba(44, 62, 80, 0.15);
  --shadow-heavy: 0 8px 30px rgba(44, 62, 80, 0.2);
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --primary-color: #e8b4a0;
  --secondary-color: #2c3e50;
  --accent-color: #d4a574;
  --text-primary: #f8f9fa;
  --text-secondary: #b8c5d1;
  --text-light: #8a9ba8;
  --bg-primary: #1a1a1a;
  --bg-secondary: #2d2d2d;
  --bg-tertiary: #3a3a3a;
  --border-color: #404040;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: var(--transition);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h5 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(26, 26, 26, 0.95);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo h2 {
  color: var(--primary-color);
  margin: 0;
  font-size: 1.5rem;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
}

.theme-switch {
  display: none;
}

.theme-label {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  border-radius: 25px;
  padding: 5px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--border-color);
}

.theme-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-secondary);
}

.theme-icon i {
  font-size: 14px;
}

.theme-switch:checked + .theme-label .sun {
  background: transparent;
  color: var(--text-light);
}

.theme-switch:checked + .theme-label .moon {
  background: var(--primary-color);
  color: white;
}

.theme-switch:not(:checked) + .theme-label .sun {
  background: var(--primary-color);
  color: white;
}

.theme-switch:not(:checked) + .theme-label .moon {
  background: transparent;
  color: var(--text-light);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  margin: 3px 0;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Home Section */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.home-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.home-title {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.home-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.cta-button {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
}

.cta-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
}

.profile-image {
  width: 100%;
  max-width: 350px;
  height: 400px;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 15px 35px rgba(44, 62, 80, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 3px solid var(--bg-primary);
  position: relative;
}

.profile-image:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 25px 50px rgba(44, 62, 80, 0.3), 0 10px 25px rgba(0, 0, 0, 0.15);
}

.home-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.home-image::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
  border-radius: 30px;
  z-index: -1;
  opacity: 0.1;
  transition: var(--transition);
}

.home-image:hover::before {
  opacity: 0.2;
  transform: scale(1.05);
}

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 0 auto 1.5rem;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Section */
.about-section {
  background: var(--bg-secondary);
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.about-text p {
  text-align: justify;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.circular-image {
  width: 100%;
  max-width: 320px;
  height: 320px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(44, 62, 80, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  border: 4px solid var(--bg-primary);
  position: relative;
}

.circular-image:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 20px 40px rgba(44, 62, 80, 0.3), 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-image {
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image::before {
  content: "";
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
  border-radius: 50%;
  z-index: -1;
  opacity: 0.15;
  transition: var(--transition);
}

.about-image:hover::before {
  opacity: 0.25;
  transform: scale(1.1);
}

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-primary);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.project-image {
  position: relative;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: var(--transition);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(44, 62, 80, 0.9);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  opacity: 0;
  transition: var(--transition);
  padding: 2rem;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-card:hover .project-image img {
  transform: scale(1.1);
}

.project-overlay h3 {
  margin-bottom: 0.5rem;
  color: white;
}

.project-overlay p {
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.project-link {
  background: var(--primary-color);
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: var(--transition);
}

.project-link:hover {
  background: var(--accent-color);
}

/* Skills Section */
.skills-section {
  background: var(--bg-secondary);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: 15px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.skill-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.skill-icon i {
  transition: var(--transition);
}

.skill-card h3 {
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.skill-card p {
  color: var(--text-secondary);
  margin: 0;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-light);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.submit-button {
  background: var(--primary-color);
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.submit-button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item h3 {
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 15px;
  background: var(--bg-secondary);
  border-radius: 10px;
  transition: var(--transition);
}

.social-link i {
  width: 20px;
  height: 20px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* Footer */
.footer {
  background: var(--bg-tertiary);
  padding: 2rem 0;
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.footer p {
  margin: 0;
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 70px;
    right: 0;
    flex-direction: column;
    background-color: var(--bg-primary);
    width: 100%;
    text-align: center;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-medium);
    padding: 2rem 0;
    z-index: 999;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu li {
    margin: 1rem 0;
  }

  /* Rest of mobile styles remain the same */
  .home-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .home-text {
    order: 2;
  }

  .home-image {
    order: 1;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-text {
    order: 2;
  }

  .about-image {
    order: 1;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .nav-container {
    padding: 1rem;
  }

  section {
    padding: 60px 0;
  }

  .container {
    padding: 0 15px;
  }

  .profile-image {
    max-width: 280px;
    height: 320px;
    margin: 0 auto;
  }

  .circular-image {
    max-width: 250px;
    height: 250px;
    margin: 0 auto;
  }

  .home-image::before,
  .about-image::before {
    display: none;
  }
}

/* For larger tablets, keep menu visible */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }

  .nav-menu {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transform: none;
    width: auto;
  }

  .nav-menu li {
    margin: 0;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    margin-right: 1rem;
  }

  .profile-image {
    max-width: 250px;
    height: 280px;
  }

  .circular-image {
    max-width: 200px;
    height: 200px;
  }
}

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.skill-card:hover .skill-icon i {
  transform: scale(1.1);
  color: var(--accent-color);
}
