/* Dark Mode Luxury - Octans Capital Minimalist Theme */

:root {
    --bg-color: #000000;
    --card-bg: #080808;
    --text-primary: #ededed;
    --text-muted: #737373;
    --neon-blue: #0088ff;
    --neon-blue-glow: rgba(0, 136, 255, 0.4);
    --border-color: #1a1a1a;
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'Manrope', sans-serif;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Noise texture overlay removed */

/* Nav */
.luxury-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    backdrop-filter: blur(5px);
}

.luxury-nav .logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.luxury-nav .nav-logo-img {
    height: 38px;
    width: auto;
    display: block;
    object-fit: contain;
}

.luxury-nav .logo {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.luxury-nav .nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.4s ease;
}

.luxury-nav .nav-links a:hover,
.luxury-nav .nav-links a.active {
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* OCTANS SYSTEMS nav button – site colors, no blue */
.luxury-nav .nav-links a.octans-systems-btn {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    transition: color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.luxury-nav .nav-links a.octans-systems-btn:hover {
    color: var(--text-primary);
    border-color: var(--text-muted);
    box-shadow: 0 0 12px rgba(237, 237, 237, 0.08);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 1. Hero */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    text-align: center;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.98)), url('https://www.creativeboom.com/upload/articles/82/82d861b044440c423657785e3fd57233c16a4896_1280.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    letter-spacing: 14px;
    margin-bottom: 1.5rem;
    font-weight: 400;
    background: linear-gradient(180deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: fadeIn 2s ease forwards 0.5s;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 8px;
    color: var(--text-muted);
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 2s ease forwards 1s;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 5vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeIn 2s ease forwards 2s;
}

.arrow-down {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--neon-blue));
    transform-origin: top center;
    animation: pulseArrow 2.5s infinite;
}

@keyframes pulseArrow {
    0% {
        opacity: 0;
        transform: scaleY(0);
    }
    50% {
        opacity: 1;
        transform: scaleY(1);
    }
    100% {
        opacity: 0;
        transform: scaleY(1) translateY(8px);
    }
}

/* Neon Lines connecting sections – fixed height, animation με transform ώστε να μην κουνάει τη σελίδα */
.neon-line-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 150px;
}

.neon-line {
    width: 1px;
    height: 150px;
    background: var(--neon-blue);
    box-shadow: 0 0 15px var(--neon-blue);
    transform-origin: top center;
    transform: scaleY(0);
    /* GSAP θα κάνει scaleY(1) αντί για height */
}

/* 2. Story */
.story-section {
    padding: 8rem 0;
    text-align: center;
}

.story-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-primary);
    line-height: 1.6;
    font-style: italic;
    font-weight: 300;
}

/* 3. Services */
.services-section {
    padding: 8rem 0;
}

.grid-of-six {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background-color: var(--border-color);
    /* Creates 1px borders via gap */
    border: 1px solid var(--border-color);
}

.service-box {
    background-color: var(--bg-color);
    padding: 4rem 3rem;
    transition: all 0.5s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Subtle glow on hover */
.service-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    transition: all 0.5s ease;
    pointer-events: none;
}

.service-box:hover::before {
    border-color: var(--neon-blue);
    box-shadow: inset 0 0 20px rgba(0, 136, 255, 0.05);
}

.service-box h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    color: #ffffff;
    font-weight: 400;
    transition: color 0.4s ease;
}

.service-box:hover h3 {
    color: var(--neon-blue);
    text-shadow: 0 0 8px var(--neon-blue-glow);
}

.service-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.neon-link {
    color: var(--neon-blue);
    text-decoration: none;
    transition: text-shadow 0.3s;
    font-weight: 600;
}

.neon-link:hover {
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

/* 4. Architects */
.architects-section {
    padding: 8rem 0;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 5rem;
    font-weight: 400;
    letter-spacing: 4px;
    color: #ffffff;
}

.architects-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.architect-box {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.5s ease;
    width: 300px;
}

.architect-box:hover {
    border-color: var(--neon-blue);
    transform: translateY(-5px);
}

.arch-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.arch-role {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* 5. Gate */
.gate-section {
    padding: 10rem 0;
    text-align: center;
}

.gate-text {
    color: var(--text-muted);
    margin-bottom: 4rem;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.gate-btn {
    display: inline-block;
    padding: 1.2rem 4rem;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.85rem;
    transition: all 0.5s ease;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.gate-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--neon-blue);
    transform: scaleX(0);
    transition: transform 0.5s ease;
    transform-origin: right;
}

.gate-btn:hover {
    border-color: transparent;
    color: var(--neon-blue);
    text-shadow: 0 0 10px var(--neon-blue-glow);
}

.gate-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
    box-shadow: 0 0 15px var(--neon-blue);
}

/* Footer */
.footer {
    text-align: center;
    padding: 1.25rem 3rem;
    border-top: 1px solid var(--border-color);
    color: #333;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-top: 2.5rem;
}

/* Media Queries */
@media (max-width: 992px) {
    .grid-of-six {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-title {
        font-size: 3rem;
        letter-spacing: 10px;
    }

    .story-text {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {

    .grid-of-six {
        grid-template-columns: 1fr;
    }

    .architects-grid {
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 6px;
    }

    .hero-subtitle {
        font-size: 0.85rem;
        letter-spacing: 4px;
    }

    .story-text {
        font-size: 1.5rem;
        padding: 0 1rem;
    }

    .service-box {
        padding: 3rem 2rem;
    }
}

/* Core Layout Updates for Other Pages */
.page-header {
    padding: 12rem 0 4rem;
    text-align: center;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: 6px;
    font-weight: 400;
}

.page-subtitle {
    color: var(--neon-blue);
    font-size: 1rem;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.content-section {
    padding: 4rem 0 8rem;
}

.legal-content h2.legal-heading {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    color: var(--text-primary);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.legal-content p {
    margin-bottom: 1.25rem;
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
    font-weight: 300;
}

.luxury-nav .nav-links a.nav-link {
    text-decoration: none;
}

.simple-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

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

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 4rem;
    border: 1px solid var(--border-color);
}

.contact-info p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.contact-info i {
    color: var(--neon-blue);
    margin-right: 15px;
}

/* Splash Screen */
.splash-screen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
}

.splash-logo {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: #fff;
    letter-spacing: 12px;
    margin-bottom: 2rem;
    animation: fadeIn 2.5s ease forwards;
}

.splash-logo img {
    height: 80px;
    margin-bottom: 20px;
}

.splash-slogan {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-muted);
    letter-spacing: 6px;
    text-transform: uppercase;
    animation: fadeIn 2.5s ease forwards 1s;
    opacity: 0;
}

.splash-hint {
    margin-top: 5rem;
    font-size: 0.8rem;
    color: var(--neon-blue);
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadePulse 3s infinite 2.5s;
}

@keyframes fadePulse {
    0% {
        opacity: 0;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px var(--neon-blue-glow);
    }

    100% {
        opacity: 0;
    }
}


/* --- Mobile Menu Styles --- */
.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
    z-index: 1000;
}

.hamburger span {
    width: 100%;
    height: 1px;
    background-color: #fff;
    transition: all 0.3s ease;
    display: block;
}

@media (max-width: 900px) {
    .nav-header {
        width: 100%;
    }

    .luxury-nav {
        flex-direction: column;
        padding: 1.5rem 2rem;
        background: rgba(0, 0, 0, 0.98) !important;
        border-bottom: 1px solid #1a1a1a !important;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: var(--neon-blue);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--neon-blue);
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out, padding 0.4s ease;
    }

    .nav-links.active {
        max-height: 500px;
        padding-top: 1.5rem;
        padding-bottom: 1rem;
    }

    .luxury-nav .nav-links a {
        margin: 0.8rem 0;
        font-size: 1.1rem;
    }

    .luxury-nav .nav-links a.octans-systems-btn {
        margin-top: 0.5rem;
        font-size: 0.85rem !important;
        padding: 0.3rem 0.8rem !important;
    }

    /* Fix for iOS and mobile background image zoom bug */
    .hero-section {
        background-attachment: scroll !important;
        background-position: center center;
    }
}