/*
Theme Name: CXM - compoXite materials
Author: Ayush Thakur
Description: Carbon fiber composites from standard sheets to custom aerospace grade parts.
Version: 1.0
Text Domain: cxm
*/

* 
  {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
  }

  html, body {
    scroll-behavior: smooth;
  }
  
  body {
    background: #000;
    color: #fff;
  }
  
  .hero {
	height: 100vh;
    background: 
      linear-gradient(to right, rgba(0,0,0,0.85), rgba(0,0,0,0.3)),
      url("images/background.jpg") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    padding: 0 4%;
	  margin: 0;
  }
  
  /* =================================== Navbar =================================== */

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%; /* Side padding thodi badha di hai */
    position: absolute;
    z-index: 1000;
	width: 100%;
}

.logo img {
    width: 150px;
    height: auto;
    display: block;
}

/* Checkbox ko hamesha chhupa kar rakho */
.menu-toggle {
    display: none;
}

/* Hamburger Laptop par nahi dikhega */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: 0.3s;
}

/* --- Laptop/Desktop View Menu --- */
.nav-links {
    display: flex; /* Laptop par hamesha dikhao */
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 15px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #ff4444;
}

/* ======== Mobile Responsive (768px) ================ */
@media (max-width: 768px) {
    .hamburger {
        display: flex; /* Mobile par 3 lines dikhao */
    }

    .nav-links {
        display: none; /* Mobile par shuruat mein band */
        position: absolute;
        top: 100%; /* Navbar ke theek niche */
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(7px);
        flex-direction: column;
        text-align: center;
        padding: 20px 0;
        border-bottom: 2px solid #333;
        border-radius: 20px;
    }

    .nav-links li {
        margin: 15px 0;
    }

    /* ASLI JADU: Click hone par menu khulega */
    .menu-toggle:checked ~ .nav-links {
        display: flex;
    }
}
 /* =================================== Hero Content =================================== */
  .hero-content {
    max-width: 600px;
    margin-top: 60px;
    margin-bottom: auto;
  }
  
  .hero-content h1 {
	margin-top: 100px;
    font-size: 60px;
    line-height: 1.1;
    margin-bottom: 20px;
  }
  
  .hero-content p {
    color: #bbb;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 35px;
  }
  
  /* --- MOBILE RESPONSIVE (768px ya usse kam) --- */
@media screen and (max-width: 768px) {
    .hero-content {
        max-width: 100% !important; /* Mobile par full width */
        margin-top: 100px !important;
        text-align: left; /* Mobile par center alignment premium lagta hai */
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 40px !important; /* 60px se chota karke 36px kar diya */
        line-height: 1.2 !important;
        margin-bottom: 15px !important;
    }

    .hero-content p {
        font-size: 15px !important;
        line-height: 1.5 !important;
        margin-bottom: 25px !important;
        color: #ccc; /* Thoda light color readability ke liye */
    }

    /* Buttons ka adjustment */
    .hero-buttons {
        display: flex;
        flex-direction: column; /* Buttons ek ke niche ek aayenge */
        gap: 15px;
        align-items: left;
    }

    .hero-buttons a {
        width: 100%; /* Mobile par buttons bade aur easy-to-click honge */
        max-width: 280px;
        text-align: center;
        padding: 12px 0;
    }
}
  
  /* ================================ Buttons ================================== */
  .hero-buttons {
    display: flex;
    gap: 20px;
  }
  
  .btn-primary {
    background: #ff4444;
    color: #fff;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: 0.3s;
  }
  
  .btn-primary:hover {
    background: #ff2e2e;
  }
  
  .btn-outline {
    border: 2px solid #fff;
    padding: 14px 30px;
    text-decoration: none;
    border-radius: 30px;
    color: #fff;
    transition: 0.3s;
  }
  
  .btn-outline:hover {
    background: #fff;
    color: #000;
  }

  

  /* ================================ Stats ================================== */

  .stats {
    padding: 100px 8%;
    background: #0a0a0a;
  }
  
  .stats-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
  }
  
  .stat-card {
    flex: 1;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: 0.3s ease;
  }
  
  .stat-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 46, 46, 0.1);
  }
  
  .stat-card .icon {
    font-size: 30px;
    margin-bottom: 20px;
    color: #ff2e2e;
  }
  
  .stat-card h2 {
    font-size: 28px;
    margin-bottom: 10px;
  }
  
  .stat-card p {
    color: #bbb;
    font-size: 14px;
  }

  
  /* ================================ Services ================================== */

/* SERVICES SECTION */

.services-badge{
  margin-top: 25px;
  font-size: 13px;
  color: #ff2e2e;
  letter-spacing: 1px;
  display: inline-block;
  margin-bottom: 25px;
}

.services h2{
  margin-bottom: 25px;
}

.services{
  padding:0px 5%;
  padding-bottom: 50px;
  background:#000;
}

.services-title{
  color:rgb(255, 255, 255);
  font-size:40px;
  margin-bottom:50px;
}

/* GRID */

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
}

/* CARD */

.service-card{
  position:relative;
  overflow:hidden;
  border-radius:20px;
}

/* IMAGE */

.service-card img{
  width:100%;
  height:350px;
  object-fit:cover;
  display:block;
  transition:0.4s;
}

/* DARK OVERLAY */

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Dark Overlay */
  overflow: hidden;
  width: 100%;
  height: 0; /* Height 0 matlab hidden */
  transition: .5s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  backdrop-filter: blur(7px);
}

/* Hover Effect - Jab mouse jaye */
.service-card:hover img {
    transform: scale(1.1); /* Photo halki si zoom hogi */
}

.service-card:hover .overlay {
    height: 100%; /* Overlay upar tak aa jayega */
}

/* Text Styling inside Overlay */
.overlay h3 {
    color: #ff0000; /* Tera brand color Red */
    font-size: 22px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.overlay p {
    color: #fff;
    font-size: 14px;
}

/* --- MOBILE & TABLET RESPONSIVE --- */

/* 1. Tablet ke liye (2 cards dikhenge) */
@media screen and (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* 2. Mobile ke liye (Ek ke niche ek card) */
@media screen and (max-width: 768px) {
    .services {
        padding: 40px 20px !important; /* Mobile padding set ki */
    }

    .services-grid {
        grid-template-columns: 1fr !important; /* Sirf 1 column */
        gap: 25px;
    }

    .services-title {
        font-size: 28px !important; /* Mobile par heading choti */
        margin-bottom: 30px !important;
    }

    .service-card img {
        height: 300px !important; /* Mobile par card ki height thodi kam */
    }

    /* Mobile par hover effect ki jagah hamesha overlay dikhe toh behtar hai, 
       kyunki mobile par 'hover' nahi hota, sirf click hota hai. */
    .overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.7); /* Dark Overlay */
        overflow: hidden;
        width: 100%;
        height: 0; /* Height 0 matlab hidden */
        transition: .5s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 0 20px;
        backdrop-filter: blur(7px)    }
    }


  /* ================================ Brands ================================== */
.brand-section{
  background:#0a0a0a;
  padding:80px 0;
  overflow:hidden;
}

.logo-slider{
  width:100%;
  overflow:hidden;
}

.logo-track{
  display:flex;
  align-items:center;
  gap:80px;
  animation:scrollLogos 25s linear infinite;
}

.logo-track img{
  height:100px;
  opacity:0.7;
  transition:0.3s;
}

.logo-track img:hover{
  opacity:1;
  transform:scale(1.1);
}

.logo-slider:hover .logo-track {
  animation-play-state: paused;
}

@keyframes scrollLogos{
  from{
    transform:translateX(0);
  }
  to{
    transform:translateX(-50%);
  }
}



  /* ================ content and enquiry ================= */

  .contact-section {
    padding: 120px 12%;
    background: 
      linear-gradient(to right, rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
      url("images/background3.png") center/cover no-repeat;
    display: flex;
    flex-direction: column;
    padding: 0 4%;
    position: relative;
  }
  
  .contact-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
  }
  
  .contact-left {
    flex: 1;
    max-width: 500px;
  }
  
  .contact-badge {
    margin-top: 25px;
    font-size: 13px;
    color: #ff2e2e;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 25px;
  }
  
  .contact-left h2 {
    font-size: 48px;
    margin-bottom: 25px;
    line-height: 1.1;
  }
  
  .contact-left p {
    color: #aaa;
    margin-bottom: 30px;
    line-height: 1.7;
  }
  
  .contact-phone {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .contact-email {
    color: #bbb;
  }
  
  .contact-form-wrapper {
    margin-top: 25px;
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid #111;
    margin-bottom: 25px;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-row {
    display: flex;
    gap: 20px;
  }
  
  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: #111;
    border: 1px solid #222;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: 0.3s ease;
  }
  
  .contact-form input:focus,
  .contact-form select:focus,
  .contact-form textarea:focus {
    border-color: #ff2e2e;
  }
  
  .contact-form textarea {
    resize: none;
  }
  
  .contact-form button {
    margin-top: 10px;
  }




  /* ================ footer ================= */

  .footer {
    background: #0a0a0a;
    padding: 80px 4% 40px;
    border-top: 1px solid #111;
  }
  
  .footer-container {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  
  .footer-col {
    flex: 1;
    min-width: 250px;
  }
  
  .footer-logo {
    font-size: 28px;
    color: #ff2e2e;
    margin-bottom: 20px;
  }
  .Ayush-photo img {
    width: 75px;     /* Control size here */
    height: auto;     /* Maintain aspect ratio */
    display: block;
    
  }

  .footer-col h4 {
    margin-bottom: 20px;
    font-size: 18px;
  }
  
  .footer-col p {
    color: #aaa;
    line-height: 1.7;
    font-size: 14px;
  }
  
  .footer-phone {
    margin: 15px 0;
    font-size: 28px;
    color: #fff;
  }
  
  .hours {
    margin-top: 15px;
  }
  
  .footer-bottom {
    border-top: 1px solid #111;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    font-size: 13px;
    color: #777;
  }
  
  .footer-links a {
    color: #777;
    margin-left: 25px;
    text-decoration: none;
    transition: 0.3s;
  }
  
  .footer-links a:hover {
    color: #ff2e2e;
  }