/* Reset & Base Styles */
:root {
    --black: #000000;
    --accent-blue: #00B0FF;
    --steel-grey: #1C1C1C;
    --white: #F5F5F5;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 176, 255, 0.12);
    --shadow-lg: 0 12px 30px rgba(0, 176, 255, 0.18);
    --ring: 0 0 0 1px rgba(0, 176, 255, 0.25);
    
    /* Theme Colors */
    --primary-color: var(--accent-blue);
    --accent-color: #60EFFF;
    --background-dark: var(--black);
    --background-light: var(--steel-grey);
    --text-color-light: var(--white);
    --text-color-muted: rgba(245, 245, 245, 0.7);
    --text-color: var(--white);
    
    /* Additional Variables */
    --dark-blue: #0A1628;
    --light-grey: #F5F5F5;
    --card-background: var(--steel-grey);
    
    /* RGB Values for Animations */
    --primary-rgb: 0, 176, 255;
    --accent-rgb: 96, 239, 255;
    --background-light-rgb: 28, 28, 28;
}

/* Testimonial Slider */
.testimonials-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--card-background);
    padding: 20px;
}

.testimonial-card {
    display: none; /* Hidden by default, controlled by JS */
    text-align: center;
    padding: 20px;
}

.testimonial-card.active {
    display: block; /* Active card */
}

.testimonial-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--black);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

/* Glow Text Effect */
.glow-text {
    background: linear-gradient(135deg, #60EFFF 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    opacity: 1 !important;
    text-shadow: 0 0 20px rgba(96, 239, 255, 0.15), 0 0 40px rgba(0, 176, 255, 0.12);
    font-size: clamp(3rem, 6vw, 5rem) !important;
}

.hero .glow-text {
    font-size: calc(clamp(3rem, 6vw, 5rem) - 0.25rem) !important;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    font-size: clamp(1rem, 2vw, 1.125rem);
}

/* Layout */
.container {
    width: min(90%, 1200px);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: 5rem 0;
}

/* Clients / Logo Marquee */
.clients {
    background: var(--background-dark);
    position: relative;
}

.clients h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.logo-marquee {
    overflow: hidden;
    position: relative;
    /* fade edges to subtly shade logos near the edges */
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
            mask-image: linear-gradient(to right, transparent 0, black 48px, black calc(100% - 48px), transparent 100%);
    /* Reserve space to prevent layout shifts */
    min-height: 140px;
    contain: layout style;
}

.logo-track {
    display: flex;
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    animation: marquee 30s linear infinite; /* Slower animation for better performance */
    will-change: transform;
    flex-wrap: nowrap;
    width: max-content;
    contain: layout style paint; /* Optimize rendering */
}

.logo-track img {
    height: clamp(80px, 10vw, 140px);
    width: auto;
    flex: 0 0 auto;
    filter: brightness(1) contrast(1.1) saturate(1.05);
    opacity: 0.95;
    transition: transform .3s ease, opacity .3s ease, filter .3s ease, box-shadow .3s ease;
    will-change: transform, opacity; /* Optimize for animations */
    contain: layout style paint; /* Optimize rendering */
}

.logo-track img:hover {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 8px 20px rgba(0,176,255,0.25));
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Larger logos on desktop */
@media (min-width: 1024px) {
    .logo-track img {
        height: clamp(120px, 9vw, 180px);
    }
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .split-layout {
        grid-template-columns: repeat(2, 1fr);
    }

/* Testimonial Slider */
.testimonial-slider {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 800px; /* Adjust as needed */
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: var(--card-background);
    padding: 20px;
}

.testimonial-card {
    display: none; /* Hidden by default, controlled by JS */
    text-align: center;
    padding: 20px;
}

.testimonial-card.active {
    display: block; /* Active card */
}

.testimonial-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    color: var(--text-color);
}

.testimonial-author {
    font-weight: 600;
    color: var(--primary-color);
}

.slider-dots {
    text-align: center;
    margin-top: 20px;
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    margin: 0 5px;
    background-color: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--primary-color);
}
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: clamp(0.5rem, 2vw, 1rem) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: clamp(60px, 10vw, 120px);
    width: auto;
    margin-right: 0.5rem;
}

.nav-links {
    display: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin: 0 1rem;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.nav-links a.active {
    color: var(--accent-blue);
    font-weight: 600;
}

/* Animated underline inspired by reference site */
.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-color));
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a.cta-button:hover {
    color: var(--text-color-light);
}

.nav-toggle {
    display: block;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

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

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
    }

    .nav-toggle {
        display: none;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(var(--primary-rgb), 0.9);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background-color: var(--accent-blue);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.back-to-top i {
    font-size: 24px;
}

/* Buttons */
.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--accent-blue);
    border-radius: 12px;
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    background: transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    background: var(--accent-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Gradient ring glow on hover */
.cta-button::before {
    content: '';
    position: absolute;
    inset: -2px;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0,176,255,0.4), rgba(96,239,255,0.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.25;
    transition: opacity .3s ease;
}

.cta-button:hover::before { opacity: 0.6; }

/* Hero Section */
.hero {
    padding-top: clamp(120px, 20vh, 160px);
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 550px;
    margin-top: clamp(2rem, 5vh, 4rem);
}

/* Soft radial glow background inspired by reference site */
.hero::before {
    content: '';
    position: absolute;
    width: 1200px;
    height: 1200px;
    left: -20%;
    top: -30%;
    background: radial-gradient(circle, rgba(0,176,255,0.12) 0%, rgba(96,239,255,0.10) 30%, transparent 60%);
    filter: blur(40px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    width: 900px;
    height: 900px;
    right: -15%;
    bottom: -25%;
    background: radial-gradient(circle, rgba(96,239,255,0.10) 0%, rgba(0,176,255,0.08) 35%, transparent 60%);
    filter: blur(50px);
    pointer-events: none;
}

.subheadline {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--white);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.rotating-cube {
    width: clamp(180px, 35vw, 280px);
    height: clamp(180px, 35vw, 280px);
    margin: clamp(2rem, 5vh, 4rem) auto 0;
    position: relative;
    transform-style: preserve-3d;
    animation: rotate 20s linear infinite;
}

/* Services Section - Fixed layout shift issues */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
    /* Reserve space to prevent layout shifts */
    min-height: 300px;
    contain: layout style;
}

.service-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.00));
    border: 1px solid rgba(255,255,255,0.06);
    padding: clamp(1.5rem, 3vw, 2rem);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    /* Fixed height to prevent layout shifts */
    height: 250px;
    min-height: 250px;
    max-height: 250px;
    backdrop-filter: blur(6px);
    /* Prevent content from causing shifts */
    contain: layout style;
    /* Reserve space for content */
    box-sizing: border-box;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,176,255,0.2);
}

/* Icon Styling System */
.icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card .icon {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 1rem;
    width: 60px;
    height: 60px;
    /* Reserve space to prevent layout shifts */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card:hover .icon i {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* Contact Page Icon Styling */
.highlight-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

/* Blog Page Read More Icons */
.read-more i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more:hover i {
    transform: translateX(5px);
}

.service-card h3 {
    text-align: center;
    /* Reserve space to prevent layout shifts */
    margin: 0 0 1rem 0;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    /* Reserve space to prevent layout shifts */
    margin: 0;
    flex: 1;
    display: flex;
    align-items: center;
    text-align: center;
    line-height: 1.5;
}

/* Stats Section */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 1.125rem;
    opacity: 0.9;
}

/* Featured Projects - Fixed layout shift issues */
.featured-projects {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    background: var(--black);
    /* Reserve space to prevent layout shifts */
    min-height: 400px;
    contain: layout style;
}

/* Subtle moving mesh glow */
.featured-projects::after {
    content: '';
    position: absolute;
    inset: -30% -10% -10% -10%;
    background: radial-gradient(60% 60% at 20% 30%, rgba(0,176,255,0.10) 0%, transparent 70%),
                radial-gradient(50% 50% at 80% 70%, rgba(96,239,255,0.08) 0%, transparent 70%);
    filter: blur(30px);
    animation: subtleFloat 16s ease-in-out infinite;
    pointer-events: none;
}

@keyframes subtleFloat {
    0%, 100% { transform: translateY(0); opacity: .7; }
    50% { transform: translateY(-12px); opacity: .9; }
}

.featured-projects .rotating-cube-background {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%; /* Make it larger to cover the section */
    height: 150%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0.1; /* Make it subtle */
    /* Prevent layout shifts from animations */
    will-change: transform;
    contain: layout style paint;
}

.featured-projects::before {
    content: none;
}

.featured-projects h2 {
    color: var(--text-color-light);
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    /* Reserve space to prevent layout shifts */
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-projects p {
    color: var(--text-color-muted);
    position: relative;
    z-index: 2;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    /* Reserve space to prevent layout shifts */
    min-height: 1.5rem;
    line-height: 1.6;
}

.featured-projects .cta-button {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    /* Reserve space to prevent layout shifts */
    min-height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.featured-work-content {
    text-align: center;
    margin-top: 3rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--black);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 176, 255, 0.2);
}

.project-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.overlay h3 {
    color: var(--text-color-light);
    margin-bottom: 10px;
    font-size: 1.2em;
}

.overlay p {
    color: var(--text-color-muted);
    font-size: 0.9em;
    line-height: 1.4;
}

.project-card:hover .overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

/* Xpandify Elements Promotion Section */
.elements-promo {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--background-dark) 0%, var(--background-light) 100%);
    position: relative;
    overflow: hidden;
}

.elements-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(0, 176, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(96, 239, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.elements-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.elements-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a5a5a5 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.elements-text p {
    font-size: 1.1rem;
    color: var(--text-color-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.elements-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-color-light);
}

.feature-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
    width: 20px;
}

.feature-item span {
    font-weight: 500;
}

.elements-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    padding: 15px 30px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 12px;
    color: var(--background-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 176, 255, 0.3);
}

.elements-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 176, 255, 0.4);
    color: var(--background-dark);
}

.elements-cta i {
    font-size: 1rem;
}

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

.elements-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
}

.preview-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.preview-card:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg) translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.preview-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-dots {
    display: flex;
    gap: 8px;
}

.preview-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.preview-dots span:nth-child(1) {
    background: #ff5f56;
}

.preview-dots span:nth-child(2) {
    background: #ffbd2e;
}

.preview-dots span:nth-child(3) {
    background: #27ca3f;
}

.preview-content {
    padding: 30px 20px;
}

.preview-element {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.element-demo {
    padding: 20px;
}

.demo-hero {
    text-align: center;
    color: #333;
}

.demo-hero h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.demo-hero p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 15px;
}

.demo-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 176, 255, 0.3);
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(45deg, var(--steel-grey), var(--black));
    text-align: center;
    padding: 4rem 0;
}

.cta-banner h2 {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.slider-nav {
    display: none;
}

@media (max-width: 768px) {
    .testimonial-slider {
        padding: 15px;
    }
    
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .project-image {
        height: 200px;
    }

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

    /* Elements Promotion Responsive */
    .elements-promo {
        padding: 60px 0;
    }

    .elements-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .elements-text h2 {
        font-size: 2rem;
    }

    .elements-text p {
        font-size: 1rem;
    }

    .elements-features {
        align-items: center;
    }

    .elements-preview {
        max-width: 300px;
        margin: 0 auto;
    }

    .preview-card {
        transform: none;
    }

    .preview-card:hover {
        transform: translateY(-5px);
    }
}

/*------------------------------------*
    #FOOTER
\*------------------------------------*/
.footer {
    background: rgba(0, 0, 0, 0.95);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0,176,255,0.08) 0%, transparent 60%);
    filter: blur(60px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-logo a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.link-group h4 {
    margin-bottom: 1rem;
    color: var(--accent-blue);
}

.link-group ul {
    list-style: none;
}

.link-group ul li {
    margin-bottom: 0.5rem;
}

.link-group ul a {
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

.link-group ul a:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-color-light);
}

/* Animations */
@keyframes rotate {
    from {
        transform: rotateY(0deg) rotateX(0deg);
    }
    to {
        transform: rotateY(360deg) rotateX(360deg);
    }
}

/* Responsive Design */



@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--black);
        padding: clamp(1.5rem, 3vw, 2rem);
        flex-direction: column;
        text-align: center;
    }

    .nav-links li {
        margin: 1rem 0;
    }

    .hero {
        padding-top: 100px;
    }

    .rotating-cube {
        width: 200px;
        height: 200px;
    }
}