/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ee4a62;
    --primary-hover: #d83a50;
    --secondary-color: #4a6741;
    --accent-color: #1ab69d;
    --dark-color: #333;
    --light-color: #f5f5f5;
    --text-color: #37474f;
    --border-color: rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --header-height: 70px;
    --white: white;
    --dark: #333;
    --primary: #ee4a62;
    --primary-dark: #d83a50;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background-color: var(--light-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

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

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

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

.section-heading {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.underline {
    height: 3px;
    width: 80px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--white);
    padding: 12px 20px;
    border-radius: 40px;
    box-shadow: var(--shadow);
    margin: 15px 20px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    border-radius: 25px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--dark);
}

.nav-item:hover,
.nav-item.active {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.nav-item i {
    font-size: 1rem;
}

.cta-button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(238, 74, 98, 0.4);
}

/* ===== News Ticker ===== */
.news-ticker {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 10px 0;
    overflow: hidden;
    white-space: nowrap;
    margin-top: 80px;
}

.ticker-wrap {
    width: 100%;
    padding-left: 100%;
}

.ticker-move {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 20s linear infinite;
    font-weight: 500;
}

@keyframes ticker {
    0% { transform: translate3d(100%, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* ===== Header Section ===== */
.header-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.header-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

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

/* ===== Financial Support Section ===== */
.financial-support {
    padding: 80px 0;
    background-color: var(--white);
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.support-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.institution-highlight {
    background: linear-gradient(135deg, var(--accent-color), #159a86);
    color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin: 2rem 0;
}

.institution-highlight h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin: 0;
    letter-spacing: 1px;
}

/* ===== Publishing Partners Section ===== */
.publishing-partners {
    padding: 80px 0;
    background-color: var(--light-color);
}

.partners-text {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.partner-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.partner-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.partner-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(238, 74, 98, 0.3);
}

.partner-content {
    flex: 1;
}

.partner-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.partner-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

/* Scientific.Net Logo Styles */
.scientific-net-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
}

.logo-squares {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.square {
    width: 15px;
    height: 15px;
    border-radius: 2px;
}

.square.red {
    background-color: #8B0000;
}

.logo-text-container {
    display: flex;
    flex-direction: column;
}

.scientific-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B0000;
    font-style: italic;
}

.publisher-text {
    font-size: 0.9rem;
    color: #666;
    font-weight: 400;
}

/* STM Journals Logo Styles */
.stm-logo {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--border-radius);
    border: 2px solid #e9ecef;
}

.stm-symbol {
    display: flex;
    align-items: center;
    position: relative;
    width: 60px;
    height: 40px;
}

.curved-shape {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    position: absolute;
}

.curved-shape.purple {
    background: #8A2BE2;
    top: 0;
    left: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.curved-shape.orange {
    background: #FF8C00;
    bottom: 0;
    right: 0;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.stm-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 5px;
}

.journal-types {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #666;
}

.journal-types span {
    padding: 2px 8px;
    background: #e9ecef;
    border-radius: 10px;
}

.journal-cover {
    background: #1e3a8a;
    color: white;
    padding: 15px;
    border-radius: var(--border-radius);
    width: 120px;
    text-align: center;
    position: relative;
}

.journal-header {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.2;
}

.journal-image {
    background: rgba(255, 255, 255, 0.1);
    height: 60px;
    border-radius: 4px;
    margin-bottom: 10px;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 10px 10px;
}

.journal-footer {
    font-size: 1.5rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ===== Footer ===== */
.footer {
    background-color: var(--dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-info {
    padding-right: 20px;
}

.footer-logo h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 15px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-info p {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: #bbb;
    padding: 5px 0;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

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

.footer-contact h3,
.footer-social h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.contact-icon {
    background-color: var(--primary);
    color: var(--white);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.contact-text a {
    color: #bbb;
    transition: var(--transition);
}

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

.footer-social p {
    color: #bbb;
    margin-bottom: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icons a {
    background-color: var(--primary);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(238, 74, 98, 0.4);
}

.newsletter h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.newsletter p {
    color: #bbb;
    margin-bottom: 15px;
}

.newsletter form {
    display: flex;
    gap: 10px;
}

.newsletter input {
    flex: 1;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #555;
    color: var(--white);
}

.newsletter button {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter button:hover {
    background-color: var(--primary-hover);
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #bbb;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

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

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .nav-links {
        display: none;
    }
    
    .navbar {
        margin: 10px;
        padding: 15px 20px;
    }
    
    .news-ticker {
        margin-top: 70px;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .partner-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .stm-logo,
    .scientific-net-logo {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .newsletter form {
        flex-direction: column;
    }
}
