﻿  @import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap");

/* ================= COLOR PALETTE ================= */
:root {
  --primary: #0A3D62;
  --secondary: #27AE60;
  --accent: #F39C12;

  --bg: #f5f6f8;
  --white: #ffffff;
  --text-dark: #1E1E1E;
}

/* ================= BASE ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text-dark);
}

/* ================= NAVBAR ================= */
.navbar {
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
}

/* Nav Links */
.nav-links {
  display: flex;
}

.nav-links a {
  margin: 0 12px;
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--secondary);
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  background: var(--secondary);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-primary:hover {
  background: #1f8c4f;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.nav-btn {
  margin-left: 15px;
}

/* ================= HERO SECTION ================= */
.hero {
  height: 92vh;
  display: flex;
  align-items: center;
  padding: 0 8%;
  background: linear-gradient(
      rgba(10, 61, 98, 0.80),
      rgba(10, 61, 98, 0.80)
    ),
    url("http://localhost:53877/MyCricketApp/Images/new hero.png"); /* Replace with your hero image */

  background-size: cover;
  background-position: center;
  color: white;
}

.hero-content {
  max-width: 650px;
}

.hero-content h1 {
  font-size: 52px;
  line-height: 1.2;
}

.hero-content h1 span {
  color: var(--accent);
}

.hero-content p {
  margin: 18px 0;
  font-size: 17px;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

/* ================= ABOUT TITLE ================= */
.aboutus
{
    background:var(--bg);
}
.about-title {
  text-align: center;
  padding: 50px 8%;
}

.about-title h1 {
  font-size: 38px;
  color: var(--primary);
}

.about-title span {
   color: var(--secondary);
}
.about-title p
{
    padding:10px 8%;
    font-size:20px;
}

/* ================= COUNTERS ================= */
.counters {
  padding: 20px 8%;
  display: flex;
  justify-content: center;
  gap: 100px;
}

.counter-box {
  text-align: center;
}

.counter-box h2 {
  font-size: 50px;
  color:var(--secondary);
}

.counter-box p {
  margin-top: 8px;
  font-weight: 500;
}
/* ================= Sliders ================= */

.services{
    padding:20px 8%;
}

/* Cards Layout */
.service-wrapper{
    display:flex;
    justify-content:center;
    gap:40px;
    flex-wrap:wrap;
}

/* Card */
.service-card{
    width:550px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 15px 35px rgba(0,0,0,0.4);
    transition:all 0.8s ease;
    opacity:0;
}

/* Image */
.service-card img{
    width:100%;
    height:300px;
    object-fit:cover;
}

/* Content */
.service-content
{
    padding: 5px;
    text-align: center;
}

.service-content h3{

    font-size:20px;
    color:#0A3D62;
}


/* Animation Start Positions */
.service-card.left{
    transform:translateX(-150px);
}

.service-card.right{
    transform:translateX(150px);
}

/* Active Animation */
.service-card.show{
    transform:translateX(0);
    opacity:1;
}

/* Responsive */
@media(max-width:900px){
    .service-wrapper{
        flex-direction:column;
        align-items:center;
    }
    .service-card
    {
        width:400px;
        height:auto;
    }
}

/*========= Section Title======*/
.section-title
{
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 30px 0;
}

.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #ccc;
}

.section-title span {
  padding: 0 50px;
  text-align:center;
    font-size:28px;
    font-weight:700;
    color:#2c4e73;
   
}

/* ================= SERVICES================= */
.section{
    padding:20px 8%;
}

/* Core Services Layout */
.Mservices{
    display:flex;
    justify-content:space-between;
    gap:40px;
    margin-bottom:20px;
}

.service-box{
    display:flex;
    align-items:flex-start;
    gap:20px;
    width:48%;
}

.service-icon{
    width:70px;
    height:70px;
    display:flex;
  
}
.service-icon img
{
    width:70px;
    height:70px;
}

.service-content h3{
    margin:0;
    font-size:22px;
    color:#2c4e73;
}

.service-content ul{
    margin-top:10px;
    padding-left:18px;
}

.service-content li
{
    margin-bottom: 6px;
    font-size: 15px;
    color: #333333;
    text-align:left;
}

/* Why Choose Section */
.features{
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
}

.feature-box{
    background:#fff;
    flex:1;
    min-width:150px;
    text-align:center;
    padding:20px 15px;
    border-radius:10px;
    box-shadow:0 4px 10px rgba(0,0,0,0.05);
    transition:0.3s ease;
}
.feature-box ul
{
 padding:10px 25px;
   
    }

.feature-box ul li
{
    text-align:left;
 
}
.feature-head h3
{
    margin-bottom: 10px;
    font-size:22px;
    text-align:left;
    font-weight:600;
    color:var(--secondary);
}
.feature-box:hover{
    transform:translateY(-5px);
}

.feature-icon{
    font-size:28px;
    margin-bottom:10px;
}

.feature-title{
    font-size:14px;
    font-weight:600;
}

/* Icon Colors */
.icon-green{ color:#2bb673; }
.icon-lightgreen{ color:#66bb6a; }
.icon-orange{ color:#f4a261; }
.icon-darkgreen{ color:#2e7d32; }
.icon-blue{ color:#1f6f8b; }
.icon-darkblue{ color:#2c4e73; }


/*=====Contact On Home=======*/
.cta-section 
{
     height: 42vh;
  display: flex;
  background: linear-gradient(
      rgba(10, 61, 98, 0.80),
      rgba(10, 61, 98, 0.80)
    ),
    url('http://localhost:53877/MyCricketApp/Images/Cricket ground.png');
  color: white;
  
  background-size: cover;
  background-position: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

/* Content */
.cta-content h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 16px;
  margin-bottom: 30px;
   color: #fff;
  opacity: 0.95;
}

/*=====About Us======*/
.aboutUsHero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('http://localhost:53877/MyCricketApp/Images/aboutHero.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.Subhero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.Subhero p {
    font-size: 18px;
    max-width: 700px;
    margin: auto;
}
.content {
    margin: auto;
    text-align: center;
    line-height: 1.8;
    font-size: 20px;
}

/*======Contact Page======*/
.ContactHero {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
                url('http://localhost:53877/MyCricketApp/Images/contact.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
}

.ContactHero h1 {
    font-size: 42px;
    margin-bottom: 15px;
}

.ContactHero p {
    font-size: 18px;
    max-width: 700px;
    margin: auto;
}
.Ctitle
{
    text-align:center;
     animation:fadeDown 1s ease;
}
.Ctitle h1{
    font-size:30px;
    color:#0A3D62;
    margin-bottom:10px;
}

.Ctitle p
{ 
    font-size:16px;
    color:Gray;
}


/* Main Container */
.contact-wrapper{
    max-width:1100px;
    margin:40px auto 80px;
    display:flex;
    gap:40px;
    padding:0 20px;
}

/* Contact Info Card */
.contact-info{
    flex:1;
    background:#ffffff;
    padding:40px 30px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    animation:slideLeft 1s ease;
}

.contact-info h2{
    margin-bottom:20px;
    color:#1e3a5f;
}

.info-item{
    margin-bottom:18px;
    font-size:14px;
    display:flex;
    align-items:center;
    gap:10px;
    color:#555;
}

.info-item span{
    font-size:18px;
}

/* Contact Form */
.contact-form{
    flex:1.3;
    background:#ffffff;
    padding:40px 35px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,0.05);
    animation:slideRight 1s ease;
}

.contact-form h2{
    margin-bottom:25px;
    color:#1e3a5f;
}

/* Floating Inputs */
.input-group{
    position:relative;
    margin-bottom:25px;
}

.input-group input,
.input-group textarea{
    width:100%;
    padding:12px 10px;
    border:none;
    border-bottom:2px solid #ccc;
    font-size:14px;
    outline:none;
    background:transparent;
    transition:0.3s;
}

.input-group label{
    position:absolute;
    left:10px;
    top:12px;
    color:#999;
    font-size:14px;
    pointer-events:none;
    transition:0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus{
    border-color:#2e8b57;
}

.input-group input:focus + label,
.input-group input:valid + label,
.input-group textarea:focus + label,
.input-group textarea:valid + label{
    top:-10px;
    font-size:12px;
    color:#2e8b57;
}

/* Button */
.contact-form button{
    background:#2e8b57;
    color:#fff;
    border:none;
    padding:12px 35px;
    border-radius:30px;
    font-size:14px;
    cursor:pointer;
    transition:0.3s ease;
}

.contact-form button:hover{
    background:#256f46;
    transform:translateY(-3px);
    box-shadow:0 8px 20px rgba(46,139,87,0.3);
}

/* Animations */
@keyframes fadeDown{
    from{
        opacity:0;
        transform:translateY(-30px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

@keyframes slideLeft{
    from{
        opacity:0;
        transform:translateX(-40px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

@keyframes slideRight{
    from{
        opacity:0;
        transform:translateX(40px);
    }
    to{
        opacity:1;
        transform:translateX(0);
    }
}

/* Responsive */
@media(max-width:900px){
    .contact-wrapper{
        flex-direction:column;
    }
}

/* ================= FOOTER ================= */
.footer {
  padding: 20px;
  text-align: center;
  background: var(--primary);
  color: white;
}

/* ================= FADE ANIMATION ================= */
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================= RESPONSIVE ================= */
@media(max-width: 768px) {

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background: white;
    position: absolute;
    top: 70px;
    right: 8%;
    text-align:left;
    width: 400px;
    padding:20px;
    border-radius: 12px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-btn {
    display: none;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .counters {
    flex-direction: column;
    gap: 25px;
  }
     .service-box {
    flex-direction: column;
    width:100%;
  }
.Mservices 
{
    flex-direction: column;
}
.cta-content h2 {
    font-size: 24px;
  }

  .cta-content p {
    font-size: 14px;
  }
}



/*=====Solutions=====*/
/* GRID */

.products{
max-width:1200px;
margin:auto;
padding:20px;
display:grid;
grid-template-columns:repeat(auto-fit,minmax(230px,1fr));
gap:35px;
}

/* CARD */

.card{
position:relative;
background:white;
border-radius:18px;
padding:35px 20px;
text-align:center;
box-shadow:0 10px 25px rgba(0,0,0,0.07);
transition:0.4s;
transform-style:preserve-3d;
overflow:hidden;
}

/* 3D Hover */

.card:hover{
transform:rotateY(8deg) rotateX(6deg) translateY(-10px);
box-shadow:0 18px 40px rgba(0,0,0,0.15);
}

/* LOGO */

.card img{
width:90px;
margin-bottom:15px;
transition:0.4s;
}

.card:hover img{
transform:scale(1.1);
}

/* TITLE */

.card h3{
font-size:17px;
color:#1e3a5f;
margin-bottom:6px;
}

/* TEXT */

.card p{
font-size:13px;
color:#666;
}

/* CRICKET BALL */

.cricket-ball{
position:absolute;
width:28px;
height:28px;
background:#c62828;
border-radius:50%;
top:-15px;
right:-15px;
transition:0.6s;
box-shadow:inset -3px -3px 6px rgba(0,0,0,0.2);
}

/* BALL SEAM */

.cricket-ball:before{
content:"";
position:absolute;
width:3px;
height:28px;
background:white;
left:12px;
}

/* BALL ANIMATION */

.card:hover .cricket-ball{
top:10px;
right:10px;
transform:rotate(360deg) scale(1.2);
}

/* SCROLL ANIMATION */

.card{
opacity:0;
transform:translateY(40px);
}

.card.show{
opacity:1;
transform:translateY(0);
}

/* MOBILE */

@media(max-width:600px){

.section-title h1{
font-size:26px;
}

}