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

:root {
    --bg-color: #080808;
    --accent-color: #ff4d00;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    /* Brightened from a0a0a0 */
    --glass-bg: rgba(255, 255, 255, 0.05);
    /* Brightened from 0.03 */
    --glass-border: rgba(255, 255, 255, 0.12);
    /* Brightened from 0.08 */
    --heat-gradient: linear-gradient(45deg, #ff4d00, #ff00ea, #00f2ff);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px; /* Offset for fixed header */
}

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

img, video {
    border-radius: 24px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.gradient-text {
    background: var(--heat-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

section {
    padding: 8rem 0;
}

#features, #gallery, #compatibility, #sustainability {
    padding-top: 11rem;
}

.hero {
    padding: 0;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    /* Increased from 40px */
    transition: height 0.3s ease;
}

.nav-scrolled .logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    flex: 1;
}

.hero h1 {
    font-size: 7rem;
    line-height: 0.9;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.hero p {
    font-size: 1.4rem;
    /* Increased from 1.2rem */
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 550px;
    font-weight: 300;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 20px 80px rgba(255, 77, 0, 0.15));
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: hueCycle 10s linear infinite;
    animation-delay: 3s;
}

@keyframes hueCycle {
    from {
        filter: hue-rotate(0deg);
    }

    to {
        filter: hue-rotate(360deg);
    }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle at center, rgba(255, 77, 0, 0.1) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
    animation: hueCycle 10s linear infinite;
    animation-delay: 3s;
}

.hero-image img {
    width: 100%;
    filter: drop-shadow(0 0 50px rgba(255, 77, 0, 0.2));
}

/* Technology Section */
.tech-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-top: 4rem;
}

.tech-image {
    flex: 1.2;
}

.tech-image img {
    width: 100%;
    filter: drop-shadow(0 0 40px rgba(255, 77, 0, 0.1));
    border-radius: 30px;
}

.tech-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.tech-item {
    position: relative;
    padding-left: 2rem;
    border-left: 1px solid var(--glass-border);
}

.tech-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-color);
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.tech-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    text-transform: none;
    letter-spacing: normal;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

@media (max-width: 992px) {
    .tech-layout {
        flex-direction: column;
        gap: 3rem;
    }
}
.interactive-showcase {
    background: #0c0c0c;
    text-align: center;
}

.showcase-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 4rem auto 2rem auto;
    cursor: crosshair;
    border-radius: 40px;
    /* Added rounded corners */
    overflow: hidden;
    /* Ensure images don't overflow corners */
}

.color-options {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #ff4d00;
    /* Base Orange */
}

.color-swatch:hover {
    transform: scale(1.2);
}

.color-swatch.active {
    border-color: white;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.case-layer {
    width: 100%;
    display: block;
}

.case-base {
    position: relative;
    z-index: 1;
}

.case-heat {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    mask-image: radial-gradient(circle 100px at 50% 50%, black 100%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle 100px at 0% 0%, black 0%, transparent 0%);
    pointer-events: none;
    transition: -webkit-mask-image 0.1s ease-out;
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch;
    justify-content: center;
}

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: auto;
    /* Grid will handle the stretch */
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 77, 0, 0.3);
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

/* Buttons */
.btn {
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* Footer & Form */
.contact-section {
    background: #050505;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    margin-bottom: 1.5rem;
}

input,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-family: inherit;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: var(--text-primary);
}

footer {
    padding: 4rem 0;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 992px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero-image {
        width: 80%;
        margin: 0 auto;
    }
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.gallery-item {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.gallery-caption h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
}

/* Product Showcase Video Grid */
.showcase-videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.showcase-video-item {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    aspect-ratio: 1 / 1;
    background: #0c0c0c;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.5s ease, box-shadow 0.5s ease;
}

.showcase-video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.showcase-video-item:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(255, 77, 0, 0.15);
}

@media (max-width: 768px) {
    .showcase-videos-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .showcase-video-item {
        aspect-ratio: 16/10;
    }
}



/* Compatibility Section */
.comp-layout {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-top: 4rem;
}

.comp-image {
    flex: 1;
}

.comp-image img {
    width: 100%;
    filter: drop-shadow(0 20px 50px rgba(255, 255, 255, 0.05));
}

.comp-list-container {
    flex: 1;
}

.comp-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    list-style: none;
}

.comp-list li {
    padding: 0.6rem 0.8rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    white-space: nowrap;
    cursor: default;
}

.comp-list li:hover {
    transform: translateY(-2px) scale(1.03);
    background: rgba(255, 255, 255, 0.03);
}

.comp-list li.comp-brand-apple:hover {
    border-color: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.15);
}

.comp-list li.comp-brand-samsung:hover {
    border-color: #0a9df2;
    box-shadow: 0 0 10px rgba(10, 157, 242, 0.2);
}

.comp-list li.comp-brand-google:hover {
    border-color: #4285f4;
    box-shadow: 0 0 10px rgba(66, 133, 244, 0.2);
}

.comp-list li.comp-brand-xiaomi:hover {
    border-color: #ff6700;
    box-shadow: 0 0 10px rgba(255, 103, 0, 0.2);
}

.comp-list li.comp-brand-nothing:hover {
    border-color: #ff00ea;
    box-shadow: 0 0 10px rgba(255, 0, 234, 0.2);
}

.comp-list li.comp-brand-oneplus:hover {
    border-color: #eb0029;
    box-shadow: 0 0 10px rgba(235, 0, 41, 0.2);
}

/* Sustainability Section */
.sustainability-card {
    background: linear-gradient(135deg, #0c0c0c, #050505);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.sus-content {
    flex: 1;
    padding: 5rem;
}

.sus-image {
    flex: 1;
    height: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
}

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

    .comp-layout {
        flex-direction: column-reverse;
        text-align: center;
    }

    .comp-list {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }

    .sustainability-card {
        flex-direction: column;
    }

    .sus-content {
        padding: 3rem 2rem;
    }

    .sus-image {
        width: 100%;
        min-height: 300px;
    }
}

/* ==========================================================================
   Loading Screen and Scroll Progress Styles
   ========================================================================== */

/* Body Loading State */
body.loading {
    overflow: hidden;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff4d00, #ff00ea, #00f2ff);
    z-index: 2000;
    transform-origin: 0% 50%;
    transform: scaleX(0);
}

@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: scroll())) {
        @keyframes grow-progress {
            from { transform: scaleX(0); }
            to { transform: scaleX(1); }
        }
        .scroll-progress {
            animation: grow-progress auto linear;
            animation-timeline: scroll();
        }
    }
}

/* Loader Styles */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: radial-gradient(circle at center, #121212 0%, #050505 100%);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.loader-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 77, 0, 0.2) 0%, rgba(255, 0, 234, 0.1) 45%, transparent 70%);
    filter: blur(80px);
    z-index: 1;
    pointer-events: none;
    animation: loaderGlowPulse 8s ease-in-out infinite alternate;
}

@keyframes loaderGlowPulse {
    0% {
        transform: translate(-50%, -50%) scale(0.9);
        filter: hue-rotate(0deg) blur(80px);
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: hue-rotate(180deg) blur(100px);
    }
}

.loader-content {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo-wrapper {
    margin-bottom: 2rem;
    position: relative;
}

.loader-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 77, 0, 0.3));
    animation: logoPulse 2s ease-in-out infinite alternate;
}

@keyframes logoPulse {
    from {
        transform: scale(0.98);
        filter: drop-shadow(0 0 15px rgba(255, 77, 0, 0.2));
    }
    to {
        transform: scale(1.02);
        filter: drop-shadow(0 0 30px rgba(255, 77, 0, 0.5));
    }
}

.loader-percentage-container {
    font-size: 5rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    letter-spacing: -0.05em;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ff4d00, #ff00ea, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.loader-progress-bar-bg {
    width: 300px;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.loader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ff4d00, #ff00ea, #00f2ff);
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.8);
}

.loader-status {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: 0.05em;
    min-height: 1.5rem;
}

/* ==========================================================================
   Product Collection Section Styles (Minimalist Rows)
   ========================================================================== */
.products-section {
    padding-top: 11rem;
    background: #080808;
}

.products-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.products-row {
    display: grid;
    gap: 2.5rem;
    align-items: stretch;
}

.products-row-top {
    grid-template-columns: repeat(3, 1fr);
}

.products-row-bottom {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
}

.product-card-wrapper {
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-brand-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-color);
    margin-bottom: 0.6rem;
}

.product-card {
    position: relative;
    border-radius: 28px;
    background: #0c0c0c;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.products-row .product-card {
    aspect-ratio: 3/4;
}

.product-card-wrapper:hover .product-card {
    transform: translateY(-8px);
    border-color: rgba(255, 77, 0, 0.4);
    box-shadow: 0 20px 40px rgba(255, 77, 0, 0.1);
}

.product-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #0d0d0d;
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease, filter 0.8s ease;
    border-radius: 0;
}

.product-image-container img.product-img-normal {
    z-index: 2;
    opacity: 1;
}

.product-image-container img.product-img-active {
    z-index: 1;
    opacity: 0;
}

.product-card-wrapper:hover .product-img-normal {
    opacity: 0;
}

.product-card-wrapper:hover .product-img-active {
    opacity: 1;
}

.product-card-wrapper:hover img {
    transform: scale(1.06);
    filter: brightness(0.95) contrast(1.02);
}

.product-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.8rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.product-card-wrapper:hover .product-title {
    color: var(--accent-color);
}

/* Fullscreen Preview Overlay */
.preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.preview-overlay.active {
    display: flex;
}

.preview-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3rem;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10002;
    line-height: 1;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-overlay-close:hover {
    transform: rotate(90deg);
    color: var(--accent-color);
}

.preview-overlay-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    gap: 2rem;
}

.preview-overlay-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(255, 77, 0, 0.1);
    background: #0d0d0d;
}

.preview-overlay-content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.02em;
}

.preview-overlay-content .btn {
    padding: 1.1rem 2.8rem;
    font-size: 0.95rem;
}

@media (max-width: 992px) {
    .products-container {
        gap: 2.5rem;
    }
    
    .products-row-top {
        grid-template-columns: 1fr;
    }
    
    .products-row-bottom {
        grid-template-columns: 1fr;
        max-width: 100%;
    }
    
    .products-row .product-card {
        aspect-ratio: 4/5;
    }
    
    .preview-overlay-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
    }
    
    .preview-overlay-content h3 {
        font-size: 1.6rem;
    }
}