/* ========================================
   Virtual Finance Corp.
   Minimal Startup Style + Dark/Light Mode
   ======================================== */

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

/* ========================================
   Theme Variables
   ======================================== */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f9fafb;
    --text: #111111;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border: #e5e7eb;
    --accent: #111111;
    --accent-hover: #374151;
    --glass-bg: linear-gradient(135deg, rgba(17,17,17,0.95), rgba(17,17,17,0.85));
    --glass-border: rgba(17,17,17,0.1);
    --glass-text: #ffffff;
    --glass-shadow: rgba(17, 17, 17, 0.2);
}

[data-theme="dark"] {
    --bg: #0a0a0a;
    --bg-secondary: #111111;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-tertiary: #52525b;
    --border: #27272a;
    --accent: #fafafa;
    --accent-hover: #d4d4d8;
    --glass-bg: linear-gradient(135deg, rgba(250,250,250,0.95), rgba(250,250,250,0.85));
    --glass-border: rgba(255,255,255,0.1);
    --glass-text: #0a0a0a;
    --glass-shadow: rgba(250, 250, 250, 0.2);
}

/* ========================================
   Base
   ======================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    transition: background 0.3s ease, color 0.3s ease;
}

::selection {
    background: var(--text);
    color: var(--bg);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(24px, 6vw, 80px);
}

/* ========================================
   Navigation - Dynamic Island
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 16px 24px;
    pointer-events: none;
}

.nav-island {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 8px 20px;
    background: var(--island-bg);
    border: 1px solid var(--island-border);
    border-radius: 100px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: auto;
    transition: all 0.4s var(--ease);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] {
    --island-bg: rgba(255, 255, 255, 0.8);
    --island-border: rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
    --island-bg: rgba(28, 28, 30, 0.8);
    --island-border: rgba(255, 255, 255, 0.1);
}

.nav-island:hover {
    border-color: var(--island-border-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] { --island-border-hover: rgba(0, 0, 0, 0.15); }
[data-theme="dark"] { --island-border-hover: rgba(255, 255, 255, 0.2); }

.logo {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.01em;
    padding-right: 12px;
    border-right: 1px solid var(--border);
    margin-right: 4px;
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 100px;
    transition: all 0.2s ease;
}

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

[data-theme="light"] { --nav-hover: rgba(0, 0, 0, 0.05); }
[data-theme="dark"] { --nav-hover: rgba(255, 255, 255, 0.08); }

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: var(--nav-hover);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    color: var(--text);
    background: var(--toggle-hover);
}

[data-theme="light"] { --toggle-hover: rgba(0, 0, 0, 0.1); }
[data-theme="dark"] { --toggle-hover: rgba(255, 255, 255, 0.15); }

[data-theme="light"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }



/* ========================================
   Button
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    padding: 0 32px;
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 500;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s var(--ease);
}

.btn:hover {
    transform: translateY(-1px);
    opacity: 0.9;
}

.btn:active {
    transform: translateY(0);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
}

.hero .container {
    width: 100%;
}

.hero-tagline {
    font-size: clamp(0.875rem, 2vw, 1.125rem);
    color: var(--text-tertiary);
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 48px;
    max-width: 100%;
}

.hero-accent {
    display: inline;
    color: var(--text-secondary);
    transition: color 0.6s ease;
}

.typewriter {
    display: inline;
    transition: opacity 0.3s ease;
}

.cursor {
    display: inline;
    animation: blink 1.2s ease-in-out infinite;
    margin-left: 2px;
    font-weight: 400;
}

@keyframes blink {
    0%, 45% { opacity: 1; }
    50%, 95% { opacity: 0; }
    100% { opacity: 1; }
}

.mobile-break {
    display: none;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.section-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 48px;
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.section-grid h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.section-text p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.values {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value {
    font-size: 0.9375rem;
    color: var(--text);
    padding-left: 16px;
    border-left: 2px solid var(--border);
}

/* ========================================
   Metric
   ======================================== */
.section-metric {
    text-align: center;
    background: var(--bg-secondary);
}

.metric-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.metric-label {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-value {
    display: flex;
    align-items: baseline;
    font-size: clamp(4rem, 12vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1;
}

.metric-symbol {
    font-size: 0.5em;
    color: var(--text-tertiary);
    margin-right: 4px;
}

.metric-unit {
    font-size: 0.4em;
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* ========================================
   Services
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.service-card {
    padding: 32px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.service-card:hover {
    border-color: var(--text-tertiary);
}

.service-num {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.service-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Contact
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-intro h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.contact-intro p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.contact-details a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.contact-details a:hover {
    border-color: var(--text);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font);
    font-size: 0.9375rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    transition: border-color 0.2s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-tertiary);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--text-tertiary);
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.contact-form textarea {
    resize: none;
}

.contact-form .btn {
    width: 100%;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
}

.footer-copy {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1100px) {
    .mobile-break {
        display: inline;
    }
}

@media (max-width: 768px) {
    .nav-island {
        padding: 6px 6px 6px 16px;
        gap: 4px;
    }
    
    .logo {
        padding-right: 10px;
        font-size: 0.8125rem;
    }
    
    .nav-links a {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
    }
    
    .hero-title {
        font-size: clamp(3.5rem, 12vw, 7rem);
    }
    
    .btn {
        height: 40px;
        padding: 0 24px;
        font-size: 0.8125rem;
    }
    
    .section-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .footer-logo,
    .footer-copy {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: 2px;
    }
    
    .nav-links a {
        padding: 6px 8px;
        font-size: 0.6875rem;
    }
    
    .logo {
        font-size: 0.75rem;
    }
}

/* ========================================
   Page Load Animations
   ======================================== */
body {
    animation: pageReveal 0.4s ease;
}

@keyframes pageReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from { 
        opacity: 0;
        transform: translateY(-10px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-tagline,
.hero-title,
.hero .btn {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-tagline { 
    animation-delay: 0.15s; 
}

.hero-title { 
    animation-delay: 0.25s; 
}

.hero .btn { 
    animation-delay: 0.4s; 
}

.nav-island {
    animation: slideDown 0.5s ease forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

/* Ambient animation after load */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.hero .btn {
    animation: fadeInUp 0.6s ease forwards, float 5s ease-in-out infinite;
    animation-delay: 0.4s, 1.5s;
}
