/* ==========================================
   AERONTOGEL - MODERN LINUX STYLE THEME
   GOLD COLOR SCHEME
   VALID HTML Living Standard
   ========================================== */

:root {
    --gold-primary: #FFD700;
    --gold-secondary: #D4AF37;
    --gold-dark: #B8860B;
    --linux-dark: #0A0A0A;
    --linux-gray: #1A1A1A;
    --linux-light: #2D2D2D;
    --linux-border: #3A3A3A;
    --linux-text: #E0E0E0;
    --linux-accent: #4A90E2;
    --linux-success: #00C853;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Segoe UI', 'Ubuntu', 'Roboto', sans-serif;
    background: var(--linux-dark);
    color: var(--linux-text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    transition: all 0.3s ease;
}

body.sidebar-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.98)),
                url('https://i.gyazo.com/6f917351fca19dc5157aaf3481f1cac7.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

/* Linux Terminal Inspired Navigation */
.linux-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--gold-primary);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.linux-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 1rem;
    flex-wrap: wrap;
}

.linux-nav a {
    color: var(--linux-text);
    text-decoration: none;
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: var(--linux-light);
    border: 1px solid var(--linux-border);
    white-space: nowrap;
    font-size: 0.95rem;
}

.linux-nav a:hover,
.linux-nav a.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--linux-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    border-color: var(--gold-primary);
}

/* Hidden Sidebar Menu - FIXED */
.sidebar-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    background: var(--gold-primary);
    border: none;
    color: var(--linux-dark);
    padding: 10px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.sidebar-toggle:hover {
    transform: scale(1.1);
}

.sidebar-toggle.active {
    background: var(--linux-dark);
    color: var(--gold-primary);
}

.sidebar-menu {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    height: 100vh;
    background: var(--linux-gray);
    z-index: 1002;
    padding: 2rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid var(--gold-primary);
    overflow-y: auto;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.5);
}

.sidebar-menu.active {
    right: 0;
}

.sidebar-menu::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-menu.active::before {
    opacity: 1;
    pointer-events: all;
}

.sidebar-menu h3 {
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--linux-border);
}

.sidebar-menu ul {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 0.8rem;
}

.sidebar-menu a {
    color: var(--linux-text);
    text-decoration: none;
    padding: 0.8rem 1rem;
    display: block;
    border-radius: 4px;
    background: var(--linux-light);
    transition: all 0.3s ease;
    border: 1px solid var(--linux-border);
    -webkit-tap-highlight-color: transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--linux-dark);
    transform: translateX(-5px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 2rem 2rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9)),
                url('https://i.gyazo.com/6f917351fca19dc5157aaf3481f1cac7.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(45deg, var(--gold-primary), #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--linux-text);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Scrollable Button Frame */
.button-frame {
    background: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 2px solid var(--gold-primary);
    border-radius: 12px;
    padding: 2rem;
    max-width: 500px;
    margin: 2rem auto;
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--gold-primary) var(--linux-gray);
}

.button-frame::-webkit-scrollbar {
    width: 8px;
}

.button-frame::-webkit-scrollbar-track {
    background: var(--linux-gray);
    border-radius: 4px;
}

.button-frame::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--gold-primary), var(--gold-secondary));
    border-radius: 4px;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.linux-button {
    background: linear-gradient(135deg, var(--linux-light), var(--linux-gray));
    border: 2px solid var(--linux-border);
    color: var(--linux-text);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

.linux-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.linux-button:hover::before {
    left: 100%;
}

.linux-button:hover {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--linux-dark);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    border-color: var(--gold-primary);
}

.linux-button.primary {
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-secondary));
    color: var(--linux-dark);
    font-weight: bold;
}

.linux-button.primary:hover {
    background: linear-gradient(135deg, var(--gold-secondary), var(--gold-primary));
}

/* Content Sections */
.content-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.content-section h2 {
    color: var(--gold-primary);
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.long-content {
    background: rgba(26, 26, 26, 0.7);
    backdrop-filter: blur(5px);
    border: 1px solid var(--linux-border);
    border-radius: 8px;
    padding: 3rem;
    margin-top: 2rem;
    line-height: 1.8;
}

.long-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Gold Links */
.gold-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    position: relative;
    padding: 0 2px;
}

.gold-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.gold-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.gold-link:hover {
    color: var(--gold-secondary);
}

/* Linux Terminal Box */
.terminal-box {
    background: var(--linux-dark);
    border: 2px solid var(--gold-primary);
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

.terminal-header {
    background: var(--linux-gray);
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--linux-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: -2rem -2rem 2rem -2rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FF5F56;
}

.terminal-dot:nth-child(2) {
    background: #FFBD2E;
}

.terminal-dot:nth-child(3) {
    background: #27CA3F;
}

/* Footer */
.linux-footer {
    background: var(--linux-gray);
    border-top: 2px solid var(--gold-primary);
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 2rem 0;
}

.footer-links a {
    color: var(--linux-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.copyright {
    color: #888;
    font-size: 0.9rem;
    margin-top: 2rem;
}

/* Responsive Design - IMPROVED */
@media (max-width: 992px) {
    .linux-nav ul {
        gap: 0.5rem;
    }
    
    .linux-nav a {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .linux-nav ul {
        display: none;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .content-section {
        padding: 2rem 1rem;
    }
    
    .long-content {
        padding: 1.5rem;
    }
    
    .terminal-box {
        padding: 1.5rem;
    }
    
    .sidebar-menu {
        width: 280px;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .button-frame {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .linux-button {
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .footer-links {
        gap: 1rem;
        flex-direction: column;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .linux-button:hover {
        transform: none;
    }
    
    .linux-nav a:hover,
    .linux-nav a.active {
        transform: none;
    }
    
    .sidebar-menu a:hover {
        transform: none;
    }
}

/* Performance Optimizations */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

a, button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Print Styles */
@media print {
    .linux-nav,
    .button-frame,
    .sidebar-toggle,
    .sidebar-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .hero::before {
        filter: none;
    }
}