@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Lato:wght@400;700&display=swap');

/* General Styles */
:root {
    --primary-color: #6a11cb; /* Deep Purple */
    --secondary-color: #fdfbfb; /* Off-white background */
    --accent-color: #2575fc; /* Bright Blue */
    --text-dark: #333333; /* Dark gray for body text */
    --text-light: #ffffff;
    --card-bg: #ffffff;
    --border-color: #eeeeee;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Lato', sans-serif;
    --gradient-primary: linear-gradient(45deg, #6a11cb, #2575fc);
}

body {
    font-family: var(--font-body);
    margin: 0;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--secondary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    color: #2c3e50; /* A softer, professional dark blue-gray */
}

h2 {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
}

h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}

a:hover {
    color: var(--accent-color);
    text-decoration: none;
}

/* Top Navigation */
.top-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px var(--shadow-color);
}

.top-nav nav ul {
    padding: 0;
    list-style: none;
    margin: 0;
}

.top-nav nav ul li {
    display: inline;
    margin: 0 25px;
}

.top-nav nav ul li a {
    color: var(--text-dark);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.1em;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.top-nav nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.top-nav nav ul li a:hover::after {
    width: 100%;
}

#cart-indicator.flash {
    animation: flash 1s;
}

@keyframes flash {
    0% { background-color: var(--accent-color); color: white; }
    100% { background-color: transparent; color: var(--text-dark); }
}

/* Header */
header {
    background: #f2f2f2; /* Light Gray */
    padding: 1.5rem 0 2.5rem;
    color: var(--text-dark);
    border-bottom-left-radius: 50% 40px;
    border-bottom-right-radius: 50% 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-logo-container {
    margin-bottom: 20px;
}

.header-logo {
    max-width: 500px;
    height: auto;
}

.small-logo {
    max-width: 250px;
}

.marketing-text {
    text-align: center;
    font-family: var(--font-headings);
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 10px;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Sections */
section {
    padding: 80px 20px;
    margin: 0 auto;
    max-width: 1200px;
}

/* Software Section Cards */
.software-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.software-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 35px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 8px var(--shadow-color);
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px var(--shadow-color);
}

.software-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.software-card h3 {
    margin-bottom: 15px;
    font-size: 1.6em;
}

.software-card p {
    font-size: 1em;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.software-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    text-align: left;
    flex-grow: 1;
}

.software-card li {
    margin-bottom: 12px;
    font-size: 1em;
    position: relative;
    padding-left: 30px;
}

.software-card li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2em;
    font-weight: bold;
}

.software-card .btn {
    display: inline-block;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.software-card .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 86, 179, 0.6);
}

/* Services Section */
.service-frames {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.service-frame {
    text-align: center;
    padding: 25px;
    border: 1px solid transparent;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-frame:hover {
    border-color: var(--border-color);
    background: var(--card-bg);
}

.service-frame img {
    max-width: 60px;
    height: auto;
    margin-bottom: 15px;
    filter: grayscale(50%);
    transition: filter 0.3s ease;
}

.service-frame:hover img {
    filter: grayscale(0%);
}

.service-frame h3 {
    font-size: 1.2em;
    color: var(--text-dark);
}

.services-description {
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-intro {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
}

.services-tagline {
    font-size: 1.6em;
    font-family: var(--font-headings);
    color: #2c3e50;
    margin-top: 30px;
    margin-bottom: 15px;
}

.services-ai-focus {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.7;
}

.services-cta {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 30px;
}

/* Contact Section */
#contact {
    background-color: var(--card-bg);
    border-radius: 80px 20px 80px 20px;
    padding-top: 60px;
    padding-bottom: 60px;
}

.contact-intro {
    text-align: center;
    font-size: 1.3em;
    font-family: var(--font-headings);
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

#contactForm {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
}

#contactForm div {
    margin-bottom: 25px;
}

#contactForm label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-family: var(--font-headings);
    color: var(--text-dark);
}

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 1em;
    background-color: #fff;
    color: var(--text-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contactForm input[type="text"]:focus,
#contactForm input[type="email"]:focus,
#contactForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

#contactForm textarea {
    min-height: 160px;
    resize: vertical;
}

#contactForm button {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    font-family: var(--font-headings);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

#contactForm button:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 86, 179, 0.6);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    background: #f1f1f1;
    color: #6c757d;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
}

footer a {
    color: var(--primary-color);
    font-weight: 500;
}

/* Product Guide Page Styles */
.software-screenshots {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 50px 0;
}

.screenshot {
    max-width: 48%;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px var(--shadow-color);
}

.screenshot-thumbnail {
    max-width: 30%;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 8px var(--shadow-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.screenshot-thumbnail:hover {
    transform: scale(1.05);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 85%;
    max-width: 1200px;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color);
}

.download-section {
    text-align: center;
    padding: 50px 20px;
}

.download-button img {
    width: 220px;
    height: auto;
    transition: transform 0.3s ease;
}

.download-button:hover img {
    transform: scale(1.05);
}

.purchase-section {
    text-align: center;
    padding: 50px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    margin-top: 50px;
    box-shadow: 0 4px 8px var(--shadow-color);
}

.purchase-section h3 {
    font-size: 2em;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.price {
    font-size: 3em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.purchase-section p {
    font-size: 1.1em;
    color: #666;
    margin-bottom: 30px;
}

.btn-purchase {
    display: inline-block;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.3em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.btn-purchase:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 20px rgba(0, 86, 179, 0.6);
}

.bulk-pricing {
    margin-top: 30px;
    font-size: 1em;
}

/* Typography Engine */
#typography-engine {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
    perspective: 1000px;
    background-color: var(--secondary-color);
    overflow: hidden;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 30px;
}

#text-sphere-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#text-sphere {
    position: relative;
    width: 500px; /* Increased size */
    height: 500px; /* Increased size */
    transform-style: preserve-3d;
    animation: fadeIn 2s ease-in-out;
}

#text-sphere span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.5em; /* Larger font size */
    color: #444;
    background: transparent;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: default;
    user-select: none;
    transition: color 0.3s ease, background 0.3s ease;
}


@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 1024px) {
    .header-logo {
        max-width: 400px;
    }

    .marketing-text {
        font-size: 1.2em;
    }

    .software-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .software-cards {
        display: block;
    }

    .software-card {
        margin-bottom: 25px;
    }

    body {
        line-height: 1.6;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .top-nav {
        padding: 10px 0;
    }

    .top-nav nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .top-nav nav ul li {
        margin: 10px 0;
    }

    header {
        padding: 2rem 0 3rem;
        border-bottom-left-radius: 40% 30px;
        border-bottom-right-radius: 40% 30px;
    }

    .header-logo {
        max-width: 300px;
    }

    .marketing-text {
        font-size: 1.1em;
    }

    section {
        padding: 60px 15px;
    }

    .service-frames {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .software-card {
        padding: 25px;
    }

    #contactForm {
        padding: 20px;
    }

    .software-screenshots {
        flex-direction: column;
        align-items: center;
    }

    .screenshot {
        max-width: 95%;
    }

    #text-sphere {
        width: 300px;
        height: 300px;
    }

    #text-sphere span {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 1.8em;
    }

    .header-logo {
        max-width: 250px;
    }

    .marketing-text {
        font-size: 1em;
    }

    .top-nav nav ul li a {
        font-size: 1em;
    }

    .software-card .btn, #contactForm button, .btn-purchase {
        padding: 12px 24px;
        font-size: 1em;
    }

    .price {
        font-size: 2.5em;
    }

    .purchase-section h3 {
        font-size: 1.8em;
    }
}

/* Back to Top Button */
#back-to-top-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 10px;
    font-size: 18px;
    transition: background-color 0.3s, opacity 0.3s;
}

#back-to-top-btn:hover {
    background: var(--accent-color);
}

/* Checkout Page Styles */
.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
}

#order-summary, #checkout-form {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

#order-summary {
    flex: 1;
    min-width: 300px;
}

#order-summary table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#order-summary th, #order-summary td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#order-summary th {
    font-family: var(--font-headings);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    color: #999;
}

#order-summary td {
    font-size: 1em;
}

#order-summary h3 {
    text-align: right;
    margin: 8px 0;
    font-size: 1.1em;
}

#order-summary h3:last-child {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--primary-color);
}

#checkout-form {
    flex: 2;
    min-width: 400px;
}

#shipping-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: var(--font-headings);
}

#shipping-form input[type="text"],
#shipping-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#shipping-form input[type="text"]:focus,
#shipping-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 27, 203, 0.2);
}

.card-icons {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
}

#shipping-form button {
    width: 100%;
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    font-family: var(--font-headings);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#shipping-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
}

/* Cart Page Styles */
.cart-container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: 1px solid var(--border-color);
}

#cart-items table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#cart-items th, #cart-items td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

#cart-items th {
    font-family: var(--font-headings);
    font-weight: 600;
    text-transform: uppercase;
}

#cart-items input[type="number"] {
    width: 60px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

#cart-total {
    text-align: right;
    margin-top: 20px;
}

#cart-total h3 {
    margin: 5px 0;
}

.warning {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
    text-align: center;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid transparent;
}

/* Modern Form Styles */
.form-container {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-family: var(--font-headings);
}

.form-container input[type="text"],
.form-container input[type="email"],
.form-container input[type="password"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-container input[type="text"]:focus,
.form-container input[type="email"]:focus,
.form-container input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(106, 27, 203, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* Toast Notification */
.toast {
    visibility: hidden;
    min-width: 250px;
    margin-left: -125px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 2px;
    padding: 16px;
    position: fixed;
    z-index: 1;
    left: 50%;
    bottom: 30px;
    font-size: 17px;
}

.toast.show {
    visibility: visible;
    -webkit-animation: fadein 0.5s, fadeout 0.5s 2.5s;
    animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@-webkit-keyframes fadein {
    from {bottom: 0; opacity: 0;} 
    to {bottom: 30px; opacity: 1;}
}

@keyframes fadein {
    from {bottom: 0; opacity: 0;}
    to {bottom: 30px; opacity: 1;}
}

@-webkit-keyframes fadeout {
    from {bottom: 30px; opacity: 1;} 
    to {bottom: 0; opacity: 0;}
}

@keyframes fadeout {
    from {bottom: 30px; opacity: 1;}
    to {bottom: 0; opacity: 0;}
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    padding: 15px;
    text-align: center;
    z-index: 1001;
    display: none;
}

#cookie-banner p {
    margin: 0;
    display: inline;
}

#cookie-banner a {
    color: var(--accent-color);
    text-decoration: underline;
}

#accept-cookies {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-left: 20px;
}

.terms-container {
    max-width: 960px;
    margin: 40px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .terms-container {
        padding: 20px;
        margin: 20px;
    }
}
