:root {
    --primary: #000080;
    --secondary: #f4a460;
    --white: #ffffff;
    --text: #2c3e50;
    --light: #6c757d;
    --gradient: linear-gradient(135deg, var(--primary), #1a237e);
    --success: #28a745;
    --warning: #ffc107;
    --info: #007bff;
}

@import url('../floating-button.css');

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*, *:before, *:after {
    box-sizing: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    padding-top: 80px;
    margin: 0;
    font-family: 'Arial', sans-serif;
    overflow-x: hidden;
    box-sizing: border-box;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: var(--text);
    line-height: 1.6;
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

header.shrink {
    padding: 10px 40px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

header.shrink .logo img {
    height: 40px;
}

header.shrink .logo h1 {
    font-size: 1em;
}

header.shrink nav ul li a {
    padding: 8px 15px;
}

/* Logo Styles */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.logo a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    height: 50px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.2em;
    margin: 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #1a237e 0%, #000080 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    opacity: 0.9;
}

/* Navigation Styles */
nav {
    margin-right: 20px;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0 40px;
    display: flex;
    gap: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    white-space: nowrap;
    position: relative;
}

nav ul li a:hover {
    color: #000080;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 128, 0.2);
    background: linear-gradient(135deg, rgba(0, 0, 128, 0.1) 0%, rgba(0, 0, 128, 0.2) 100%);
}

nav ul li a.active {
    color: #000080;
    background: rgba(0, 0, 128, 0.1);
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 128, 0.2);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #000080;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 80%;
}

/* Mobile Navigation */
.nav-toggle {
    display: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hamburger-menu {
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-menu span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #000080;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu span:first-child {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 8px;
}

.hamburger-menu span:last-child {
    top: 16px;
}

.nav-active .hamburger-menu span:first-child {
    transform: rotate(45deg);
    top: 8px;
}

.nav-active .hamburger-menu span:nth-child(2) {
    opacity: 0;
}

.nav-active .hamburger-menu span:last-child {
    transform: rotate(-45deg);
    top: 8px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
        position: fixed;
        top: 20px;
        right: 30px;
    }

    header {
        padding: 15px 20px;
    }

    header.shrink {
        padding: 10px 20px;
    }

    header.shrink .nav-toggle {
        top: 15px;
    }

    nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 85%;
        max-width: 300px;
        background: white;
        padding: 80px 30px 20px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        margin-right: 0;
    }

    nav.active {
        right: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px 40px;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 15px 20px;
        width: 100%;
        box-sizing: border-box;
        font-size: 1.1em;
        border-radius: 8px;
        background: rgba(0, 0, 128, 0.03);
        margin: 5px 0;
    }

    nav ul li a:hover {
        background: rgba(0, 0, 128, 0.08);
        transform: translateX(5px);
    }

    body.nav-active {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .nav-toggle {
        right: 20px;
    }

    header {
        padding: 10px 15px;
    }

    .logo h1 {
        font-size: 1.2em;
    }

    .logo img {
        height: 40px;
    }

    nav {
        padding: 80px 25px 20px;
    }
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background: var(--gradient);
    padding: clamp(100px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.3;0.1" dur="3s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.4;0.1" dur="2s" repeatCount="indefinite"/></circle><circle cx="60" cy="70" r="1" fill="rgba(255,255,255,0.1)"><animate attributeName="opacity" values="0.1;0.5;0.1" dur="4s" repeatCount="indefinite"/></circle></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    max-width: min(90%, 900px);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 25px);
    position: relative;
    z-index: 2;
    width: 100%;
}

.cookie-visual {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 40px;
    backdrop-filter: blur(10px);
    position: relative;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.cookie-visual i {
    font-size: 3.5rem;
    z-index: 2;
}

.cookie-crumbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.cookie-crumbs span {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: crumbFloat 3s ease-in-out infinite;
}

.cookie-crumbs span:nth-child(1) {
    top: 25%;
    left: 30%;
    animation-delay: 0s;
}

.cookie-crumbs span:nth-child(2) {
    top: 60%;
    right: 25%;
    animation-delay: 1s;
}

.cookie-crumbs span:nth-child(3) {
    bottom: 30%;
    left: 60%;
    animation-delay: 2s;
}

@keyframes crumbFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: clamp(15px, 3vw, 25px);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
}

.hero p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: clamp(30px, 5vw, 50px);
    max-width: min(90%, 600px);
    margin-left: auto;
    margin-right: auto;
}

/* Content Section */
.content {
    padding: clamp(60px, 8vw, 80px) 0;
}

.container {
    max-width: min(90%, 1200px);
    margin: 0 auto;
    padding: 0 clamp(15px, 3vw, 20px);
}

/* Info Card */
.info-card.modern {
    background: var(--white);
    border-radius: 25px;
    padding: 0;
    margin-bottom: 60px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.1);
    transform: translateY(-60px);
    position: relative;
    z-index: 3;
    overflow: hidden;
}

.info-card.modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient);
}

.card-header {
    display: flex;
    align-items: center;
    gap: clamp(15px, 3vw, 25px);
    padding: clamp(25px, 4vw, 40px) clamp(30px, 5vw, 50px) clamp(15px, 2vw, 20px);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 128, 0.3);
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.card-title h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: clamp(3px, 1vw, 5px);
    font-weight: 700;
}

.subtitle {
    color: var(--light);
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.card-content {
    padding: 0 clamp(30px, 5vw, 50px) clamp(25px, 4vw, 40px);
}

.card-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--light);
    margin-bottom: clamp(20px, 3vw, 30px);
}

.features {
    display: flex;
    gap: 30px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 500;
}

.feature i {
    color: var(--success);
    font-size: 1.1rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: clamp(10px, 2vw, 15px);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.section-header p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--light);
    max-width: min(90%, 700px);
    margin-left: auto;
    margin-right: auto;
}

/* Cookie Types */
.cookie-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: clamp(20px, 4vw, 30px);
    margin: clamp(40px, 6vw, 60px) 0;
}

.type-card {
    background: var(--white);
    border-radius: clamp(15px, 2vw, 20px);
    padding: clamp(25px, 4vw, 40px) clamp(20px, 3vw, 30px);
    text-align: center;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.type-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.type-card.essential:hover { border-color: var(--success); }
.type-card.analytics:hover { border-color: var(--info); }
.type-card.marketing:hover { border-color: #fd7e14; }

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2.2rem;
    color: var(--white);
}

.type-card.essential .card-icon { background: linear-gradient(135deg, var(--success), #20c997); }
.type-card.analytics .card-icon { background: linear-gradient(135deg, var(--info), #6610f2); }
.type-card.marketing .card-icon { background: linear-gradient(135deg, #fd7e14, #e83e8c); }

.type-card h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 15px;
    font-weight: 600;
}

.type-card p {
    color: var(--light);
    margin-bottom: 25px;
    font-size: 1rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.status {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status.required {
    background: linear-gradient(135deg, var(--success), #20c997);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.status.optional {
    background: linear-gradient(135deg, var(--warning), #fd7e14);
    color: var(--white);
}

.toggle {
    width: 50px;
    height: 25px;
    background: #ccc;
    border-radius: 25px;
    position: relative;
    cursor: pointer;
    transition: background 0.3s ease;
}

.toggle.disabled {
    background: var(--success);
    cursor: not-allowed;
    opacity: 0.8;
}

.toggle .slider {
    width: 21px;
    height: 21px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s ease;
}

.toggle.disabled .slider {
    transform: translateX(25px);
}

.toggle.active {
    background: var(--success);
}

.toggle.active .slider {
    transform: translateX(25px);
}

/* Controls */
.controls.interactive {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: clamp(20px, 3vw, 25px);
    padding: clamp(30px, 5vw, 50px);
    margin: clamp(40px, 6vw, 60px) 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: clamp(25px, 4vw, 40px);
    align-items: center;
    border: 2px solid rgba(0, 0, 128, 0.1);
}

.control-content h2 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: var(--primary);
    margin-bottom: clamp(10px, 2vw, 15px);
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
}

.control-content p {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: var(--light);
    margin: 0;
}

.control-actions {
    display: flex;
    gap: 15px;
}

.btn-primary, .btn-secondary {
    padding: clamp(14px, 2vw, 18px) clamp(25px, 4vw, 35px);
    border-radius: 50px;
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 12px);
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 8px 25px rgba(0, 0, 128, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 128, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* Contact */
.contact.modern {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    border-radius: clamp(15px, 2vw, 20px);
    padding: clamp(25px, 4vw, 40px);
    border: 2px solid rgba(244, 164, 96, 0.3);
    display: flex;
    align-items: center;
    gap: clamp(20px, 3vw, 30px);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 2rem;
    color: var(--white);
}

.contact-content h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 600;
}

.contact-content p {
    color: var(--light);
    margin-bottom: 20px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: clamp(8px, 1.5vw, 10px);
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    padding: clamp(10px, 2vw, 12px) clamp(16px, 3vw, 20px);
    background: rgba(0, 0, 128, 0.1);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(5px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #cacaeb 0%, #283593 100%);
    padding: 25px 40px;
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.footer-left, .footer-right {
    display: flex;
    align-items: center;
}

.footer-copyright {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.9);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.footer-email {
    color: rgba(0, 0, 0, 0.9);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
    background: rgba(255, 255, 255, 0.1);
}

.footer-email:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.footer-email i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
    .footer {
        padding: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .footer-left, .footer-right {
        justify-content: center;
    }

    .features {
        flex-direction: column;
        gap: 15px;
    }

    .controls.interactive {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .control-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .contact.modern {
        flex-direction: column;
        text-align: center;
    }
}

/* Cookie Modal */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.cookie-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

.modal-body {
    padding: 30px;
}

.cookie-preference {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
}

.preference-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 25px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-switch label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 25px;
    transition: 0.4s;
}

.toggle-switch label:before {
    position: absolute;
    content: "";
    height: 19px;
    width: 19px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.4s;
}

.toggle-switch input:checked + label {
    background-color: var(--primary);
}

.toggle-switch input:checked + label:before {
    transform: translateX(25px);
}

.modal-footer {
    padding: 20px 30px 30px;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.cookie-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--success);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cookie-notification.show {
    transform: translateX(0);
}