/* --- Root Variables --- */
:root {
    --bg: #071127;
    --footer-bg: #000000;
    --accent: #00ffd1;
    --card: #0f2038;
    --text-color: #ffffff;
    --light-grey: #a0a0a0;
    --dark-grey: #1a1a1a;
    --radius: 14px;
    --line: rgba(255, 255, 255, .25);
}

/* --- Base & Global Styles --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg);
    color: var(--text-color);
}

/* --- Header & Navigation --- */
header {
    position: relative;
    z-index: 5;
    padding: 14px 24px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    background: linear-gradient(180deg, rgba(7, 17, 39, .85), rgba(7, 17, 39, .35));
    backdrop-filter: blur(6px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.header-logo {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: block;
}

.header-logo span {
    color: var(--accent);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--light-grey);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
    text-shadow: 0 0 8px var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* --- Hero with 4 Reels --- */
.hero {
    position: relative;
    height: 85vh;
    min-height: 520px;
    overflow: hidden;
    display: grid;
    place-items: stretch;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .35));
    z-index: 2;
    pointer-events: none;
}

.reels-grid {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    z-index: 1;
    padding: 6px;
}

.reel {
    position: relative;
    overflow: hidden;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    border-radius: 14px;
    opacity: 0;
    transform: translateY(var(--y, -40%)) scale(1.02);
    transition: transform 900ms cubic-bezier(.2, .8, .2, 1), opacity 700ms ease-out;
    will-change: transform, opacity;
}

.reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.05) contrast(1.05);
    transform: scale(1.02);
}

.reel:nth-child(1) {
    --y: -50%;
}

.reel:nth-child(2) {
    --y: 50%;
}

.reel:nth-child(3) {
    --y: -50%;
}

.reel:nth-child(4) {
    --y: 50%;
}

.hero.in-view .reel {
    opacity: 1;
    transform: translateY(0) scale(1.02);
}

.hero.in-view .reel:nth-child(1) {
    transition-delay: 100ms;
}

.hero.in-view .reel:nth-child(2) {
    transition-delay: 200ms;
}

.hero.in-view .reel:nth-child(3) {
    transition-delay: 300ms;
}

.hero.in-view .reel:nth-child(4) {
    transition-delay: 400ms;
}

.center-overlay {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

.cinematic-text {
    font-size: clamp(28px, 8vw, 120px);
    font-weight: 700;
    letter-spacing: .5em;
    text-shadow: 0 0 20px rgba(0, 0, 0, .85);
    opacity: 0;
    animation: cinematic-effect 4s forwards ease-in-out;
    user-select: none;
    pointer-events: none;
}

@keyframes cinematic-effect {
    0% {
        letter-spacing: -1em;
        opacity: 0;
        transform: scale(.98);
    }

    50% {
        letter-spacing: .5em;
        opacity: 1;
        transform: scale(1);
    }

    100% {
        letter-spacing: .5em;
        opacity: 0;
        transform: scale(1.08);
    }
}

@media (prefers-reduced-motion: reduce) {

    .reel,
    .cinematic-text {
        animation: none;
        transition: none;
    }

    .reel {
        opacity: 1;
        transform: none;
    }

    .cinematic-text {
        opacity: 1;
    }
}

/* --- Reels Showcase Section --- */
.reels-showcase-section {
    padding: 80px 20px;
    background-color: var(--bg);
}

.reels-section-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-block {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 120px;
}

.showcase-block.reverse {
    flex-direction: row-reverse;
}

.info-container {
    flex: 1;
    text-align: left;
}

.info-container h3 {
    font-size: 2.5em;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 700;
}

.info-container p {
    font-size: 1em;
    color: var(--light-grey);
    line-height: 1.6;
    margin-bottom: 20px;
}

.info-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.info-container ul li {
    color: var(--text-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.info-container ul li i {
    color: var(--accent);
    margin-right: 10px;
}

.get-in-touch-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 25px;
    background-color: var(--accent);
    color: var(--bg);
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.get-in-touch-btn:hover {
    background-color: #00e6b8;
    transform: translateY(-3px);
}

.get-in-touch-btn i {
    margin-left: 10px;
}

/* --- iPhone Frame & Video Styles --- */
.iphone-video-container {
    position: relative;
    padding: 20px;
    width: 350px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.iphone-frame {
    width: 100%;
    height: 100%;
    background-color: #000;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 0, 0, 0.3) inset;
    border: 8px solid var(--dark-grey);
    padding: 10px;
}

.iphone-notch {
    width: 100px;
    height: 25px;
    background-color: var(--dark-grey);
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 12px;
    z-index: 2;
}

.iphone-reel {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.iphone-reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-top-actions {
    position: absolute;
    bottom: 60px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 2;
}

.reel-top-actions i {
    color: var(--text-color);
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.reel-top-actions i:hover {
    opacity: 1;
    color: red;
}

/* --- Footer --- */
.creative-footer {
    background-color: var(--footer-bg);
    color: var(--light-grey);
    padding-top: 80px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    text-align: left;
    border-bottom: 1px solid var(--dark-grey);
    padding-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 25px;
    position: relative;
    font-weight: 600;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 2px;
}

.footer-logo {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-about {
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.footer-socials {
    display: flex;
    gap: 15px;
    text-decoration: none;
}

.footer-socials a {
    color: var(--light-grey);
    font-size: 1.2em;
    width: 35px;
    height: 35px;
    background-color: var(--dark-grey);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-socials a:hover {
    color: var(--footer-bg);
    background-color: var(--accent);
    transform: translateY(-5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--light-grey);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent);
    transform: translateX(5px);
}

.footer-cta-btn {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.footer-cta-btn i {
    margin-right: 15px;
    font-size: 1.2em;
}

.whatsapp-btn {
    background-color: #25D366;
    color: var(--text-color);
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
}

.email-btn {
    background-color: var(--accent);
    color: var(--footer-bg);
}

.email-btn:hover {
    background-color: #00e6b8;
    transform: translateY(-3px);
}

.phone-btn {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.phone-btn:hover {
    background-color: var(--accent);
    color: var(--footer-bg);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.copyright {
    font-size: 0.85em;
    color: var(--light-grey);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .navbar {
        flex-direction: column;
        gap: 15px;
    }

    .nav-links {
        justify-content: center;
    }

    .footer-container {
        text-align: center;
    }

    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-cta-btn {
        justify-content: center;
    }

    .footer-links a:hover {
        transform: none;
    }
}

@media (max-width: 768px) {
    .reels-grid {
        grid-template-columns: 1fr 1fr;
        padding: 4px;
        gap: 4px;
    }

    .hero {
        height: 70vh;
    }

    .showcase-block {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 80px;
    }

    .showcase-block.reverse {
        flex-direction: column;
    }

    .info-container {
        text-align: center;
        padding: 0 10px;
    }

    .info-container ul {
        text-align: left;
        max-width: 400px;
        margin: 0 auto 30px auto;
    }

    .iphone-video-container {
        width: 100%;
        max-width: 320px;
        height: 550px;
        padding: 0;
    }

    .info-container h3 {
        font-size: 2em;
    }
}

@media (max-width: 576px) {
    .reels-grid {
        /* Only show one video on extra small screens */
        grid-template-columns: 1fr;
    }

    /* Hide videos except for the second one (travel video) */
    .reel:nth-child(1),
    .reel:nth-child(3),
    .reel:nth-child(4) {
        display: none;
    }

    .cinematic-text {
        font-size: 10vw;
    }

    .iphone-video-container {
        max-width: 300px;
        height: 500px;
    }
}