/* ============================================
   CSS Reset & Base Styles
   ============================================ */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --success: #10b981;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --background: #ffffff;
    --surface: #f9fafb;
    --border: #e5e7eb;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.15);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

.footer-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    text-decoration: underline;
}

/* ============================================
   Navigation - Floating Menu
   ============================================ */

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: var(--background);
    border: none;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
    transition: all 0.3s ease;
}

.menu-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px var(--shadow-lg);
}

.menu-button span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-button.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.menu-button.active span:nth-child(2) {
    opacity: 0;
}

.menu-button.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(12px);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.5);
}

.sidebar-menu.active {
    transform: translateX(0);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
}

.menu-close {
    background: none;
    border: none;
    color: #f8fafc;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.menu-close:hover {
    transform: rotate(90deg);
    opacity: 0.7;
}

.sidebar-links {
    padding: 24px 0;
    display: flex;
    flex-direction: column;
}

.nav-link {
    color: rgba(248, 250, 252, 0.75);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 16px 24px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-link:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.05);
    border-left-color: var(--primary);
}

.nav-link.active {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--primary);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Language Switcher
   ============================================ */

.language-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--background);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background: var(--surface);
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--primary);
    color: white;
}

/* ============================================
   Container
   ============================================ */

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/background.jpg') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    margin-bottom: 24px;
    font-weight: 400;
    opacity: 0.95;
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
    line-height: 1.7;
}

/* ============================================
   Scroll Down Button
   ============================================ */

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease, opacity 0.5s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s infinite;
    backdrop-filter: blur(10px);
}

.scroll-down:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%) scale(1.1);
}

.scroll-down svg {
    width: 24px;
    height: 24px;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ============================================
   Projects Section
   ============================================ */

.projects {
    padding: 100px 0;
    background: var(--surface);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 12px;
    font-weight: 800;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 60px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

/* ============================================
   Project Cards
   ============================================ */

.project-card {
    background: var(--background);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.project-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: var(--border);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-status {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-live {
    background: var(--success);
    color: white;
}

.status-coming-soon {
    background: var(--accent);
    color: white;
}

.project-platforms {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.platform-icon {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px var(--shadow);
}

.platform-icon svg {
    width: 18px;
    height: 18px;
    color: var(--text-primary);
}

.project-content {
    padding: 28px;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.project-collaboration {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 16px;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: var(--primary-dark);
    gap: 12px;
}

.project-link svg {
    width: 18px;
    height: 18px;
}

/* ============================================
   Privacy Page
   ============================================ */

.privacy-page {
    background: var(--surface);
}

.privacy-container {
    padding-top: 0;
    padding-bottom: 0;
}

.privacy-hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.privacy-hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.privacy-updated {
    opacity: 0.9;
    font-size: 0.95rem;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.15);
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.privacy-intro {
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.privacy-content {
    background: var(--background);
    margin-top: -40px;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 60px rgba(15, 23, 42, 0.08);
    padding: 80px 0 100px;
    position: relative;
    z-index: 1;
}

.privacy-section + .privacy-section {
    margin-top: 56px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
}

.privacy-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.privacy-section h3 {
    font-size: 1.35rem;
    margin-top: 32px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-section p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.privacy-list {
    list-style: none;
    margin-top: 20px;
    padding-left: 0;
    background: var(--surface);
    padding: 24px;
    border-radius: 12px;
    border-left: 3px solid var(--primary);
}

.privacy-list li {
    padding-left: 32px;
    position: relative;
    margin-bottom: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.privacy-list li:last-child {
    margin-bottom: 0;
}

.privacy-list li::before {
    content: '✓';
    position: absolute;
    left: 8px;
    color: var(--success);
    font-weight: 700;
    font-size: 1.1rem;
}

.privacy-actions {
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.privacy-actions .project-link {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.privacy-actions .project-link:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.privacy-actions .project-link span {
    font-weight: 600;
}

@media (max-width: 768px) {
    .privacy-container {
        padding-top: 0;
        padding-bottom: 0;
    }

    .privacy-hero {
        padding: 80px 0 60px;
    }

    .privacy-content {
        padding: 60px 0 80px;
        margin-top: -30px;
        border-radius: 24px 24px 0 0;
    }

    .privacy-section h2 {
        font-size: 1.5rem;
    }

    .privacy-section h2::before {
        height: 24px;
    }
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background: var(--text-primary);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    opacity: 0.8;
    font-size: 0.95rem;
}

/* ============================================
   Animations
   ============================================ */

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

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .language-switcher {
        top: 12px;
        right: 12px;
    }

    .menu-button {
        top: 12px;
        left: 12px;
    }

    .hero {
        min-height: 100vh;
    }

    .scroll-down {
        bottom: 30px;
        width: 45px;
        height: 45px;
    }

    .scroll-down svg {
        width: 20px;
        height: 20px;
    }

    .projects {
        padding: 60px 0;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .project-image {
        height: 200px;
    }

    .section-subtitle {
        margin-bottom: 40px;
    }
}

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

    .lang-btn {
        padding: 6px 12px;
        font-size: 13px;
    }

    .project-content {
        padding: 20px;
    }

    .project-status {
        font-size: 11px;
        padding: 5px 10px;
    }

    .platform-icon {
        width: 28px;
        height: 28px;
    }

    .platform-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   Print Styles
   ============================================ */

@media print {
    .language-switcher {
        display: none;
    }

    .project-card {
        break-inside: avoid;
    }
}

/* ============================================
   Contact Page Styles
   ============================================ */

.contact-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.contact-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contact-hero {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 24px 60px;
}

.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease;
}

.app-icon-container {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

.contact-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.contact-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: #667eea;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.125rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
}

.contact-icon {
    width: 24px;
    height: 24px;
}

.contact-info {
    background: var(--background);
    padding: 80px 24px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.info-card {
    background: var(--surface);
    padding: 32px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px var(--shadow-lg);
}

.info-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.back-action {
    text-align: center;
    margin-top: 40px;
}

/* Contact Page Responsive */
@media (max-width: 768px) {
    .contact-hero {
        padding: 80px 24px 40px;
    }

    .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .contact-info {
        padding: 60px 24px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ============================================
   App Privacy Policy Page Styles
   ============================================ */

.app-privacy-page {
    background: var(--surface);
}

.app-privacy-container {
    padding-top: 0;
    padding-bottom: 0;
}

.app-privacy-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-privacy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.app-privacy-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.app-icon-wrapper {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
}

.app-icon-wrapper .app-icon {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.app-icon-wrapper .app-icon:hover {
    transform: scale(1.05) rotate(2deg);
}

.app-privacy-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.privacy-badge svg {
    width: 20px;
    height: 20px;
}

.app-privacy-content {
    background: var(--background);
    margin-top: -40px;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 60px rgba(15, 23, 42, 0.08);
    padding: 80px 0 100px;
    position: relative;
    z-index: 1;
}

.privacy-text-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.privacy-date {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.privacy-text-content .privacy-section {
    margin-bottom: 48px;
}

.privacy-text-content .privacy-section h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.privacy-text-content .privacy-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
    flex-shrink: 0;
}

.privacy-text-content .section-content {
    padding-left: 24px;
}

.privacy-text-content h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.privacy-text-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.privacy-text-content .privacy-list-item {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.privacy-text-content .privacy-list-item::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}

.app-privacy-actions {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-app-link {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
}

.contact-app-link:hover {
    background: var(--primary-dark);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
}

.secondary-link {
    background: var(--surface);
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.secondary-link:hover {
    background: var(--background);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.error-message svg {
    width: 64px;
    height: 64px;
    margin-bottom: 20px;
    color: var(--accent);
}

.error-message h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 12px;
}

/* App Privacy Page Responsive */
@media (max-width: 768px) {
    .app-privacy-hero {
        padding: 100px 24px 60px;
    }

    .app-icon-wrapper .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .app-privacy-title {
        font-size: 2rem;
    }

    .app-privacy-content {
        padding: 60px 0 80px;
        margin-top: -30px;
        border-radius: 24px 24px 0 0;
    }

    .privacy-text-content .privacy-section h2 {
        font-size: 1.5rem;
    }

    .privacy-text-content .section-content {
        padding-left: 12px;
    }

    .app-privacy-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-privacy-actions .project-link {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   App Terms of Service Page Styles
   ============================================ */

.app-terms-page {
    background: var(--surface);
}

.app-terms-container {
    padding-top: 0;
    padding-bottom: 0;
}

.app-terms-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.app-terms-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.4;
}

.app-terms-hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease;
}

.app-terms-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
}

.terms-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 24px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.terms-badge svg {
    width: 20px;
    height: 20px;
}

.app-terms-content {
    background: var(--background);
    margin-top: -40px;
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -10px 60px rgba(15, 23, 42, 0.08);
    padding: 80px 0 100px;
    position: relative;
    z-index: 1;
}

.terms-text-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.terms-date {
    background: var(--surface);
    border-left: 3px solid var(--accent);
    padding: 16px 20px;
    margin-bottom: 40px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-primary);
}

.terms-text-content .terms-section {
    margin-bottom: 48px;
}

.terms-text-content .terms-section h2 {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.terms-text-content .terms-section h2::before {
    content: '';
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    border-radius: 2px;
    flex-shrink: 0;
}

.terms-text-content .section-content {
    padding-left: 24px;
}

.terms-text-content h3 {
    font-size: 1.25rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 600;
}

.terms-text-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.terms-text-content .terms-list-item {
    padding-left: 24px;
    position: relative;
    margin-bottom: 12px;
}

.terms-text-content .terms-list-item::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary);
    font-weight: 700;
}

.app-terms-actions {
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* App Terms Page Responsive */
@media (max-width: 768px) {
    .app-terms-hero {
        padding: 100px 24px 60px;
    }

    .app-icon-wrapper .app-icon {
        width: 100px;
        height: 100px;
        border-radius: 24px;
    }

    .app-terms-title {
        font-size: 2rem;
    }

    .app-terms-content {
        padding: 60px 0 80px;
        margin-top: -30px;
        border-radius: 24px 24px 0 0;
    }

    .terms-text-content .terms-section h2 {
        font-size: 1.5rem;
    }

    .terms-text-content .section-content {
        padding-left: 12px;
    }

    .app-terms-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .app-terms-actions .project-link {
        width: 100%;
        justify-content: center;
    }
}
