/* 
 * NewMoldX - Premium Single Page Design
 */

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

:root {
    /* Brand Colors */
    --color-primary-start: #f91270;
    /* French Rose */
    --color-primary-end: #f6b35a;
    /* Rajah */
    --color-bg: #000000;
    /* Pure Black */
    --color-bg-alt: #050505;
    /* Very Dark Grey */
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);
    /* Darker border for light mode */
    --color-text-main: #ffffff;
    --color-text-muted: #b0b0b0;

    /* Gradients */
    --gradient-brand: linear-gradient(135deg, var(--color-primary-start), var(--color-primary-end));
    --gradient-glow: radial-gradient(circle at center, rgba(249, 18, 112, 0.3) 0%, rgba(0, 0, 0, 0) 70%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 100px;
    /* Increased from 80px */
    --border-radius: 16px;

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sections */
section {
    padding-top: var(--header-height);
    /* Offset for sticky header */
}

.section-padding {
    padding: 100px 0;
}

.bg-dark-alt {
    background-color: var(--color-bg-alt);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    color: white;
    /* Revert to white */
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 2.75rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.badge {
    background: rgba(20, 4, 103, 0.05);
    /* Light indigo tint */
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    display: inline-block;
    border: 1px solid var(--color-glass-border);
    color: var(--color-primary-end);
    /* Match gradient end for pop */
    font-weight: 600;
}

/* Header & Nav */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: transparent;
    /* Transparent by default for seamless hero merge */
    backdrop-filter: none;
    border-bottom: none;
    transition: all 0.3s ease;
    box-shadow: none;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    /* Dark solid background on scroll */
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}

/* Override container for header to be wider/fluid */
.header .container {
    max-width: 1600px;
    /* Much wider max-width */
    width: 95%;
    /* Take up most of the screen width */
    padding: 0 40px;
    /* Larger horizontal padding */
}

.nav-links ul {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.7;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: white;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-brand);
    box-shadow: 0 0 10px #d60c4e;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    /* Reduced gap as requested */
    text-decoration: none;
    animation: slideDownFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.logo img {
    opacity: 0;
    /* Start hidden for entrance */
    animation: logo-entrance 0.8s forwards, logo-spin 15s infinite 0.5s;
    /* Enter, then spin immediately (0.5s delay) and loop */
    backface-visibility: visible;
}

@keyframes logo-entrance {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logo-spin {
    0% {
        transform: perspective(400px) rotateY(0deg);
    }

    10% {
        transform: perspective(400px) rotateY(360deg);
    }

    100% {
        transform: perspective(400px) rotateY(360deg);
    }
}


@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    /* Increased from 1.85rem */
    font-weight: 800;
    /* Bolder */
    color: white;
    /* White text for dark mode */
    letter-spacing: -0.5px;
    /* Tighter tracking for modern look */
}

/* Mobile Nav Toggle - Hidden for single page minimal view */
.mobile-toggle {
    display: none !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    text-align: center;
    padding-top: var(--header-height);
    overflow: hidden;
    background: radial-gradient(circle at top, #1a050f 0%, #000000 60%);
    /* Subtle dark gradient */
}

/* Floating Shapes (Icons) */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    opacity: 0.15;
    /* Slightly more visible */
    color: rgba(255, 255, 255, 0.2);
    animation: float-anim 20s infinite linear;
}

.shape-1 {
    font-size: 60px;
    /* Reduced from 80px */
    top: 20%;
    left: 10%;
    color: var(--color-primary-start);
    opacity: 0.25;
    /* Increased as requested */
    animation-duration: 25s;
    animation-delay: -5s;
    transform: rotate(15deg);
}

.shape-2 {
    font-size: 45px;
    /* Code */
    top: 20%;
    /* Match Chip (20%) */
    right: 10%;
    /* Match Chip (10%) */
    color: var(--color-primary-end);
    opacity: 0.25;
    /* Increased opacity as requested */
    animation-duration: 30s;
    animation-direction: reverse;
}

.shape-3 {
    font-size: 55px;
    /* Reduced from 70px */
    top: 15%;
    /* Moved to Top-Center */
    left: 50%;
    transform: translate(-50%, -50%);
    color: #00f3ff;
    /* Swapped to Cyan (was Pink) */
    opacity: 0.15;
    animation: float-center-anim 30s infinite ease-in-out;
}

.shape-4 {
    font-size: 55px;
    /* Reduced from 75px to match others */
    top: auto;
    /* Remove top */
    bottom: 12%;
    /* Below buttons */
    left: 50%;
    transform: translateX(-50%) rotate(-10deg);
    /* Center X */
    right: auto;
    color: #00f3ff;
    /* Neon Cyan */
    opacity: 0.15;
    animation-duration: 28s;
}

/* shape-5 (Server) removed */

.shape-6 {
    font-size: 60px;
    /* Reduced from 80px */
    top: auto;
    bottom: 35%;
    /* Moved UP from 10% */
    left: 8%;
    /* Moved to Bottom Left */
    color: var(--color-primary-end);
    /* Yellow/Orange */
    opacity: 0.25;
    /* Increased visibility from 0.06 */
    animation: float-anim 22s infinite linear reverse;
    animation-delay: -8s;
}

.shape-7 {
    font-size: 45px;
    /* Play Store */
    top: auto;
    bottom: 35%;
    /* Match Robot (35%) */
    right: 8%;
    /* Match Robot (8%) */
    color: var(--color-primary-start);
    /* Swapped to Pink (was Cyan) */
    opacity: 0.25;
    /* Increased visibility as requested */
    transform: rotate(-15deg);
    animation: float-anim 28s infinite ease-in-out;
    animation-delay: -12s;
}

@keyframes float-center-anim {
    0% {
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1);
    }

    25% {
        transform: translate(-50%, -50%) translate(80px, 60px) rotate(5deg) scale(1.05);
    }

    50% {
        transform: translate(-50%, -50%) translate(-60px, 100px) rotate(-5deg) scale(1.1);
    }

    75% {
        transform: translate(-50%, -50%) translate(-80px, -40px) rotate(5deg) scale(1.05);
    }

    100% {
        transform: translate(-50%, -50%) translate(0, 0) rotate(0deg) scale(1);
    }
}

@keyframes float-anim {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(150px, 80px) rotate(10deg);
    }

    50% {
        transform: translate(40px, 200px) rotate(20deg);
    }

    75% {
        transform: translate(-150px, 80px) rotate(10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    /* Higher opacity for dark mode */
    pointer-events: none;
    z-index: -1;
    animation: pulse-glow 10s infinite ease-in-out alternate;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.25;
    }

    100% {
        transform: scale(1.2);
        opacity: 0.35;
    }
}

.orb-1 {
    top: 10%;
    left: 10%;
    width: 400px;
    height: 400px;
    background: var(--color-primary-start);
}

.orb-2 {
    bottom: 10%;
    right: 10%;
    width: 500px;
    height: 500px;
    background: var(--color-primary-end);
    animation-delay: -5s;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Buttons */
.btn {
    padding: 16px 36px;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: var(--gradient-brand);
    color: white;
    box-shadow: 0 10px 30px rgba(214, 12, 78, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(214, 12, 78, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
    font-weight: 600;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 0.85rem;
    color: white !important;
    /* Ensure CTA text is white */
}

/* Grid & Cards (Active Matrix Design) */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.glass-card {
    position: relative;
    background: rgba(20, 20, 20, 0.6);
    /* Slightly lighter base for better contrast */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* More visible border */
    padding: 40px;
    border-radius: var(--border-radius);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* Default shadow for depth */
}

/* Neon Gradient Border Effect via Pseudo-element */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius);
    padding: 1px;
    /* Border width */
    background: var(--gradient-brand);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.5;
    /* Increased idle visibility from 0.3 */
    transition: opacity 0.3s ease;
}

/* Inner Glow */
.glass-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(249, 18, 112, 0.1) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: -1;
}

.glass-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.6);
    background: rgba(20, 20, 20, 0.8);
}

.glass-card:hover::before {
    opacity: 1;
    /* Bright border on hover */
}

.glass-card:hover::after {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* Expand glow */
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    /* Brighter idle bg */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Added border */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    /* White icon by default for better pop */
    margin-bottom: 24px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.glass-card:hover .icon-wrapper {
    background: var(--gradient-brand);
    color: white;
    border-color: transparent;
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(249, 18, 112, 0.4);
}

/* About Split */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.stat-grid {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--color-primary-start);
    margin-bottom: 5px;
}

.visual-card {
    background: var(--color-glass);
    padding: 30px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border: 1px solid var(--color-glass-border);
    display: flex;
    align-items: center;
    gap: 20px;
}

.visual-card i {
    font-size: 2rem;
    color: var(--color-primary-start);
    text-shadow: 0 0 20px rgba(249, 18, 112, 0.5);
}

/* Contact Section */
.glass-panel {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-list {
    margin-top: 30px;
}

.contact-list li {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    color: var(--color-text-main);
}

.contact-list i {
    color: var(--color-primary-end);
}

/* Form */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 0.9rem;
    color: white;
}

.form-control {
    width: 100%;
    padding: 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary-end);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
.footer {
    border-top: 1px solid var(--color-glass-border);
    background: var(--color-bg);
}

.social-icons {
    display: flex;
    gap: 20px;
    font-size: 1.4rem;
}

.social-icons a {
    color: var(--color-text-muted);
    transition: color 0.3s ease;
}

.social-icons a:hover {
    color: var(--color-primary-start);
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-on-scroll {
    opacity: 0;
}

.fade-in-up.visible {
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-left.visible {
    animation: fadeInLeft 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.fade-in-right.visible {
    animation: fadeInRight 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

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

    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .glass-panel {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: #000;
        flex-direction: column;
        justify-content: center;
        transition: 0.3s;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links ul {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .mobile-toggle {
        display: block;
    }

    .grid-3 {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .glass-card {
        padding: 30px;
    }
}