/* ======== Base Styles ======== */
:root {
    /* Color palette */
    --primary-color: #0EB3A2;
    --secondary-color: #1B2044;
    --accent-color-1: #FF6B6B;
    --accent-color-2: #7971EA;
    --background-color: #FCFCFE;
    --dark-background: #121621;
    --text-color: #1A1E28;
    --text-secondary: #64676F;
    --text-light: #F7F7F9;
    
    /* Typography */
    --title-font: 'Playfair Display', serif;
    --body-font: 'Montserrat', sans-serif;
    
    /* Animation speeds */
    --transition-fast: 0.2s;
    --transition-medium: 0.4s;
    --transition-slow: 0.8s;
}

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

html {
    font-size: 62.5%; /* 10px for easy rem calculations */
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
    width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-fast) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
    background: none;
}

button {
    cursor: pointer;
}

/* ======== Noise Overlay ======== */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* ======== Header & Navigation ======== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    z-index: 100;
    transition: all var(--transition-medium) ease;
    mix-blend-mode: difference;
}

.logo-container a.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.scrolled-header {
    background-color: rgba(18, 22, 33, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1.2rem 5%;
    mix-blend-mode: normal;
}

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

#logo-svg {
    width: 5rem;
    height: 5rem;
}

.logo-circle {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 2;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    animation: draw-circle 2s ease forwards;
}

.logo-path {
    fill: none;
    stroke: var(--text-light);
    stroke-width: 2;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw-path 2s ease forwards 0.5s;
}

@keyframes draw-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes draw-path {
    to {
        stroke-dashoffset: 0;
    }
}

.company-name {
    font-family: var(--title-font);
    font-size: 2rem;
    font-weight: 700;
    margin-left: 1.5rem;
    color: var(--text-light);
}

.nav-links {
    display: flex;
    gap: 4rem;
}

.nav-links a {
    color: var(--text-light);
    font-size: 1.6rem;
    font-weight: 600;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-medium) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-links .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--dark-background);
    padding: 1rem 0;
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity var(--transition-medium) ease, transform var(--transition-medium) ease, visibility var(--transition-medium) ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.dropdown-content {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-content li a {
    display: block;
    padding: 1rem 2rem;
    color: var(--text-light);
    white-space: nowrap;
    transition: background-color var(--transition-fast) ease, color var(--transition-fast) ease;
}

.dropdown-content li a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.dropdown-content li a::after {
    display: none;
}

.nav-links > li {
    position: relative;
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
}

.hamburger span {
    width: 100%;
    height: 2px;
    background-color: var(--text-light);
    transition: all var(--transition-fast) ease;
}

header.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* ======== Hero Section ======== */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--secondary-color), var(--dark-background));
    overflow: hidden;
}

.hero-content {
    text-align: center;
    color: var(--text-light);
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
}

h1.glitch {
    font-family: var(--title-font);
    font-size: clamp(5rem, 15vw, 12rem);
    font-weight: 800;
    letter-spacing: 0.5rem;
    position: relative;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-light);
}

h1.glitch::before,
h1.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

h1.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--accent-color-1);
    animation: glitch-1 2s infinite linear alternate-reverse;
}

h1.glitch::after {
    left: -2px;
    text-shadow: 2px 0 var(--accent-color-2);
    animation: glitch-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0%, 30%, 50%, 70%, 100% { opacity: 0; }
    40%, 80% { opacity: 1; }
}

@keyframes glitch-2 {
    0%, 20%, 45%, 65%, 100% { opacity: 0; }
    35%, 55%, 85% { opacity: 1; }
}

.subtitle {
    font-size: 2.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-light);
    z-index: 2;
}

.scroll-indicator span {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 20px;
    height: 40px;
    border: 2px solid var(--text-light);
    border-radius: 10px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background-color: var(--text-light);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scroll-animate 2s infinite;
}

@keyframes scroll-animate {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 20px);
    }
}

.geometric-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    border-radius: 41% 59% 51% 49% / 32% 45% 55% 68%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 250px;
    height: 250px;
    border-radius: 59% 41% 49% 51% / 65% 37% 63% 35%;
    top: 60%;
    left: 20%;
    animation-delay: -3s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
    top: 20%;
    right: 15%;
    animation-delay: -6s;
}

.shape-4 {
    width: 200px;
    height: 200px;
    border-radius: 46% 54% 38% 62% / 31% 45% 55% 69%;
    bottom: 15%;
    right: 25%;
    animation-delay: -9s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(-15px, 20px) rotate(5deg);
    }
    50% {
        transform: translate(-20px, -15px) rotate(-3deg);
    }
    75% {
        transform: translate(15px, -25px) rotate(5deg);
    }
}

/* ======== Featured Article Section ======== */
.featured-article {
    display: grid;
    grid-template-columns: 6fr 4fr;
    min-height: 600px;
    margin: 10rem 5%;
}

.article-image-container {
    position: relative;
    overflow: hidden;
}

.article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform var(--transition-slow) ease;
}

.featured-article:hover .article-image {
    transform: scale(1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0), rgba(27, 32, 68, 0.8));
    z-index: 1;
}

.tag-container {
    position: absolute;
    top: 3rem;
    left: 3rem;
    display: flex;
    gap: 1rem;
    z-index: 2;
}

.tag {
    padding: 0.8rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    position: relative;
}

.article-title {
    font-family: var(--title-font);
    font-size: 3.6rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.article-excerpt {
    font-size: 1.8rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.article-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    font-size: 1.4rem;
    opacity: 0.6;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast) ease;
}

.arrow-indicator {
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
    position: relative;
    transition: all var(--transition-medium) ease;
}

.arrow-indicator::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.read-more:hover {
    color: var(--primary-color);
}

.read-more:hover .arrow-indicator {
    width: 80px;
}

/* ======== Articles Grid Section ======== */
.articles-grid {
    margin: 10rem 5%;
}

.grid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
}

.grid-header h2 {
    font-family: var(--title-font);
    font-size: 4.2rem;
    font-weight: 700;
}

.filter-container {
    display: flex;
    gap: 1.5rem;
}

.filter-button {
    padding: 1rem 2rem;
    background-color: transparent;
    border: 1px solid var(--text-secondary);
    color: var(--text-secondary);
    font-size: 1.4rem;
    font-weight: 600;
    transition: all var(--transition-fast) ease;
}

.filter-button.active,
.filter-button:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-light);
}

.articles-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.article-card {
    background-color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-medium) ease;
    cursor: pointer;
}

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

.article-card-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium) ease;
}

.article-card:hover .article-card-image img {
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.6));
    opacity: 0;
    transition: opacity var(--transition-medium) ease;
}

.article-card:hover .card-overlay {
    opacity: 1;
}

.article-card-content {
    padding: 3rem;
}

.article-category {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.article-category::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.article-card h3 {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    transition: color var(--transition-fast) ease;
}

.article-card:hover h3 {
    color: var(--primary-color);
}

.article-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    color: var(--text-secondary);
}

.load-more-container {
    display: flex;
    justify-content: center;
    margin-top: 6rem;
}

.load-more-button {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 3rem;
    background-color: var(--secondary-color);
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all var(--transition-fast) ease;
    position: relative;
    overflow: hidden;
}

.load-more-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: var(--primary-color);
    transition: width var(--transition-medium) ease;
    z-index: 0;
}

.load-more-button:hover::before {
    width: 100%;
}

.load-more-button span {
    position: relative;
    z-index: 1;
}

.button-indicator {
    position: relative;
    width: 20px;
    height: 20px;
    z-index: 1;
}

.button-indicator::before,
.button-indicator::after {
    content: '';
    position: absolute;
    background-color: var(--text-light);
    transition: all var(--transition-fast) ease;
}

.button-indicator::before {
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    transform: translateY(-50%);
}

.button-indicator::after {
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    transform: translateX(-50%);
}

.load-more-button:hover .button-indicator::after {
    transform: translateX(-50%) rotate(90deg);
}

/* ======== Newsletter Section ======== */
.newsletter-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    background-color: var(--dark-background);
    margin: 10rem 0;
}

.newsletter-content {
    padding: 8rem;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.newsletter-content h2 {
    font-family: var(--title-font);
    font-size: 4.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.newsletter-content p {
    font-size: 1.8rem;
    opacity: 0.8;
    margin-bottom: 4rem;
    max-width: 500px;
}

.newsletter-form {
    display: flex;
    gap: 2rem;
    width: 100%;
}

.input-container {
    flex-grow: 1;
    position: relative;
}

.input-container input {
    width: 100%;
    padding: 1.5rem 0;
    color: var(--text-light);
    font-size: 1.6rem;
    background-color: transparent;
}

.input-container label {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.6rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--transition-fast) ease;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 1.2rem;
    color: var(--primary-color);
}

.input-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-secondary);
}

.input-line::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-medium) ease;
}

.input-container input:focus ~ .input-line::after {
    width: 100%;
}

.submit-button {
    padding: 0 3rem;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all var(--transition-fast) ease;
}

.submit-button:hover {
    background-color: var(--accent-color-2);
}

.newsletter-graphic {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

.graphic-element {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.graphic-element::before,
.graphic-element::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    animation: pulse 4s infinite ease-in-out;
}

.graphic-element::before {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    animation-delay: -1s;
}

.graphic-element::after {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 70%);
    animation-delay: -2s;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* ======== Footer ======== */
footer {
    background-color: var(--secondary-color);
    color: var(--text-light);
    padding: 8rem 5% 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 5rem;
    margin-bottom: 6rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-svg {
    width: 8rem;
    height: 8rem;
    margin-bottom: 2rem;
}

.footer-company-name {
    font-family: var(--title-font);
    font-size: 2.8rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.footer-section h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    position: relative;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-section ul {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section a,
.footer-section li {
    color: var(--text-secondary);
    transition: color var(--transition-fast) ease;
}

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

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast) ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.4rem;
}

.copyright {
    color: var(--text-secondary);
}

.footer-secondary-links {
    display: flex;
    gap: 3rem;
}

.footer-secondary-links a {
    color: var(--text-secondary);
    transition: color var(--transition-fast) ease;
}

.footer-secondary-links a:hover {
    color: var(--primary-color);
}

/* ======== Media Queries ======== */
@media (max-width: 1200px) {
    .articles-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .featured-article {
        grid-template-columns: 1fr;
    }
    
    .article-image-container {
        height: 400px;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 56.25%; /* 9px */
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--secondary-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4rem;
        z-index: 90;
        opacity: 0;
        transition: all var(--transition-medium) ease;
    }
    
    .nav-links.active {
        display: flex;
        opacity: 1;
    }
    
    .menu-toggle {
        display: block;
        z-index: 100;
    }
    
    .menu-toggle.active .hamburger span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .menu-toggle.active .hamburger span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active .hamburger span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .newsletter-section,
    .newsletter-form {
        grid-template-columns: 1fr;
    }
    
    .newsletter-graphic {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .grid-header {
        flex-direction: column;
        gap: 3rem;
    }
    
    .filter-container {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .articles-container {
        grid-template-columns: 1fr;
    }
    
    .article-content {
        padding: 4rem 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
    }
    
    .footer-secondary-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    html {
        font-size: 50%; /* 8px */
    }
    
    .article-content {
        padding: 3rem 2rem;
    }
    
    .newsletter-content {
        padding: 6rem 3rem;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}