/* Variables */
:root {
    --primary-color: #4B170B;
    --bg-color: #F9F7F2;
    --surface-color: #FFFFFF;
    --text-color: #4B170B;
    --text-body: #6D4C41;
    --accent-color: #BC6C25;
    --glass-bg: rgba(75, 23, 11, 0.03);
    --glass-border: rgba(75, 23, 11, 0.1);
    --shadow-soft: 0 10px 30px rgba(75, 23, 11, 0.08);
    --shadow-hover: 0 15px 40px rgba(75, 23, 11, 0.15);
}

/* Base */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-body);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, .logo {
    color: var(--primary-color);
}
h1 { font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.03em; }
p { font-size: 1.1rem; line-height: 1.6; color: var(--text-body); }

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4B170B 0%, #BC6C25 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: #ffe5cc;
    border-bottom: 1px solid var(--glass-border);
    box-sizing: border-box;
}
.logo { 
    font-weight: 800; 
    font-size: 1.5rem; 
    letter-spacing: -1px;
    display: flex;
    align-items: center; 
    gap: 12px;
}

/* Navbar icon */
.navbar-icon {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.nav-links a { 
    color: var(--text-body); 
    text-decoration: none; 
    margin-right: 20px; 
    font-size: 0.95rem; 
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary-color); }

/* Language switcher */
.lang-switcher { display: flex; gap: 8px; align-items: center; margin-left: 16px; }
.lang-btn {
    background: transparent;
    border: 1px solid transparent;
    padding: 6px 8px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    color: var(--text-body);
}
.lang-btn:hover { background: rgba(75,23,11,0.05); border-color: var(--glass-border); color: var(--primary-color); }
.lang-btn.active { background: var(--primary-color); color: #fff; border-color: var(--primary-color); }

/* Buttons */
.btn-download-nav {
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 6px;
    color: white; 
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 23, 11, 0.2);
}
.btn-download-nav:hover {
    background: #3a1008; 
    transform: translateY(-2px);
}
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}
.btn-primary {
 padding: 15px 25px;
 border: unset;
 border-radius: 15px;
 color: #212121;
 z-index: 1;
 background: #e8e8e8;
 position: relative;
 font-weight: 600;
 font-size: 17px;
 -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 transition: all 250ms;
 overflow: hidden;
}

.btn-primary::before {
 content: "";
 position: absolute;
 top: 0;
 left: 0;
 height: 100%;
 width: 0;
 border-radius: 15px;
 background-color: var(--primary-color);
 z-index: -1;
 -webkit-box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 box-shadow: 4px 8px 19px -3px rgba(0,0,0,0.27);
 transition: all 250ms
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(75, 23, 11, 0.4);
}

.btn-primary:hover::before {
    width: 100%;
}
.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--glass-border);
    color: var(--primary-color);
}
.btn-secondary:hover { 
    border-color: var(--primary-color);
    background-color: rgba(75, 23, 11, 0.05);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 100px; 
    position: relative;
    background-image: radial-gradient(circle at 50% 50%, rgba(188, 108, 37, 0.05) 0%, transparent 50%);
}
.cta-group { margin-top: 30px; }

/* Mockup */
.browser-mockup {
    margin-top: 50px;
    width: 85%;
    max-width: 1300px;
    height: 600px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    transform-origin: center 20%;
    will-change: transform, opacity;
    opacity: 1;
    transform: scale(0.6);
    transition: box-shadow 0.3s ease;
}
.browser-mockup.expanded {
    box-shadow: 0 40px 80px rgba(75, 23, 11, 0.3);
    border-color: var(--primary-color);
}

/* Mockup header */
.mockup-header {
    background: #2F0306;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--glass-border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; opacity: 0.7; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }
.mockup-address-bar {
    background: #fff;
    border: 1px solid #e0e0e0;
    flex-grow: 1;
    margin-left: 20px;
    border-radius: 8px;
    height: 28px;
    display: flex;
    align-items: center;
    padding-left: 15px;
    font-size: 0.8rem;
    color: #999;
}

/* Mockup body */
.mockup-body {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('RocKa-bg.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.mockup-ui-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: -20px; 
    z-index: 10;
}
.mockup-main-search {
    width: 60%;
    min-width: 280px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid rgba(75, 23, 11, 0.15);
    border-radius: 30px;
    display: flex;
    align-items: center;
    box-shadow: 0 8px 30px rgba(75, 23, 11, 0.08);
    margin-bottom: 50px;
    position: relative;
}
.search-engine-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-right: 12px;
    padding-right: 12px;
    border-right: 1px solid #eee;
    position: relative;
}
.engine-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.2s;
}
.mockup-main-search:hover .engine-icon {
    transform: scale(1.1);
}
.search-placeholder {
    color: #aaa;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Shortcuts */
.mockup-shortcuts-grid {
    display: flex;
    gap: 20px;
    position: relative; 
    padding: 20px;
    border-radius: 20px;
    transition: background 0.3s;
}
.browser-mockup.expanded .mockup-shortcuts-grid:hover {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
}
.mockup-shortcut {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: default;
}
.shortcut-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(75, 23, 11, 0.1);
    transition: transform 0.2s;
}

/* Images inside shortcut icons (use local assets) */
.shortcut-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.shortcut-icon.yt { background: #D9534F; }
.shortcut-icon.gg { background: #4B170B; }
.shortcut-icon.gh { background: #ffffff; }
.shortcut-icon.more { background: var(--glass-border); color: var(--primary-color); }
.shortcut-label {
    font-size: 0.8rem;
    color: var(--text-body);
    font-weight: 500;
}
.mockup-shortcut:hover .shortcut-icon {
    transform: translateY(-3px);
}

/* Tooltips */
.tooltip {
    position: absolute;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    width: max-content;
    max-width: 200px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.tooltip::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}
.tooltip-top {
    bottom: 150%; 
    left: 50%;
    transform: translateX(-50%) translateY(10px);
}
.tooltip-top::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--primary-color);
}
.tooltip-shortcuts {
    top: 100%; 
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}
.tooltip-shortcuts::after {
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: var(--primary-color);
}
.browser-mockup.expanded .search-engine-selector:hover .tooltip-top,
.browser-mockup.expanded .mockup-shortcuts-grid:hover .tooltip-shortcuts {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Wallpaper control */
.wallpaper-control {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #4B170B;
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    border: 1px solid rgba(0,0,0,0.05);
}
.wallpaper-control img {
    width: 20px;
    height: 20px;
    opacity: 0.7;
}
.wallpaper-control:hover {
    transform: scale(1.1);
    background: #fff;
}

/* fallback icon when image fails to load */
.wallpaper-control.no-img::after {
    content: '🖼️';
    position: absolute;
    font-size: 18px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* wallpaper tooltip */
.tooltip-wallpaper {
    position: absolute;
    background: var(--primary-color);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    width: max-content;
    max-width: 220px;
    text-align: center;
    pointer-events: none;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 120;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
.tooltip-wallpaper::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
}
.tooltip-wallpaper {
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
}
.tooltip-wallpaper::after {
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: var(--primary-color);
}

.browser-mockup.expanded .wallpaper-control:hover .tooltip-wallpaper {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Features */
.features { padding: 120px 20px; text-align: center; background: #fff; }
.section-title { font-size: 2.5rem; margin-bottom: 60px; color: var(--primary-color); }
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}
.card {
    background: var(--bg-color);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid transparent;
    text-align: left;
    transition: all 0.3s ease;
}
.card:hover { 
    transform: translateY(-10px); 
    box-shadow: var(--shadow-hover);
    border-color: var(--glass-border);
    background: #fff;
}
.card .icon { 
    font-size: 2.5rem; 
    margin-bottom: 20px; 
    display: inline-block;
    background: rgba(75, 23, 11, 0.1); 
    width: 60px; height: 60px;
    line-height: 60px;
    text-align: center;
    border-radius: 12px;
}
.card h3 { margin: 0 0 10px 0; font-size: 1.4rem; }

/* Footer */
footer {
    text-align: center;
    padding: 60px;
    background-color: #ffe5cc;
    position: relative;
    z-index: 200;
    border-top: 1px solid var(--glass-border);
    color: var(--text-body);
    font-size: 0.9rem;
}

/* Work-in-progress text (uses same gradient as .gradient-text) */
.wip-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, #4B170B 0%, #BC6C25 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    transition: transform 220ms ease, text-shadow 220ms ease;
}

.wip-text::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -60%) scale(0.9);
    width: 140%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(188,108,37,0.40) 0%, rgba(75,23,11,0.06) 40%, rgba(75,23,11,0) 70%);
    filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 280ms ease, transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: -1;
}

.wip-text:hover {
    /* no vertical lift on hover per request */
    transform: none;
    text-shadow: 0 0 18px rgba(188,108,37,0.85), 0 0 36px rgba(75,23,11,0.32);
}

.wip-text:hover::after {
    transform: translate(-50%, -70%) scale(1.18);
    opacity: 1;
    animation: dragon-spark 1.2s ease-in-out infinite;
}

@keyframes dragon-spark {
    0%   { opacity: 0.9;  filter: blur(10px); transform: translate(-50%, -70%) scale(1.10); }
    50%  { opacity: 1;    filter: blur(18px); transform: translate(-50%, -74%) scale(1.22); }
    100% { opacity: 0.9;  filter: blur(10px); transform: translate(-50%, -70%) scale(1.10); }
}

.nav-wip { font-size: 0.95rem; }
.cta-wip { font-size: 1.7rem; font-weight: 800; }

/* Gradient Overlays */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: 250px;
    pointer-events: none; 
    z-index: 95; 
}

/* Left gradient overlay */
body::before {
    left: 0;
    background: linear-gradient(to right, rgba(75, 23, 11, 0.3), transparent);
}

/* Right gradient overlay */
body::after {
    right: 0;
    background: linear-gradient(to left, rgba(188, 108, 37, 0.25), transparent);
}


.scroll-reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s ease-out; }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.fade-in-up { animation: fadeInUp 0.8s ease-out forwards; opacity: 0; transform: translateY(20px); }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }
