/* Main CSS file for CV and Cover Letter Website */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --light-color: #ecf0f1;
  --dark-color: #2c3e50;
  --text-color: #333;
  --text-light: #7f8c8d;
  --font-main: 'Roboto', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  line-height: 1.6;
  color: var(--text-color);
  background-color: #f9f9f9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styles */
header {
  background-color: var(--primary-color);
  color: white;
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
}

.logo p {
  font-size: 1rem;
  color: var(--light-color);
}

/* Navigation */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 30px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--secondary-color);
}

nav ul li a.active {
  color: var(--secondary-color);
  border-bottom: 2px solid var(--secondary-color);
}

/* Mobile Navigation */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  background-color: var(--light-color);
  padding: 60px 0;
  text-align: center;
}

.hero h2 {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
  color: var(--text-light);
}

/* Main Content */
main {
  padding: 60px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  display: inline-block;
}

/* CV Specific Styles */
.cv-section {
  margin-bottom: 40px;
}

.cv-header {
  text-align: center;
  margin-bottom: 40px;
}

.cv-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cv-header .contact-info {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.cv-header .contact-info span {
  display: flex;
  align-items: center;
}

.cv-header .contact-info span i {
  margin-right: 8px;
  color: var(--secondary-color);
}

.cv-section h2 {
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.experience-item {
  margin-bottom: 30px;
}

.experience-item h3 {
  font-size: 1.4rem;
  margin-bottom: 5px;
}

.experience-item .company {
  font-weight: bold;
  color: var(--secondary-color);
}

.experience-item .period {
  color: var(--text-light);
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}

/* Cover Letter Specific Styles */
.cover-letter {
  max-width: 800px;
  margin: 0 auto;
  background-color: white;
  padding: 40px;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  border-radius: 5px;
}

.cover-letter .header {
  margin-bottom: 30px;
}

.cover-letter .date {
  margin-bottom: 20px;
  color: var(--text-light);
}

.cover-letter .recipient {
  margin-bottom: 20px;
}

.cover-letter .greeting {
  margin-bottom: 20px;
  font-weight: bold;
}

.cover-letter .content {
  margin-bottom: 30px;
}

.cover-letter .content p {
  margin-bottom: 15px;
}

.cover-letter .closing {
  margin-top: 30px;
}

.cover-letter .signature {
  margin-top: 40px;
  font-weight: bold;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links a {
  color: white;
  margin: 0 10px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--secondary-color);
}

.copyright {
  margin-top: 20px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  nav ul {
    margin-top: 20px;
  }
  
  nav ul li {
    margin: 0 10px;
  }
  
  .footer-content {
    flex-direction: column;
  }
  
  .footer-links {
    margin-top: 20px;
  }
  
  .cv-header .contact-info {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-direction: column;
    gap: 10px;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    padding: 20px;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .cover-letter {
    padding: 20px;
  }
}
