:root {
    --ios-purple: #7c3aed;
    --ios-dark-purple: #4c1d95;
    --accent: #9f67ff;
    --accent-glow: rgba(159, 103, 255, 0.5);
    --bg-black: #000000;
    --glass-border: rgba(159, 103, 255, 0.2);
    --text-muted: #d4d4d8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg-black);
    color: #fff;
    overflow-x: hidden;
    line-height: 1.6;
}

.navbar {
    position: fixed; top: 0; width: 100%; height: 70px;
    z-index: 3000; background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(25px); border-bottom: 1px solid var(--glass-border);
    transition: background 0.3s;
}
.navbar.scrolled { background: rgba(0, 0, 0, 0.9); }

.navbar-content {
    width: 95%; max-width: 1300px; margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center; height: 100%;
}

.logo-group { display: flex; align-items: center; gap: 15px; }
.logo-mask { height: 50px; filter: drop-shadow(0 0 12px var(--accent)); transition: filter 0.3s; }
.logo-group:hover .logo-mask { filter: drop-shadow(0 0 18px var(--accent)); }
.logo-text { height: 28px; opacity: 0.92; }

.nav-links { display: flex; list-style: none; gap: 25px; }
.nav-links a {
    text-decoration: none; color: #fff; font-size: 0.85rem; font-weight: 700;
    letter-spacing: 1.2px; transition: all 0.3s; opacity: 0.8;
}
.nav-links a:hover { opacity: 1; color: var(--accent); text-shadow: 0 0 8px var(--accent); transform: translateY(-2px); }

.login-button {
    background: linear-gradient(135deg, var(--ios-purple), var(--ios-dark-purple));
    color: #fff; padding: 10px 24px; border-radius: 30px;
    font-weight: 700; text-decoration: none; box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
    transition: all 0.3s; font-size: 0.9rem;
}
.login-button:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5); }

.hero-section {
    height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.parallax-wrapper { position: absolute; inset: 0; z-index: -1; overflow: hidden; transition: transform 0.5s ease-out; }
#bgVideo { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.3); }
.mesh-gradient {
    position: absolute; inset: 0;
    background: 
        radial-gradient(circle at 25% 45%, rgba(124, 58, 237, 0.25), transparent 55%),
        radial-gradient(circle at 75% 55%, rgba(76, 29, 149, 0.4), transparent 65%);
    pointer-events: none;
}

.hero-content { text-align: center; z-index: 10; max-width: 85%; padding: 0 20px; }
.typewriter-title {
    font-size: clamp(2rem, 10vw, 5rem); font-weight: 900;
    color: #fff; text-shadow: 0 0 40px rgba(159, 103, 255, 0.5);
    min-height: 1.3em; overflow: hidden; border-right: 3px solid var(--accent);
    white-space: normal; word-break: break-word; hyphens: auto;
    animation: blink-cursor 0.75s step-end infinite;
}
@keyframes blink-cursor {
    50% { border-color: transparent; }
}
.hero-p {
    font-size: clamp(0.9rem, 3vw, 1.3rem); margin-top: 15px;
    color: var(--text-muted); font-weight: 400; opacity: 0.85;
}

.info-section { padding: 80px 6% 60px; text-align: center; }
.glass-bg { background: rgba(10, 10, 15, 0.5); backdrop-filter: blur(15px); }

.features-section { padding-top: 100px; padding-bottom: 100px; }
.features-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.features-section .section-title {
    margin-bottom: 80px;
}

.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; }

.glow-text { text-shadow: 0 0 25px var(--accent); color: var(--accent); }

.premium-p {
    max-width: 850px; margin: 15px auto 0; font-size: clamp(0.95rem, 2vw, 1.1rem); color: var(--text-muted);
    line-height: 1.8; text-align: justify; text-align-last: center;
}
.highlight { color: var(--accent); font-weight: 800; text-shadow: 0 0 5px var(--accent); }

.carousel-3d-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: clamp(380px, 60vh, 520px);
    perspective: 2000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.carousel-3d-wrapper::before,
.carousel-3d-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20%;
    z-index: 5;
    pointer-events: none;
}
.carousel-3d-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg-black), transparent); }
.carousel-3d-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg-black), transparent); }
.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.8s ease-in-out;
}
.slide-3d {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(340px, 55vw, 440px);
    height: clamp(300px, 48vh, 360px);
    margin: calc(-1 * clamp(150px, 24vh, 180px)) 0 0 calc(-1 * clamp(170px, 27.5vw, 220px));
    transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}
.slide-card {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 28px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
    align-items: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transition: all 0.4s;
}
.slide-3d.active .slide-card {
    border-color: var(--accent);
    box-shadow: 0 0 50px var(--accent-glow);
    transform: scale(1.03);
}
.feature-icon { 
    width: 160px; 
    height: 160px; 
    margin-bottom: 20px; /* Space between icon and text */
    transition: transform 0.3s; 
    object-fit: contain; 
    border-radius: 50%; /* Optional for fade effect */
    box-shadow: 0 0 20px rgba(0,0,0,0.5); /* Soft shadow for fade-like effect */
}
.slide-card:hover .feature-icon { transform: scale(1.1); }
.feature-text { text-align: center; }
.feature-text h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); margin-bottom: 12px; font-weight: 700; }
.feature-text p { color: var(--text-muted); font-size: clamp(1rem, 2.8vw, 1.15rem); }

.carousel-nav button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--accent);
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
}
.carousel-nav .prev { left: 5%; }
.carousel-nav .next { right: 5%; }
.carousel-nav button:hover { background: var(--accent); color: #fff; transform: translateY(-50%) scale(1.05); box-shadow: 0 0 15px var(--accent-glow); }

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}
.service-card {
    position: relative;
    padding: 30px 25px;
    background: linear-gradient(145deg, rgba(20,20,25,0.5), rgba(0,0,0,0.3));
    border-radius: 28px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: all 0.4s ease;
}
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-glow), transparent 80%);
    opacity: 0;
    transition: opacity 0.4s;
}
.service-card:hover { transform: translateY(-10px); border-color: var(--accent); box-shadow: 0 10px 30px var(--accent-glow); }
.service-card:hover .card-glow { opacity: 0.3; }
.service-card h3 { font-weight: 700; letter-spacing: 1px; }

footer { position: relative; padding: 60px 5% 40px; background: #000; text-align: center; overflow: hidden; }
.footer-glow { position: absolute; bottom: -80px; left: 50%; transform: translateX(-50%); width: 90%; height: 250px;
    background: radial-gradient(ellipse, rgba(124,58,237,0.25), transparent 80%); }
.contact-links-group { display: flex; justify-content: center; gap: 20px; margin: 25px 0; flex-wrap: wrap; }
.ios-btn {
    padding: 14px 35px; border-radius: 40px; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); color: #fff; font-weight: 700;
    font-size: 0.95rem; text-decoration: none; transition: all 0.3s;
    backdrop-filter: blur(8px);
}
.ios-btn.mail-accent { border-color: var(--accent); color: var(--accent); }
.ios-btn:hover { background: var(--accent); color: #fff; transform: scale(1.05); box-shadow: 0 0 20px var(--accent-glow); }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0; width: 36px; height: 30px; position: relative; z-index: 3100; }
.menu-toggle span { position: absolute; left: 0; width: 100%; height: 4px; background: var(--accent); border-radius: 4px; transition: all 0.3s ease; }
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 13px; }
.menu-toggle span:nth-child(3) { top: 26px; }
.menu-toggle.open span:nth-child(1) { top: 13px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; left: -36px; }
.menu-toggle.open span:nth-child(3) { top: 13px; transform: rotate(-45deg); }

@media (max-width: 950px) {
    .menu-toggle { display: block; }
    .nav-right { display: flex; align-items: center; gap: 15px; }
    .login-button { order: -1; padding: 8px 20px; font-size: 0.85rem; }
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 80%; height: 100vh;
        background: rgba(0,0,0,0.98); backdrop-filter: blur(25px);
        flex-direction: column; justify-content: center; align-items: center; gap: 40px;
        transition: right 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        z-index: 3050;
    }
    .nav-links.active { right: 0; }
    .nav-links a { font-size: 1.5rem; }
    .features-section { padding-top: 80px; padding-bottom: 80px; }
    .features-section .section-title { margin-bottom: 50px; }
    .carousel-3d-wrapper { height: clamp(380px, 60vh, 520px); }
    .feature-icon { width: 120px; height: 120px; }
    .carousel-3d-wrapper::before, .carousel-3d-wrapper::after { width: 15%; }
}

@media (max-width: 600px) {
    .navbar { height: 60px; }
    .logo-mask { height: 40px; }
    .logo-text { height: 24px; }
    .login-button { padding: 8px 18px; font-size: 0.8rem; }
    .menu-toggle { width: 30px; height: 24px; }
    .menu-toggle span { height: 3px; }
    .menu-toggle span:nth-child(2) { top: 10.5px; }
    .menu-toggle span:nth-child(3) { top: 21px; }
    .menu-toggle.open span:nth-child(1) { top: 10.5px; }
    .menu-toggle.open span:nth-child(3) { top: 10.5px; }
    .hero-content { padding: 0 15px; }
    .info-section { padding: 60px 4% 50px; }
    .features-section .section-title { margin-bottom: 40px; }
    .service-grid { gap: 15px; }
    .premium-p { font-size: 0.95rem; }
    .carousel-nav button { width: 40px; height: 40px; font-size: 1.4rem; }
    .carousel-nav .prev { left: 2%; }
    .carousel-nav .next { right: 2%; }
    .feature-icon { width: 100px; height: 100px; }
    .carousel-3d-wrapper::before, .carousel-3d-wrapper::after { width: 10%; }
}