/* Main Styles for KSVEX Website - VEX Robotics Dark Theme */
:root {
    --primary: #2563eb;      /* Blue primary */
    --primary-dark: #1d4ed8; /* Darker blue */
    --secondary: #dc2626;    /* Red accent */
    --secondary-dark: #b91c1c; /* Darker red */
    --dark: #121212;         /* Very dark background */
    --darker: #0a0a0a;       /* Even darker background */
    --medium-dark: #1e1e1e;  /* Medium dark for elements */
    --light: #f9fafb;        /* Light text */
    --gray: #9ca3af;         /* Gray text */
    --light-gray: #374151;   /* Light gray for borders */
    --black: #000000;        /* Black for text */
    --white: #ffffff;        /* White for text */
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--light);
    background-color: var(--dark);
  }
  
  /* Layout */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }
  
  /* Header */
  header {
    background-color: var(--darker);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
  }
  
  .logo img {
    height: 50px;
  }
  
  nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
  }
  
  nav a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
  }
  
  nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
  }
  
  nav a:hover {
    color: var(--primary);
  }
  
  nav a:hover:after {
    width: 100%;
  }
  
  nav a.active {
    color: var(--secondary);
  }
  
  nav a.active:after {
    width: 100%;
    background-color: var(--secondary);
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    overflow: hidden;
    padding: 10rem 2rem;
    border-bottom: 4px solid var(--secondary);
  }
  
  #hero-video {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    object-fit: cover;
  }
  
  .hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
    z-index: -1;
  }

  .hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    z-index: 1;
  }
  
  .hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/pattern.svg') repeat;
    opacity: 0.1;
  }
  
  .hero h1 {
    font-size: 4.5rem;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    color: var(--light);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  }

  .tagline {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: var(--light);
    opacity: 0.9;
  }
  
  .hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
  }
  
  .hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    opacity: 0.9;
  }
  
  .cta-button {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(220, 38, 38, 0.4);
  }
  
  .cta-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 10px rgba(220, 38, 38, 0.5);
    color: var(--black);
  }

  .cta-button.secondary {
    background-color: var(--primary);
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.4);
  }
  
  .cta-button.secondary:hover {
    background-color: var(--primary-dark);
    box-shadow: 0 7px 10px rgba(37, 99, 235, 0.5);
    color: var(--black);
  }
  
  .cta-button i {
    margin-left: 0.5rem;
  }
  
  .cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
  }
  
  /* Features Section */
  .features {
    padding: 5rem 2rem;
    background-color: var(--medium-dark);
  }
  
  .features h2 {
    text-align: center;
    font-size: 2.25rem;
    margin-bottom: 3rem;
    color: var(--light);
    position: relative;
  }
  
  .features h2:after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background-color: var(--secondary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
  }
  
  .features {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .feature {
    background-color: var(--darker);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 3px solid var(--primary);
  }
  
  .feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--secondary);
  }
  
  .feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
  }
  
  /* About Page */
  .about {
    padding: 4rem 2rem;
    max-width: 800px;
    margin: 0 auto;
  }
  
  .about h1 {
    color: var(--primary);
    margin-bottom: 2rem;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .about h1:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
  }
  
  .about h2 {
    color: var(--secondary);
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
  }
  
  .about p {
    margin-bottom: 1.5rem;
  }
  
  /* Forms */
  form {
    margin: 2rem 0;
    max-width: 600px;
  }
  
  label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
  }
  
  input, textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--light-gray);
    background-color: var(--medium-dark);
    color: var(--light);
  }
  
  input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.3);
  }
  
  button[type="submit"] {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  
  button[type="submit"]:hover {
    background-color: var(--primary-dark);
  }
  
  /* Events and Services pages */
  main section {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
  }
  
  main section h1 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 2.5rem;
  }
  
  main section h2 {
    color: var(--secondary);
    margin: 2rem 0 1rem;
    font-size: 1.75rem;
  }
  
  main section p {
    margin-bottom: 1.5rem;
  }
  
  main section ul {
    margin-left: 2rem;
    margin-bottom: 2rem;
  }
  
  main section ul li {
    margin-bottom: 0.5rem;
  }
  
  main section a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  main section a:hover {
    color: var(--secondary);
    text-decoration: underline;
  }
  
/* Preview Sections */
.preview-section {
    padding: 5rem 2rem;
  }
  
  .preview-section:nth-child(odd) {
    background-color: var(--medium-dark);
  }
  
  .preview-section:nth-child(even) {
    background-color: var(--dark);
  }
  
  .preview-section .container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  .preview-section .container.reverse {
    flex-direction: row-reverse;
  }
  
  .preview-content, .preview-image {
    flex: 1;
  }
  
  .preview-content h2 {
    color: var(--primary);
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  
  .preview-content h2:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
  }
  
  .preview-content p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    line-height: 1.7;
  }
  
  .text-link {
    display: inline-block;
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 1rem;
    transition: all 0.3s ease;
  }
  
  .text-link:hover {
    color: var(--secondary-dark);
    transform: translateX(5px);
  }
  
  .text-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
  }
  
  .text-link:hover i {
    transform: translateX(3px);
  }
  
  .image-placeholder {
    background-color: var(--darker);
    border-radius: 8px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--light-gray);
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .image-placeholder:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--secondary);
  }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 5rem 2rem;
    text-align: center;
    position: relative;
    
  }

  .cta-section .container {
    position: relative;
    z-index: 1; /* This ensures the container content is above the overlay */
  }

  .cta-section .cta-button:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 7px 10px rgba(220, 38, 38, 0.5);
    color: black; /* Change to black text on hover */
  }
  
  .cta-section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../assets/images/pattern.svg') repeat;
    opacity: 0.1;
  }
  
  .cta-section h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
  }
  
  .cta-section p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Footer Updates */
footer {
    background-color: var(--darker);
    padding: 4rem 2rem 2rem;
    color: var(--gray);
  }
  
  .footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
  }
  
  .footer-section {
    flex: 1;
    min-width: 200px;
  }
  
  .footer-section h3 {
    color: var(--light);
    margin-bottom: 1rem;
    font-size: 1.25rem;
  }
  
  .footer-section ul {
    list-style: none;
  }
  
  .footer-section ul li {
    margin-bottom: 0.5rem;
  }
  
  .footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
  }
  
  .footer-section a:hover {
    color: var(--secondary);
  }
  
  .social-links {
    display: flex;
    gap: 1rem;
  }
  
  .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--medium-dark);
    color: var(--light);
    transition: all 0.3s ease;
  }
  
  .social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-3px);
  }
  
  .footer-bottom {
    border-top: 1px solid var(--light-gray);
    padding-top: 2rem;
    text-align: center;
  }