/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0066ff;
    --primary-dark: #004dd9;
    --secondary-color: #ff4466;
    --accent-color: #ffaa00;
    --success-color: #00cc66;
    --dark-bg: #0a0e27;
    --dark-bg-secondary: #151d3b;
    --light-text: #f0f4ff;
    --gray-text: #a0aac0;
    --border-color: rgba(100, 150, 200, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Roboto', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1a38 100%);
    color: var(--light-text);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(0, 100, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 68, 102, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==================== HEADER & NAVIGATION ==================== */
header {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 25, 56, 0.95) 100%);
    backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 50%, #ff4466 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

nav a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
    width: 100%;
}

nav a:hover,
nav a.active {
    color: var(--accent-color);
}

.admin-link {
    background: linear-gradient(135deg, #0066ff 0%, #ff4466 100%);
    color: white !important;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 102, 255, 0.3);
}

.admin-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 102, 255, 0.5);
}

/* Hamburger Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 6px;
    padding: 8px;
    z-index: 101;
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: linear-gradient(135deg, #0066ff, #00ccff);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu {
    display: block !important;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 5rem 2rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.08) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 40%, #ffaa00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--gray-text);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, #0066ff 0%, #0052cc 100%);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0, 102, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background: rgba(255, 170, 0, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 170, 0, 0.2);
}

/* ==================== VIDEO SECTION ==================== */
.video-section {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 102, 255, 0.03) 100%);
    position: relative;
    z-index: 1;
}

.video-container-wrapper {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 4rem;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.video-player {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 102, 255, 0.3);
    aspect-ratio: 16 / 9;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.video-player:hover {
    box-shadow: 0 40px 100px rgba(0, 102, 255, 0.5);
    transform: translateY(-5px);
}

.video-player video {
    width: 100%;
    height: 100%;
    display: block;
}

/* ==================== CONTENT SECTIONS ==================== */
.content-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.content-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.feature-card {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.08) 0%, rgba(255, 68, 102, 0.05) 100%);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
    z-index: 0;
}

.feature-card:hover::before {
    top: -10%;
    right: -10%;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 102, 255, 0.5);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.2);
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.8;
    font-size: 1rem;
}

/* ==================== ABOUT SECTION ==================== */
.about-section {
    padding: 5rem 2rem;
    background: linear-gradient(180deg, rgba(0, 102, 255, 0.05) 0%, transparent 100%);
    position: relative;
    z-index: 1;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.15rem;
    color: var(--gray-text);
    line-height: 1.9;
    margin-bottom: 2rem;
    text-align: center;
}

/* ==================== CONTACT FORM ==================== */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.1) 0%, rgba(255, 68, 102, 0.05) 100%);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--light-text);
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    background: rgba(10, 20, 50, 0.6);
    border-radius: 10px;
    color: var(--light-text);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(160, 170, 192, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0066ff;
    background: rgba(10, 20, 50, 0.9);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.2);
}

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

.success-msg {
    color: #00cc66;
    background: rgba(0, 204, 102, 0.1);
    border: 1px solid rgba(0, 204, 102, 0.3);
    padding: 1.2rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 600;
}

/* ==================== FOOTER ==================== */
footer {
    background: linear-gradient(180deg, rgba(10, 14, 39, 0.95) 0%, rgba(5, 10, 30, 1) 100%);
    border-top: 1px solid var(--border-color);
    padding: 4rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    z-index: 1;
}

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

@media (max-width: 640px) {
    .footer-content {
        display: flex;
        gap: 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 1rem;
        margin-bottom: 1rem;
    }

    .footer-section {
        flex: 0 0 calc(100% - 20px);
        padding-right: 20px;
        scroll-snap-align: start;
    }

    .footer-content::-webkit-scrollbar {
        height: 6px;
    }

    .footer-content::-webkit-scrollbar-track {
        background: rgba(100, 150, 200, 0.1);
        border-radius: 3px;
    }

    .footer-content::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #0066ff, #00ccff);
        border-radius: 3px;
    }

    .footer-content::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(135deg, #0052cc, #0099ff);
    }
}

.footer-section h4 {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.footer-section a {
    color: var(--gray-text);
    text-decoration: none;
    display: block;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ==================== MODAL ==================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: linear-gradient(135deg, #1a1f3a 0%, #0f1a38 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

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

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #0066ff 0%, #00ccff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-header p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.error {
    display: none;
    font-size: 0.85rem;
    color: #ff4466;
    margin-top: 0.5rem;
    font-weight: 600;
}

.error.show {
    display: block;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.modal-footer .btn {
    flex: 1;
    padding: 1rem;
}

.modal-footer .btn-cancel {
    background: rgba(100, 150, 200, 0.1);
    border: 1px solid var(--border-color);
    color: var(--light-text);
}

.modal-footer .btn-cancel:hover {
    background: rgba(100, 150, 200, 0.2);
    border-color: rgba(100, 150, 200, 0.4);
}

.success-message {
    display: none;
    text-align: center;
    color: #00cc66;
    padding: 1.5rem;
    background: rgba(0, 204, 102, 0.1);
    border: 1px solid rgba(0, 204, 102, 0.3);
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.success-message.show {
    display: block;
}

/* ==================== ADMIN DASHBOARD TABLE STYLES ==================== */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8) 0%, rgba(15, 25, 56, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.admin-table th,
.admin-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.15) 0%, rgba(255, 68, 102, 0.05) 100%);
    color: #0099ff;
    font-weight: 700;
}

.admin-table tr:hover {
    background: rgba(0, 102, 255, 0.05);
}

.btn-danger {
    background: linear-gradient(135deg, #ff4466 0%, #ff1144 100%);
    padding: 8px 16px;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #ff1144 0%, #dd0033 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(255, 68, 102, 0.3);
}

.admin-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

/* ==================== MOBILE RESPONSIVE STYLES (768px and below) ==================== */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .menu-toggle {
        display: flex;
    }

    .header-container {
        padding: 0 1rem;
        gap: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-menu {
        position: fixed !important;
        top: 60px;
        left: 0;
        right: 0;
        background: linear-gradient(180deg, rgba(10, 14, 39, 0.98) 0%, rgba(15, 25, 56, 0.98) 100%);
        backdrop-filter: blur(20px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu.active {
        max-height: 500px;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0 !important;
        padding: 1rem 2rem;
        align-items: flex-start;
        width: 100%;
    }

    .nav-menu li {
        width: 100%;
        padding: 0.8rem 0;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-menu li:last-child {
        border-bottom: none;
    }

    nav a {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .admin-link {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    .video-section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.2rem;
    }

    .about-section {
        padding: 3rem 1rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .contact-form {
        padding: 2rem;
        margin: 0 1rem;
    }

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

    .form-group input,
    .form-group textarea {
        padding: 0.9rem;
        font-size: 16px;
    }

    .form-group textarea {
        min-height: 130px;
    }

    .modal {
        padding: 2rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-footer {
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }

    footer {
        padding: 3rem 1rem 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .admin-wrapper {
        flex-direction: column !important;
    }

    .sidebar {
        width: 100% !important;
        height: auto !important;
        flex-direction: row;
        overflow-x: auto;
        padding: 10px;
        gap: 5px;
        white-space: nowrap;
    }

    .sidebar a {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 15px !important;
    }

    .admin-table {
        font-size: 0.9rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 12px 10px;
    }

    .settings-box {
        padding: 15px !important;
    }

    .settings-box form {
        flex-direction: column;
    }

    .settings-box input[type="url"],
    .settings-box button {
        width: 100% !important;
    }

    .btn-danger {
        padding: 6px 12px;
        font-size: 11px;
    }
}

/* ==================== EXTRA MOBILE RESPONSIVE STYLES (480px and below) ==================== */
@media (max-width: 480px) {
    .header-container {
        padding: 0 0.75rem;
    }

    .logo {
        font-size: 1.2rem;
    }

    nav ul {
        gap: 0.25rem;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    nav a {
        font-size: 0.75rem;
        padding: 0.5rem;
    }

    .admin-link {
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .hero {
        padding: 2rem 0.75rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.9rem;
    }

    .cta-buttons {
        gap: 0.75rem;
    }

    .btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-card h3 {
        font-size: 1rem;
    }

    .contact-form {
        padding: 1.5rem;
        margin: 0 0.75rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .modal {
        width: 95% !important;
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }

    .footer-section a {
        font-size: 0.85rem;
    }

    .admin-nav {
        gap: 8px;
        flex-wrap: wrap;
    }
}
