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

body {
    font-family: 'Inter', sans-serif;
    background-color: #ffffff;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

/* --- FULL PAGE SLIDER SETUP --- */
.snap-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none; /* Hide scrollbar for cleaner app-like feeling */
    scroll-behavior: smooth; /* Animates navigation anchor jumps */
}

.snap-container::-webkit-scrollbar {
    display: none;
}

.snap-slide {
    height: 100vh;
    width: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    padding-top: 80px; /* Adjust for fixed header */
    box-sizing: border-box;
}

/* Navbar container */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    height: 80px;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
}

/* Logo container & logo */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Nav links styling */
.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-item {
    position: relative;
    text-decoration: none;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    color: #333;
    font-size: 0.95rem;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0px;
    left: 0;
    background-color: #333;
    transition: width 0.3s ease;
}

.nav-item:hover {
    color: #000;
}

.nav-item:hover::after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    position: relative;
    flex: 1; /* Takes remaining height below fixed navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Full background setup */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/reos_back.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Overlay to recreate the subtle washed-out/grey look seen in the screenshot */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* A lighter overlay to make image more visible */
    background-color: rgba(220, 225, 230, 0.4); 
    /* Slightly desaturating and overlaying */
    backdrop-filter: grayscale(0.1) contrast(1.1);
    z-index: 1;
}

/* Hero Content wrapper */
.hero-content {
    position: relative;
    z-index: 2; /* Content must sit above the background overlay */
    text-align: center;
}

/* Big Title Text Styling */
.hero-title {
    font-family: 'Montserrat', sans-serif;
    /* Using vw for fluid responsiveness, capped via clamp or media queries */
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: #e5e5e5; /* The soft off-white text color from screenshot */
    text-transform: uppercase;
    letter-spacing: 2px;
    white-space: nowrap;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3); 
    opacity: 1;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.hero-title.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}
.hero-title.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Simple fade-in animation for load */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive considerations */
@media (max-width: 768px) {
    .navbar {
        padding: 20px 30px;
    }
    .hero-title {
        font-size: 3.5rem;
    }
}

/* --- SERVICES SECTION --- */
.services-section {
    background-color: #ffffff;
    text-align: center;
    flex: 1; /* Fills the snap-slide */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #444;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;       
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    flex: 1;
    min-width: 200px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

.service-icon {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon lottie-player {
    /* Converts the green/teal accent color inside the Lordicon/Lottie JSON to gray */
    filter: grayscale(1);
}

.service-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #4a4a4a;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.service-desc {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
}

@media (max-width: 900px) {
    .services-grid {
        gap: 30px;
    }
    .service-card {
        flex: 1 1 40%;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .service-card {
        flex: 1 1 100%;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 50px;
    }
    .services-section {
        padding: 60px 5%;
    }
}

/* --- ABOUT US SECTION --- */
.about-section {
    background-color: #f1f3f5; /* Just a tiny bit darker to make the edge-to-edge section obvious */
    flex: 1; /* Fills the snap-slide */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-content {
    flex: 1;
}

.section-title.left-align {
    text-align: left;
    margin-bottom: 40px;
}

.about-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Slider CSS */
.about-slider {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* subtle shadow */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slider-dots {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

.dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #666;
}

@media (max-width: 900px) {
    .about-container {
        flex-direction: column;
        gap: 50px;
    }
    .about-slider {
        width: 100%;
        max-width: 600px;
    }
    .section-title.left-align {
        text-align: center;
    }
    .about-text {
        text-align: center;
    }
}

/* --- APPS SECTION --- */
.apps-section {
    background-color: #ffffff;
    flex: 1; /* Fills snap-slide */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apps-header {
    text-align: center;
    margin-bottom: 60px;
}

.apps-header .section-title {
    margin-bottom: 20px;
}

.apps-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    color: #888;
}

.apps-grid {
    display: flex;
    width: 100%;
}

.app-card {
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: hidden;
    height: 40vh; /* Takes a nice chunk of the screen without covering the header */
    cursor: pointer;
}

.app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.app-overlay {
    position: absolute;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Text at bottom left */
    align-items: flex-start;
    padding: 40px;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.app-card:hover img {
    transform: scale(1.08); /* Nice subtle zoom */
}

.app-overlay h4 {
    font-family: 'Montserrat', sans-serif;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.app-overlay span {
    font-family: 'Raleway', sans-serif;
    color: #d1d1d1;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 900px) {
    .apps-grid {
        flex-wrap: wrap;
    }
    .app-card {
        flex: 1 1 50%;
        height: 30vh;
    }
}
@media (max-width: 600px) {
    .app-card {
        flex: 1 1 100%;
    }
}

/* --- REFERENCES SECTION --- */
.references-section {
    background-color: #f7f9fa; /* Slightly off-white to separate from Apps section */
    flex: 1; /* Fills snap-slide */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.refs-header {
    text-align: center;
    margin-bottom: 60px;
}

.refs-header .section-title {
    margin-bottom: 20px;
}

.refs-subtitle {
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    color: #888;
}

.refs-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px 30px; /* 50px vertical gap, 30px horizontal */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.ref-card {
    flex: 0 1 30%; /* 3 columns roughly */
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.ref-logo {
    height: 70px;
    width: 100%;
    object-fit: contain;
    margin-bottom: 30px;
    /* Hover starting point: faded grayscale */
    filter: grayscale(1) opacity(0.6);
    transition: all 0.4s ease;
    cursor: auto;
}

.ref-card:hover .ref-logo {
    /* Hover effect: colored and slightly popped up */
    filter: grayscale(0) opacity(1);
    transform: scale(1.1);
}

.ref-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: #444;
    margin-bottom: 15px;
    letter-spacing: 1.5px;
}

.ref-desc {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    color: #777;
    line-height: 1.6;
    max-width: 280px;
}

@media (max-width: 900px) {
    .ref-card {
        flex: 0 1 45%;
    }
}
@media (max-width: 600px) {
    .ref-card {
        flex: 1 1 100%;
    }
}

/* --- CONTACT SECTION --- */
.contact-section {
    background-color: #ffffff;
    flex: 1; /* Fills snap-slide */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 40px;
}

.contact-content {
    text-align: center;
}

.contact-content .section-title {
    margin-bottom: 40px;
}

.contact-details {
    list-style: none;
    font-family: 'Raleway', sans-serif;
    font-size: 1.05rem;
    color: #666;
    line-height: 2;
}

.contact-details li {
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

/* --- OVERALL RESPONSIVENESS FIXES --- */
@media (max-width: 900px) {
    /* Disable strict snap scroll for mobile (allows normal reading if content wraps) */
    .snap-container {
        height: auto;
        overflow-y: visible;
        scroll-snap-type: none;
    }
    .snap-slide {
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 60px;
    }
    #home {
        padding-top: 0;
        padding-bottom: 0;
    }
    
    /* Responsive Navbar */
    .navbar {
        height: auto;
        flex-direction: column;
        padding: 20px;
    }
    .logo-container {
        margin-bottom: 15px;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .nav-item {
        font-size: 0.8rem;
    }
    
    /* Adjust hero header sizing */
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .section-title {
        font-size: 1.6rem;
    }
}

/* --- REVEAL ANIMATIONS --- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.25s; }
.delay-3 { transition-delay: 0.4s; }
.delay-4 { transition-delay: 0.55s; }
.delay-5 { transition-delay: 0.7s; }

