/* Ice Catch Harbor - Modern Minimalist Design */
/* Color Palette: Calm (cool pastels - soft blue, seafoam, slate) */

:root {
    --primary: #2d4a5e;
    --primary-light: #4a7c95;
    --secondary: #7eb8c9;
    --accent: #a8d5e2;
    --seafoam: #d4e9ed;
    --ice: #e8f4f6;
    --snow: #f7fbfc;
    --slate: #4a5568;
    --slate-light: #718096;
    --text-dark: #1a2a36;
    --text-muted: #5a6a7a;
    --white: #ffffff;
    --shadow-sm: 0 2px 4px rgba(45, 74, 94, 0.08);
    --shadow-md: 0 4px 12px rgba(45, 74, 94, 0.12);
    --shadow-lg: 0 8px 24px rgba(45, 74, 94, 0.16);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--snow);
    line-height: 1.6;
    min-height: 100vh;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary);
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}

.navbar-brand svg {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.navbar-menu {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.navbar-menu a {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    color: var(--slate);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active {
    background: var(--ice);
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--ice) 0%, var(--seafoam) 50%, var(--accent) 100%);
    padding: 60px 0 80px;
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    text-align: left;
}

.hero-text h1 {
    margin-bottom: 16px;
    color: var(--primary);
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--slate);
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-device {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Device Mockup */
.device-mockup {
    position: relative;
    max-width: 280px;
    width: 100%;
}

.device-frame {
    position: relative;
    background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-lg), inset 0 1px 1px rgba(255,255,255,0.1);
}

.device-frame::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: #1a1a1a;
    border-radius: 10px;
}

.device-screen {
    border-radius: 24px;
    overflow: hidden;
    background: var(--white);
    aspect-ratio: 9/19.5;
}

.device-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--ice);
    color: var(--primary);
}

.btn-accent {
    background: var(--secondary);
    color: var(--primary);
}

.btn-accent:hover {
    background: var(--primary-light);
    color: var(--white);
}

/* Screenshots Section */
.screenshots-section {
    padding: 60px 0;
    background: var(--white);
    max-height: 500px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 12px;
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* Carousel */
.carousel-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.carousel {
    position: relative;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.9);
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
}

.carousel-device {
    max-width: 200px;
}

.carousel-device .device-frame {
    padding: 8px;
    border-radius: 28px;
}

.carousel-device .device-frame::before {
    top: 6px;
    width: 60px;
    height: 16px;
}

.carousel-device .device-screen {
    border-radius: 20px;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--seafoam);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-arrows {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 1px solid var(--seafoam);
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.carousel-arrow:hover {
    background: var(--ice);
    box-shadow: var(--shadow-md);
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--snow);
}

.features-grid {
    display: grid;
    gap: 60px;
}

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.feature-block:nth-child(even) {
    direction: rtl;
}

.feature-block:nth-child(even) > * {
    direction: ltr;
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.feature-content h3 {
    margin-bottom: 12px;
}

.feature-content p {
    text-align: left;
}

.feature-image {
    display: flex;
    justify-content: center;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
    max-width: 320px;
}

.feature-card img {
    width: 100%;
    border-radius: var(--radius-md);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--ice);
    max-width: 500px;
    margin: 0 auto 32px;
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary);
}

.cta-section .btn-primary:hover {
    background: var(--ice);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--ice);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 16px;
    font-size: 1rem;
}

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

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--accent);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--white);
}

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

.footer-bottom p {
    color: var(--accent);
    font-size: 0.85rem;
}

/* Content Pages */
.page-header {
    background: linear-gradient(135deg, var(--ice) 0%, var(--seafoam) 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    margin-bottom: 8px;
}

.page-header p {
    color: var(--slate-light);
}

.content-section {
    padding: 60px 0;
    background: var(--white);
}

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

.content-container h2 {
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.content-container h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.content-container p {
    margin-bottom: 16px;
    text-align: left;
}

.content-container ul,
.content-container ol {
    margin: 16px 0;
    padding-left: 24px;
    text-align: left;
}

.content-container li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

.content-container a {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Contact Form */
.contact-section {
    padding: 60px 0;
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info p {
    text-align: left;
    margin-bottom: 24px;
}

.contact-details {
    background: var(--ice);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.contact-details h3 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: var(--slate);
}

.contact-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.contact-form-card {
    background: var(--snow);
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--slate);
    text-align: left;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--seafoam);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(74, 124, 149, 0.1);
}

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

.file-upload {
    border: 2px dashed var(--seafoam);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload:hover {
    border-color: var(--primary-light);
    background: var(--ice);
}

.file-upload input {
    display: none;
}

.file-upload p {
    text-align: center;
    margin: 0;
    color: var(--slate-light);
}

.form-submit {
    width: 100%;
}

.form-message {
    padding: 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Privacy Accept Button (Flutter Integration) */
.privacy-accept-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
}

.privacy-accept-container.visible {
    display: block;
}

.privacy-accept-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 18px 32px;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.privacy-accept-btn:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-device {
        order: -1;
    }

    .device-mockup {
        max-width: 220px;
    }

    .feature-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feature-block:nth-child(even) {
        direction: ltr;
    }

    .feature-content p {
        text-align: center;
    }

    .feature-icon {
        margin: 0 auto 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 16px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .navbar-menu {
        width: 100%;
        justify-content: center;
        gap: 4px;
    }

    .navbar-menu a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .hero {
        padding: 40px 0 60px;
    }

    .device-mockup {
        max-width: 180px;
    }

    .carousel {
        height: 280px;
    }

    .carousel-device {
        max-width: 160px;
    }

    .screenshots-section {
        max-height: 420px;
    }

    .features-section {
        padding: 60px 0;
    }

    .feature-card {
        padding: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .device-mockup {
        max-width: 150px;
    }

    .carousel {
        height: 240px;
    }

    .carousel-device {
        max-width: 140px;
    }

    .carousel-arrow {
        width: 36px;
        height: 36px;
    }

    .screenshots-section {
        max-height: 380px;
        padding: 40px 0;
    }

    .feature-block {
        gap: 24px;
    }

    .contact-form-card {
        padding: 24px;
    }

    .privacy-accept-btn {
        padding: 16px 24px;
        font-size: 1rem;
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Lazy Loading */
img.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

img.lazy.loaded {
    opacity: 1;
}
