@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary-blue: #004CA1;
    /* Logo Blue */
    --primary-red: #FF2B29;
    /* Logo Red */
    --primary-orange: #FF9400;
    /* Logo Orange */
    --text-main: #ffffff;
    --text-dim: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Animation */
.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-blue);
    top: -100px;
    right: -100px;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    bottom: -50px;
    left: -50px;
    animation-delay: -5s;
}

@keyframes move {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(100px, 100px) scale(1.1);
    }
}

/* Header & Nav */
header {
    padding: 3rem 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 70px;
    /* Increased from 45px */
    width: auto;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

footer .logo {
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10%;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--text-main);
}

.hero h1 span {
    display: block;
    color: var(--primary-red);
    background: linear-gradient(90deg, var(--primary-red), var(--primary-orange));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-bottom: 2.5rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 30px;
    box-shadow: 0 0 50px rgba(0, 168, 255, 0.2);
    border: 1px solid var(--glass-border);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Feature Cards */
.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 5rem 10%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card i {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.card.word i {
    color: var(--primary-blue);
}

.card.excel i {
    color: var(--primary-orange);
}

.card.editor i {
    color: var(--primary-red);
}

.card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    border: none;
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #e0e0e0;
}

.card .btn {
    width: 100%;
}

.card.word .btn {
    background: var(--primary-blue);
    color: white;
}

.card.excel .btn {
    background: var(--primary-orange);
    color: #050505;
}

.card.editor .btn {
    background: var(--primary-red);
    color: white;
}

/* Footer */
footer {
    padding: 4rem 10%;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: var(--text-dim);
}

footer p {
    margin-top: 1rem;
}

@media (max-width: 968px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 5rem;
        gap: 2rem;
    }

    .hero-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero h1 {
        font-size: 3rem;
    }
}

/* PWA Forced Install Banner */
.pwa-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pwa-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
}

.pwa-content {
    position: relative;
    background: #111;
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 3rem 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.pwa-logo {
    width: 100px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 20px;
    background: white;
    padding: 10px;
}

.pwa-text strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: white;
}

.pwa-text p {
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.pwa-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pwa-actions .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
}

.btn-text {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-weight: 500;
    transition: 0.3s;
}

.btn-text:hover {
    color: white;
}

.ios-instructions {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    color: white;
    font-size: 0.95rem;
}