/* --- Reset & Variables --- */
:root {
    --primary-color: #1ca7ec; /* Sky Blue */
    --primary-hover: #1380b3;
    --secondary-color: #17c3b2; /* Turquoise */
    --dark-color: #0d1b2a;
    --light-color: #eaf6fc;
    --bg-dark: #071422;
    --text-color: #1a1a1a;
    --text-light: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --border-radius: 8px;
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.bg-light { background-color: var(--light-color); }
.bg-dark { background-color: var(--bg-dark); }
.bg-gradient { 
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.text-center { text-align: center; }
.max-width-800 { max-width: 800px; margin: 0 auto; }
.text-light { color: #ccc; }

/* --- Buttons --- */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(255, 77, 109, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background-color: white;
    color: var(--secondary-color);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* --- Header --- */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-color);
}

.logo span { color: var(--primary-color); }

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover { color: var(--primary-color); }

.nav-links .login-btn:hover { color: var(--secondary-color); }

.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    /* Background Image Placeholder */
    background-image: url('../img/hero.webp');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }

/* --- About & Headings --- */
.section-heading {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark-color);
}

/* --- Categories --- */
.grid-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.category-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
    border: 1px solid #eee;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.category-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card h3 { margin-bottom: 10px; }

/* --- Features List --- */
.features-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.features-list li {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.features-list i { color: var(--secondary-color); font-size: 1.2rem; }

/* --- Profiles --- */
.profile-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.profile-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.profile-img {
    width: 270px;
    height: 270px;
    background-size: cover;
    background-position: center;
}

.profile-info {
    padding: 15px;
    text-align: center;
}

.profile-info h4 { color: var(--primary-color); margin-bottom: 5px; }
.profile-info p { font-size: 0.9rem; font-style: italic; color: #666; }

/* --- Matching Test --- */
.match-test-box {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    text-align: left;
}

.score-result {
    margin-top: 20px;
    padding: 20px;
    background: var(--light-color);
    border-radius: var(--border-radius);
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--secondary-color);
}

/* --- Register Form --- */
.register-box {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    max-width: 700px;
    margin: 0 auto;
}

.form-row {
    display: flex;
    gap: 15px;
}
.form-row .input-group { flex: 1; }

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
}

.input-group input:focus, .input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-group label a { color: var(--secondary-color); text-decoration: none; }

.confirmation-message {
    margin-top: 20px;
    padding: 15px;
    background: #d4edda;
    color: #155724;
    border-radius: var(--border-radius);
    text-align: center;
    display: none;
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.testimonial .quote {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 15px;
    color: #444;
}

.testimonial .author {
    font-weight: bold;
    color: var(--secondary-color);
}

/* --- Modules (Privacy, Newsletter) --- */
.module-col h3 { color: var(--primary-color); margin-bottom: 10px; font-size: 1.2rem; }
.module-col p { font-size: 0.9rem; margin-bottom: 10px; }
.link-light { color: white; text-decoration: underline; font-weight: bold; }

.newsletter-box {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255,255,255,0.2);
}

.newsletter-box h3, .newsletter-box p { color: white; }
.newsletter-box input[type="text"], 
.newsletter-box input[type="email"], 
.newsletter-box input[type="date"] {
    background: rgba(255,255,255,0.9);
    border: none;
    margin-bottom: 10px;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
}

/* --- Footer --- */
footer {
    background: #0f0f10;
    color: #888;
    padding-top: 60px;
    padding-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-col ul li a:hover { color: white; }

.social-icons { display: flex; gap: 15px; }
.social-icons a { 
    color: white; 
    background: #333; 
    width: 35px; height: 35px; 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; text-decoration: none;
    transition: 0.3s;
}
.social-icons a:hover { background: var(--primary-color); }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.85rem;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .menu-toggle { display: block; }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        gap: 15px;
    }
    
    .nav-links.active { display: flex; }
    
    .form-row { flex-direction: column; gap: 0; }
    .footer-grid { grid-template-columns: 1fr; }
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    display: grid;
}

/* ==============================================
    Module Column Styling
============================================== */
.module-col h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
}

.module-col p {
    line-height: 1.6;
    margin-bottom: 10px;
}

.module-col .link-light {
    display: inline-block;
    margin-top: 5px;
    font-weight: 500;
    color: #00bfff;
}

.module-col .link-light:hover {
    text-decoration: underline;
}

/* ==============================================
    Newsletter Box Styling
============================================== */
.newsletter-box {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.newsletter-box h3 {
    margin-bottom: 15px;
    color: #ffffff;
}

.newsletter-box p {
    margin-bottom: 20px;
}

.newsletter-box input[type="text"],
.newsletter-box input[type="email"],
.newsletter-box input[type="date"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #555;
    background-color: #1c1c1c;
    color: #f1f1f1;
    font-size: 1rem;
}

.newsletter-box input::placeholder {
    color: #888;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #ccc;
}



.confirmation-message {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #00ff90;
}

/* ==============================================
    Popup Modal Styling
============================================== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    transition: all 0.3s ease;
}

.modal-content {
    background-color: #1c1c1c;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    color: #f1f1f1;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.modal-content p {
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: #f1f1f1;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: #ff4d4d;
}