/*
Theme Name: Rokitskiy V3 Android Developer
Author: Antigravity
Description: Fun Material You styling with custom cursors and IDE aesthetics
Version: 3.0
Text Domain: rokitskiy-v3
*/

:root {
    --bg-color: #0d1117; /* Deep IDE dark */
    --surface-color: #161b22; /* Elevated surface */
    --surface-elevated: #21262d;
    --surface-border: #30363d;
    
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-code: #58a6ff;
    
    /* Android Accent Colors */
    --android-green: #3DDC84;
    --kotlin-purple: #7F52FF;
    --kotlin-orange: #F88909;
    
    --gradient-android: linear-gradient(135deg, #3DDC84 0%, #00B16A 100%);
    --gradient-kotlin: linear-gradient(135deg, #7F52FF 0%, #E025B4 50%, #F88909 100%);

    --font-heading: 'Outfit', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-code: 'JetBrains Mono', 'Fira Code', monospace;
    
    --transition-snappy: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Hide Default Cursor */
@media (pointer: fine) {
    *, a, button, input, textarea {
        cursor: none !important;
    }
}

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

html {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
}

/* Custom Cursor Elements */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--android-green);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 2px solid rgba(61, 220, 132, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease-out, width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
    will-change: transform;
}

/* Cursor Hover states applied via JS */
.cursor-ring.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(61, 220, 132, 0.1);
    border-color: var(--android-green);
}

/* Android Background Elements */
.bg-symbol {
    position: fixed; /* Fixed to the viewport instead of absolute body bottom */
    top: 0;
    color: var(--surface-border);
    font-family: var(--font-code);
    font-weight: bold;
    font-size: 3rem;
    pointer-events: none;
    z-index: -1;
    user-select: none;
    opacity: 0;
    animation: floatUp 25s linear infinite;
    will-change: transform, opacity;
}

@keyframes floatUp {
    0% { transform: translateY(110vh) rotate(0deg) scale(0.8); opacity: 0; }
    10% { opacity: 0.5; }
    90% { opacity: 0.5; }
    100% { transform: translateY(-30vh) rotate(360deg) scale(1.2); opacity: 0; }
}

/* Utilities */
.gradient-text-android {
    background: var(--gradient-android);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-kotlin {
    background: var(--gradient-kotlin);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography styles for IDE Hero */
.ide-code {
    font-family: var(--font-code);
    background: var(--surface-color);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--surface-border);
    border-left: 4px solid var(--android-green);
    display: inline-block;
    text-align: left;
    white-space: pre-wrap;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
}

.ide-keyword { color: #ff7b72; }
.ide-class { color: #d2a8ff; }
.ide-string { color: #a5d6ff; }
.ide-var { color: #79c0ff; }
.ide-comment { color: var(--text-secondary); font-style: italic; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 16px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-snappy);
    border: none;
    overflow: hidden;
    position: relative;
}

.primary-btn {
    background: var(--android-green);
    color: #000;
    box-shadow: 0 8px 16px rgba(61, 220, 132, 0.2);
}

.primary-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 12px 24px rgba(61, 220, 132, 0.4);
}

.secondary-btn {
    background: var(--surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}

.secondary-btn:hover {
    background: #30363d;
    transform: translateY(-4px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 8%;
    transition: var(--transition-snappy);
}

.navbar.scrolled {
    padding: 16px 8%;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--surface-border);
}

.logo {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.3rem;
}

.navbar nav { display: flex; gap: 32px; }
.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-family: var(--font-code);
    font-size: 0.9rem;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--android-green); }

/* Main Layout */
main {
    padding: 0 8%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    position: relative;
}

/* Material You Cards */
.apps-section, .contact-section { padding: 60px 0; }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    font-family: var(--font-code);
}
.section-title span { color: var(--android-green); }

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 32px;
    padding: 24px;
    transition: var(--transition-snappy);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card:hover {
    transform: translateY(-6px);
    background: var(--surface-elevated);
    border-color: var(--android-green);
    box-shadow: 0 12px 32px rgba(0,0,0,0.3), 0 0 0 1px var(--android-green);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.card-icon {
    width: 64px; height: 64px;
    border-radius: 16px;
    margin-right: 16px;
    overflow: hidden;
    background: var(--surface-elevated);
    flex-shrink: 0;
}

.card-icon img {
    width: 100%; height: 100%; object-fit: cover;
}

.card-title-group h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
    line-height: 1.2;
}

.card-downloads {
    font-size: 0.8rem;
    font-family: var(--font-code);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 8px;
}

.card-downloads svg {
    width: 14px; height: 14px; margin-right: 4px; fill: currentColor;
}

.card p {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 24px;
    flex-grow: 1;
    font-size: 0.95rem;
}

/* Material FAB style button */
.fab-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-elevated);
    color: var(--android-green);
    text-decoration: none;
    font-weight: 700;
    padding: 12px 20px;
    border-radius: 16px;
    transition: var(--transition-snappy);
    margin-top: auto;
    border: 1px solid var(--surface-border);
    align-self: flex-start;
}

.card:hover .fab-link {
    background: var(--android-green);
    color: #000;
    border-color: var(--android-green);
}

/* Contact Box */
.contact-box {
    background: var(--surface-color);
    border: 1px solid var(--surface-border);
    border-radius: 40px;
    padding: 60px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-box h2 {
    font-family: var(--font-code);
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-box p { color: var(--text-secondary); }

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* WPForms Material Customization */
.custom-wpforms { margin-top: 32px; text-align: left; }
.custom-wpforms .wpforms-container { margin: 0 auto !important; }
.custom-wpforms .wpforms-field-label {
    color: var(--text-secondary) !important;
    font-family: var(--font-code) !important;
    font-size: 0.9rem !important;
    margin-bottom: 8px !important;
}
.custom-wpforms input, .custom-wpforms textarea {
    background: var(--surface-elevated) !important;
    border: 1px solid var(--surface-border) !important;
    border-bottom: 2px solid var(--surface-border) !important;
    border-radius: 12px 12px 0 0 !important;
    color: var(--text-primary) !important;
    padding: 16px !important;
    font-family: var(--font-body) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: var(--transition-snappy) !important;
}
.custom-wpforms input:focus, .custom-wpforms textarea:focus {
    background: var(--surface-color) !important;
    border-bottom-color: var(--android-green) !important;
    outline: none !important;
}
.custom-wpforms button[type="submit"] {
    background: var(--android-green) !important;
    color: #000 !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 16px !important;
    font-family: var(--font-heading) !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    box-shadow: 0 4px 12px rgba(61, 220, 132, 0.2) !important;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-border);
    padding: 40px 8%;
    background: var(--bg-color);
}
.footer-content {
    max-width: 1400px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-links a { color: var(--text-secondary); text-decoration: none; margin-left: 24px; font-family: var(--font-code); font-size: 0.9rem; transition: 0.2s;}
.footer-links a:hover { color: var(--android-green); }

@media (max-width: 768px) {
    .navbar { padding: 20px 5%; }
    .navbar nav { display: none; }
    main { padding: 0 5%; }
    .contact-box { padding: 40px 24px; }
    .footer-content { flex-direction: column; text-align: center; }
    .footer-links a { margin: 0 12px; }
    /* Enable default cursor on mobile touch screens */
    *, a, button, input, textarea { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none !important; }
}
