/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Spacing */
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Base Typography */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Header */
.site-header {
    background: #010B21;
    padding: 1rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
    min-height: 80px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    flex: 1;
    text-align: center;
}

.logo-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    outline: none;
    cursor: pointer;
}

.logo-wrapper a:focus {
    outline: none;
}

.site-logo {
    max-width: 300px;
    height: auto;
    display: inline-block;
    transition: transform 0.3s ease;
    transform-origin: center center;
    will-change: transform;
}

/* Zoom logo when hovering over the logo area */
.logo-wrapper:hover .site-logo {
    transform: scale(1.05);
}

/* Hamburger Menu */
.hamburger-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 30px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu:hover .hamburger-line {
    background-color: var(--primary-light);
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: translateY(7.5px) rotate(60deg);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0.3;
    background-color: #FFBBBB;
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-60deg);
}

/* Mobile Navigation */
.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #010B21;
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    z-index: 1000;
}

.mobile-nav.active {
    max-height: 300px;
    opacity: 1;
}

.nav-list {
    list-style: none;
    padding: var(--spacing-md) 0;
    margin: 0;
}

.nav-item {
    text-align: center;
}

.nav-link {
    display: block;
    padding: var(--spacing-md);
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--primary-light);
}

/* Narrower menu on tablet and desktop */
@media (min-width: 768px) {
    .mobile-nav {
        left: auto;
        right: 0;
        width: 320px;
    }

    .nav-item {
        text-align: left;
    }

    .nav-link {
        padding-left: var(--spacing-lg);
        text-align: left;
    }
}

/* Menu open state - removed overflow:hidden to keep scrollbar visible and prevent layout shift */
body.menu-open {
    /* Scrolling remains enabled */
}

/* Main Content */
.main-content {
    flex: 1;
    padding: var(--spacing-2xl) 0;
}

/* About Page - Mobile First */
.about-section {
    margin: var(--spacing-xl) 0;
    padding: var(--spacing-md);
}

.about-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.3;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    padding: 0.25rem 0 0.25rem var(--spacing-lg);
    margin-bottom: 0.25rem;
    position: relative;
    line-height: 1.6;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.about-list li:hover {
    color: var(--primary-color);
    padding-left: calc(var(--spacing-lg) + 4px);
}

.about-list li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1.8;
}

/* Tablet and up */
@media (min-width: 768px) {
    .about-section {
        margin: var(--spacing-2xl) 0;
        padding: var(--spacing-lg);
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-subtitle {
        font-size: 1.75rem;
    }

    .about-list li {
        padding: 0.25rem 0 0.25rem var(--spacing-xl);
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .about-title {
        font-size: 3rem;
    }

    .about-subtitle {
        font-size: 2rem;
    }

    .about-list li {
        font-size: 1.1rem;
    }
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.site-tagline {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    margin-bottom: var(--spacing-2xl);
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: var(--spacing-xl);
    color: var(--text-dark);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

/* Project Card */
.project-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.project-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--primary-light);
}

.project-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
    color: white;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.project-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: var(--primary-dark);
}

.link-arrow {
    margin-left: var(--spacing-xs);
    transition: transform 0.3s ease;
}

.project-link:hover .link-arrow {
    transform: translateX(4px);
}

.project-status {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: var(--primary-light);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* Footer */
.site-footer {
    background: var(--text-dark);
    color: white;
    padding: var(--spacing-lg) 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.copyright {
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive Design */
@media (max-width: 768px) {
    .site-title {
        font-size: 2rem;
    }

    .site-tagline {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .site-logo {
        max-width: 200px;
    }

    .cta-title {
        font-size: 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .site-header {
        padding: var(--spacing-md) 0;
    }

    .main-content {
        padding: var(--spacing-xl) 0;
    }

    .project-card {
        padding: var(--spacing-md);
    }

    .btn {
        padding: 10px 24px;
        font-size: 0.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.welcome-section,
.projects-section {
    animation: fadeIn 0.6s ease-out;
}

.project-card:nth-child(1) {
    animation-delay: 0.1s;
}

.project-card:nth-child(2) {
    animation-delay: 0.2s;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Focus Styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Privacy Policy Page - Mobile First */
.content-section {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.page-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.last-updated {
    text-align: center;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xl);
}

.policy-content {
    background: var(--bg-white);
    border-radius: 12px;
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.policy-section {
    margin-bottom: var(--spacing-xl);
}

.policy-section:last-child {
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.policy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.policy-section p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.policy-section ul {
    margin: var(--spacing-md) 0;
    padding-left: var(--spacing-lg);
}

.policy-section li {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-sm);
}

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.policy-section strong {
    color: var(--text-dark);
    font-weight: 600;
}

.policy-section em {
    color: var(--text-light);
    font-style: italic;
}

/* Rights Grid - Mobile First */
.rights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.right-item {
    background: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: var(--spacing-md);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.right-item:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.right-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 0 0 var(--spacing-xs) 0;
}

.right-item p {
    margin: 0;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Back Link */
.back-link {
    margin-top: var(--spacing-xl);
    text-align: center;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Footer Link */
.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
}

/* Terms Summary Box */
.terms-summary {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.terms-summary h2 {
    color: var(--primary-color);
    font-size: 1.375rem;
    margin-bottom: var(--spacing-sm);
    border-bottom: none;
    padding-bottom: 0;
}

.terms-summary p {
    font-size: 0.875rem;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: var(--spacing-md);
}

.terms-summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.terms-summary li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* Tablet and up */
@media (min-width: 768px) {
    .content-section {
        padding: var(--spacing-xl);
    }

    .page-title {
        font-size: 2.5rem;
    }

    .policy-content {
        padding: var(--spacing-xl);
    }

    .policy-section h2 {
        font-size: 1.75rem;
    }

    .policy-section h3 {
        font-size: 1.375rem;
    }

    .rights-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .btn-back {
        padding: 14px 32px;
        font-size: 1.05rem;
    }
}

/* Desktop and up */
@media (min-width: 1024px) {
    .page-title {
        font-size: 3rem;
    }

    .policy-section h2 {
        font-size: 2rem;
    }

    .policy-section h3 {
        font-size: 1.5rem;
    }

    .rights-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Print Styles */
@media print {
    .site-header,
    .site-footer,
    .back-link {
        display: none;
    }

    .main-content {
        padding: 0;
    }

    .project-card {
        page-break-inside: avoid;
    }

    .policy-section {
        page-break-inside: avoid;
    }

    .page-title {
        color: black;
    }
}