@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0d8abc;
    --secondary-color: #e57373;
    --logo-accent-color: #f2807a;
    --text-dark: #2c3e50;
    --text-light: #f0f2f5;
    --text-muted-dark: #7f8c8d;
    --text-muted-light: #a7aeb8;
    --bg-light: #f8f9fc;
    --bg-dark: #121218;
    --bg-card-light: #ffffff;
    --bg-card-dark: #1c1c22;
    --border-light: #e8eaed;
    --border-dark: rgba(255, 255, 255, 0.1);
    --font-family: 'Poppins', sans-serif;
    --border-radius: 16px;
    --shadow-soft: 0 5px 20px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 10px 35px rgba(0, 0, 0, 0.1);
    --header-height: 80px;
    --transition-speed: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ken-burns { 0% { background-size: 100%; } 100% { background-size: 110%; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-family);
    margin: 0;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
main { flex-grow: 1; }
h1, h2, h3, h4 { color: var(--text-dark); font-weight: 600; }
section { padding: 90px 20px; overflow-x: hidden; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
a { color: var(--primary-color); text-decoration: none; transition: color var(--transition-speed); }
.section-title { text-align: center; margin-bottom: 3rem; }
.section-title h2 { font-size: 2.5rem; }

section > .container > * { opacity: 0; animation: fadeInUp 0.8s var(--transition-speed) forwards; }
.services-grid > *, .showcase-grid > *, .sector-choices > * { opacity: 0; animation: fadeInUp 0.8s var(--transition-speed) forwards; }
.services-grid > *:nth-child(2), .showcase-grid > *:nth-child(2), .sector-choices > *:nth-child(2) { animation-delay: 0.15s; }
.services-grid > *:nth-child(3), .showcase-grid > *:nth-child(3) { animation-delay: 0.25s; }

header, .landing-header {
    height: var(--header-height);
    display: flex;
    align-items: center;
    width: 100%;
    z-index: 1000;
    position: absolute;
    top: 0;
    left: 0;
    background: transparent;
    transition: background-color var(--transition-speed), backdrop-filter var(--transition-speed);
}
body:not(.home-theme) { padding-top: var(--header-height); }
@media (min-width: 769px) {
    header, .landing-header.scrolled {
        position: fixed;
    }
}
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.logo svg { height: 38px; width: auto; }
.logo svg path { transition: fill var(--transition-speed); }
header nav ul { list-style: none; display: flex; margin: 0; padding: 0; }
header nav ul li { margin-left: 40px; }
header nav ul li a { font-weight: 500; font-size: 1rem; color: inherit; }
.menu-toggle { display: none; cursor: pointer; font-size: 1.8rem; z-index: 1001; }

.landing-header .logo svg path, .landing-header nav ul li a {
    color: var(--text-light);
    fill: #fff;
}
body.video-theme .logo svg path { fill: var(--logo-accent-color); }
body.it-theme .logo svg path { fill: var(--primary-color); }
body.video-theme header {
    background-color: #1a1a1f;
    border-bottom: 1px solid var(--border-dark);
}
body.video-theme header nav ul li a { color: var(--text-light); }
body.it-theme header {
    background-color: rgba(18, 18, 24, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-dark);
}
body.it-theme header nav ul li a { color: var(--text-light); }

#hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.7)), url('../assets/images/leveex-bg.png') no-repeat center center;
    color: var(--text-light);
    padding: 0 20px;
    animation: ken-burns 20s infinite alternate;
}
#hero h1 { color: #fff; font-size: 4.5rem; font-weight: 700; }
#hero .sub-headline {
    color: #fff;
    font-size: 1.6rem;
    font-weight: 300;
    max-width: 800px;
    margin-top: 1rem;
}
.sector-choices {
    display: flex;
    gap: 30px;
    margin-top: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
}
.sector-choice {
    padding: 30px 40px;
    border-radius: var(--border-radius);
    width: 350px;
    text-align: center;
    text-decoration: none;
    color: var(--text-light);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all var(--transition-speed);
}
.sector-choice:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}
.sector-choice::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.8s ease;
}
.sector-choice:hover::after { left: 150%; }
.sector-choice h3, .sector-choice i { transition: color var(--transition-speed); }
#video-choice-link i.choice-icon { color: var(--logo-accent-color); }
#it-choice-link i.choice-icon { color: var(--primary-color); }
#video-choice-link:hover h3, #video-choice-link:hover i.choice-icon { color: var(--logo-accent-color); }
#it-choice-link:hover h3, #it-choice-link:hover i.choice-icon { color: var(--primary-color); }

#about-leveex-founder { background-color: var(--bg-card-light); }
#about-leveex-founder .container { max-width: 800px; text-align: center; }
.about-section-title { margin-bottom: 1rem; }
.about-section-title i { font-size: 2.2rem; color: var(--text-muted-dark); }
.about-content { max-width: 700px; margin: 0 auto 3rem auto; }
.about-content p { color: var(--text-muted-dark); line-height: 1.8; }
#about-leveex-founder hr {
    width: 80px;
    border: 0;
    border-top: 1px solid var(--border-light);
    margin: 4rem auto;
}
.founder-image-wrapper img {
    max-width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 8px solid var(--bg-card-light);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    margin-top: 1rem;
}
.founder-name { margin-top: 1.5rem; }
.founder-title {
    font-style: italic;
    color: var(--text-muted-dark);
    margin-top: -0.5rem;
    margin-bottom: 1.5rem;
}
.btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    font-weight: 500;
    transition: all var(--transition-speed);
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(13, 138, 188, 0.3);
}

.hero-video, .hero-it {
    padding: 120px 20px 80px 20px;
    text-align: center;
    background-size: cover;
    background-position: center;
}
.hero-video { background-image: linear-gradient(rgba(18,18,24,0.9), rgba(18,18,24,0.8)), url('../assets/images/video-bg.png'); }
.hero-it { background-image: linear-gradient(rgba(18,18,24,0.9), rgba(18,18,24,0.8)), url('../assets/images/it-bg.png'); }
.hero-video h1, .hero-it h1 { font-size: 3.5rem; color: #fff; }
.hero-video .lead, .hero-it .lead {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 1.5rem auto 0;
    color: var(--text-muted-light);
}

body.video-theme { background-color: var(--bg-dark); }
body.video-theme h2, body.video-theme h3 { color: var(--text-light); }
#video-services .services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}
.services-grid .card {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background-color: var(--bg-card-dark);
    padding: 35px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-dark);
    transition: all var(--transition-speed);
    text-align: center;
}
.services-grid .card:hover {
    transform: translateY(-8px);
    border-color: var(--logo-accent-color);
}
.services-grid .card i.service-icon {
    font-size: 2.5rem;
    color: var(--logo-accent-color);
}
.showcase-card {
    background-color: var(--bg-card-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-dark);
}

body.it-theme { background-color: var(--bg-dark); }
#it-services-detailed {
    background-color: var(--bg-dark);
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}
#it-services-detailed .container { max-width: 900px; }
.it-service-category {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    align-items: center;
    margin-bottom: 20px;
    padding: 30px;
    background-color: rgba(28, 28, 34, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-dark);
    transition: all var(--transition-speed);
}
.it-service-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
}
.it-service-category .category-header { flex: 1 0 180px; }
.it-service-category .category-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
.it-service-category .category-header h3 { font-size: 1.2rem; color: var(--text-light); }
.it-service-category ul {
    flex: 2 1 400px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.it-service-category li {
    color: var(--text-muted-light);
    background-color: rgba(18, 18, 24, 0.8);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

footer {
    background-color: #1a1a1f;
    color: var(--text-light);
    padding: 70px 20px;
    text-align: center;
}
footer a:hover { color: var(--primary-color); }

@media (max-width: 768px) {
    header, .landing-header { background-color: #1a1a1f; }
    .landing-header.scrolled { position: absolute; }
    .menu-toggle { display: block; color: var(--text-light); }
    
    header nav ul {
        display: none;
        flex-direction: column;
        justify-content: center;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background-color: rgba(18, 18, 24, 0.98);
        backdrop-filter: blur(10px);
    }
    header nav ul.active { display: flex; }
    header nav ul li { margin: 0; }
    header nav ul li a {
        padding: 1.5rem;
        display: block;
        font-size: 1.5rem;
        font-weight: 600;
        text-align: center;
        color: var(--text-light);
    }
    
    #hero {
        background: #1a1a1f;
        min-height: auto;
        padding-top: var(--header-height);
        padding-bottom: 40px;
        animation: none;
    }
    #hero h1 { font-size: 2.5rem; }
    #hero .sub-headline { font-size: 1.1rem; }
    .sector-choices { flex-direction: column; width: 100%; gap: 20px; }
    .sector-choice {
        width: 100%;
        background: #19191f;
        backdrop-filter: none;
    }
}
