/* 
  styles.css
  Modern, Futuristic Design for Next Generation Data Center Company
*/

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  /* Enable smooth scrolling site-wide */
  html {
    scroll-behavior: smooth;
  }
  
  /* Body Styles */
  body {
    font-family: "Montserrat", sans-serif;
    color: #e0e0e0;
    background-color: #0f0f0f; /* Dark futuristic background */
  }
  
  /* Header */
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(20, 20, 20, 0.9);
    position: sticky;
    top: 0;
    z-index: 999;
  }
  
  header .logo img {
    height: 100px;
    width: auto;
  }
  
  /* Hamburger Menu (Checkbox Hack) */
  .nav-toggle {
    display: none; /* hidden by default */
  }
  
  /* Hamburger Icon Label */
  .nav-toggle-label {
    display: none; /* Hidden on desktop; shown in mobile via media query */
    cursor: pointer;
    width: 2rem;   
    height: 2rem;  
    position: relative;
  }
  
  /* The three lines of the hamburger */
  .nav-toggle-label span,
  .nav-toggle-label span::before,
  .nav-toggle-label span::after {
    background: #e0e0e0;
    border-radius: 2px;
    content: "";
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    transition: 0.3s ease;
  }
  
  /* Middle line is centered vertically */
  .nav-toggle-label span {
    top: 50%;
    transform: translateY(-50%);
  }
  
  /* Top line */
  .nav-toggle-label span::before {
    top: -8px;
  }
  
  /* Bottom line */
  .nav-toggle-label span::after {
    top: 8px;
  }
  
  /* Navigation (Desktop) */
  header nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
  }
  
  header nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
  }
  
  header nav ul li a:hover,
  header nav ul li a.active {
    color: #36f2f2; /* Futuristic accent color */
  }
  
  /* Hero Section */
  .hero {
    position: relative;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background: #111; /* fallback color */
    background: radial-gradient(
        circle at 20% 30%, 
        rgba(54, 242, 242, 0.8), 
        transparent 60%
      ),
      radial-gradient(
        circle at 80% 70%, 
        rgba(80, 255, 168, 0.6), 
        transparent 60%
      ),
      linear-gradient(#0f0f0f, #101010);
  }
  
  .hero-content {
    position: relative;
    z-index: 1; /* ensures text stays above the gradient */
    max-width: 600px;
    margin: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
  }
  
  /* CTA Button */
  .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #36f2f2;
    color: #0f0f0f;
    font-weight: 600;
    border-radius: 50px;
    text-decoration: none;
    transition: background 0.3s ease;
  }
  
  .cta-button:hover {
    background: #2bb0b0;
  }
  
  /* Services Section */
  .services {
    padding: 4rem 2rem;
    background: #151515;
    text-align: center;
  }
  
  .services h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #36f2f2;
  }
  
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
  }
  
  .service-card {
    background: #1c1c1c;
    padding: 2rem;
    border-radius: 10px;
    transition: background 0.3s;
  }
  
  .service-card:hover {
    background: #202020;
  }
  
  .service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  .service-card p {
    font-size: 1rem;
    color: #bdbdbd;
  }
  
  /* Solutions Section */
  .solutions {
    padding: 4rem 2rem;
    background: #0f0f0f;
    text-align: center;
  }
  
  .solutions h2 {
    font-size: 2.5rem;
    color: #36f2f2;
    margin-bottom: 2rem;
  }
  
  .solutions-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
  }
  
  .solutions-content article {
    background: #1c1c1c;
    padding: 2rem;
    border-radius: 10px;
    transition: background 0.3s;
    text-align: left;
  }
  
  .solutions-content article:hover {
    background: #202020;
  }
  
  .solutions-content article h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
  }
  
  .solutions-content article p {
    color: #bdbdbd;
  }
  
  /* Call-to-action Section */
  .call-to-action {
    background: linear-gradient(135deg, #36f2f2, #50ffa8);
    color: #0f0f0f;
    text-align: center;
    padding: 4rem 2rem;
  }
  
  .call-to-action h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .call-to-action p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  /* Contact Section */
  .contact {
    padding: 4rem 2rem;
    background: #151515;
    text-align: center;
  }
  
  .contact h2 {
    font-size: 2rem;
    color: #36f2f2;
    margin-bottom: 2rem;

  }
  
  /* 
    If you only display an email address (no full form),
    make sure it's wrapped so it doesn't overflow on small screens:
  */
  .email-display {
    word-wrap: break-word;       /* older approach */
    overflow-wrap: break-word;   /* modern approach */
    word-break: break-all;       /* fallback if needed */
    margin-bottom: 2rem;
  }
  
  /* Footer - Gradient Border with Pseudo-element */
  footer {
    position: relative; /* So the pseudo-element can be absolutely positioned */
    background: #0f0f0f;
    padding: 2rem;
    text-align: center;
    border-radius: 10px; /* Rounded corners for the footer background */
    z-index: 0; /* Ensure the pseudo-element can go behind the footer content */
  }
  
  /* The pseudo-element that acts as the gradient "border" */
  footer::before {
    content: "";
    position: absolute;
    /* Offsets: negative by 2px to create a 2px “border” effect */
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    
    /* This is our gradient */
    background: linear-gradient(135deg, #36f2f2, #50ffa8);
    
    /* Match the footer's border-radius so corners align */
    border-radius: inherit;
    
    /* Place behind the actual footer content */
    z-index: -1;
    
    /* Prevent any unwanted interaction with this layer */
    pointer-events: none;
  }
  
  /* Footer text styling */
  footer p {
    margin-bottom: 1rem;
    color: #000; /* contrast text color on dark background (adjust to taste) */
  }
  
  /* Social links */
  .social-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1rem;
  }
  
  .social-links li a {
    color: #4a4a4a;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
  }
  
  .social-links li a:hover {
    color: #2bb0b0;
  }
  
  /* =========================
     RESPONSIVE BREAKPOINTS
     ========================= */
  
  /* 
     1) Up to 768px: 
     - Adjust hero text size
     - Transform the Solutions grid to 1 column
     - Mobile nav menu (checkbox hack)
  */
  @media (max-width: 768px) {
    /* Adjust hero text sizes on smaller screens */
    .hero-content h1 {
      font-size: 2rem;
    }
    .hero-content p {
      font-size: 1rem;
    }
  
    /* Make solutions content single column */
    .solutions-content {
      grid-template-columns: 1fr;
      row-gap: 2rem;
    }
  
    /* Hide the normal horizontal menu & transform into a vertical dropdown */
    header nav ul {
      position: absolute;
      top: 70px; /* Slightly below header */
      right: 2rem;
      background: #151515;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
      border-radius: 8px;
  
      /* Start hidden */
      opacity: 0;
      pointer-events: none;
      transform: translateY(-10px);
      transition: all 0.3s ease;
    }
  
    /* Show hamburger icon on mobile */
    .nav-toggle-label {
      display: block;
      margin-right: 1rem;
    }
  
    /* When the checkbox is checked, show the menu */
    .nav-toggle:checked ~ nav ul {
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }
    
    /* Animate the hamburger icon into an X */
    .nav-toggle:checked + .nav-toggle-label span {
      background: transparent; /* middle line disappears */
    }
    .nav-toggle:checked + .nav-toggle-label span::before {
      transform: rotate(45deg);
      top: 0;
    }
    .nav-toggle:checked + .nav-toggle-label span::after {
      transform: rotate(-45deg);
      top: 0;
    }
  }
  
  /* 
     2) Up to 600px:
     - Single-column for services & solutions 
  */
  @media (max-width: 600px) {
    .services-grid {
      grid-template-columns: 1fr;
    }
    .solutions-content {
      grid-template-columns: 1fr;
    }
  }
  