@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Orbitron:wght@400;500;600;700;900&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --accent-color: #3b82f6;
    --dark-color: #0f172a;
    --light-color: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #f1f5f9;
    --border-color: #cbd5e1;
    --shadow-color: rgba(37, 99, 235, 0.2);
    --hover-color: #1d4ed8;
    --gradient-start: #3b82f6;
    --gradient-end: #1e40af;
    --tech-cyan: #06b6d4;
    --tech-purple: #8b5cf6;
}

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

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--light-color) 0%, #e2e8f0 100%);
    min-height: 100vh;
}

.treknoly-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.treknoly-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 1rem 0;
    box-shadow: 0 4px 20px var(--shadow-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.treknoly-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.treknoly-logo {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
    letter-spacing: 1px;
}

.treknoly-nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.treknoly-nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1.2rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.treknoly-nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.treknoly-nav-links a:hover::before {
    left: 100%;
}

.treknoly-nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Navigation Styles */
.treknoly-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
}

.treknoly-mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

.treknoly-mobile-toggle.active {
    transform: rotate(90deg);
}

/* Hamburger lines for mobile toggle */
.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
}

.treknoly-mobile-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.treknoly-mobile-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.treknoly-mobile-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.treknoly-hero {
    text-align: center;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 64, 175, 0.1) 100%);
    position: relative;
    overflow: hidden;
}

.treknoly-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.treknoly-hero h1 {
    font-family: 'Orbitron', monospace;
    font-size: 3.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 30px rgba(37, 99, 235, 0.3);
    position: relative;
    z-index: 2;
}

.treknoly-hero p {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.treknoly-section {
    padding: 4rem 0;
}

.treknoly-section h2 {
    font-family: 'Orbitron', monospace;
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.treknoly-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: var(--text-light);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.treknoly-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.treknoly-btn:hover::before {
    left: 100%;
}

.treknoly-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.4);
    color: var(--text-light);
}

.treknoly-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.treknoly-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(37, 99, 235, 0.02), transparent);
    transform: rotate(0deg);
    transition: transform 0.6s ease;
}

.treknoly-card:hover::before {
    transform: rotate(45deg);
}

.treknoly-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.2);
    border-color: var(--accent-color);
}

.treknoly-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.treknoly-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.treknoly-card p {
    color: #64748b;
    line-height: 1.6;
}

.treknoly-game-selector {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.treknoly-game-btn {
    background: linear-gradient(135deg, var(--tech-cyan) 0%, var(--tech-purple) 100%);
    color: var(--text-light);
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.treknoly-game-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 5px 20px rgba(37, 99, 235, 0.4);
}

.treknoly-game-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.treknoly-game-frame {
    width: 100%;
    height: 650px;
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    background: white;
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.2);
    transition: all 0.3s ease;
}

.treknoly-game-frame:hover {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.3);
    transform: translateY(-3px);
}

.treknoly-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    color: #92400e;
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
    font-weight: 500;
}

.treknoly-alert i {
    color: #f59e0b;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.treknoly-footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, var(--secondary-color) 100%);
    color: var(--text-light);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}

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

.treknoly-footer h5 {
    font-family: 'Orbitron', monospace;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--tech-cyan);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.treknoly-footer ul {
    list-style: none;
    padding: 0;
}

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

.treknoly-footer ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0;
    display: block;
}

.treknoly-footer ul li a:hover {
    color: var(--tech-cyan);
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.treknoly-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: #94a3b8;
}

/* Age Verification Modal */
.age-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
}

.age-modal-content {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    margin: 10% auto;
    padding: 3rem;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 25px 80px rgba(37, 99, 235, 0.3);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.age-modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

.age-modal h2 {
    font-family: 'Orbitron', monospace;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    position: relative;
    z-index: 2;
}

.age-modal p {
    color: var(--text-dark);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

.age-modal-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.age-modal-buttons button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-confirm {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.btn-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

.btn-exit {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-exit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .treknoly-nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        position: relative;
    }
    
    .treknoly-mobile-toggle {
        display: flex;
    }
    
    .treknoly-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        flex-direction: column;
        gap: 0;
        padding: 1.5rem 0;
        box-shadow: 0 8px 30px rgba(37, 99, 235, 0.3);
        border-radius: 0 0 20px 20px;
        z-index: 1000;
    }
    
    .treknoly-nav-links.active {
        display: flex;
    }
    
    .treknoly-nav-links li {
        width: 100%;
        text-align: center;
    }
    
    .treknoly-nav-links a {
        display: block;
        padding: 1rem;
        width: 100%;
        border-radius: 0;
        transition: all 0.3s ease;
    }
    
    .treknoly-nav-links a:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: none;
    }
    
    .treknoly-hero h1 {
        font-size: 2.5rem;
    }
    
    .treknoly-hero p {
        font-size: 1.2rem;
    }
    
    .treknoly-game-frame {
        height: 450px;
    }
    
    .treknoly-game-selector {
        flex-direction: column;
        align-items: center;
    }
    
    .treknoly-game-btn {
        width: 250px;
    }
}

@media (max-width: 480px) {
    .treknoly-container {
        padding: 0 15px;
    }
    
    .treknoly-hero {
        padding: 3rem 0;
    }
    
    .treknoly-hero h1 {
        font-size: 2rem;
    }
    
    .treknoly-section {
        padding: 2.5rem 0;
    }
    
    .treknoly-section h2 {
        font-size: 2.2rem;
    }
    
    .treknoly-card {
        padding: 2rem;
    }
    
    .treknoly-game-frame {
        height: 400px;
    }
    
    .age-modal-content {
        margin: 20% auto;
        padding: 2rem;
    }
    
    .age-modal-buttons {
        flex-direction: column;
    }
    
    .age-modal-buttons button {
        width: 100%;
    }
}

/* Form Styles */
.treknoly-form {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.treknoly-form-group {
    margin-bottom: 1.5rem;
}

.treknoly-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.treknoly-form-group input,
.treknoly-form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.treknoly-form-group input:focus,
.treknoly-form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

.treknoly-form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Content Styles */
.treknoly-content {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.1);
    margin: 2rem 0;
    line-height: 1.8;
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.treknoly-content h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.treknoly-content h4 {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-dark);
    margin: 1.5rem 0 1rem;
}

.treknoly-content ul {
    margin: 1rem 0 1rem 1.5rem;
}

.treknoly-content ul li {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}