/* 
   Eternal Matches - Custom CSS 
   No images or icons used. 
   Pure CSS for a vibrant, modern, and responsive layout.
*/

:root {
    --primary-color: #ff4757; /* Vibrant Red/Pink */
    --secondary-color: #2f3542; /* Deep Navy */
    --accent-color: #ffa502; /* Warm Orange */
    --bg-light: #f1f2f6;
    --text-dark: #2f3542;
    --text-light: #ffffff;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* --- Header & Navigation --- */
header {
    background-color: var(--white);
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
}

nav a:hover, nav a.active {
    color: var(--primary-color);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(135deg, var(--primary-color), #ff6b81);
    color: var(--white);
    padding: 6rem 5%;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 900;
}

.hero p {
    font-size: 1.5rem;
    opacity: 0.9;
}

/* Hero Decorative Shapes (No Images) */
.hero-shapes .shape {
    position: absolute;
    opacity: 0.2;
    background-color: var(--white);
    z-index: 1;
}

.shape.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    top: -50px;
    left: -50px;
}

.shape.square {
    width: 150px;
    height: 150px;
    bottom: -30px;
    right: 10%;
    transform: rotate(45deg);
}

.shape.triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 150px solid var(--white);
    top: 20%;
    right: -50px;
    opacity: 0.1;
}

/* --- Main Layout --- */
main {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 5%;
}

/* --- Blog Article (Homepage) --- */
article {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

article h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    line-height: 1.2;
}

article h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 2.5rem 0 1.2rem;
}

article h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

article p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #4b5563;
}

article a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color);
}

article a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Tables in Article */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    border-radius: 8px;
    overflow: hidden;
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid #e5e7eb;
}

table th {
    background-color: var(--secondary-color);
    color: var(--white);
}

table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Lists in Article */
article ul, article ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

article li {
    margin-bottom: 0.5rem;
}

/* --- Page Header (Services/About/Contact) --- */
.page-header {
    text-align: center;
    margin-bottom: 4rem;
    background: var(--white);
    padding: 4rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    border-top: 8px solid var(--primary-color);
}

.page-header h1 {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    color: #6b7280;
}

/* --- Services Page --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    background-color: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

/* CSS-only Icons */
.icon-heart::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background: var(--white);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    box-shadow: -15px 0 0 var(--white), 0 -15px 0 var(--white);
    border-radius: 50% 50% 0 0;
    /* Heart is tricky with just one div, simplified for visual effect */
}

.icon-globe::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--white);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.icon-verify::before {
    content: '✓';
    color: var(--white);
    font-size: 2rem;
    font-weight: bold;
    line-height: 60px;
}

.icon-date::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: var(--white);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
}

/* --- About Page --- */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-block {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.content-block h2 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* --- Contact Page --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
}

.contact-info, .contact-form-container {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h2, .contact-form-container h2 {
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.info-item {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.btn-submit:hover {
    background-color: #ff6b81;
}

/* --- Footer --- */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    text-align: center;
    padding: 3rem 5%;
    margin-top: 5rem;
}

footer p {
    opacity: 0.7;
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .hero {
        padding: 4rem 5%;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    article, .content-block, .contact-info, .contact-form-container, .page-header {
        padding: 2rem;
    }
    
    article h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .page-header h1 {
        font-size: 2.2rem;
    }
}
