:root {
    --primary-red: #C41E3A;
    --primary-red-hover: #A01830;
    --bg-dark: #0F0F0F;
    --bg-card: #1A1A1A;
    --text-main: #FFFFFF;
    --text-muted: #B0B0B0;
    --accent-grey: #4A4A4A;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

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

ul {
    list-style: none;
}

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

section {
    padding: 100px 5%;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    z-index: 1000;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a:hover {
    color: var(--primary-red);
}

.cta-btn {
    background: var(--primary-red);
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
}

.cta-btn:hover {
    background: var(--primary-red-hover);
    transform: translateY(-2px);
}

/* --- Hero Slider --- */
.hero-slider {
    height: 100vh;
    width: 100%;
}

.hero {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center; /* Centered content for slides */
    text-align: center;
    padding: 0 10%;
    position: relative;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.5);
}

.hero h1 span {
    color: var(--primary-red);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin: 0 auto 40px;
    max-width: 700px;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
    background: var(--text-main);
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    background: var(--primary-red);
    opacity: 1;
}

.swiper-button-next, .swiper-button-prev {
    color: var(--primary-red);
}

/* --- Services --- */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.section-title span {
    color: var(--primary-red);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--primary-red);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-red);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

/* --- Gallery Section --- */
.gallery-section {
    background: #0a0a0a;
}

.gallery-slider {
    padding: 20px 0 50px;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
    border: 1px solid var(--glass-border);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* --- Technical Infrastructure Section --- */
.tech-infrastructure {
    background: var(--bg-card);
    padding: 100px 10%;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.tech-column h3 {
    font-size: 1.8rem;
    color: var(--primary-red);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-main);
}

.tech-list li::before {
    content: '\f00c'; /* FontAwesome check icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.gallery-pagination {
    bottom: 0 !important;
}

.gallery-next, .gallery-prev {
    color: var(--primary-red) !important;
    background: rgba(0, 0, 0, 0.5);
    padding: 30px;
    border-radius: 50%;
    transform: scale(0.7);
    transition: var(--transition);
}

.gallery-next:hover, .gallery-prev:hover {
    background: var(--primary-red);
    color: #fff !important;
    transform: scale(0.8);
}

/* --- Utils --- */
.mt-4 { margin-top: 2rem !important; }

/* --- References --- */
.refs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

@media (max-width: 1400px) {
    .refs-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .refs-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .refs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .refs-grid {
        grid-template-columns: 1fr;
    }
}

.ref-card {
    background: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.ref-info {
    padding: 20px;
    text-align: center; /* Center for logo focus */
}

.ref-logo-container {
    height: 60px; /* Fixed height for consistency */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}

.ref-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    opacity: 0.9;
    transition: var(--transition);
}

.ref-card:hover .ref-logo {
    opacity: 1;
    transform: scale(1.05);
}

.ref-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-red);
    font-size: 0.8rem;
    border-radius: 3px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ref-card h4 {
    margin-bottom: 5px;
}

.ref-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Footer --- */
footer {
    background: #080808;
    padding: 50px 5% 20px;
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 30px;
}

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

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.social-links a:hover {
    color: var(--primary-red);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none;
    }
}
