/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #0a0a0a;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    line-height: 1.7;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    color: #c0c0c0;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Accent Text */
.accent-text {
    color: #00ff88;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background: #00ff88;
    color: #0a0a0a;
    font-weight: 600;
}

.btn-primary:hover {
    background: #00e077;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #00ff88;
    border: 2px solid #00ff88;
}

.btn-secondary:hover {
    background: #00ff88;
    color: #0a0a0a;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #e0e0e0;
    border: 2px solid #333;
}

.btn-outline:hover {
    background: #333;
    color: #00ff88;
    border-color: #00ff88;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.2s ease;
    border-bottom: 1px solid #1a1a1a;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.nav-logo h2 {
    margin: 0;
    color: #00ff88;
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff88;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: #00ff88;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.2s;
}

/* Page Header */
.page-header {
    padding: 120px 0 80px;
    text-align: center;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.page-header p {
    font-size: 1.25rem;
    color: #b0b0b0;
}

/* Scroll Animation Classes */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
section {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem 0;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #e0e0e0;
}

.section-header p {
    font-size: 1.125rem;
    color: #b0b0b0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Cards */
.card {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid #2a2a2a;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.1);
    border-color: #00ff88;
}

/* Footer */
.footer {
    background: #0a0a0a;
    color: #e0e0e0;
    padding: 4rem 0 2rem;
    border-top: 1px solid #1a1a1a;
    overflow-x: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #e0e0e0;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: #00ff88;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-links a:hover {
    background: #00ff88;
    color: #0a0a0a;
    border-color: #00ff88;
}

.footer-bottom {
    border-top: 1px solid #1a1a1a;
    padding-top: 2rem;
    text-align: center;
    color: #888;
}

.footer-bottom a {
    color: #00ff88;
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-bottom a:hover {
    color: #00cc6f;
    text-decoration: underline;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0;
        width: 100vw;
        max-width: 100vw;
    }
    
    .nav-container {
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .nav-menu {
        position: fixed;
        top: 61px;
        left: -100%;
        width: 100%;
        height: calc(100vh);
        background: #0a0a0a;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.2s ease;
        box-sizing: border-box;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-content {
        text-align: center;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-section ul {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    section {
        padding-left: 0;
        padding-right: 0;
    }

    .page-header h1 {
        font-size: 2.5rem;
        word-wrap: break-word;
    }

    .section-header h2 {
        font-size: 2rem;
        word-wrap: break-word;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.875rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
        white-space: normal;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Loading Screen */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    position: relative;
}

.loader-logo {
    font-size: 3rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 2rem;
    letter-spacing: 0.1em;
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5),
                     0 0 40px rgba(0, 255, 136, 0.3),
                     0 0 60px rgba(0, 255, 136, 0.2);
    }
    50% {
        text-shadow: 0 0 30px rgba(0, 255, 136, 0.8),
                     0 0 60px rgba(0, 255, 136, 0.5),
                     0 0 90px rgba(0, 255, 136, 0.3);
    }
}

.loader-spinner {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-top-color: #00ff88;
    border-radius: 50%;
    animation: spinRotate 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.spinner-ring:nth-child(2) {
    border-top-color: transparent;
    border-right-color: #00ff88;
    animation-delay: -0.375s;
}

.spinner-ring:nth-child(3) {
    border-top-color: transparent;
    border-bottom-color: #00ff88;
    animation-delay: -0.75s;
}

.spinner-ring:nth-child(4) {
    border-top-color: transparent;
    border-left-color: #00ff88;
    animation-delay: -1.125s;
}

@keyframes spinRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.loader-text {
    margin-top: 2rem;
    color: #b0b0b0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    animation: textPulse 1.5s ease-in-out infinite;
}

@keyframes textPulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.loader-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.loader-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ff88;
    border-radius: 50%;
    animation: particleFloat 3s ease-in-out infinite;
    opacity: 0;
}

.loader-particle:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.loader-particle:nth-child(2) {
    left: 40%;
    animation-delay: 0.6s;
}

.loader-particle:nth-child(3) {
    left: 60%;
    animation-delay: 1.2s;
}

.loader-particle:nth-child(4) {
    left: 80%;
    animation-delay: 1.8s;
}

.loader-particle:nth-child(5) {
    left: 30%;
    animation-delay: 2.4s;
}

.loader-particle:nth-child(6) {
    left: 70%;
    animation-delay: 3s;
}

@keyframes particleFloat {
    0% {
        bottom: 0;
        opacity: 0;
    }
    25% {
        opacity: 1;
    }
    75% {
        opacity: 1;
    }
    100% {
        bottom: 100%;
        opacity: 0;
    }
}

/* Loading Progress Bar */
.loader-progress {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 3px;
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ff88, #00cc6f);
    border-radius: 10px;
    animation: progressLoad 2s ease-in-out forwards;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

@keyframes progressLoad {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive Loading Screen */
@media (max-width: 768px) {
    .loader-logo {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .loader-spinner {
        width: 60px;
        height: 60px;
    }
    
    .loader-progress {
        width: 250px;
        bottom: 30px;
    }
}

@media (max-width: 480px) {
    .loader-logo {
        font-size: 1.5rem;
    }
    
    .loader-text {
        font-size: 0.875rem;
    }
    
    .loader-progress {
        width: 200px;
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
button:focus,
input:focus,
select:focus,
textarea:focus,
a:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .btn-primary {
        background: #000;
        color: #fff;
    }
    
    .btn-secondary {
        border-color: #000;
        color: #000;
    }
    
    .btn-secondary:hover {
        background: #000;
        color: #fff;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

