/* RJL.ai Styles - Extracted from inline CSS */
/* Version: 1.0.0 */

:root {
    --primary-color: #1964AF;
    --secondary-color: #13a8a8;
    --accent-color: #4aa0de;
    --text-color: #fff;
    --bg-gradient: linear-gradient(to bottom right, #004497, #4aa0de);
    --shadow-light: rgba(255, 255, 255, 0.1);
    --shadow-medium: rgba(255, 255, 255, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.1);
    --border-radius: 10px;
    --transition: all 0.3s ease;
}

* {
    box-sizing: border-box;
}

html, body {
    color: var(--text-color);
    font: 18px/1.8 sans-serif;
    background: var(--bg-gradient);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    line-height: 1.2;
}

/* Top Header Styling */
header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
}
header h2 {
    font-size: 1.75rem;
    font-weight: 500;
    color: #ebebeb;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.4);
}
header h3 {
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    color: #ebebeb;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
header h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Section Headers */
.section h2 {
    font-size: 1.75rem;
    font-weight: bold;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--accent-color);
    display: inline-block;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.2);
    position: relative;
    margin-top: 0rem;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.section h3 {
    font-size: 1.25rem;
    font-weight: bold;
}

p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

code {
    background-color: #2c323a;
    color: #8cb4ff;
    font-family: "SF Mono", "Consolas", "Liberation Mono", Menlo, monospace;
    padding: 0.2em 0.4em;
    margin: 0 0.2em;
    font-size: 85%;
    border-radius: 6px;
    border: 1px solid #444c56;
}

/* Layout */
.container {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 4rem;
}

.main-content {
    max-width: 1900px;
    margin: 0 auto;
    padding: 0 4rem;
}

#principles, #work, #focus, #journey, #build, #proof, #future, #about, #context-revolution, #why-choose {
    padding: 0 1rem;
    max-width: 1900px;
    margin: auto;
    line-height: 1.6;
    text-align: left;
}

/* Header */
.header-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 2rem;
    margin-bottom: 1rem;
    max-width: 1900px;
    margin-left: auto;
    margin-right: auto;
}

.header-image {
    height: 270px;
    border-radius: 50%;
    flex-shrink: 1;
    object-fit: cover;
}

.header-content {
    max-width: 1200px;
    flex-shrink: 1;
}

/* Section Images - Responsive, left-justified */
.section-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Cards */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.card {
    flex: 1 1 350px;
    background-color: var(--shadow-light);
    border-radius: var(--border-radius);
    padding: 0.9rem;
    transition: var(--transition);
    text-align: center;
}

.card:hover,
.card:focus {
    background-color: var(--shadow-medium);
    transform: translateY(-2px);
}

.card img {
    width: 125px;
    margin-bottom: 0.5rem;
}

/* Card Inner - for styled card content with hover effects */
.card-inner {
    background: linear-gradient(135deg, var(--shadow-light), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid var(--shadow-medium);
    border-radius: 15px;
    padding: 0.1rem 0.5rem 0.5rem;
    transition: var(--transition);
    box-shadow: 0 8px 32px var(--shadow-dark);
}

.card:hover .card-inner,
.card:focus .card-inner {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
    background: linear-gradient(135deg, var(--shadow-medium), rgba(255,255,255,0.1));
}

.card:hover .emoji-spin,
.card:focus .emoji-spin {
    animation: spinOnce 0.6s ease-in-out;
}

/* Animations */
@keyframes spinOnce {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.emoji-spin {
    display: inline-block;
    transition: transform 0.3s ease;
}

/* Highlight */
.highlight {
    background-color: var(--secondary-color);
    color: #000033;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Links */
a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--secondary-color);
}

/* Tech Logo Links */
.tech-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    position: relative;
    transition: var(--transition);
    border-bottom: 2px solid transparent;
    padding-bottom: 2px;
}

.tech-logo-link:hover,
.tech-logo-link:focus {
    color: #6a1b9a;
    border-bottom-color: #6a1b9a;
}

.tech-logo-link:hover img,
.tech-logo-link:focus img {
    transform: scale(1.1);
}

.tech-logo-link img {
    transition: transform 0.3s ease;
}

/* Section heading glow animation */
.section h2::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3) 40%,
        rgba(255, 255, 255, 0.6) 50%,
        rgba(255, 255, 255, 0.3) 60%,
        transparent
    );
    transform: skewX(-20deg);
    transition: none;
}

.section h2.glow-active::before {
    animation: diagonalGlow 2s ease-out forwards;
}

@keyframes diagonalGlow {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

/* CTA Button Styling */
.cta-button {
    display: inline-block;
    padding: 16px 32px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff !important;
    font-weight: bold;
    font-size: 1.1rem;
    text-decoration: none !important;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(19, 168, 168, 0.4);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(19, 168, 168, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:active {
    transform: translateY(-1px) scale(1.0);
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.bold { font-weight: bold; }

/* Responsive Design */
@media (max-width: 999px) {
    .header-container {
        flex-wrap: wrap;
        text-align: center;
    }

    .header-image {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}

@media (max-width: 600px) {
    .main-content {
        padding: 0 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .header-image {
        height: auto;
        max-width: 100%;
        width: 100%;
    }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.25rem; }
    h3 { font-size: 1.1rem; }

    .card-grid {
        flex-direction: column;
    }

    .cta-button {
        font-size: 1rem;
        padding: 14px 24px;
    }
}
