/* Main Stylesheet for Mega Utility Hub */

:root {
    --primary-color: #4a6bff;
    --secondary-color: #ff6b6b;
    --accent-color: #6bffb8;
    --dark-color: #2a2a2a;
    --light-color: #14010c;
    --gradient-1: linear-gradient(135deg, #4a6bff, #6bffb8);
    --gradient-2: linear-gradient(135deg, #ff6b6b, #ffb86b);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
    position: relative;
}

.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.6;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: rgba(250, 207, 207, 0.9);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.hidden {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
}

nav ul li a:hover,
nav ul li a.active {
    background: var(--gradient-1);
    color: rgb(252, 209, 209);
}

main {
    padding: 2rem 5%;
}

.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: #666;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tool-card {
    background-color: rgb(229, 248, 145);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-card:nth-child(even)::before {
    background: var(--gradient-2);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.tool-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.tool-card p {
    color: #666;
    font-size: 0.9rem;
}

footer {
    background-color: var(--dark-color);
    color: white;
    padding: 3rem 5% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
    transform: translateY(-5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Tool Page Styles */
.tool-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgb(247, 141, 141);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.tool-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #fccaca;
}

.tool-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tool-header p {
    color: #ffcfcf;
    max-width: 600px;
    margin: 0 auto;
}

.tool-content {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #f8aaaa;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.btn {
    display: inline-block;
    background: var(--gradient-1);
    color: rgb(241, 160, 160);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(74, 107, 255, 0.3);
}

.btn-secondary {
    background: var(--gradient-2);
}

.result-container {
    background-color: #f9f9f9;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-top: 2rem;
}

.faq-section {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 1rem;
    background-color: #f9f9f9;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    padding: 0 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1rem;
    max-height: 500px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    .logo {
        margin-bottom: 1rem;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 0.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tool-card {
        padding: 1.5rem;
    }

    .tool-container {
        padding: 1.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* About, Contact, Privacy Pages */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: rgb(252, 202, 138);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.page-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-content {
    line-height: 1.8;
}

.page-content h2 {
    margin: 2rem 0 1rem;
    color: var(--primary-color);
}

.page-content p {
    margin-bottom: 1rem;
}

.page-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

/* AdSense Placeholders */
.ad-container {
    width: 100%;
    height: 90px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    border-radius: var(--border-radius);
    color: #999;
    font-size: 0.9rem;
}

.ad-sidebar {
    width: 300px;
    height: 250px;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem auto;
    border-radius: var(--border-radius);
    color: #999;
    font-size: 0.9rem;
}