/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html, body {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a237e;
    color: white;
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

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

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.cookie-content p {
    margin: 0;
    flex: 1;
}

.cookie-content a {
    color: #00bcd4;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-btn {
    background: #00bcd4;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.cookie-btn:hover {
    background: #0097a7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #1a237e;
    font-weight: 700;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.logo:hover {
    color: #d32f2f;
}

.logo svg {
    margin-right: 10px;
}

.logo span {
    display: none;
}

@media (min-width: 768px) {
    .logo span {
        display: inline;
    }
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.nav-group:not(:last-child)::after {
    content: '';
    width: 1px;
    height: 20px;
    background: #e0e0e0;
    margin-left: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #333;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    font-weight: 500;
}

.nav-link:hover {
    background: #d32f2f;
    color: white;
    transform: translateY(-2px);
}

.nav-link:hover svg {
    transform: scale(1.2);
}

.nav-link svg {
    transition: transform 0.3s ease;
}

.nav-link.cta {
    background: #d32f2f;
    color: white;
}

.nav-link.cta:hover {
    background: #b71c1c;
}

/* Burger Menu */
.burger-checkbox {
    display: none;
}

.burger-label {
    display: none;
    flex-direction: column;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.burger-label span {
    width: 100%;
    height: 3px;
    background: #1a237e;
    border-radius: 2px;
    position: absolute;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.burger-label span:nth-child(1) {
    top: 0;
}

.burger-label span:nth-child(2) {
    top: 10px;
}

.burger-label span:nth-child(3) {
    top: 20px;
}

.burger-checkbox:checked ~ .burger-label span:nth-child(1) {
    transform: rotate(45deg);
    top: 10px;
}

.burger-checkbox:checked ~ .burger-label span:nth-child(2) {
    transform: scale(0);
}

.burger-checkbox:checked ~ .burger-label span:nth-child(3) {
    transform: rotate(-45deg);
    top: 10px;
}

/* Mobile Navigation */
@media (max-width: 900px) {
    .burger-label {
        display: flex;
    }
    
    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: #ffffff;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }
    
    .burger-checkbox:checked ~ .nav {
        transform: translateX(0);
    }
    
    .nav-group {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .nav-group:not(:last-child)::after {
        display: none;
    }
    
    .nav-link {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }
    
    .menu-open {
        overflow: hidden;
    }
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("images/OpenSeaCreativeLab-navy-design-session.webp") center center / cover no-repeat;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 800px;
    padding: 0 20px;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-title .highlight {
    color: #00bcd4;
    display: block;
    font-size: 0.8em;
    margin-top: 0.5rem;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: #d32f2f;
    color: white;
}

.btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #1a237e;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 5rem 0;
}

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

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #1a237e;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

.service-icon {
    color: #00bcd4;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

/* Portfolio / Case Study Sections */
.portfolio-text-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.portfolio-text-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.portfolio-text-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.portfolio-text-card h3 {
    color: #1a237e;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.portfolio-text-card p {
    color: #555;
    line-height: 1.6;
}

/* About Section */
.about {
    background: #1a237e;
    color: white;
}

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #00bcd4;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #00bcd4;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.about-media {
    display: grid;
    grid-template-rows: 1.4fr 1fr;
    gap: 1.5rem;
}

.about-media-large,
.about-media-small img {
    border-radius: 16px;
    overflow: hidden;
}

.about-media-large {
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.4);
}

.about-media-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-media-small {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.about-media-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Process Section */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.process-step {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-3px);
}

.step-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: #00bcd4;
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.process-step h3 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.process-step p {
    color: #666;
}

/* Testimonials Section */
.testimonials {
    background: #f8f9fa;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-content p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #333;
    font-size: 1.1rem;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    color: #1a237e;
    font-weight: 600;
}

.testimonial-author span {
    color: #666;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-icon {
    color: #00bcd4;
    flex-shrink: 0;
}

.contact-item h3 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
}

.contact-item a:hover {
    color: #00bcd4;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00bcd4;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: #1a237e;
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    color: #00bcd4;
    margin-bottom: 1rem;
}

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

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00bcd4;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #00bcd4;
    transform: translateY(-2px);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .process-steps,
    .services-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .service-card,
    .process-step,
    .testimonial-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card,
.process-step,
.testimonial-card,
.portfolio-item {
    animation: fadeInUp 0.6s ease-out;
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[loading="lazy"] {
    transition: opacity 0.3s ease;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Legal Pages Styles */
.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 20px;
    line-height: 1.7;
}

.legal-container h1 {
    color: #1a237e;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.legal-container h2 {
    color: #1a237e;
    margin: 2rem 0 1rem;
    font-size: 1.8rem;
}

.legal-container h3 {
    color: #333;
    margin: 1.5rem 0 0.5rem;
    font-size: 1.3rem;
}

.legal-container p {
    margin-bottom: 1rem;
    color: #555;
}

.legal-container ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-container li {
    margin-bottom: 0.5rem;
    color: #555;
}

.legal-container a {
    color: #00bcd4;
    text-decoration: none;
}

.legal-container a:hover {
    text-decoration: underline;
}

.back-link {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #1a237e;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #00bcd4;
    text-decoration: none;
}