/* Base Styles */
:root {
    --primary-color: #e31e24;
    --secondary-color: #333;
    --light-gray: #f5f5f5;
    --dark-gray: #444;
    --white: #fff;
    --black: #000;
    --transition: all 0.3s ease;
    --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    overflow-x: hidden;
    background-color: var(--white);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.section {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.section-title-about {
    color: #ffffff;
    font-size: 2.5rem;
}

.section-title.animate {
    opacity: 1;
    transform: translateY(0);
    text-align: left;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.animate-slide-left {
    opacity: 0;
    animation: slideInLeft 1s ease forwards;
}

.animate-slide-right {
    opacity: 0;
    animation: slideInRight 1s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Header Styles */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

#header.scrolled {
    padding: 10px 0;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
}

.nav-menu li {
    margin-left: 20px;
    position: relative;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--white);
    transition: var(--transition);
}

/* Hero Section */
#hero {
    height: 100vh;
    background-image: linear-gradient(#e91c2dcc, #e91c2dcc), url('../img/Kokolias-Company-Hero-Image.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.company-name h1 {
    font-size: 5rem;
    font-weight: 900;
    letter-spacing: 5px;
    margin-bottom: 10px;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.company-name p {
    font-size: 1.5rem;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.company-subtitle {
    margin-top: 20px;
    font-size: 1.2rem;
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards;
}

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    opacity: 0;
    animation-delay: 2s;
    animation-fill-mode: forwards;
}

.scroll-down i {
    font-size: 2rem;
    color: var(--white);
}

/* About Section */
#about {
    background-color: #e91c2d;
}

.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    color: #ffffff;
}

.about-text p.animate {
    opacity: 1;
    transform: translateY(0);
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.about-image.animate {
    opacity: 1;
    transform: translateX(0);
}

.about-image img {
    max-width: 80%;
    filter: drop-shadow(0 10px 20px rgba(227, 30, 36, 0.2));
}

/* History Section */
#history {
    background-color: #e0e1e2;
    position: relative;
}

#history::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    background-size: 200px;
    opacity: 0.03;
    pointer-events: none;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.timeline-item.animate {
    opacity: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
    transform: translateX(-50px);
}

.timeline-item:nth-child(even) {
    left: 50%;
    transform: translateX(50px);
}

.timeline-item.animate:nth-child(odd) {
    transform: translateX(0);
}

.timeline-item.animate:nth-child(even) {
    transform: translateX(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 15px;
    z-index: 1;
    transition: background-color 0.3s ease;
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
}

.timeline-item:nth-child(odd)::after {
    right: -10px;
}

.timeline-item:nth-child(even)::after {
    left: -10px;
}

.year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.content {
    padding: 20px;
    background-color: var(--light-gray);
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* About Us Section */
#about-us {
    background-color: #e0e1e2;
    position: relative;
}

/* Mission Section */
#mission {
    background-color: #ffffff;
    text-align: center;
}

.mission-statement {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.mission-statement.animate {
    opacity: 1;
    transform: translateY(0);
    text-align:left;
}

.mission-values-container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.mission-box {
    flex: 1;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.mission-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.mission-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.mission-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.mission-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Team Section */
#team {
    background-color: #cacaca;
}

.team-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.team-text {
    flex: 1;
}

.team-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.team-text p.animate {
    opacity: 1;
    transform: translateY(0);
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    opacity: 0.3;
}

.team-map {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.team-map.animate {
    opacity: 1;
    transform: translateX(0);
}

/*.team-map img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}*/

/* Achievements Section */
#achievements {
    background-color: var(--light-gray);
}

.achievements-container {
    display: flex;
    justify-content: center;
    gap: 50px;
}

.achievement-box {
    flex: 1;
    max-width: 400px;
    padding: 40px 30px;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
}

.achievement-box.animate {
    opacity: 1;
    transform: translateY(0);
}

.achievement-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.achievement-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.achievement-box h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Partners Section */
#partners {
    background-color: #c9cacc;
    position: relative;
}

#partners::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pattern.png');
    background-size: 200px;
    opacity: 0.03;
    pointer-events: none;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.partners-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /*background-color: var(--light-gray);*/
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.exclusive-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 50px 0 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.exclusive-title.animate {
    opacity: 1;
    transform: translateY(0);
}

.exclusive-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.exclusive-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.exclusive-item {
    text-align: center;
    padding: 0px;
    /*background-color: var(--light-gray);*/
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exclusive-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

.exclusive-item img {
    margin-bottom: 15px;
    max-height: 80px;
}

.exclusive-item p {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Network Section */
#network {
    background-color: #ffffff;
}

.network-statement {
    font-size: 1.5rem;
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.network-statement.animate {
    opacity: 1;
    transform: translateY(0);
    text-align:left;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.clients-grid.animate {
    opacity: 1;
    transform: translateY(0);
}

.client-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    background-color: var(--white);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 50%;
}

.client-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

/* Contact Section */
#contact {
    background-color: #ea1a2b;
    color: var(--white);
    text-align: center;
}

.contact-logo {
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.contact-logo.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-logo img {
    height: 150px;
    margin-bottom: 10px;
}

.websites {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}

.website-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.website-item.animate {
    opacity: 1;
    transform: translateY(0);
}

.website-item img {
    height: 100px;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.website-item:hover img {
    transform: scale(1.1);
}

.website-item a {
    color: var(--white);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.website-item a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: var(--transition);
}

.website-item a:hover::after {
    width: 100%;
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--white);
    padding: 20px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(227, 30, 36, 0.3);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.5rem;
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    html {
        font-size: 14px;
    }

    .section {
        padding: 80px 0;
    }

    .about-content, 
    .team-content {
        flex-direction: column;
        gap: 30px;
    }

    .mission-values-container {
        flex-direction: column;
    }

    .partners-grid,
    .exclusive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    html {
        font-size: 12px;
    }

    .section {
        padding: 60px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        background-color: rgba(0, 0, 0, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 20px 0;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 16px 0;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(odd)::after {
        right: auto;
        left: 15px;
    }

    .timeline-item:nth-child(even)::after {
        left: 15px;
    }

    .partners-grid,
    .exclusive-grid,
    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievements-container {
        flex-direction: column;
        align-items: center;
    }

    .achievement-box {
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .company-name h1 {
        font-size: 3.5rem;
    }

    .partners-grid,
    .exclusive-grid,
    .clients-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease;
}

.preloader-finish {
    opacity: 0;
}

.loader {
    position: relative;
}

.logo-loader {
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

body {
    overflow: hidden;
}

body.loaded {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Text reveal animation */
.reveal-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
}

.reveal-text::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    animation: reveal 1.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes reveal {
    0% {
        width: 0;
        left: 0;
    }
    50% {
        width: 100%;
        left: 0;
    }
    100% {
        width: 0;
        left: 100%;
    }
}

/* Cursor trail */
.cursor-trail {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: rgba(227, 30, 36, 0.3);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s;
}

a:hover ~ .cursor-trail,
button:hover ~ .cursor-trail {
    width: 40px;
    height: 40px;
    background-color: rgba(227, 30, 36, 0.5);
}

/* Scroll progress indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 1001;
    width: 0;
    transition: width 0.1s;
}

/* Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    background-color: var(--white);
    border-radius: 50%;
    animation: float linear infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(0) translateX(20px);
    }
    75% {
        transform: translateY(20px) translateX(10px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
} 