/*
Theme Name: Tutajua
Theme URI: https://www.tutajua.com
Author: Solomon Bareebe
Description: A lightweight WordPress theme scaffolded from the Tutajua PHP site.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tutajua
*/

/* This theme relies on the project's existing `assets/css/style.css`. */
/* CSS Variables */
:root {
    --primary-blue: #0a2463;
    --accent-teal: #1e6ba8;
    --neutral-dark: #0a0a0a;
    --warm-light: #f8f9fa;
    --text-dark: #333;
    --text-light: #666;
    --border-color: #eaeaea;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --error-color: #dc3545;
    --transition: all 0.3s ease;
}

/* Accessibility helpers and small UI helpers live in assets/css/style.css */

/* Typography */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap");

body {
    font-family: "Inter", sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-teal);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-blue);
    border: 1px solid var(--primary-blue);
}

.btn-outline:hover {
    background-color: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-small {
    padding: 8px 16px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--warm-light) 0%, #fff 100%);
    padding: 20px 0 80px;
    position: relative;
    overflow: hidden;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo img {
    height: 50px;
}

/* Mobile menu styles moved to assets/css/style.css */

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.hero-content {
    max-width: 600px;
    margin-top: 60px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--primary-blue);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

/* Hero Visual Animation - Orbiting System */
@keyframes orbit {
    0% {
        transform: translateY(-50%) rotate(0deg);
    }

    100% {
        transform: translateY(-50%) rotate(360deg);
    }
}

@keyframes stay-upright {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes pulse-soft {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
}

.hero-visual {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 450px;
    height: 450px;
    z-index: 10;
    /* Orbit the entire container */
    animation: orbit 40s linear infinite;
    /* Ensure transformation origin is center */
    transform-origin: center center;
}

.hero-visual-stationary {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
}
.hero-bg-blob {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(30, 107, 168, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: -2;
    animation: pulse-soft 8s infinite ease-in-out;
}

.hero-network-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* SVG rotates with the container, keeping lines connected */
}

.hero-network-svg line {
    stroke: var(--primary-blue);
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    opacity: 0.3;
}

/* Wrapper handles positioning and counter-rotation */
.card-wrapper {
    position: absolute;
    width: 190px;
    height: auto;
    animation: stay-upright 40s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Card handles look and feel + hover effects */
.floating-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(10, 36, 99, 0.08);
    width: 100%;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.floating-card:hover {
    transform: scale(1.1);
    box-shadow: 0 20px 40px rgba(10, 36, 99, 0.15);
    border-color: var(--accent-teal);
    background: rgba(255, 255, 255, 0.95);
    z-index: 100;
}

/* Positions around the circle */
.pos-1 {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 10px;
    z-index: 3;
}

.pos-2 {
    bottom: 15%;
    right: 0;
    z-index: 2;
}

.pos-3 {
    bottom: 15%;
    left: 0;
    z-index: 1;
}

/* Specific fix to balance the triangle */
.pos-2 {
    right: 5%;
}

.pos-3 {
    left: 5%;
}

.card-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--warm-light) 0%, #ffffff 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.card-icon svg {
    width: 30px;
    height: 30px;
    color: var(--primary-blue);
    transition: var(--transition);
}

.floating-card:hover .card-icon svg {
    color: var(--accent-teal);
    transform: scale(1.1);
}

.floating-card h3 {
    font-size: 1rem;
    margin-bottom: 0;
    color: var(--primary-blue);
    font-weight: 600;
}

/* Products Section */
.products-section {
    padding: 100px 0;
    background-color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.product-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--border-color);
    display: flex;
    overflow: hidden;
    align-items: stretch;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.product-card.featured {
    border: 2px solid var(--accent-teal);
}

.product-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--accent-teal);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-content {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-visual {
    flex: 1;
    background-color: var(--warm-light);
    position: relative;
    min-height: 300px;
}

.product-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-logo-container {
    margin-bottom: 25px;
    height: 60px;
    display: flex;
    align-items: center;
}

.product-logo-img {
    max-height: 100%;
    max-width: 200px;
    object-fit: contain;
}

.product-card h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
    display: none;
}

.product-subtitle {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.feature-tag {
    background-color: var(--warm-light);
    color: var(--text-dark);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.product-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

@media (max-width: 992px) {
    .product-card {
        flex-direction: column;
    }

    .product-visual {
        height: 250px;
        flex: none;
    }

    .product-content {
        padding: 30px;
    }
}

/* Spotlight Section */
.spotlight-section {
    padding: 100px 0;
    background-color: var(--warm-light);
}

.spotlight-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.spotlight-text {
    flex: 1;
}

.spotlight-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.spotlight-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.feature-list {
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--primary-blue);
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--primary-blue);
}

.feature-item p {
    color: var(--text-light);
    margin: 0;
}

.spotlight-visual {
    flex: 1;
}

.spotlight-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Open Source Section */
.opensource-section {
    padding: 100px 0;
    background-color: white;
}

.opensource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.opensource-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.opensource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
}

.card-header h3 {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin: 0;
}

.github-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
    background: var(--warm-light);
    padding: 4px 8px;
    border-radius: 20px;
}

.github-stars svg {
    width: 18px;
    height: 18px;
}

.opensource-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background-color: var(--warm-light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

.stats-section {
    padding: 60px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-light);
    font-weight: 500;
}

.about-visual {
    flex: 1;
}

.about-image {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--neutral-dark);
    color: white;
    padding: 70px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
}

.footer-brand {
    flex: 1;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo {
    height: auto;
    width: auto;
    max-width: 120px;
    margin-bottom: 20px;
}

/* Responsive logo sizing */
@media (max-width: 992px) {
    .footer-logo {
        max-width: 140px;
    }
}

@media (max-width: 768px) {
    .footer-logo {
        max-width: 140px;
    }
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

/* Ensure social links are left aligned inside the footer brand */
.footer-brand .social-links { margin-top: 12px; }

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-teal);
}

.social-links svg {
    width: 20px;
    height: 20px;
    color: white;
}

.footer-links {
    display: flex;
    gap: 50px;
}

.footer-column h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.legal-links a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-visual {
        display: none;
    }

    .spotlight-content,
    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .spotlight-text,
    .about-text {
        max-width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 768px) {
    /* Responsive adjustments (mobile menu behavior moved to assets/css) */
    .hero-title {
        font-size: 2.5rem;
    }

    .section-header h2,
    .spotlight-text h2,
    .about-text h2 {
        font-size: 2rem;
    }

    .product-grid,
    .opensource-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        justify-content: space-around;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}


/* Parsley, toast and modal helpers moved to assets/css/style.css */