/* 
* Best Actresses Website Styles
* Mobile-first responsive design with modern aesthetics
*/

/* === Base Styles === */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #e74c3c;
  --accent-color: #3498db;
  --dark-color: #1a1a2e;
  --light-color: #f1f2f6;
  --white: #ffffff;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  margin-bottom: 1rem;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

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

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--secondary-color);
}

.section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem auto;
}

.alt-bg {
  background-color: var(--light-color);
}

/* === Navigation === */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--dark-color);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  margin-right: 0.8rem;
}

.logo span {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--secondary-color);
  font-weight: 700;
  letter-spacing: 1px;
}

.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--white);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
}

.nav-links.active {
  display: block;
}

.nav-links li {
  padding: 0.5rem 2rem;
}

.nav-links a {
  color: var(--light-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 1px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-color);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--primary-color);
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  outline: none;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light-color);
  margin: 5px 0;
  transition: var(--transition);
  border-radius: 0;
}

/* === Hero Section === */
.hero {
  padding: 9rem 1rem 5rem;
  background: linear-gradient(135deg, rgba(44, 62, 80, 0.9), rgba(231, 76, 60, 0.85)), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100%" height="100%" fill="%231a1a2e"/><path d="M30,20 L70,80" stroke="%233498db" stroke-width="2" stroke-opacity="0.3"/><path d="M70,20 L30,80" stroke="%233498db" stroke-width="2" stroke-opacity="0.3"/></svg>');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: center;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.cta-button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: -1;
}

.cta-button:hover::after {
  height: 100%;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 51, 102, 0.4);
  text-decoration: none;
  color: var(--white);
}

/* === Cards === */
.cards-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.card {
  background-color: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background-color: rgba(52, 152, 219, 0.1);
  transform: rotate(45deg);
  overflow: hidden;
}

.card-icon svg {
  transform: rotate(-45deg);
}

/* === Timeline === */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
  top: 0;
  bottom: 0;
  left: 20px;
  margin-left: -2px;
}

.timeline-item {
  position: relative;
  padding: 1.5rem 0 1.5rem 3rem;
}

.timeline-date {
  position: absolute;
  left: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 50%;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  z-index: 1;
  font-size: 0.8rem;
}

.timeline-content {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* === Resources === */
.resources-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.resource-item {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resource-item h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.resource-item ul li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.resource-item ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
}

/* === Footer === */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 4rem 0 2rem;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(to right, var(--secondary-color), var(--accent-color));
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo img {
  margin-bottom: 1rem;
}

.footer-logo p {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
}

.footer-links h3,
.footer-contact h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
}

.footer-links ul li {
  margin-bottom: 0.5rem;
}

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

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

.footer-contact p {
  margin-bottom: 0.75rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: var(--transition);
  transform: rotate(45deg);
}

.social-icons a svg {
  transform: rotate(-45deg);
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem;
}

/* === Media Queries === */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline::after {
    left: 50%;
  }
  
  .timeline-item {
    width: 50%;
    padding: 1.5rem;
  }
  
  .timeline-item:nth-child(even) {
    margin-left: 50%;
  }
  
  .timeline-date {
    left: auto;
    right: -20px;
    width: 50px;
    height: 50px;
    font-size: 1rem;
  }
  
  .timeline-item:nth-child(even) .timeline-date {
    left: -25px;
    right: auto;
  }
}

@media (min-width: 992px) {
  .navbar {
    padding: 0 2rem;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-links {
    position: static;
    display: flex;
    width: auto;
    background: none;
    box-shadow: none;
    padding: 0;
  }
  
  .nav-links li {
    padding: 1.5rem 1.2rem;
  }
  
  .hero {
    padding-top: 10rem;
    padding-bottom: 6rem;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
  
  .cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { transform: translateX(-50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.hero {
  animation: fadeIn 1.2s ease-out;
}

.section {
  animation: fadeIn 1s ease-out;
}

/* Special card styles for Digital Tools section */
.special-cards .card {
  border-left: none;
  border-top: 4px solid var(--secondary-color);
  background-color: var(--light-color);
}

.special-card .card-content {
  text-align: left;
}

.tool-links {
  margin-top: 1.5rem;
  padding-left: 0;
}

.tool-links li {
  margin-bottom: 0.8rem;
  padding-left: 0;
  list-style-type: none;
}

.tool-links a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(231, 76, 60, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
  color: var(--secondary-color);
  font-weight: 500;
}

.tool-links a:hover {
  background-color: var(--secondary-color);
  color: white;
  text-decoration: none;
  transform: translateX(5px);
}

/* === Accessibility === */
:focus {
  outline: 3px solid var(--accent-color);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Load web fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;800&family=Roboto:wght@400;500;700&display=swap');
