/* ===========================================
   CUSTOM STYLES FOR FRANK LEYVA PORTFOLIO
   Theme: Cerulean with modern professional aesthetics
   =========================================== */

/* --- Color Variables (Cerulean Theme) --- */
:root {
  --primary-color: #2FA4E7;      /* Cerulean blue */
  --primary-dark: #1E88C7;       /* Darker cerulean */
  --primary-light: #5CB8EA;      /* Lighter cerulean */
  --accent-color: #0E4C92;       /* Deep blue accent */
  --text-primary: #2c3e50;       /* Dark gray for text */
  --text-secondary: #5a6c7d;     /* Medium gray */
  --background-light: #f8f9fa;   /* Light background */
  --border-color: #dee2e6;       /* Light border */
  --shadow: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-hover: 0 8px 12px rgba(0,0,0,0.15);
}

/* --- Typography --- */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 1.05rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  color: var(--accent-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.5rem;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  color: var(--primary-dark);
}

h3 {
  font-size: 1.5rem;
}

/* --- Hero Section --- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4rem 2rem;
  margin: -2rem -2rem 3rem -2rem;
  text-align: center;
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow);
}

.hero-section h1 {
  color: white;
  font-size: 3rem;
  margin-bottom: 1rem;
  border: none;
  padding: 0;
}

.hero-section .tagline {
  font-size: 1.3rem;
  opacity: 0.95;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.hero-section .lead {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.hero-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: var(--shadow);
  margin: 0 auto 1.5rem;
  display: block;
}

/* --- Buttons --- */
.btn-primary {
  background-color: white;
  color: var(--primary-color) !important;
  border: 2px solid white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 50px;
  display: inline-block;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-light);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none !important;
}

.btn-outline {
  background-color: transparent;
  color: white !important;
  border: 2px solid white;
  padding: 0.75rem 2rem;
  font-weight: 600;
  text-decoration: none !important;
  border-radius: 50px;
  display: inline-block;
  margin: 0.5rem;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: white;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
  text-decoration: none !important;
}

/* --- Project Cards --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.project-card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.project-card h3 {
  color: var(--primary-dark);
  margin-top: 0;
  font-size: 1.4rem;
}

.project-card .category {
  display: inline-block;
  background: var(--primary-light);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.project-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.project-card a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- About Page Enhancements --- */
.profile-section {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.profile-photo {
  flex: 0 0 250px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.profile-content {
  flex: 1;
  min-width: 300px;
}

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

.skill-item {
  background: var(--background-light);
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
}

.skill-item h4 {
  margin: 0 0 0.5rem 0;
  color: var(--primary-dark);
  font-size: 1.1rem;
}

/* --- Navigation Enhancements --- */
.navbar {
  box-shadow: var(--shadow);
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
}

/* --- Language Switcher Styling --- */
.navbar-nav a[aria-label="Spanish"],
.navbar-nav a[aria-label="English"] {
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 0.4rem 1rem !important;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-left: 0.5rem;
}

.navbar-nav a[aria-label="Spanish"]:hover,
.navbar-nav a[aria-label="English"]:hover {
  background-color: rgba(255, 255, 255, 0.3);
  text-decoration: none !important;
}

/* --- Footer Styling --- */
.nav-footer {
  background-color: var(--accent-color);
  color: white;
  margin-top: 4rem;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .hero-section {
    padding: 3rem 1rem;
    margin: -1rem -1rem 2rem -1rem;
  }

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section .tagline {
    font-size: 1.1rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .profile-section {
    flex-direction: column;
  }

  .profile-photo {
    flex: 0 0 auto;
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
  }
}

/* --- Link Styling --- */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

/* --- Code Blocks --- */
code {
  background-color: var(--background-light);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  color: var(--accent-color);
  font-size: 0.9em;
}

pre code {
  display: block;
  padding: 1rem;
  overflow-x: auto;
}

/* --- Table Styling --- */
table {
  border-collapse: collapse;
  width: 100%;
  margin: 1.5rem 0;
}

table th {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem;
  text-align: left;
}

table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

table tr:hover {
  background-color: var(--background-light);
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}
