
/* ==========================================================================
   NEPTUNE IVRY - V3 REBUILD
   Inspired by group-easyweb.com
   ========================================================================== */

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

:root {
    --color-deep-blue: #0A192F;
    --color-text-dark: #1d1d1d;
    --color-text-light: #f1f1f1;
    --color-accent: #40E0D0; /* Neptune's Turquoise */
    --color-accent-dark: #38c7b9;
    --color-white: #FFFFFF;
    --color-light-gray: #f8f9fa;

    --font-family-heading: 'Bebas Neue', sans-serif;
    --font-family-base: 'Poppins', sans-serif;
    --header-height: 80px;
    --border-radius: 5px;
    --transition-speed: 0.4s ease;
    --max-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-family-base);
    color: var(--color-text-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; transition: all var(--transition-speed); }

ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 90%; max-width: var(--max-width); margin: 0 auto; }
.section { padding: 6rem 0; }
.text-center { text-align: center; }

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, height 0.3s ease, box-shadow 0.3s ease;
    height: 100px;
}
.header.scrolled {
    background-color: var(--color-white);
    height: 70px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}
.navbar { display: flex; justify-content: space-between; align-items: center; height: 100%; }
.logo img { height: 40px; transition: all var(--transition-speed); }
.header.scrolled .logo img { height: 35px; }
.header:not(.scrolled) .nav-link { color: var(--color-white); }
.header:not(.scrolled) .nav-menu .btn { background-color: var(--color-white); color: var(--color-text-dark); border-color: var(--color-white); }
.header:not(.scrolled) .nav-menu .btn:hover { background-color: transparent; color: var(--color-white); }

.nav-menu { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-weight: 500; }
.nav-link:hover { color: var(--color-accent); }

.btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--color-accent);
    border-radius: var(--border-radius);
    font-weight: 600;
    background-color: var(--color-accent);
    color: var(--color-deep-blue);
}
.btn:hover { background-color: var(--color-accent-dark); border-color: var(--color-accent-dark); }

/* HERO */
.hero {
    display: flex;
    align-items: center;
    height: 100vh;
    min-height: 700px;
    background: url('../images/hero-background.jpg') no-repeat center center/cover;
    position: relative;
    color: var(--color-white);
}
.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, rgba(10, 25, 47, 0.9) 20%, rgba(10, 25, 47, 0.5) 50%, transparent 80%);
}
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}
.hero .pre-title { font-family: var(--font-family-base); font-weight: 500; font-size: 1.2rem; color: var(--color-accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.hero h1 { font-family: var(--font-family-heading); font-size: clamp(4rem, 8vw, 7rem); color: var(--color-white); line-height: 1; margin-bottom: 2rem; }
.hero .hero-buttons .btn { padding: 1rem 2rem; font-size: 1.1rem; }

/* PAGE HEADER (for inner pages) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 40vh; /* Shorter than hero */
    min-height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--color-white);
}
.page-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(10, 25, 47, 0.7);
}
.page-header-content {
    position: relative;
    z-index: 2;
}
.page-header h1 { font-family: var(--font-family-heading); font-size: 4rem; color: var(--color-white); }

/* SERVICES (FLIP CARDS) */
.section-title h2 { font-family: var(--font-family-heading); font-size: 3.5rem; margin-bottom: 0.5rem; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 4rem; }
.flip-card { background-color: transparent; height: 350px; perspective: 1000px; }
.flip-card-inner { position: relative; width: 100%; height: 100%; text-align: center; transition: transform 0.8s; transform-style: preserve-3d; }
.flip-card:hover .flip-card-inner { transform: rotateY(180deg); }
.flip-card-front, .flip-card-back { position: absolute; width: 100%; height: 100%; -webkit-backface-visibility: hidden; backface-visibility: hidden; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem; border-radius: var(--border-radius); }
.flip-card-front { background-color: var(--color-light-gray); border: 1px solid #eee; }
.flip-card-back { background-color: var(--color-deep-blue); color: white; transform: rotateY(180deg); }
.flip-card-front .icon { font-size: 3rem; color: var(--color-accent); margin-bottom: 1rem; }
.flip-card-front h3 { font-family: var(--font-family-heading); font-size: 1.8rem; color: var(--color-deep-blue); }
.flip-card-back h3 { font-family: var(--font-family-heading); font-size: 1.8rem; color: var(--color-accent); margin-bottom: 1rem; }
.flip-card-back p { font-size: 0.9rem; }

/* FOOTER */
.footer { background-color: var(--color-deep-blue); color: #a8b2d1; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; margin-bottom: 4rem; }
.footer-col h4 { color: var(--color-white); margin-bottom: 1.5rem; }
.footer-col a { color: #a8b2d1; }
.footer-col a:hover { color: var(--color-accent); }
.footer-bottom { border-top: 1px solid #172a45; padding-top: 2rem; text-align: center; font-size: 0.9rem; }

/* RESPONSIVE */
.nav-toggle { display: none; cursor: pointer; font-size: 1.8rem; }
@media (max-width: 992px) {
    .header:not(.scrolled) .nav-toggle { color: var(--color-white); }
    .header.scrolled .nav-toggle { color: var(--color-text-dark); }
    .nav-toggle { display: block; }
    .nav-menu { display: none; position: fixed; top: 70px; right: 0; width: 100%; height: calc(100vh - 70px); background-color: var(--color-white); flex-direction: column; justify-content: center; align-items: center; gap: 2.5rem; }
    .nav-menu.active { display: flex; }
    .nav-link { color: var(--color-text-dark); }
    .header:not(.scrolled) .nav-menu .btn { background-color: var(--color-accent); color: var(--color-deep-blue); border-color: var(--color-accent); }
}
