/* Global and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.skip-to-main {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-to-main:focus {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    padding: 1em;
    background: white;
    color: black;
    z-index: 100001;
}

:root {
    --primary: #00d4ff;
    --secondary: #ff006e;
    --accent: #ffbe0b;
    --dark: #0a0e27;
    --darker: #050812;
    --light: #ffffff;
    --text: #e0e0e0;
    --text-muted: rgba(224, 224, 224, 0.8);
    --header-bg: rgba(5, 8, 18, 0.95);
    --search-bg: linear-gradient(180deg, rgba(5, 8, 18, 0.98) 0%, rgba(26, 15, 46, 0.98) 100%);
    --hero-bg: linear-gradient(180deg, var(--darker) 0%, #1a0f2e 100%);
    --gradient: linear-gradient(135deg, #00d4ff 0%, #ff006e 50%, #ffbe0b 100%);
}

[data-theme="light"] {
    --primary: #007bff;
    --secondary: #dc3545;
    --accent: #ffc107;
    --dark: #f8f9fa;
    --darker: #e9ecef;
    --light: #212529;
    --text: #212529;
    --text-muted: #555555;
    --header-bg: rgba(255, 255, 255, 0.95);
    --search-bg: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    --hero-bg: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--darker);
    color: var(--text);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--darker);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(0, 212, 255, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    margin-top: 20px;
    font-size: 1.2rem;
    color: var(--primary);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(20px);
    padding: 1rem 5%;
    z-index: 1000;
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.15);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInLeft 0.8s ease-out;
}

.logo {
    width: 50px;
    height: 50px;
    animation: rotate3d 10s linear infinite;
}

@keyframes rotate3d {
    0% {
        transform: rotateY(0deg) rotateX(0deg);
    }

    100% {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    position: relative;
    font-size: 1rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--text);
    margin: 5px;
    transition: all 0.3s ease;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.search-btn-wrapper {
    margin-left: 1rem;
}

#search-btn {
    background: transparent;
    border: none;
    color: var(--light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* CSS_PART_2_MARKER */

/* Search Modal */
#search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    display: none;
    align-items: center;
    justify-content: center;
}

.search-modal-content {
    background: var(--dark);
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.close-search-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--light);
    cursor: pointer;
}

#search-modal-input {
    width: 100%;
    padding: 1rem;
    border-radius: 5px;
    border: 2px solid var(--primary);
    background: var(--darker);
    color: var(--light);
    font-size: 1.2rem;
    margin-top: 1rem;
}

#search-modal-results {
    margin-top: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.resource-type-badge {
    background: var(--secondary);
    color: var(--darker);
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-size: 0.8rem;
    margin-left: 0.5rem;
}

.highlight {
    animation: highlight-animation 2s ease-in-out;
}

@keyframes highlight-animation {
    0% {
        background-color: rgba(255, 190, 11, 0.5);
    }

    100% {
        background-color: transparent;
    }
}

/* Page Container */
.page {
    display: none;
    min-height: 100vh;
    animation: fadeIn 0.8s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--hero-bg);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 80%, rgba(255, 0, 110, 0.15) 0%, transparent 50%);
    animation: shift 20s ease-in-out infinite;
}

@keyframes shift {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(30px);
    }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(255, 0, 110, 0.1));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float-shapes 20s infinite ease-in-out;
    box-shadow: 0 0 60px rgba(0, 212, 255, 0.3);
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 80px rgba(0, 212, 255, 0.4);
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
    box-shadow: 0 0 60px rgba(255, 0, 110, 0.3);
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 50%;
    animation-delay: 4s;
    box-shadow: 0 0 70px rgba(255, 190, 11, 0.2);
}

@keyframes float-shapes {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
        border-radius: 30% 70% 70% 30%;
    }

    33% {
        transform: translate(30px, -50px) rotate(120deg);
        border-radius: 70% 30% 30% 70%;
    }

    66% {
        transform: translate(-20px, 20px) rotate(240deg);
        border-radius: 50%;
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    max-width: 1200px;
    padding: 2rem;
    gap: 2rem;
}

.hero-text {
    text-align: left;
    animation: slideInUp 1s ease-out;
}

.hero-image {
    animation: slideInRight 1s ease-out;
}

.hero-image img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
    font-weight: 900;
}

.typewriter {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2rem;
    min-height: 50px;
    font-weight: 600;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    animation: slideInUp 1s ease-out 0.4s both;
    flex-wrap: wrap;
}

.btn {
    padding: 1.2rem 3rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--darker);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 3px solid var(--primary);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--darker);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.6);
}

/* Search & Filter Section */
.search-section {
    padding: 3rem 5%;
    background: var(--search-bg);
    position: sticky;
    top: 80px;
    z-index: 999;
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.1);
    border-bottom: 2px solid rgba(0, 212, 255, 0.2);
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
}

.search-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.3);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    border: 2px solid var(--primary);
    border-top: none;
    border-radius: 0 0 20px 20px;
    z-index: 1000;
    max-height: 300px;
    display: none;
}

.suggestion-item {
    padding: 1rem 1.5rem;
    color: var(--text);
    cursor: pointer;
    transition: background 0.3s;
}

.suggestion-item:hover {
    background: rgba(0, 212, 255, 0.1);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: slideInUp 0.8s ease-out 0.1s both;
}

.filter-dropdown select {
    padding: 0.9rem 2rem;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    appearance: none;
}

.filter-dropdown select option {
    background-color: var(--darker);
    color: #e0e0e0;
}

[data-theme="light"] .filter-dropdown select option {
    background-color: #ffffff;
    color: #212529;
}

/* CSS_PART_3_MARKER */

/* Resources Section */
.resources-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 3.5rem;
    margin-bottom: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s ease-out;
    font-weight: 900;
    letter-spacing: 2px;
}

.resources-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.resource-item {
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    animation: slideInUp 0.6s ease-out both;
    position: relative;
    overflow: hidden;
}

.resource-item:hover {
    background: rgba(0, 212, 255, 0.15);
    border-color: var(--secondary);
    transform: translateX(10px) scale(1.02);
    box-shadow: 0 15px 60px rgba(0, 212, 255, 0.3);
}

.resource-info {
    flex: 1;
    z-index: 1;
}

.resource-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.resource-icon {
    font-size: 3rem;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.resource-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--light);
    letter-spacing: 1px;
}

.resource-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.resource-meta {
    display: flex;
    gap: 1.5rem;
}

.resource-badge {
    padding: 0.5rem 1.2rem;
    background: rgba(0, 212, 255, 0.2);
    border: 2px solid var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 700;
    transition: all 0.3s;
}

.resource-badge:hover {
    background: var(--primary);
    color: var(--darker);
    transform: scale(1.05);
}

.resource-actions {
    display: flex;
    gap: 1.5rem;
    z-index: 1;
}

.list-btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    white-space: nowrap;
}

.btn-preview {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-preview:hover {
    background: var(--primary);
    color: var(--darker);
}

.btn-download-item {
    background: var(--gradient);
    color: var(--darker);
}

.btn-share {
    background: rgba(255, 190, 11, 0.2);
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-share:hover {
    background: var(--accent);
    color: var(--darker);
}

.btn-copy {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-copy:hover {
    background: var(--primary);
    color: var(--darker);
}

/* Contact & Footer */
.contact-section {
    padding: 5rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 15px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.contact-item:hover {
    background: rgba(0, 212, 255, 0.15);
    transform: translateX(10px);
}

.contact-icon {
    font-size: 2.5rem;
    color: var(--primary);
}

.contact-details h3 {
    color: var(--light);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.contact-details p {
    color: var(--text-muted);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light);
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 2px solid var(--primary);
    border-radius: 15px;
    color: var(--light);
    font-family: inherit;
    font-size: 1rem;
}

.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient);
    border: none;
    border-radius: 15px;
    color: var(--darker);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
}

footer {
    background: var(--search-bg);
    padding: 4rem 5% 2rem;
    border-top: 2px solid rgba(0, 212, 255, 0.2);
    margin-top: 5rem;
}

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

.footer-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 900;
}

.footer-section p,
.footer-section a {
    color: var(--text-muted);
    text-decoration: none;
    line-height: 1.8;
    transition: all 0.3s;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 2px solid rgba(0, 212, 255, 0.1);
    color: var(--text-muted);
    font-weight: 600;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: var(--dark);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links.nav-active {
        transform: translateX(0%);
    }

    .hamburger {
        display: block;
    }

    .resource-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .resource-actions {
        width: 100%;
        flex-direction: column;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .filters {
        display: none;
    }
}