/* Reset & Base */
:root {
    --bg-color: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --accent-color: #0066cc;
    /* Apple-ish blue link color */
    --surface-color: #f5f5f7;
    --card-bg: #ffffff;
    --nav-blur: rgba(255, 255, 255, 0.8);
    --font-stack: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-stack);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    position: relative;
    /* Ensure content is above the watermark */
    z-index: 0;
}

/* Watermark */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120vw;
    /* Large but not overwhelming */
    height: 120vh;
    background-image: url('../assets/images/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    /* Very subtle */
    pointer-events: none;
    z-index: -1;
}

/* Animations included in CSS for performance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

/* Reveal on Scroll Class */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--nav-blur);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    height: 48px;
    /* Classic Apple nav height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-container {
    width: 90%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.nav-logo {
    height: 24px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    /* Softer nav links */
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a.active {
    font-weight: 700;
    color: var(--text-primary);
}

/* Hero Section */
#hero {
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 4rem;
    /* Big impact */
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    line-height: 1.1;
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-weight: 400;
}

.cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

.btn {
    padding: 12px 24px;
    border-radius: 980px;
    /* Pillow shape */
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

.btn-text {
    color: var(--accent-color);
}

.btn-text:hover {
    text-decoration: underline;
}

/* About Section */
#about {
    padding: 100px 20px;
}

.container {
    max-width: 980px;
    margin: 0 auto;
}

.text-block h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

.text-block p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 900px;
}

.grid-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-top: 64px;
}

#downloads .grid-features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    /* Slightly tighter gap to help fit 4 items */
}



.feature-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
}

.service-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 24px;
    display: block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    min-height: 7.5rem;
    /* Forces 3 lines of space to align subtitles */
}

/* Card Action Link at Bottom */
.card-action {
    margin-top: auto;
    padding-top: 16px;
    display: flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 500;
}

/* Services */
#services {
    padding: 100px 20px;
}

.download-list {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.download-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.2s ease;
}

.download-link:hover {
    transform: translateX(4px);
}

/* Material Downloads Section */
#downloads {
    padding: 100px 20px;
}

/* Contact Section */
#contact {
    padding: 100px 20px;
}

#contact h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    /* Reduced margin */
    text-align: center;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 48px;
    background: var(--surface-color);
    border-radius: 24px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.3s ease, background 0.3s ease;
    text-align: center;
    height: 100%;
}

.contact-card:hover {
    transform: scale(1.02);
    background: #eef0f2;
}

.contact-card .icon {
    /* Font size removed, using SVG width */
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    /* Fixed height for alignment */
    width: 64px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.qr-container {
    margin: 16px 0 24px 0;
    margin-top: auto;
    width: 150px;
    height: 150px;
    background: white;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.link-arrow {
    color: var(--accent-color);
    font-weight: 500;
}

/* Footer */
footer {
    padding: 40px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-align: center;
}

/* Feature Card Links */
.feature-card-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
    height: 100%;
}

.feature-card-link:hover .feature-card {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.feature-card-link .feature-card {
    transition: all 0.3s ease;
    height: 100%;
}