/* 
 * MagicHost.ro - Main Stylesheet
 * Author: MagicHost Team
 * Version: 1.0
 */

/* ===== BASE STYLES ===== */
:root {
    /* Color Palette */
    --primary-color: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #818cf8;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --gray-light: #e5e7eb;
    --gray-dark: #4b5563;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --success-color: #10b981;

    /* Typography */
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Roboto', sans-serif;

    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 1.5rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--gray-color);
}

.highlight {
    color: var(--primary-color);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 5px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== HEADER ===== */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--dark-color);
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
}

.logo span {
    color: var(--primary-color);
}

nav {
    display: flex;
    align-items: center;
}

.main-menu {
    display: flex;
    gap: 1.5rem;
}

.main-menu a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

.main-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.main-menu a:hover::after,
.main-menu a.active::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-color);
}

/* ===== HERO SECTION ===== */
.hero {
    padding-top: 8rem;
    padding-bottom: 6rem;
    background: linear-gradient(135deg, #f6f8ff 0%, #e9f0ff 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 2rem;
}

.hero-image {
    text-align: center;
}

.wave-divider {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: calc(100% + 1.3px);
    height: 70px;
}

/* ===== SERVICES SECTION ===== */
.services {
    background-color: white;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--primary-light);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--gray-color);
}

/* ===== ABOUT US SECTION ===== */
.about-us {
    background: linear-gradient(135deg, #e9f0ff 0%, #f6f8ff 100%);
    padding: 8rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Development Process Animation */
.dev-process-animation {
    width: 100%;
    height: 400px;
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background-color: #f8faff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Code Editor */
.code-editor {
    width: 90%;
    height: 180px;
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-bottom: 20px;
    position: relative;
    z-index: 3;
    animation: slideInFromLeft 1s ease-out, float 4s ease-in-out infinite;
    animation-delay: 0s, 1s;
}

.editor-header {
    height: 30px;
    background-color: #333;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.red { background-color: #ff5f56; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #27c93f; }

.editor-title {
    color: #aaa;
    font-size: 12px;
    margin-left: 10px;
}

.editor-content {
    padding: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #ddd;
    line-height: 1.5;
}

.code-line {
    margin-bottom: 5px;
    white-space: nowrap;
}

.indent1 { margin-left: 20px; }
.indent2 { margin-left: 40px; }

.keyword { color: #569cd6; }
.variable { color: #9cdcfe; }
.function { color: #dcdcaa; }
.string { color: #ce9178; }
.comment { color: #6a9955; }

.typing::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Browser Preview */
.browser-preview {
    width: 90%;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: slideInFromRight 1s ease-out, float 4s ease-in-out infinite;
    animation-delay: 0.3s, 1.3s;
}

.browser-header {
    height: 30px;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #ddd;
}

.browser-actions {
    display: flex;
    align-items: center;
}

.browser-address {
    flex: 1;
    background-color: white;
    height: 20px;
    margin: 0 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 12px;
    color: #333;
}

.browser-content {
    padding: 10px;
}

.app-ui {
    display: flex;
    height: 70px;
}

.app-header {
    height: 10px;
    background-color: var(--primary-color);
    width: 100%;
    margin-bottom: 10px;
    border-radius: 3px;
}

.app-sidebar {
    width: 20%;
    height: 60px;
    background-color: #f1f1f1;
    border-radius: 3px;
    margin-right: 10px;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.app-card {
    height: 15px;
    background-color: #f1f1f1;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

.app-card:nth-child(2) {
    animation-delay: 0.5s;
}

.app-card:nth-child(3) {
    animation-delay: 1s;
}

/* Mobile Preview */
.mobile-preview {
    position: absolute;
    right: 10%;
    bottom: 10px;
    z-index: 2;
    animation: slideInFromBottom 1s ease-out, float 4s ease-in-out infinite;
    animation-delay: 0.6s, 1.6s;
}

.mobile-frame {
    width: 70px;
    height: 140px;
    background-color: #333;
    border-radius: 15px;
    padding: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mobile-screen {
    width: 100%;
    height: 120px;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
}

.mobile-home-button {
    width: 20px;
    height: 4px;
    background-color: #999;
    border-radius: 2px;
    margin: 4px auto 0;
}

.mobile-app-ui {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-header {
    height: 10px;
    background-color: var(--primary-color);
    margin-bottom: 5px;
}

.mobile-content {
    padding: 5px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.mobile-card {
    height: 15px;
    background-color: #f1f1f1;
    border-radius: 3px;
    animation: pulse 2s infinite;
}

.mobile-card:nth-child(2) {
    animation-delay: 0.7s;
}

/* Animation Keyframes */
@keyframes slideInFromLeft {
    0% { transform: translateX(-50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    0% { transform: translateX(50px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromBottom {
    0% { transform: translateY(50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.about-text h2 {
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 2rem;
    color: var(--gray-color);
}

.feature-list {
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.feature i {
    color: var(--success-color);
    margin-right: 1rem;
    font-size: 1.2rem;
}

.wave-divider.top {
    top: 0;
    bottom: auto;
    transform: rotate(180deg);
}

.wave-divider.bottom {
    bottom: 0;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
    background-color: white;
}

.testimonial-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.testimonial-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.testimonial-slide.active {
    opacity: 1;
}

.prev-testimonial,
.next-testimonial {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    cursor: pointer;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.prev-testimonial:hover,
.next-testimonial:hover {
    background-color: var(--primary-dark);
}

.prev-testimonial {
    left: 10px;
}

.next-testimonial {
    right: 10px;
}

/* Animation for content */
.testimonial-content {
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.5s ease;
}

.active .testimonial-content {
    transform: translateY(0);
    opacity: 1;
}


.quote-icon {
    color: var(--primary-light);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.client-info {
    display: flex;
    align-items: center;
}

.client-info img, .client-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.client-avatar.female {
    background-color: var(--secondary-color);
}

.client-avatar.business {
    background-color: var(--warning-color);
}

.client-info h4 {
    margin-bottom: 0.2rem;
}

.client-info p {
    margin-bottom: 0;
    color: var(--gray-color);
    font-size: 0.9rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.testimonial-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid var(--gray-light);
    color: var(--dark-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-controls button:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ===== PRICING SECTION ===== */
.pricing {
    background: linear-gradient(135deg, #f6f8ff 0%, #e9f0ff 100%);
    padding: 8rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid var(--primary-color);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-bottom-left-radius: 10px;
}

.pricing-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid var(--gray-light);
}

.pricing-header h3 {
    margin-bottom: 1rem;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.3rem;
}

.currency {
    font-size: 1.2rem;
    color: var(--gray-color);
}

.amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
}

.period {
    font-size: 1rem;
    color: var(--gray-color);
}

.custom-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    padding: 2rem;
}

.pricing-features ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.pricing-features ul li i {
    color: var(--success-color);
    margin-right: 0.8rem;
}

.pricing-footer {
    padding: 0 2rem 2rem;
    text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact {
    background-color: white;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 0.3rem;
}

.contact-item h3 {
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--gray-color);
    margin-bottom: 0;
}

.social-media h3 {
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-light);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
}

.contact-form {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-light);
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo h2 {
    color: white;
    margin-bottom: 1rem;
}

.footer-logo span {
    color: var(--primary-light);
}

.footer-logo p {
    color: var(--gray-light);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--gray-light);
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--primary-light);
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    margin-bottom: 0;
    color: var(--gray-light);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-light);
}

.payment-methods i {
    font-size: 1.5rem;
}

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: white;
    padding: 1rem 0;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    display: none; /* Hidden by default, shown via JavaScript */
}

.cookie-consent-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.cookie-consent-text {
    flex: 2;
}

.cookie-consent-text h3 {
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cookie-consent-text p {
    color: var(--gray-light);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.cookie-consent-buttons {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: center;
}

.cookie-more-info {
    color: var(--primary-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.cookie-more-info:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text {
        margin-bottom: 1rem;
    }

    .cookie-consent-buttons {
        justify-content: center;
        width: 100%;
    }
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .about-content,
    .contact-wrapper {
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero .container,
    .about-content,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-image {
        order: -1;
    }

    .cta-buttons {
        flex-direction: column;
    }

    nav {
        /*position: relative;*/
    }

    .main-menu {
        display: none;
        position: absolute;
        top: 100%;
        width: 100vw;
        background-color: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        padding: 1rem 0;
        z-index: 100;
        flex-direction: column;
        left: 50%;
        transform: translateX(-50%);
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle.active {
        color: var(--primary-color);
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 14px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .services-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}
