/* 
 * Main Stylesheet for Epiphanoravia
 * Color Palette:
 * - Primary: #110133 (dark purple)
 * - Accent: #FFD369 (bright sand)
 * - Secondary: #08D9D6 (cyan)
 * - Background: #F8F8F8 (clean light)
 * - Text: #1A1A1A (rich black)
 */

/* Base Styles & Reset */
:root {
    --primary: #110133;
    --accent: #FFD369;
    --secondary: #08D9D6;
    --bg: #F8F8F8;
    --text: #1A1A1A;
    --light-text: #666;
    --border-radius: 1rem;
    --box-shadow: 0 10px 20px rgba(17, 1, 51, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: var(--transition);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

section {
    padding: 5rem 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    margin-bottom: 3rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    border-radius: 5px;
}

.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    background-color: var(--accent);
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.btn:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0.8rem 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: lowercase;
    position: relative;
}

.logo::after {
    content: '.';
    color: var(--accent);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: var(--primary);
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.contact-btn {
    margin-left: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--primary);
    color: white;
    border-radius: var(--border-radius);
}

.contact-btn:hover {
    background-color: var(--accent);
    color: var(--primary);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
}

.menu-icon {
    display: none;
    flex-direction: column;
    width: 30px;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    margin-bottom: 5px;
    border-radius: 2px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background-color: rgba(255, 211, 105, 0.1);
    border-radius: 50%;
    animation: float 20s infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -15%;
    left: -15%;
    width: 800px;
    height: 800px;
    background-color: rgba(8, 217, 214, 0.05);
    border-radius: 50%;
    animation: float 25s infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(10deg);
    }
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s;
    animation-fill-mode: both;
}

.hero .btn {
    animation: fadeInUp 1s ease 0.4s;
    animation-fill-mode: both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
.about {
    background-color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    padding: 0;
    border-radius: var(--border-radius);
    background-color: var(--bg);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-10px);
}

.about-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-card:hover .about-image img {
    transform: scale(1.05);
}

.about-card h3, .about-card p {
    padding: 0 1.5rem;
}

.about-card h3 {
    margin-top: 1.5rem;
}

.about-card p {
    padding-bottom: 1.5rem;
}

/* Services Section */
.services {
    background-color: var(--bg);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-content {
    padding: 2rem;
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
}

/* Why Us Section */
.why-us {
    background-color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    transition: var(--transition);
}

.feature:hover {
    transform: translateY(-10px);
}

.feature-icon {
    display: inline-block;
    width: 80px;
    height: 80px;
    line-height: 80px;
    border-radius: 50%;
    background-color: rgba(17, 1, 51, 0.1);
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.feature:hover .feature-icon {
    background-color: var(--primary);
    color: white;
}

/* Testimonials Section */
.testimonials {
    background-color: var(--bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    position: relative;
}

.testimonial:hover {
    transform: translateY(-10px);
}

.testimonial::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-size: 4rem;
    color: rgba(17, 1, 51, 0.1);
    font-family: serif;
}

.testimonial-text {
    margin-bottom: 1.5rem;
    font-style: italic;
    color: var(--light-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    object-fit: cover;
}

.author-name {
    font-weight: 600;
    color: var(--primary);
}

.author-title {
    font-size: 0.9rem;
    color: var(--light-text);
}

/* FAQ Section */
.faq {
    background-color: white;
}

.faq-item {
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.faq-question {
    padding: 1.5rem;
    background-color: var(--bg);
    font-weight: 600;
    color: var(--primary);
    position: relative;
}

.faq-question a {
    display: block;
    color: var(--primary);
    text-decoration: none;
}

.faq-question a:hover {
    color: var(--accent);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: white;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}

/* Contact Form */
.contact {
    background-color: var(--bg);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 3rem;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(8, 217, 214, 0.1), transparent);
    border-radius: 50%;
    z-index: 0;
}

.form-title {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 211, 105, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.checkbox-group input {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
}

.form-submit {
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 5rem 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-title {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact p {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact span {
    color: var(--accent);
    font-weight: 600;
    margin-right: 0.5rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.copyright {
    margin-top: 3rem;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    z-index: 9999;
    transition: var(--transition);
}

.cookie-popup.show {
    bottom: 0;
}

.cookie-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cookie-content p {
    margin-bottom: 0;
    margin-right: 1rem;
}

/* Media Queries */
@media (max-width: 992px) {
    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    section {
        padding: 4rem 0;
    }

    .hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .menu-icon {
        display: flex;
    }

    .nav-list {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: white;
        padding: 1.5rem 0;
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .menu-toggle:checked ~ .nav-list {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }

    .contact-btn {
        margin: 1rem 0 0;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-content p {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .form-container {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade {
    animation: fadeIn 1s ease;
}

.animate-slide {
    animation: slideInUp 0.8s ease;
}

/* Add staggered delay for children */
.stagger-children > * {
    opacity: 0;
}

.stagger-children.animate > *:nth-child(1) {
    animation: slideInUp 0.5s ease forwards;
}

.stagger-children.animate > *:nth-child(2) {
    animation: slideInUp 0.5s ease 0.1s forwards;
}

.stagger-children.animate > *:nth-child(3) {
    animation: slideInUp 0.5s ease 0.2s forwards;
}

.stagger-children.animate > *:nth-child(4) {
    animation: slideInUp 0.5s ease 0.3s forwards;
}

.stagger-children.animate > *:nth-child(5) {
    animation: slideInUp 0.5s ease 0.4s forwards;
}

/* Form border neon effect */
.neon-border {
    border: 2px solid transparent;
    border-image: linear-gradient(45deg, var(--accent), var(--secondary)) 1;
    animation: borderPulse 2s infinite alternate;
}

@keyframes borderPulse {
    0% {
        box-shadow: 0 0 5px rgba(255, 211, 105, 0.5);
    }
    100% {
        box-shadow: 0 0 15px rgba(8, 217, 214, 0.7);
    }
} 