/* ==========================================================================
   KEYRO Portfolio - Stylesheet
   ========================================================================== */

/* --- Custom Properties & Variables --- */
:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-card: rgba(25, 25, 25, 0.6);
    --bg-card-hover: rgba(35, 35, 35, 0.8);
    --text-main: #f8f8f8;
    --text-muted: #a1a1aa;
    --accent-gold: #E5B925;
    --accent-gold-glow: rgba(229, 185, 37, 0.3);
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions & Shadows */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

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

.mt-5 {
    margin-top: 3rem;
}

/* --- Dynamic Background --- */
.glow-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--accent-gold-glow) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
    animation: rotateGlow 30s linear infinite;
    opacity: 0.5;
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.8);
    border-bottom: var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo img {
    height: 40px;
    width: auto;
    transition: var(--transition-fast);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

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

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 2rem 4rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 700px;
    z-index: 2;
}

.eyebrow {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
    border: 1px solid var(--accent-gold);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-gold);
    box-shadow: 0 0 20px var(--accent-gold-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.hero-stats span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stats i {
    color: var(--accent-gold);
    font-size: 1.2rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-circles {
    position: relative;
    width: 400px;
    height: 400px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.circle-1 {
    width: 100%;
    height: 100%;
    border-color: var(--accent-gold);
    opacity: 0.2;
    animation: pulse 4s infinite alternate;
}

.circle-2 {
    width: 65%;
    height: 65%;
    border-top-color: var(--accent-gold);
    animation: spin 10s linear infinite;
}

.circle-3 {
    width: 30%;
    height: 30%;
    background: var(--accent-gold-glow);
    backdrop-filter: blur(5px);
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.1; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.3; }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
}

/* --- Section Headers --- */
section {
    padding: 8rem 0;
    position: relative;
}

.section-eyebrow {
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
}

.text-center .section-subtitle {
    margin: 0 auto;
}

/* --- The Story Section --- */
.story-content {
    max-width: 800px;
}

.lead-text {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-main);
    margin-bottom: 1.5rem;
}

.story-content p:not(.lead-text) {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 3rem;
}

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

.stat-number {
    font-size: 4rem;
    display: inline-block;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-plus {
    font-size: 2rem;
    color: var(--accent-gold);
    vertical-align: super;
}

.stat-label {
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-weight: 500;
}

/* --- Execution / Capabilities --- */
.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.capability-item {
    background: var(--bg-card);
    border: var(--glass-border);
    padding: 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.capability-item:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(229, 185, 37, 0.3);
}

.cap-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    transition: var(--transition-fast);
}

.capability-item:hover .cap-number {
    color: rgba(229, 185, 37, 0.15);
}

.cap-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cap-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

/* --- Ecosystem / Featured Projects --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    cursor: default;
}

.large-card {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(145deg, rgba(30,30,30,0.8) 0%, rgba(15,15,15,0.9) 100%);
    border: 1px solid rgba(229, 185, 37, 0.2);
}

.large-card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 40px var(--accent-gold-glow);
}

.bento-card:hover:not(.large-card) {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.large-card .card-header h3 {
    font-size: 2.5rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-gold);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-body {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.short-desc {
    color: var(--text-main);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.expounded-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    display: none; /* Hidden by default, shown on hover/active via JS or CSS */
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}

/* Hover effects to show expounded text */
.bento-card:hover .expounded-desc {
    display: block;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1rem;
}
.bento-card:hover .short-desc {
    color: var(--text-muted);
}
.large-card .expounded-desc {
    display: block;
    opacity: 1;
    transform: none;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.card-icon {
    position: absolute;
    bottom: -1rem;
    right: -1rem;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.03);
    transform: rotate(-15deg);
    transition: var(--transition-smooth);
    z-index: 1;
}

.bento-card:hover .card-icon {
    color: rgba(229, 185, 37, 0.08);
    transform: rotate(0) scale(1.1);
}

.large-card .card-icon {
    font-size: 15rem;
    bottom: -2rem;
    right: -2rem;
}

/* --- Ventures Section --- */
.ventures {
    background: #000;
    border-top: var(--glass-border);
}

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

.venture-item {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    border-radius: 12px;
    transition: var(--transition-fast);
}

.venture-item:hover {
    background: rgba(255,255,255,0.03);
}

.venture-icon {
    width: 50px;
    height: 50px;
    background: rgba(229, 185, 37, 0.1);
    color: var(--accent-gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.venture-details h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.venture-cat {
    font-size: 0.8rem;
    color: var(--accent-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 0.5rem;
}

.venture-details p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Footer --- */
.footer {
    padding: 6rem 0 3rem;
    background: linear-gradient(to bottom, #000 0%, #050505 100%);
}

.footer-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.footer-desc {
    max-width: 700px;
    margin: 0 auto 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.focus-areas {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 4rem;
}

.focus-areas span {
    margin: 0 1rem;
}

.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    margin: 4rem 0;
}

.build-next {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.innovation-quote {
    margin: 3rem 0;
    font-size: 1.5rem;
    font-style: italic;
    color: var(--text-muted);
    font-family: var(--font-heading);
}

.innovation-quote span {
    color: var(--accent-gold);
    font-style: normal;
    font-weight: 600;
}

.footer-logo {
    margin-top: 4rem;
}

.footer-logo img {
    height: 30px;
    margin-bottom: 1rem;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.footer-logo img:hover {
    opacity: 1;
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.copyright {
    opacity: 0.5;
}

/* --- Animations (Scroll Reveal) --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .hero-title { font-size: 3.5rem; }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .large-card {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding-top: 8rem;
        text-align: center;
        min-height: auto;
    }
    
    .hero-title { font-size: 2.8rem; }
    .hero-cta { 
        justify-content: center;
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-stats { 
        justify-content: center;
        flex-direction: column;
        gap: 1rem;
    }
    .hero-visual { display: none; }
    
    .section-title { font-size: 2.2rem; }
    section { padding: 4rem 0; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .large-card {
        grid-column: span 1;
        grid-row: span 1;
    }
    .large-card .card-header h3 { font-size: 2rem; }
    
    .nav-links { display: none; }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
    
    .ventures-list {
        grid-template-columns: 1fr;
    }

    .capabilities-grid {
        grid-template-columns: 1fr;
    }

    .footer-title { font-size: 2.5rem; }
    .focus-areas {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    .focus-areas span {
        margin: 0;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 1.2rem; }
    .hero-title { font-size: 2.2rem; }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .stat-number { font-size: 3.5rem; }
    
    .bento-card { padding: 1.5rem; }
    
    .section-title { font-size: 1.8rem; }
    .footer-title { font-size: 2rem; }
    .build-next { font-size: 1.5rem; }
    .innovation-quote { font-size: 1.2rem; }
}

/* --- Print Styles --- */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    .glow-bg {
        display: none;
    }
    .hero-title {
        background: none;
        color: #000;
        -webkit-text-fill-color: #000;
    }
    .bento-card {
        background: #fff;
        border: 1px solid #ccc;
        page-break-inside: avoid;
        margin-bottom: 20px;
    }
    .large-card {
        background: #fff;
        border: 2px solid #000;
    }
    .expounded-desc {
        display: block !important;
        opacity: 1 !important;
        transform: none !important;
        color: #333 !important;
    }
    .card-icon {
        display: none;
    }
    .fade-up {
        opacity: 1 !important;
        transform: none !important;
    }
    .navbar {
        display: none;
    }
    .hero-visual {
        display: none;
    }
    .venture-item {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
