@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #19398a;
  color: #fff;
}

/* Top slim bar */
.top-bar {
  background: #061e59;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 6px 40px;
  font-size: 0.85rem;
  align-items: center;
}

.top-bar .icon {
  height: 20px;
  margin: 0 5px;
}

.top-right i {
  margin-left: 10px;
  cursor: pointer;
  transition: transform 0.2s ease-in-out;
}

.top-right i:hover {
  transform: scale(1.2);
  color: #ff9800;
}

/* Main navbar */
.main-nav {
  background: #19398a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Navbar Logo (left side) */
.navbar-logo img {
  height: 60px;
  transition: transform 0.3s ease;
}

.navbar-logo img:hover {
  transform: scale(1.05);
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: width 0.3s ease-in-out;
}

.nav-links a:hover {
  color: #ff9800;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Right side extras */
.nav-extras {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #fff;
}

.nav-extras .poll {
  color: orange;
  font-weight: bold;
}

.nav-extras .choice {
  color: #ff4500;
  font-weight: bold;
}

.nav-extras i {
  cursor: pointer;
  transition: transform 0.2s ease;
}

.nav-extras i:hover {
  transform: scale(1.2);
  color: #ff9800;
}

/* Breadcrumb */
.breadcrumb {
  background: #061e59;
  padding: 6px 40px;
  font-size: 0.85rem;
  color: #ccc;
}

/* Hero Section */
.homepage {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
}

.bgimage {
  width: 100%;
  height: 100%;
  position: relative;
}

.bgimage .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Center IPL Logo (Hero section) */
.hero-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero-logo img {
  height: 120px;
  width: auto;
}


/* Team section wrapper */
.boxs {
  width: 100%;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background: #0f172a; /* dark IPL bg */
}

.teams {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 40px;
}

.team-card {
  background: #1e293b;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
  height: 280px;
  cursor: pointer;
}

.team-card:hover {
  transform: translateY(-10px);
}

.team-card .front,
.team-card .back {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
  transition: all 0.5s ease;
}

.team-card .front {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centers vertically */
  text-align: center;
}

.team-card .semi-circle {
  display: flex;
  height: 280px;
  width: 280px;
  align-items: center;
  justify-content: center; /* centers logo inside */
  margin-bottom: 10px;
  clip-path: circle(60.4% at 50% 0);
}

.team-card .semi-circle img {
  width: 100px;           
  height: 100px;
  align-items: center; 
  margin-bottom: 70px;      
}

.team-card .front p{
  margin-bottom: 50px;
}
.team-card .front p {
  margin-top: 10px;
  font-weight: bold;
  text-align: center;

}

.team-card .back {
  background: #f8fafc;
  color: #000;
  border-radius: 12px;
  flex-direction: column;
  transform: rotateY(180deg);
}

.team-card .back img {
  width: 80px;
  margin-bottom: 15px;
}

.team-card:hover .front {
  transform: rotateY(180deg);
}

.team-card:hover .back {
  transform: rotateY(360deg);
}

/* Team Colors */
.csk .semi-circle { background: #facc15; }
.dc .semi-circle { background: #dc2626; }
.gt .semi-circle { background: #38bdf8; }
.kkr .semi-circle { background: #9333ea; }
.lsg .semi-circle { background: #ffffff; }
.mi .semi-circle { background: #2563eb; }
.pbks .semi-circle { background: #ef4444; }
.rr .semi-circle { background: #ec4899; }
.rcb .semi-circle { background: #991b1b; }
.srh .semi-circle { background: #f97316; }