/* css/styles.css */

/* ===== LIGHT MODE ===== */

/* Custom Variables - Light Mode */
:root {
  --primary-color: #1a3a5f;
  --secondary-color: #2c5530;
  --accent-color: #b38e5d;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --text-color: #333;
  --text-muted: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* General Styles - Light Mode*/
body {
  font-family: "Inter", sans-serif;
  color: var(--text-color);
  background-color: var(--light-color);
  transition: var(--transition);
  padding-top: 76px; /* Account for fixed navbar */
  line-height: 1.6;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  font-weight: 600;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Navbar - Light Mode */
.navbar {
  background-color: var(--primary-color) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
}

.navbar-nav .nav-link {
  font-weight: 500;
  margin: 0 0.5rem;
  position: relative;
}

.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: var(--transition);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 100%;
}

/* Hero Section - Light Mode */
.hero-section {
  min-height: 90vh;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2c5530 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  pointer-events: none;
}

.profile-image-container {
  max-width: 320px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.profile-image {
  width: 100%;
  height: auto;
  transition: var(--transition);
}

.profile-image:hover {
  transform: scale(1.02);
}

/* Hero Section Buttons - Light Mode */
.hero-section .btn {
  position: relative;
  z-index: 10;
}
.hero-section .btn-primary,
.hero-section .btn-outline-primary {
  color: white;
  border: 2px solid white;
  background-color: transparent;
  font-weight: 600;
}

.hero-section .btn-primary:hover,
.hero-section .btn-outline-primary:hover {
  background-color: white;
  border-color: white;
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Cards - Light Mode */
.card {
  transition: var(--transition);
  border-radius: var(--border-radius);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

.icon-container {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50% !important;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
}

.icon-container i {
  font-size: 1.5rem;
  line-height: 1;
}

/* Portfolio Cards - Light Mode */
.portfolio-card .card-title {
  flex-grow: 1;
  margin-bottom: 0;
}

/* Badge Styles - Light Mode */
.badge.bg-accent {
  background-color: var(--accent-color) !important;
  color: white;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  margin-bottom: 0.25rem;
  display: inline-block;
}

/* Form Styles - Light Mode */
.form-control {
  border-radius: var(--border-radius);
  border: 1px solid #dee2e6;
  padding: 12px 15px;
  transition: var(--transition);
  font-size: 0.95rem;
}

.form-control:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 58, 95, 0.25);
  border-color: var(--primary-color);
}

/* Button Styles - Light Mode */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition);
  padding: 0.75rem 1.5rem;
}

/* Submit Button - Light Mode*/
.btn-primary:not(.hero-section .btn-primary) {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
}

.btn-primary:not(.hero-section .btn-primary):hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-sm {
  padding: 0.5rem 1rem;
}

/* Portfolio Buttons - Light Mode */
.portfolio-card .btn-outline-primary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  font-weight: 600;
}

.portfolio-card .btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Accessibility: Focus states */
.btn:focus,
.form-control:focus,
.navbar-toggler:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Social Links - Light Mode */
.social-links a {
  transition: var(--transition);
  display: inline-block;
}

.social-links a:hover {
  color: var(--accent-color) !important;
  transform: translateY(-3px);
}

/* Footer - Light Mode */
footer {
  background-color: var(--primary-color);
  color: white;
}

/* ===== DARK MODE ===== */

/* Dark Mode Variables */
[data-bs-theme="dark"] {
  --light-color: #0a0f1c;
  --dark-color: #f8f9fa;
  --text-color: #e9ecef;
  --text-muted: #a0aec0;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --card-bg: #1a202c;
  --form-bg: #2d3748;
}

/* Dark Mode Body & Background */
[data-bs-theme="dark"] body {
  background: linear-gradient(135deg, #0a0f1c 0%, #1a202c 100%);
}

/* Dark Mode Hero Section */
[data-bs-theme="dark"] .hero-section {
  background: linear-gradient(135deg, #1a3a5f 0%, #2d3748 100%);
}

/* Dark Mode Navbar */
[data-bs-theme="dark"] .navbar {
  background-color: #1a202c !important;
  border-bottom: 1px solid #2d3748;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: var(--card-bg);
  border: 1px solid #2d3748;
}

[data-bs-theme="dark"] .dropdown-item {
  color: var(--text-color);
}

[data-bs-theme="dark"] .dropdown-item:hover {
  background-color: var(--form-bg);
  color: var(--text-color);
}

/* Dark Mode Cards */
[data-bs-theme="dark"] .card {
  background-color: var(--card-bg);
  border: 1px solid #2d3748;
}

[data-bs-theme="dark"] .card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4) !important;
}

[data-bs-theme="dark"] .card .text-muted {
  color: var(--text-muted) !important;
}

[data-bs-theme="dark"] .bg-light {
  background-color: #1a202c !important;
}

/* Dark Mode Badges */
[data-bs-theme="dark"] .badge.bg-accent {
  background-color: var(--accent-color) !important;
  color: #1a202c;
  font-weight: 600;
}

/* Dark Mode Forms */
[data-bs-theme="dark"] .form-control {
  background-color: var(--form-bg);
  border-color: #4a5568;
  color: var(--text-color);
}

[data-bs-theme="dark"] .form-control:focus {
  background-color: var(--form-bg);
  border-color: var(--accent-color);
  color: var(--text-color);
  box-shadow: 0 0 0 0.25rem rgba(179, 142, 93, 0.25);
}

[data-bs-theme="dark"] .form-label {
  color: var(--text-color);
}

/* Dark Mode Buttons */
[data-bs-theme="dark"] .btn-outline-light {
  color: var(--text-color);
  border-color: var(--text-muted);
}

[data-bs-theme="dark"] .btn-outline-light:hover {
  background-color: var(--text-muted);
  border-color: var(--text-muted);
  color: var(--light-color);
}

/* Dark Mode Submit Button - Reverse hover states */
[data-bs-theme="dark"] .btn-primary:not(.hero-section .btn-primary) {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
}

[data-bs-theme="dark"] .btn-primary:not(.hero-section .btn-primary):hover {
  background: var(--accent-color);
  color: #1a202c;
  border-color: var(--accent-color);
}

/* Hero Section Buttons - Dark Mode */
[data-bs-theme="dark"] .hero-section .btn-primary,
[data-bs-theme="dark"] .hero-section .btn-outline-primary {
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  background-color: transparent;
  font-weight: 600;
}

[data-bs-theme="dark"] .hero-section .btn-primary:hover,
[data-bs-theme="dark"] .hero-section .btn-outline-primary:hover {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  color: #1a202c;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Dark Mode Icon Containers */
[data-bs-theme="dark"] .icon-container {
  background: linear-gradient(135deg, var(--accent-color), #d4b17e);
  color: #1a202c;
}

/* Portfolio View Project Buttons - Dark Mode */
[data-bs-theme="dark"] .portfolio-card .btn-outline-primary {
  background: transparent;
  color: var(--accent-color);
  border: 2px solid var(--accent-color);
  font-weight: 600;
}

[data-bs-theme="dark"] .portfolio-card .btn-outline-primary:hover {
  background: var(--accent-color);
  color: #1a202c;
  border-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .portfolio-card .icon-container {
  background: linear-gradient(135deg, var(--accent-color), #d4b17e);
  color: #1a202c;
}

/* Accessibility: Dark mode focus states */
[data-bs-theme="dark"] .btn:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .navbar-toggler:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Dark Mode Footer */
[data-bs-theme="dark"] footer {
  background-color: #1a202c !important;
  border-top: 1px solid #2d3748;
}

/* ===== RESPONSIVE STYLES ===== */

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
    padding: 100px 0 50px;
  }

  .profile-image-container {
    max-width: 280px;
    margin-top: 2rem;
  }

  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .btn {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .d-flex.gap-3 {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .profile-image-container {
    max-width: 250px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  .hero-section .row {
    flex-direction: column-reverse;
  }

  .hero-section .col-lg-6:first-child {
    order: 2;
  }

  .hero-section .col-lg-6:last-child {
    order: 1;
    margin-bottom: 2rem;
  }

  .profile-image-container {
    margin-top: 0;
    margin-bottom: 2rem;
  }
}

/* ===== UTILITY STYLES ===== */

/* Smooth theme transitions */
.navbar,
.card,
.form-control,
.btn,
footer,
body {
  transition: all 0.3s ease;
}

/* Remove form box animation on hover */
.card:has(form):hover {
  transform: none !important;
}

/* Form Status Messages */
.alert {
  padding: 12px;
  border-radius: var(--border-radius);
  margin-bottom: 1rem;
  font-weight: 500;
}

.alert-info {
  background-color: #d1ecf1;
  border: 1px solid #bee5eb;
  color: #0c5460;
}

.alert-success {
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}

.alert-error {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
