* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
a{
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}
body {
    background: linear-gradient(135deg, #0d1b2a, #1b263b);
    color: #c5fffe;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Header with animated elements */
header {
    text-align: center;
    margin-bottom: 20px;
    width: 100%;
    max-width: 900px;
    position: relative;
}
.header-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: rgba(13, 27, 42, 0.7);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ff9a9e, #fad0c4, #fad0c4, #a1c4fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    0% { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
    100% { text-shadow: 0 2px 20px rgba(255, 154, 158, 0.6), 
                    0 2px 30px rgba(161, 196, 253, 0.6); }
}

h1::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 25%;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #ff9a9e, #a1c4fd);
    border-radius: 2px;
    animation: linePulse 2s infinite;
}
@keyframes linePulse {
    0% { width: 50%; opacity: 1; }
    50% { width: 55%; opacity: 0.8; }
    100% { width: 50%; opacity: 1; }
}

.subtitle {
    font-size: 1.3rem;
    margin-bottom: 20px;
    opacity: 0.85;
    max-width: 700px;
    margin: 15px auto;
    line-height: 1.6;
    animation: fadeInText 1.5s ease-out forwards;
}
@keyframes fadeInText {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 0.85; transform: translateY(0); }
}

.stadium-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
    background: url('https://images.unsplash.com/photo-1555861496-0666c8981751?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80') center/cover;
    border-radius: 16px;
    z-index: 1;
    animation: panBackground 30s linear infinite alternate;
}
@keyframes panBackground {
    0% { background-position: 0% 0%; }
    100% { background-position: 20% 20%; }
}

/* Animated football elements */
.football {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('https://cdn-icons-png.flaticon.com/512/53/53283.png') center/contain no-repeat;
    z-index: 0;
    opacity: 0.3;
    animation: floatFootball 20s ease-in-out infinite;
}
@keyframes floatFootball {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(100px, 150px) rotate(90deg); }
    50% { transform: translate(200px, 50px) rotate(180deg); }
    75% { transform: translate(50px, 200px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

/* Game Mode Cards */
.game-modes {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    max-width: 900px;
    width: 100%;
}
.game-card {
    background: rgba(26, 40, 58, 0.85);
    border-radius: 18px;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.8s ease-out forwards;
    animation-delay: calc(var(--delay) * 0.2s);
    opacity: 0;
}
@keyframes cardAppear {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.game-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}
.game-card:hover::before {
    transform: translateX(100%);
}

.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
.game-card.player-vs-player {
    background: linear-gradient(135deg, rgba(26, 40, 58, 0.85), rgba(39, 174, 96, 0.2));
}
.game-card.player-vs-ai {
    background: linear-gradient(135deg, rgba(26, 40, 58, 0.85), rgba(231, 76, 60, 0.2));
}
.game-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(15, 30, 45, 0.7);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    transition: all 0.5s ease;
    animation: iconPulse 2s infinite alternate;
}
@keyframes iconPulse {
    0% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
    100% { transform: scale(1.05); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
}

.player-vs-player .game-icon {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
}
.player-vs-ai .game-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
}
.game-card:hover .game-icon {
    transform: rotate(10deg) scale(1.1);
    animation: none;
}

.game-card h2 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #f39c12;
    transition: all 0.3s ease;
}
.game-card:hover h2 {
    color: #fff;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.7);
}

.game-card p {
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 1.1rem;
    opacity: 0.9;
    transition: all 0.3s ease;
}
.game-card:hover p {
    opacity: 1;
    transform: translateY(-5px);
}

/* Button animations */
.btn {
    padding: 14px 30px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: #2c3e50;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    text-decoration: none;
    margin-top: auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(243, 156, 18, 0); }
    100% { box-shadow: 0 0 0 0 rgba(243, 156, 18, 0); }
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: all 0.6s ease;
}
.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    animation: none;
}
.btn:active {
    transform: translateY(1px) scale(0.98);
}
.player-vs-player .btn {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
    animation: pulseGreen 2s infinite;
}
@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(46, 204, 113, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

.player-vs-player .btn:hover {
    background: linear-gradient(135deg, #27ae60, #219653);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}
.player-vs-ai .btn {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
    animation: pulseRed 2s infinite;
}
@keyframes pulseRed {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.player-vs-ai .btn:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

.footer {
    margin-top: 30px;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    max-width: 800px;
}

/* Floating footballs */
.football:nth-child(1) { top: 10%; left: 5%; animation-duration: 25s; }
.football:nth-child(2) { top: 30%; right: 8%; animation-duration: 30s; animation-delay: 2s; }
.football:nth-child(3) { bottom: 20%; left: 15%; animation-duration: 22s; animation-delay: 1s; }
.football:nth-child(4) { bottom: 40%; right: 20%; animation-duration: 28s; animation-delay: 3s; }

/* Media queries */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1.1rem; }
    .game-card h2 { font-size: 1.5rem; }
    .game-card p { font-size: 1rem; }
    .btn { padding: 12px 20px; font-size: 0.95rem; }
    .game-icon { font-size: 3rem; width: 80px; height: 80px; }
    .football { display: none; }
}

@media (max-width: 480px) {
    h1 { font-size: 1.8rem; }
    .game-card { padding: 20px; }
    .features h3 { font-size: 1.5rem; }
    .footer { padding: 20px 10px; }
    .social-icons {
      flex-wrap: wrap;
      gap: 15px;
    }
}
/* --- Social Icons Styles --- */
.social-icons {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px; /* Reduced gap for better fit */
}

.social-icons .icon-content {
  margin: 0 5px; /* Reduced margin */
  position: relative;
}

.social-icons .icon-content a {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(26, 40, 58, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #c5fffe;
  transition: all 0.3s ease-in-out;
}

.social-icons .icon-content a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.social-icons .icon-content a i {
  position: relative;
  z-index: 1;
  font-size: 24px;
  transition: color 0.3s ease-in-out;
}

.social-icons .icon-content a:hover i {
  color: white; 
}

.social-icons .icon-content a .filled {
  position: absolute;
  top: auto;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  transition: all 0.3s ease-in-out;
}

.social-icons .icon-content a:hover .filled {
  height: 100%;
}

/* App-specific colors */
.social-icons .icon-content a[data-social="github"] .filled {
  background-color: #333;
}

.social-icons .icon-content a[data-social="instagram"] .filled {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icons .icon-content a[data-social="facebook"] .filled{
  background-color: #1877F2;
}

.social-icons .icon-content a[data-social="telegram"] .filled {
  background-color: #26A5E4;
}

.social-icons .icon-content a[data-social="email"] .filled {
    background-color: #c71610; 
}