/* Zenithar Voyage - Hand-drawn Educational Games Website */
/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Hand-drawn color palette */
    --primary-color: #FF6B6B;
    --secondary-color: #4ECDC4;
    --accent-color: #45B7D1;
    --text-color: #2C3E50;
    --background-color: #FFF9F5;
    --card-background: #FFFFFF;
    --border-color: #E8D5B7;
    --shadow-color: rgba(44, 62, 80, 0.1);
    
    /* Hand-drawn fonts */
    --heading-font: 'Comic Sans MS', 'Marker Felt', 'Chalkduster', cursive;
    --body-font: 'Arial', 'Helvetica', sans-serif;
    
    /* Spacing */
    --container-max-width: 1200px;
    --section-padding: 80px 0;
    --element-spacing: 2rem;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(69, 183, 209, 0.05) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Hand-drawn borders and effects */
.hand-drawn {
    position: relative;
    border-radius: 8px;
}

.hand-drawn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    opacity: 0.3;
    transform: rotate(-0.5deg);
    z-index: -1;
}

.hand-drawn::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: transparent;
    border: 2px solid var(--secondary-color);
    border-radius: 10px;
    opacity: 0.2;
    transform: rotate(0.3deg);
    z-index: -2;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    line-height: 1.2;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
    display: inline-block;
}

h1 {
    font-size: 3rem;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px var(--shadow-color);
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-shadow: 1px 1px 2px var(--shadow-color);
}

h3 {
    font-size: 2rem;
    color: var(--accent-color);
}

h4 {
    font-size: 1.5rem;
    color: var(--text-color);
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.lead {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-outline {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 3px solid;
    position: relative;
    transform: rotate(-0.3deg);
    cursor: pointer;
    background: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.btn-primary:hover {
    background-color: #FF5252;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(78, 205, 196, 0.3);
}

.btn-secondary:hover {
    background-color: #26D0CE;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-color);
    border-color: var(--text-color);
}

.btn-outline:hover {
    background-color: var(--text-color);
    color: white;
    transform: rotate(0deg) translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-color);
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 3px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    width: auto;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: rotate(0deg) scale(1.1);
}

.brand-text {
    font-family: var(--heading-font);
    font-size: 1.8rem;
    color: var(--primary-color);
    font-weight: bold;
    text-shadow: 1px 1px 2px var(--shadow-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    position: relative;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 15px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background-color: rgba(255, 107, 107, 0.1);
    transform: rotate(-1deg);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(44, 62, 80, 0.95);
    color: white;
    padding: 1.5rem;
    z-index: 1001;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    color: white;
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1002;
    backdrop-filter: blur(5px);
}

.cookie-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    margin: 2rem;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cookie-category {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 10px;
    border: 2px solid rgba(255, 107, 107, 0.2);
}

.cookie-category label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* Main Content */
main {
    margin-top: 80px;
}

/* Hero Section */
.hero {
    padding: var(--section-padding);
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(78, 205, 196, 0.1) 50%, 
        rgba(69, 183, 209, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 30% 30%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(78, 205, 196, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 500px;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transform: rotate(-1deg);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.hero-image {
    text-align: center;
    position: relative;
}

.hero-banner {
    max-width: 100%;
    height: auto;
    transform: rotate(1deg);
    transition: transform 0.3s ease;
    filter: drop-shadow(0 10px 20px var(--shadow-color));
}

.hero-banner:hover {
    transform: rotate(0deg) scale(1.05);
}

/* Section Styles */
section {
    padding: var(--section-padding);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* About Section */
.about {
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    transform: rotate(-1deg);
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: rotate(0deg) scale(1.02);
}

.about-features {
    margin-top: 2rem;
}

.feature {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.feature:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.feature h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

/* Services Section */
.services {
    background: linear-gradient(45deg, 
        rgba(78, 205, 196, 0.05) 0%, 
        rgba(69, 183, 209, 0.05) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
    border: 3px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    position: relative;
}

.service-card:hover {
    transform: rotate(0deg) translateY(-10px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.service-card::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    border-radius: 23px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover::before {
    opacity: 0.2;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    transform: rotate(2deg);
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(0deg) scale(1.1);
}

.service-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.service-card ul {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.service-card li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Testimonials Section */
.testimonials {
    background-color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transform: rotate(0.5deg);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    position: relative;
}

.testimonial-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.testimonial-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.testimonial-card blockquote {
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.testimonial-card cite {
    font-weight: bold;
    color: var(--primary-color);
    font-style: normal;
}

/* Blog Section */
.blog {
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.05) 0%, 
        rgba(78, 205, 196, 0.05) 100%);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.blog-card {
    background-color: var(--card-background);
    border-radius: 20px;
    overflow: hidden;
    transform: rotate(-0.3deg);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-color);
    border: 2px solid var(--border-color);
}

.blog-card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.blog-content h3 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: var(--secondary-color);
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

/* Newsletter Section */
.newsletter {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: float 15s ease-in-out infinite reverse;
    z-index: 0;
}

.newsletter-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.newsletter-text h2 {
    color: white;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.newsletter-form {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: white;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Contact Section */
.contact {
    background-color: rgba(255, 255, 255, 0.9);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-image {
    text-align: center;
}

.contact-image img {
    max-width: 100%;
    height: auto;
    transform: rotate(-1deg);
    transition: transform 0.3s ease;
}

.contact-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

.contact-details {
    display: grid;
    gap: 2rem;
}

.contact-item {
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.contact-item:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.contact-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transform: rotate(0deg);
}

.social-media {
    margin-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: rotate(-0.5deg);
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.social-links a:hover {
    transform: rotate(0deg) translateY(-2px);
    background-color: var(--secondary-color);
    box-shadow: 0 6px 20px rgba(78, 205, 196, 0.4);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--text-color) 0%, #1A252F 100%);
    color: white;
    padding: 3rem 0 1rem;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo {
    height: 40px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Page-specific styles */
.page-header {
    padding: 3rem 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.1) 0%, 
        rgba(78, 205, 196, 0.1) 100%);
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.page-header p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Legal pages */
.legal-page {
    padding: 2rem 0;
}

.legal-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
}

.legal-date {
    color: var(--text-color);
    opacity: 0.7;
    font-style: italic;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 15px var(--shadow-color);
}

.legal-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(-0.3deg);
}

.legal-section h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
    margin-bottom: 1rem;
    transform: rotate(0.2deg);
}

.legal-section ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.legal-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* Article pages */
.article-page {
    padding: 2rem 0;
}

.article-header {
    margin-bottom: 3rem;
}

.article-breadcrumb {
    margin-bottom: 1rem;
    color: var(--text-color);
    opacity: 0.7;
}

.article-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.article-category {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.article-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    transform: rotate(-0.5deg);
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: bold;
    color: var(--primary-color);
}

.author-title {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.article-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.article-date,
.article-read-time {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

.article-featured-image {
    text-align: center;
    margin-bottom: 2rem;
}

.article-featured-image img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.article-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.article-intro {
    margin-bottom: 3rem;
    padding: 2rem;
    background-color: rgba(255, 107, 107, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary-color);
}

.article-content h2 {
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    transform: rotate(-0.3deg);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    transform: rotate(0.2deg);
}

.article-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.article-content ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.article-cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 20px;
    text-align: center;
}

.article-cta h3 {
    color: white;
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.article-footer {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.article-tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background-color: var(--secondary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transform: rotate(-0.5deg);
}

.share-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
    transform: rotate(-0.3deg);
    font-weight: bold;
}

.share-btn:hover {
    transform: rotate(0deg) translateY(-2px);
    background-color: var(--primary-color);
}

.related-articles {
    margin-top: 3rem;
    padding: 2rem;
    background-color: rgba(78, 205, 196, 0.05);
    border-radius: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    transform: rotate(0.3deg);
}

.related-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.related-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.related-card h4 a {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.related-card h4 a:hover {
    color: var(--primary-color);
}

/* Thanks page */
.thanks-page {
    padding: 4rem 0;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.05) 0%, 
        rgba(78, 205, 196, 0.05) 100%);
}

.thanks-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.thanks-icon {
    margin-bottom: 2rem;
}

.thanks-image {
    max-width: 200px;
    height: auto;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.thanks-image:hover {
    transform: rotate(0deg) scale(1.05);
}

.thanks-text h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.thanks-subtitle {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.thanks-message {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    margin-bottom: 2rem;
    text-align: left;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.thanks-list {
    list-style: none;
    margin-top: 1rem;
}

.thanks-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    padding-left: 2rem;
    position: relative;
}

.thanks-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.thanks-social {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
}

.thanks-social h3 {
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

/* Company info styles */
.company-info {
    padding: 2rem 0;
}

.company-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 3rem;
}

.company-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background-color: rgba(255, 107, 107, 0.1);
    border-radius: 15px;
    transform: rotate(-0.5deg);
    transition: all 0.3s ease;
}

.stat:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.stat h4 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transform: rotate(0deg);
}

.our-values {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 3rem 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-color);
}

.value-card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 15px 35px var(--shadow-color);
}

.value-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
    transform: rotate(0deg) scale(1.1);
}

.our-products {
    padding: 3rem 0;
    background: linear-gradient(45deg, 
        rgba(78, 205, 196, 0.05) 0%, 
        rgba(69, 183, 209, 0.05) 100%);
}

.products-content {
    display: grid;
    gap: 3rem;
}

.product-category {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    transform: rotate(-0.2deg);
    transition: all 0.3s ease;
}

.product-category:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.product-category h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.product-category ul {
    list-style: none;
    margin-top: 1rem;
}

.product-category ul li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    font-weight: 500;
}

.product-category ul li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 0.8rem;
}

.company-details {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 3rem 0;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.detail-card {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    box-shadow: 0 8px 25px var(--shadow-color);
    transform: rotate(0.3deg);
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: rotate(0deg) translateY(-5px);
    box-shadow: 0 12px 30px var(--shadow-color);
}

.detail-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

/* Blog page styles */
.blog-page {
    padding: 2rem 0;
}

.blog-grid .blog-card.featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.blog-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    transform: rotate(-0.5deg);
}

.blog-newsletter {
    margin: 3rem 0;
}

.newsletter-card {
    background: linear-gradient(45deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 3rem;
    border-radius: 25px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    box-shadow: 0 10px 30px var(--shadow-color);
}

.newsletter-icon {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

.newsletter-content h3 {
    color: white;
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

.inline-newsletter-form {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.inline-newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(5px);
}

.inline-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.blog-categories {
    margin-top: 3rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.category-card {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transform: rotate(0.2deg);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px var(--shadow-color);
}

.category-card:hover {
    transform: rotate(0deg) translateY(-3px);
    box-shadow: 0 8px 20px var(--shadow-color);
}

.category-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transform: rotate(0deg);
}

.category-count {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: bold;
    margin-top: 1rem;
    display: block;
}

/* Special info boxes */
.info-box {
    background-color: rgba(69, 183, 209, 0.1);
    border-left: 4px solid var(--accent-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.info-box h4 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    transform: rotate(0deg);
}

.warning-box {
    background-color: rgba(255, 107, 107, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 10px;
}

.warning-box h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transform: rotate(0deg);
}

/* Cookie settings page specific */
.cookie-settings-panel {
    background-color: var(--card-background);
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    margin: 2rem 0;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.cookie-toggle {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.cookie-toggle label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    font-weight: bold;
}

.toggle-info {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
    font-weight: normal;
    margin-left: auto;
}

.cookie-provider {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.cookie-provider h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transform: rotate(0deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content,
    .about-content,
    .newsletter-content,
    .contact-content,
    .company-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .newsletter-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .inline-newsletter-form {
        flex-direction: column;
    }
    
    .blog-grid .blog-card.featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--card-background);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px var(--shadow-color);
        border-radius: 0 0 15px 15px;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-text h1 {
        font-size: 2.8rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .services-grid,
    .testimonials-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .thanks-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .share-buttons {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .company-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .details-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        padding: 1.5rem;
    }
    
    .newsletter-form {
        padding: 1.5rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .thanks-text h1 {
        font-size: 2.5rem;
    }
    
    .company-stats {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .header,
    .cookie-banner,
    .cookie-modal,
    .newsletter,
    .social-links,
    .share-buttons,
    .hamburger {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
    
    main {
        margin-top: 0 !important;
    }
    
    * {
        box-shadow: none !important;
        transform: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000080;
        --secondary-color: #008000;
        --accent-color: #800080;
        --text-color: #000000;
        --background-color: #FFFFFF;
        --border-color: #000000;
        --shadow-color: rgba(0, 0, 0, 0.5);
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border-width: 2px;
    }
    
    .service-card,
    .testimonial-card,
    .blog-card {
        border-width: 2px;
    }
}

/* Focus indicators for keyboard navigation */
a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    z-index: 1000;
}

.skip-to-content:focus {
    top: 0;
}
