/* --- 0. CSS Variables & Global Reset --- */
:root {
    --color-background-dark: #0B0B0D; /* Near Black */
    --color-primary-orange: #ff6600; /* New Orange Accent */
    --color-secondary-blue: #2298db; /* New Blue Accent */
    --color-secondary-purple: #9020c8; 
    --color-text-light: #f3f4f6; /* Off-White */
    --color-text-fade: #a1a1aa; /* Gray */
    --color-text-header: #FFFFFF;
    --font-header: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body); 
    color: var(--color-text-light);
    background-color: var(--color-background-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- 1. Utilities and Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

/* Services section padding remains minimal after hero */
#services.section-padding {
    padding-top: 4rem; 
}

.dark-section {
    background-color: var(--color-background-dark);
}

a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: var(--color-primary-orange);
}

.section-title {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text-header);
}
.section-title::after {
    content: none;
}


/* --- 2. Header and Navigation (No changes) --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(11, 11, 13, 0.95); 
    backdrop-filter: blur(8px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    padding: 0.75rem 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo .site-title {
    font-size: 1.8rem;
    margin: 0;
    font-family: var(--font-header);
    font-weight: 900;
}
 .flow { color: var(--color-secondary-blue); }
.tech { color: var(--color-primary-orange); }
.one { color: var(--color-secondary-purple); }

.logo small {
    font-size: 0.85rem; 
    color: var(--color-text-light); 
    font-weight: 600; 
    margin-top: 2px;
}

nav a {
    margin-left: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 5px 0;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color-primary-orange);
    bottom: 0;
    left: 0;
    transition: width 0.3s;
}

nav a:hover::after {
    width: 100%;
}

.contact-link {
    background: var(--color-primary-orange);
    padding: 8px 15px;
    border-radius: 5px;
    margin-left: 3rem;
    transition: background 0.3s;
    color: var(--color-background-dark); 
    font-weight: 700;
}
.contact-link:hover {
    background: var(--color-secondary-blue);
    color: var(--color-text-light); 
}
.contact-link i {
    margin-right: 5px;
}
.contact-link::after { content: none; }


/* --- 3. Hero Section (Minor Padding adjustment) --- */
.hero-section {
    /* Adjusted top padding to give more room after the fixed header */
    padding: 8rem 0 4rem; 
    min-height: 60vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-align: left; 
}

.particle-background {
    display: none;
}

.hero-content {
    position: relative; 
    z-index: 10;
    max-width: 900px; 
    width: 90%; 
    background-color: #0d0d10; 
    padding: 40px;
    border: 1px solid #1a1a20;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero-content h2 {
    font-family: var(--font-header);
    font-size: 4rem; 
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    color: var(--color-secondary-blue); 
}

.hero-content p {
    font-size: 1.4rem; 
    color: var(--color-text-fade);
    margin-bottom: 0;
}

.hero-prompt {
    font-family: var(--font-body);
    font-size: 1.2rem;
    color: var(--color-primary-orange);
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: hidden;
}

/* Typing cursor animation */
@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--color-primary-orange); }
}
.hero-prompt::after {
    content: '';
    display: inline-block;
    width: 10px; 
    height: 1.2em; 
    background-color: var(--color-primary-orange);
    margin-left: 5px;
    vertical-align: middle;
    animation: blink-caret 0.75s step-end infinite;
}
.hero-prompt .finished-typing::after {
    display: none; 
}


/* --- 4. Services Grid (No default border/animation) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #121217;
    border: none;
    padding: 2.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s;
}

/* Existing Hover Animation */
.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(34, 152, 219, 0.1) 0%, transparent 70%);
    transform: rotate(45deg);
    transition: transform 0.5s ease-out;
    opacity: 0;
    z-index: 1;
}

.service-card:hover::before {
    transform: rotate(0deg) scale(1.1);
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-5px); 
}

.service-card > * {
    position: relative; 
    z-index: 2; 
}

.service-card h3 {
    font-family: var(--font-header);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-secondary-blue); 
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--color-primary-orange); 
}

.card-link {
    display: inline-block;
    margin-top: 1rem;
    font-weight: 600;
    color: var(--color-secondary-blue);
    border-bottom: 2px solid transparent;
    transition: border-bottom-color 0.3s, color 0.3s;
}
.card-link:hover {
    color: var(--color-primary-orange);
    border-bottom-color: var(--color-primary-orange);
}

/* --- 5. Platforms Grid (No changes) --- */
.platform-title {
    color: var(--color-text-header);
}

.platforms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: var(--spacing-lg);
}

.platform-item {
    text-align: center;
    padding: 2rem 1rem;
    background-color: #1a1a20;
    border-radius: 8px;
    border-bottom: 4px solid var(--color-secondary-blue); 
    transition: none; 
}

.platform-item img {
    max-width: 80%;
    height: auto;
    max-height: 50px;
    margin-bottom: 1rem;
    filter: none; 
    opacity: 1; 
    transition: none;
}

.platform-item h4 {
    font-family: var(--font-header);
    font-size: 1.2rem;
}

.platform-item small {
    color: var(--color-text-fade);
    display: block;
}

.platform-description-grid {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    padding: 2rem;
    border: 1px solid rgba(34, 152, 219, 0.2); 
    border-radius: 8px;
    color: var(--color-text-fade);
}

/* --- 6. Footer (CENTER ALIGNED RESTORED) (Request 1) --- */
.site-footer {
    padding-top: var(--spacing-md);
    background-color: #000000;
    border-top: 1px solid #1a1a20;
}

.footer-content {
    /* Set to column for vertical stacking and center alignment */
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center;
    text-align: center; /* Center-align text within containers */
    padding-bottom: 1rem;
    gap: 2rem; /* Increased vertical space between blocks */
}

.footer-contact {
    /* Ensure text within contact is centered */
    text-align: center;
}

.footer-contact strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-header);
    color: var(--color-primary-orange); 
}

.footer-contact p {
    color: var(--color-text-fade);
}

.footer-partner {
    /* Ensure partner logo is centered */
    text-align: center; 
    margin: 0;
}

.ofw-logo {
    max-width: 150px; 
    height: auto;
    filter: none;
}

.copyright {
    padding: 1rem 0;
    border-top: 1px solid #1a1a20;
    font-size: 0.9rem;
    color: var(--color-text-fade);
    text-align: center;
}

/* --- 7. Animations and Media Queries --- */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.8s; }
.delay-2 { animation-delay: 1.2s; }

.animate-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-scroll.delay-1 { transition-delay: 0.1s; }
.animate-scroll.delay-2 { transition-delay: 0.2s; }
.animate-scroll.delay-3 { transition-delay: 0.3s; }
.animate-scroll.delay-4 { transition-delay: 0.4s; }

@media (max-width: 992px) {
    .hero-content h2 { font-size: 3rem; }
    .hero-content p { font-size: 1.2rem; }
    .hero-prompt { font-size: 1rem; }
    .hero-section { min-height: 50vh; padding: 12rem 0 2rem; }
    
    .platforms-grid { grid-template-columns: repeat(2, 1fr); }
    
    /* Footer naturally stacks due to main style change, but ensure specific elements are centered */
    .footer-content {
        flex-direction: column; 
        text-align: center;
    }
    .footer-contact, .footer-partner {
        text-align: center;
        margin: 0;
    }
}

@media (max-width: 600px) {
    .nav-content { flex-direction: column; gap: 1rem; }
    nav { display: flex; flex-direction: column; gap: 0.5rem; }
    nav a { margin: 0; }
    .contact-link { margin-left: 0; margin-top: 1rem; }
    
    .hero-content { padding: 20px; }
    .hero-content h2 { font-size: 2rem; }
    .hero-content p { font-size: 1rem; }
    .hero-prompt { font-size: 0.9rem; margin-bottom: 1.5rem; }
    .hero-prompt::after { height: 0.9em; }

    .section-title { font-size: 2.5rem; }
    .services-grid { gap: 1rem; }
}