@import "social-link.css";

:root {
    --primary-color: #0c86f0;
    --secondary-color: #7a19ff;
    --accent-color: #00e5ff;
    --dark-color: #0a0e17;
    --darker-color: #060a12;
    --light-color: #e0e0e0;
    --text-color: #f0f0f0;
    --text-secondary: #a0a0a0;
    --success-color: #00c853;
    --warning-color: #ffc107;
    --grid-gap: 20px;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: default;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: var(--darker-color);
}

body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

body::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s, border-color 0.3s;
    display: none;
}

.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: none;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    border-color: var(--primary-color);
    mix-blend-mode: difference;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background-color: rgba(6, 10, 18, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.logo-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0%;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    transition: width 0.4s ease;
}

.logo:hover .logo-text::after {
    width: 100%;
}

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

.nav-item {
    margin-left: 30px;
    position: relative;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    position: relative;
}

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

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

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--darker-color);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    padding: 10px 0;
    border-top: 2px solid var(--accent-color);
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    list-style: none;
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
    transform: translateX(5px);
}

.language-selector {
    display: flex;
    align-items: center;
    margin-left: 30px;
    position: relative;
    cursor: pointer;
    z-index: 101;
}

.current-lang {
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 5px 10px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.05);
}

.current-lang i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 150px;
    background-color: var(--darker-color);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    padding: 10px 0;
    z-index: 100;
    margin-top: 5px;
}

.language-selector:hover .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-selector:hover .current-lang i {
    transform: rotate(180deg);
}

.lang-option {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lang-option:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent-color);
}

.lang-flag {
    width: 20px;
    height: 15px;
    margin-right: 8px;
    object-fit: cover;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1001;
}

/* Page Header */
.page-header {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: url('../assets/images/news-header.jpg') center/cover no-repeat;*/
    z-index: 0;
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(6, 10, 18, 0.8), rgba(10, 14, 23, 0.95));
    z-index: 1;
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.2s;
}

.page-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.4s;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.6s;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.breadcrumbs li a {
    color: var(--text-color);
    transition: all 0.3s ease;
}

.breadcrumbs li a:hover {
    color: var(--accent-color);
}

.breadcrumbs li:after {
    content: '/';
    margin-left: 8px;
    color: var(--text-secondary);
}

.breadcrumbs li:last-child:after {
    display: none;
}

/* News Section */
.section {
    padding: 100px 0;
    position: relative;
}

.section-bg-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    opacity: 0.5;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    position: relative;
    z-index: 1;
}

.news-card {
    background-color: var(--darker-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(6, 10, 18, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.news-card:hover .news-image::after {
    opacity: 1;
}

.news-content {
    padding: 25px;
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-weight: 500;
    position: relative;
    padding-left: 20px;
}

.news-date::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 2px;
    background: var(--accent-color);
}

.news-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.news-card:hover .news-title {
    color: var(--accent-color);
}

.news-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    padding-bottom: 2px;
    margin-top: auto;
}

.btn-text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.btn-text:hover::after {
    width: 100%;
}

.btn-text i {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-text:hover i {
    transform: translateX(5px);
}

/* News Categories */
.news-categories {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.category-btn {
    padding: 8px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
    transform: translateY(-3px);
}

.category-btn:hover, .category-btn.active {
    background-color: var(--accent-color);
    color: var(--darker-color);
    /*transform: translateY(-3px);*/
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
    gap: 10px;
}

.pagination-item {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transition: all 0.3s ease;
    cursor: pointer;
    font-weight: 500;
}

.pagination-item:hover, .pagination-item.active {
    background-color: var(--accent-color);
    color: var(--darker-color);
    transform: translateY(-3px);
}

.pagination-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-item.disabled:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    transform: none;
}

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-box {
    width: 100%;
    padding: 15px 20px;
    padding-right: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-box:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.07);
}

.search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    color: var(--accent-color);
}

.hidden {
    display: none;
}

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

/* Footer */
.footer {
    background-color: var(--darker-color);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.footer-widget h3 {
    font-size: 1.3rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 15px;
}

.footer-links a:before {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    transition: transform 0.3s ease;
}

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

.footer-links a:hover:before {
    transform: translateX(3px);
    color: var(--accent-color);
}

.footer-about p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-contact li {
    color: var(--text-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    transition: all 0.3s ease;
}

.footer-contact li:hover {
    transform: translateX(5px);
}

.footer-contact li i {
    margin-right: 10px;
    color: var(--accent-color);
    margin-top: 5px;
    transition: all 0.3s ease;
}

.footer-contact li:hover i {
    transform: scale(1.2);
    color: var(--primary-color);
}

.footer-subscribe p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.subscribe-form {
    display: flex;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.subscribe-input {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px 0 0 4px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.subscribe-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-color);
}

.subscribe-btn {
    background: var(--accent-color);
    color: var(--darker-color);
    border: none;
    padding: 0 15px;
    font-weight: 600;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.subscribe-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.7s ease;
}

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

.subscribe-btn:hover {
    background: var(--primary-color);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.footer-copyright {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-copyright a {
    color: var(--accent-color);
    font-weight: 500;
    position: relative;
    display: inline-block;
    padding-bottom: 2px;
}

.footer-copyright a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-copyright a:hover:after {
    width: 100%;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.footer-legal a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-color);
}

.footer-legal a:hover:after {
    width: 100%;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--darker-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    font-size: 1.2rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .news-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .page-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .page-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 70px 0;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--darker-color);
        flex-direction: column;
        padding: 20px 0;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-item {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    .nav-link {
        display: block;
        padding: 15px 20px;
    }

    .nav-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.2);
        display: none;
        padding: 0;
        border-top: none;
    }

    .dropdown-toggle.active + .nav-dropdown {
        display: block;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
    }

    .footer-legal {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }

    .news-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .section {
        padding: 50px 0;
    }
}

@media (max-width: 576px) {
    .page-header {
        min-height: 250px;
    }

    .page-title {
        font-size: 1.8rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .news-categories {
        gap: 8px;
    }

    .category-btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .pagination-item {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .search-box {
        padding: 12px 15px 12px 15px;
        padding-right: 40px;
        font-size: 0.9rem;
    }
}

/* Hide cursor on touch devices */
@media (hover: none) {
    .cursor, .cursor-dot {
        display: none !important;
    }
}