/* Ryshe Website Styles */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

:root {
    --dark-blue: #0A2540;
    --dark-blue-light: #0F3A5F;
    --teal: #00D4FF;
    --teal-dark: #00B8E6;
    --teal-light: #3DE3FF;
    --navy-deep: #061E34;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --accent-cyan: #0DCAF0;
    --black: #0f0f0f;

    /* Legacy aliases for compatibility */
    --navy: var(--dark-blue);
    --navy-light: var(--dark-blue-light);
    --purple: var(--teal);
    --purple-dark: var(--teal-dark);
    --purple-light: var(--teal-light);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    color: var(--navy);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 45px;
    height: 45px;
    color: var(--dark-blue);
    transition: color 0.3s ease;
}

.logo:hover .logo-icon {
    color: var(--teal);
}

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--navy);
    display: block;
}

.logo-subtitle {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--gray-600);
    letter-spacing: 0.05em;
    margin-top: 0.2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    list-style: none;
}

.nav-links a {
    color: var(--navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--purple);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--navy);
}

/* Buttons */
.btn-primary {
    background: var(--teal);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--teal-dark);
    transform: scale(1.05);
}

.btn-secondary {
    background: transparent;
    color: var(--navy);
    padding: 1rem 2rem;
    border: 2px solid var(--navy);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--navy);
    color: var(--white);
}

/* Sections */
section {
    padding: 6rem 0;
}

section.hero {
    margin-top: 80px;
    padding-top: 4rem;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--dark-blue) 50%, var(--dark-blue-light) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    outline: none;
    border: none;
}

section.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.text-large {
    font-size: 1.25rem;
    color: var(--gray-300);
    line-height: 1.8;
}

.text-teal {
    color: var(--purple-light);
}

.text-purple {
    color: var(--purple);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-100);
    transition: all 0.3s;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.25);
    border-color: var(--teal);
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 968px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 968px) {
    .leadership-grid {
        grid-template-columns: 1fr;
    }
}

.leader-avatar {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(10, 37, 64, 0.2) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-blue);
    flex-shrink: 0;
    border: 3px solid rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.card:hover .leader-avatar {
    border-color: var(--teal);
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

/* Stats */
.stats {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.2);
    padding: 4rem 0;
    position: relative;
}

.stats::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 212, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--gray-300);
    font-weight: 500;
}

/* Service Icons */
.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.card:hover .service-icon {
    transform: translateY(-5px);
}

/* Service Features */
.service-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
}

/* Case Study Metrics Grid */
.case-study-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.case-study-metrics-grid > div {
    min-width: 0;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.case-study-metric-item .stat-value {
    font-size: 2rem;
}

/* Value Icons */
.value-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(10, 37, 64, 0.15) 100%);
    border: 2px solid var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.value-icon svg {
    width: 35px;
    height: 35px;
    stroke: var(--teal);
    stroke-width: 2;
    fill: none;
}

.card:hover .value-icon {
    background: var(--teal);
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.card:hover .value-icon svg {
    stroke: white;
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--navy);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

/* Footer */
footer {
    background: linear-gradient(180deg, var(--dark-blue) 0%, var(--navy-deep) 100%);
    color: var(--white);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.2);
}

footer a {
    color: var(--gray-300);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: var(--teal-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-300);
}

/* Utility Classes */
.bg-gray {
    background: var(--gray-50);
}

.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-2 {
    margin-top: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.flex {
    display: flex;
    gap: 1rem;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.badge {
    background: rgba(0, 212, 255, 0.15);
    color: var(--teal);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

.success-message {
    background: rgba(0, 212, 255, 0.08);
    border: 2px solid var(--teal);
    border-radius: 1rem;
    padding: 3rem;
    text-align: center;
}

/* Testimonial */
.testimonial {
    border-left: 4px solid var(--teal);
    padding-left: 2rem;
    margin-top: 2rem;
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.results-grid {
    background: linear-gradient(135deg, rgba(45, 212, 191, 0.05) 0%, rgba(10, 29, 55, 0.05) 100%);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
}

/* Article Styles */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-700);
}

.article-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--navy);
}

.article-content h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: var(--navy);
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.75rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
    margin-bottom: 2rem;
}

.article-header {
    text-align: center;
    padding-bottom: 3rem;
}

.article-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--purple);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s;
}

.back-button:hover {
    gap: 0.75rem;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    /* Mobile navigation styling */
    nav {
        background: linear-gradient(90deg, var(--dark-blue) 0%, var(--dark-blue-light) 100%);
        border-bottom: 2px solid rgba(0, 212, 255, 0.3);
    }

    .logo-text, .logo-subtitle {
        color: var(--white);
    }

    .logo-icon {
        filter: brightness(0) invert(1);
        width: 38px;
        height: 38px;
    }

    h1 {
        font-size: 2.25rem;
        line-height: 1.3;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    h3 {
        font-size: 1.35rem;
    }

    section {
        padding: 2rem 0;
    }

    section.hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
        margin-top: 80px;
    }

    .container {
        padding: 0 1rem;
    }

    /* Cards on mobile */
    .card {
        padding: 1.25rem;
        overflow: hidden;
        max-width: 100%;
        box-sizing: border-box;
        width: 100%;
    }

    .card > * {
        max-width: 100%;
        overflow-wrap: break-word;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    /* Grid adjustments */
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Service icons on mobile */
    .service-icon {
        width: 55px;
        height: 55px;
    }

    /* Service features single column on mobile */
    .service-features {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Case study metrics - single column on mobile for better readability */
    .case-study-metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Results grid - reduce padding on mobile */
    .results-grid {
        padding: 1rem;
        margin: 1rem 0;
    }

    .results-grid h4 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Scale stat values in case studies for mobile */
    .case-study-metric-item .stat-value {
        font-size: 1.1rem !important;
        word-break: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
        max-width: 100%;
        display: block;
    }

    .case-study-metrics-grid .stat-label {
        font-size: 0.65rem;
        line-height: 1.2;
        word-break: break-word;
        overflow-wrap: break-word;
        white-space: normal;
        max-width: 100%;
        display: block;
    }

    .case-study-metric-item {
        padding: 0.75rem;
        max-width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .case-study-metrics-grid {
        width: 100%;
        box-sizing: border-box;
    }

    /* Stats on mobile */
    .stat-value {
        font-size: 2.5rem;
    }

    .stat-item {
        padding: 1rem;
    }
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--navy-deep) 0%, var(--dark-blue) 50%, var(--dark-blue-light) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.loading-screen.fade-out {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.animated-logo {
    font-size: 4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.1em;
}

.animated-logo .letter {
    display: inline-block;
    opacity: 0;
    animation: letterFade 0.5s ease-out forwards;
}

.animated-logo .letter:nth-child(1) { animation-delay: 0.1s; }
.animated-logo .letter:nth-child(2) { animation-delay: 0.2s; color: var(--purple-light); }
.animated-logo .letter:nth-child(3) { animation-delay: 0.3s; }
.animated-logo .letter:nth-child(4) { animation-delay: 0.4s; }
.animated-logo .letter:nth-child(5) { animation-delay: 0.5s; }

.parent-company {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--gray-300);
    letter-spacing: 0.05em;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 1s forwards;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
