* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #fff;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    cursor: default;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Subtle Glow Effect */
@keyframes subtleGlow {
    0% {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    }
    100% {
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    }
}

.glow-card {
    animation: subtleGlow 2s ease-in-out infinite alternate;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 2px solid #ffd700;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffd700;
}

.nav-logo h2 {
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 10px #ffd700;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 16px;
    border-radius: 25px;
}

.nav-link:hover {
    color: #ffd700;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15), rgba(139, 69, 19, 0.15));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5), 0 0 10px rgba(139, 69, 19, 0.3);
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #ffd700;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px #ffd700;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.hero-icon {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ffd700;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 20px #ffd700);
    transition: all 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 50px rgba(255, 215, 0, 0.8);
    filter: drop-shadow(0 0 30px #ffd700);
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffd700, #ffb400, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 10px #ffd700);
    }
    to {
        filter: drop-shadow(0 0 25px #ffd700);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    color: #f0f0f0;
}

.hero-buttons {
    margin-bottom: 4rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffb400);
    color: #1a1a1a;
    border: 2px solid #ffd700;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6), 0 0 40px rgba(139, 69, 19, 0.4);
    background: linear-gradient(45deg, #ffd700, #ffb400, #8B4513);
    filter: brightness(1.2);
}

.btn-secondary {
    background: transparent;
    color: #ffd700;
    border: 2px solid #ffd700;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #ffd700, #8B4513);
    color: #1a1a1a;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6), 0 0 40px rgba(139, 69, 19, 0.4);
    filter: brightness(1.2);
}

.btn-dashboard {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: #fff;
    border: 2px solid #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

.btn-dashboard:hover {
    background: linear-gradient(45deg, #764ba2, #667eea);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6), 0 0 40px rgba(118, 75, 162, 0.5);
    filter: brightness(1.2);
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-highlight {
    background: rgba(255, 215, 0, 0.1);
    padding: 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-highlight:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 215, 0, 0.2);
    border-color: #ffd700;
}

.feature-highlight .feature-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 0 15px #ffd700;
}

.feature-highlight h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #ffd700;
}

.feature-highlight p {
    opacity: 0.9;
    color: #f0f0f0;
}

/* Floating Background Elements */
.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.8;
    }
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #f0f0f0;
    opacity: 0.9;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.feature-box {
    background: rgba(255, 215, 0, 0.1);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 69, 19, 0), rgba(139, 69, 19, 0.2));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-box:hover::before {
    opacity: 1;
}

.feature-box:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.4), 0 0 40px rgba(139, 69, 19, 0.3);
    border-color: #ffd700;
    background: rgba(139, 69, 19, 0.15);
}

.feature-icon {
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px #ffd700;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.feature-box:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    text-shadow: 0 0 30px #ffd700, 0 0 20px rgba(139, 69, 19, 0.5);
}

.feature-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    position: relative;
    z-index: 1;
}

.feature-box p {
    color: #f0f0f0;
    opacity: 0.9;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    text-align: center;
}

.contact h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffd700;
    text-shadow: 0 0 20px #ffd700;
}

.contact-description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: #f0f0f0;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 20px 30px;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.2), rgba(255, 180, 0, 0.2));
    color: #ffd700;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    border: 2px solid rgba(255, 215, 0, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-link:hover {
    background: linear-gradient(45deg, #ffd700, #ffb400, #8B4513);
    color: #1a1a1a;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.6), 0 0 40px rgba(139, 69, 19, 0.4);
    filter: brightness(1.2);
}

.contact-link i {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    padding: 3rem 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    border-top: 2px solid #ffd700;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #ffd700;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 10px #ffd700;
}

.footer p {
    color: #f0f0f0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .developers-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
    }
    
    .developers h2, .contact h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .feature-highlight {
        padding: 1.5rem;
    }
    
    .developer-card {
        padding: 2rem 1.5rem;
    }
}

/* Hover Effects for Interactive Elements */
.nav-link, .btn, .contact-link, .developer-card, .feature-highlight {
    cursor: pointer;
}

/* Selection Effect */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: #1a1a1a;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #ffd700, #ffb400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #ffb400, #ffd700);
}

/* Footer Sections */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.footer-section {
    text-align: left;
}

.footer-section h4 {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-link:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.footer-link i {
    margin-right: 0.5rem;
    width: 16px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.95);
    min-width: 180px;
    box-shadow: 0 8px 16px rgba(255, 215, 0, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.5);
    z-index: 1001;
    top: 100%;
    right: 0;
    backdrop-filter: blur(20px);
}

.dropdown-content a {
    color: #fff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 5px;
}

.dropdown-content a:hover {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
}

.nav-dropdown.active .dropdown-content {
    display: block;
}

.nav-dropdown:hover .nav-link,
.nav-dropdown.active .nav-link {
    color: #ffd700;
    background: rgba(255, 215, 0, 0.1);
}

/* Hide mobile-only links on desktop */
.mobile-only {
    display: none;
}

/* Footer Links Styling */
.footer-section a {
    display: block;
    color: #ccc;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: #ffd700;
    transform: translateX(5px);
}

.footer-section p {
    color: #ccc;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Mobile Navigation */
.mobile-menu {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 2rem;
    z-index: 999;
    border-top: 2px solid #ffd700;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu .nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    text-align: center;
    font-size: 1.1rem;
}

.mobile-menu .nav-dropdown {
    display: block;
}

.mobile-menu .dropdown-content {
    display: block;
    position: static;
    background: transparent;
    box-shadow: none;
    border: none;
    margin-left: 1rem;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        z-index: 999;
        border-top: 2px solid #ffd700;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    /* Hide the desktop dropdown on mobile */
    .nav-dropdown {
        display: none;
    }
    .nav-link {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 215, 0, 0.2);
        text-align: center;
        font-size: 1.1rem;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: rgba(255, 215, 0, 0.1);
        color: #ffd700;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Show mobile-only links on mobile */
    .mobile-only {
        display: block;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .developers-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .developers h2, .contact h2 {
        font-size: 2.2rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section {
        text-align: center;
    }
    
    /* Commands page responsive */
    .commands-category {
        margin-bottom: 2rem;
    }
    
    .commands-category ul {
        padding-left: 1rem;
    }
    
    .commands-category code {
        font-size: 0.9rem;
        word-break: break-word;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .feature-highlight {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .developer-card {
        padding: 2rem 1.5rem;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .nav-logo h2 {
        font-size: 1.5rem;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .contact-link {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    /* Commands page mobile */
    .commands-category h2 {
        font-size: 1.5rem;
    }
    
    .commands-category li {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }
    
    .commands-category code {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
        display: inline-block;
        margin-bottom: 0.3rem;
    }
    
    /* Legal pages mobile optimization */
    .doc-content {
        padding: 2rem 1rem !important;
        margin: 0 15px !important;
    }
    
    .doc-content h1 {
        font-size: 2rem !important;
    }
    
    .doc-content h2 {
        font-size: 1.3rem !important;
    }
    
    .doc-content p, .doc-content li {
        font-size: 0.9rem;
        line-height: 1.5;
    }
}

/* Extra small devices (phones, 375px and down) */
@media (max-width: 375px) {
    .container {
        padding: 0 10px;
    }
    
    .nav-logo h2 {
        font-size: 1.3rem;
    }
    
    .logo-img {
        width: 30px;
        height: 30px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .feature-highlight {
        padding: 1rem;
    }
    
    .feature-highlight h3 {
        font-size: 1.1rem;
    }
    
    .commands-category code {
        font-size: 0.75rem;
        padding: 0.2rem 0.4rem;
        word-break: break-all;
    }
    
    .doc-content {
        padding: 1.5rem 0.8rem !important;
    }
    
    .doc-content h1 {
        font-size: 1.8rem !important;
    }
    
    .doc-content h2 {
        font-size: 1.2rem !important;
    }
    
    .footer-links {
        gap: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-bottom: 2rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
    .logo-img, .footer-logo-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Touch-friendly hover states */
@media (hover: none) and (pointer: coarse) {
    .nav-link:hover, .btn:hover, .contact-link:hover {
        transform: none;
    }
    
    .nav-link:active, .btn:active, .contact-link:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }
}

/* Improve readability on small screens */
@media (max-width: 480px) {
    body {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Better spacing for touch targets */
    .nav-link {
        padding: 12px 20px;
        margin: 5px 0;
    }
    
    .dropdown-content a {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    /* Improve form inputs and buttons */
    input, button, .btn {
        min-height: 44px; /* Apple's recommended touch target size */
    }
    
    /* Better command visibility */
    .commands-category {
        background: rgba(255, 215, 0, 0.05);
        padding: 1rem;
        border-radius: 15px;
        margin-bottom: 1.5rem;
    }
    
    .commands-category h2 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    
    .commands-category code {
        display: block;
        margin-bottom: 0.5rem;
        text-align: center;
        font-weight: bold;
        background: rgba(255, 215, 0, 0.3);
        border: 1px solid rgba(255, 215, 0, 0.5);
    }
}
