:root {
    /* Futuristic Palette */
    --bg-dark: #030305;
    --bg-card: rgba(10, 15, 30, 0.7);
    --bg-pearly: #f8f9fa;
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-on-light: #1a1a2e;

    /* Purple Almost Monochrome Gradient */
    --accent-primary: #a855f7;
    --accent-secondary: #d8b4fe;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 95%);

    /* Effects */
    --neon-glow: 0 0 10px rgba(168, 85, 247, 0.6), 0 0 20px rgba(216, 180, 254, 0.15);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --tech-border: 1px solid var(--accent-primary);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 1.1rem;
    background-image:
        linear-gradient(rgba(168, 85, 247, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.4));
}

.hero-slogan {
    display: block !important;
    margin-top: 1rem !important;
    background: none !important;
    -webkit-text-fill-color: white !important;
    color: white !important;
    font-size: 0.9em !important;
    font-weight: 800 !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 1px !important;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: block;
    width: 100%;
}

h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--accent-gradient);
    margin: 1rem auto 0;
    box-shadow: var(--neon-glow);
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: transparent;
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    border: double 2px transparent;
    border-radius: 6px;
    background-image: linear-gradient(var(--bg-dark), var(--bg-dark)), var(--accent-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    transition: var(--transition-fast);
    cursor: pointer;
    overflow: hidden;
}

.btn:hover {
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
    background-image: var(--accent-gradient);
    border-color: transparent;
    color: white;
}

.section {
    padding: var(--spacing-xl) 0;
}

#team,
#services,
#reviews {
    background: #f8f9fa !important;
    background-color: #f8f9fa !important;
    background-image: none !important;
    color: var(--text-on-light);
    position: relative;
    display: block;
    width: 100%;
}

#services h2,
#team h2,
#reviews h2 {
    color: var(--text-on-light);
    background: none;
    -webkit-text-fill-color: var(--text-on-light);
}

#services h2::after,
#team h2::after,
#reviews h2::after {
    background: var(--accent-gradient);
}

#services .service-card,
#team .service-card,
#reviews .review-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

#services .service-card:hover,
#team .service-card:hover,
#reviews .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(168, 85, 247, 0.2);
    border-color: var(--accent-primary);
}

#services p,
#team p,
#reviews p,
#reviews .review-date {
    color: #4a5568;
}

#services h3,
#team h3 {
    color: var(--text-on-light);
}

#reviews .review-card::after {
    color: rgba(0, 0, 0, 0.05);
}

#reviews .review-name {
    color: var(--text-on-light);
}

.img-placeholder {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 1px solid transparent;
    background: var(--accent-gradient) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    clip-path: polygon(0 0, 20px 0, 20px 20px, 0 20px);
}

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: rgba(3, 3, 5, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: white;
    text-decoration: none;
}

.logo span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

.nav-links a:hover {
    color: white;
    text-shadow: 0 0 8px var(--accent-primary);
}

.hero {
    height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    background: transparent;
}

/* Lightened overlay for better video visibility */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.5) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    background: #000;
}

.hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px var(--spacing-md) 0;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slogan-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 2rem;
    background: none !important;
    filter: none !important;
    width: 100%;
}

.slogan-prefix {
    font-size: clamp(0.9rem, 1.5vw, 1.2rem);
    color: var(--accent-secondary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    font-weight: 700;
}

.slogan-lines {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.slogan-line {
    font-size: clamp(1.6rem, 5.5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: white;
    position: relative;
    display: block;
    margin-bottom: 0.5rem;
    text-shadow: none !important;
    transform-origin: left center;
    animation: slogan-grow 6s infinite ease-in-out;
    max-width: 100%;
}

.slogan-line::after {
    display: none !important;
    content: none !important;
}

.slogan-line:nth-child(2) {
    animation-delay: 1.0s;
}

.slogan-line:nth-child(3) {
    animation-delay: 2.0s;
}

@keyframes slogan-grow {

    0%,
    100% {
        transform: scale(1);
        color: white;
    }

    15%,
    45% {
        transform: scale(1.1);
        color: var(--accent-primary);
    }

    60% {
        transform: scale(1);
        color: white;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, rgba(3, 3, 5, 0) 70%);
    z-index: -1;
    animation: pulse 5s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.hero-content {
    max-width: 1200px;
    z-index: 1;
}

.action-btn-container {
    margin-top: 2rem;
    width: 100%;
    display: flex;
    justify-content: flex-start;
}

.hero-subtitle {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    display: block;
    font-weight: 700;
    opacity: 1;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(10, 15, 30, 0.95);
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    color: white;
}

#team .service-card {
    background: #f8f9fa !important;
    color: var(--text-on-light) !important;
    border: 1px solid rgba(168, 85, 247, 0.1);
}

#team .service-card p {
    color: var(--accent-primary) !important;
    font-weight: 500;
}

#team .service-card p:last-of-type {
    color: rgba(0, 0, 0, 0.6) !important;
    font-weight: 400;
}

#team .service-card h3 {
    color: #000 !important;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.review-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border: var(--glass-border);
    position: relative;
}

.review-card::after {
    content: '"';
    position: absolute;
    top: 0;
    right: 1rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.05);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review-stars {
    color: #fbbf24;
    text-shadow: 0 0 5px rgba(251, 191, 36, 0.5);
}

.review-name {
    font-family: var(--font-heading);
    font-weight: bold;
    color: white;
}

.review-date {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-family: monospace;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.5rem;
}

.rating-input input {
    display: none;
}

.rating-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.rating-input label:hover,
.rating-input label:hover~label,
.rating-input input:checked~label {
    color: #fbbf24;
    text-shadow: 0 0 5px #fbbf24;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-form {
    background: var(--bg-card);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 20px;
    height: 20px;
    border-top: 2px solid var(--accent-primary);
    border-left: 2px solid var(--accent-primary);
}

.contact-form::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid var(--accent-secondary);
    border-right: 2px solid var(--accent-secondary);
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-image: var(--accent-gradient) 1;
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.15);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
    background: transparent;
    font-family: var(--font-heading);
    font-size: 0.9rem;
}

.form-input:focus~.form-label,
.form-input:not(:placeholder-shown)~.form-label,
.form-textarea:focus~.form-label,
.form-textarea:not(:placeholder-shown)~.form-label {
    top: -0.6rem;
    left: 0.5rem;
    font-size: 0.8rem;
    color: var(--accent-primary);
    background: var(--bg-dark);
    padding: 0 0.4rem;
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    background: #010102;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    h1 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none;
    }

    .hero {
        height: 100svh;
        min-height: 100svh;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
    }

    .hero-video {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        transform: none;
        /* Reset global transform */
    }

    .hero-content {
        padding-top: 60px;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .slogan-container {
        margin-top: auto;
        margin-bottom: 1.5rem;
    }

    .slogan-line {
        font-size: clamp(1.4rem, 7vw, 1.9rem);
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        letter-spacing: 2px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem;
    }

    .service-icon {
        font-size: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .form-input,
    .form-textarea {
        font-size: 1rem;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section {
        padding: 3rem 0;
    }

    .btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    footer {
        padding: 2rem 0;
        font-size: 0.9rem;
    }

    footer p {
        line-height: 1.8;
    }

    footer a {
        display: inline-block;
        margin: 0.2rem 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero {
        padding: 80px 0.5rem 2rem;
    }

    .service-card,
    .contact-form {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* 3D Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin: 3rem auto;
    perspective: 1200px;
}

.carousel-3d {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
    position: absolute;
    width: 350px;
    height: 450px;
    left: 50%;
    top: 50%;
    margin-left: -175px;
    margin-top: -225px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.carousel-item:active {
    cursor: grabbing;
}

.carousel-item.active {
    z-index: 10;
    box-shadow: 0 20px 60px rgba(168, 85, 247, 0.4);
}

.carousel-item-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.carousel-item-content {
    padding: 1.5rem;
}

.carousel-item-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.carousel-item-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Gallery Link Overlay */
.gallery-image-container {
    position: relative;
    overflow: hidden;
}

.gallery-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(168, 85, 247, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-fast);
    backdrop-filter: blur(2px);
}

.gallery-link-overlay i {
    font-size: 2.5rem;
    color: white;
    transform: scale(0.5);
    transition: var(--transition-fast);
}

.gallery-image-container:hover .gallery-link-overlay {
    opacity: 1;
}

.gallery-image-container:hover .gallery-link-overlay i {
    transform: scale(1);
}

.carousel-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(168, 85, 247, 0.2);
    border: 1px solid var(--accent-primary);
    border-radius: 50%;
    color: var(--accent-primary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.carousel-nav:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Mobile Responsive for Carousel */
@media (max-width: 768px) {
    .carousel-container {
        height: 400px;
    }

    .carousel-item {
        width: 280px;
        height: 380px;
        margin-left: -140px;
        margin-top: -190px;
    }

    .carousel-item-image {
        height: 220px;
    }

    .carousel-item-content {
        padding: 1rem;
    }

    .carousel-item-title {
        font-size: 1.1rem;
    }

    .carousel-item-description {
        font-size: 0.85rem;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 350px;
    }

    .carousel-item {
        width: 240px;
        height: 320px;
        margin-left: -120px;
        margin-top: -160px;
    }

    .carousel-item-image {
        height: 180px;
    }
}

/* Gallery Styles - Consistent Grid Layout */
.realisations-grid {
    display: grid;
    /* Use auto-fit with a restricted max-width to prevents "immense" single items */
    grid-template-columns: repeat(auto-fill, minmax(280px, 400px));
    justify-content: center;
    gap: 2rem;
    margin: 3rem auto;
    /* Center the grid itself */
    padding: 0 1rem;
    width: 100%;
    max-width: 1400px;
    /* Prevent spreading too wide on massive screens */
    box-sizing: border-box;
}

.gallery-item {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    /* Hard limit on card width */
    margin: 0;
    /* Grid handles centering, but this is safe */
    width: 100%;
    text-decoration: none;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(168, 85, 247, 0.4);
    border-color: var(--accent-primary);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Image container determines the aspect ratio */
.gallery-image-container {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    overflow: hidden;
    background: #000;
    /* Placeholder color before load */
}

.gallery-item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.4s ease;
}

@supports (aspect-ratio: 16/9) {
    .gallery-image-container {
        padding-top: 0;
        aspect-ratio: 16/9;
        height: auto;
    }

    .gallery-item-image {
        position: relative;
        height: auto;
        aspect-ratio: 16/9;
    }

    .gallery-item:hover .gallery-item-image {
        transform: scale(1.05);
    }

    .gallery-item-content {
        padding: 1.5rem;
        position: relative;
        z-index: 2;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
    }

    .gallery-item-title {
        font-family: var(--font-heading);
        font-size: 1.2rem;
        color: var(--accent-primary);
        margin-bottom: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 1.2px;
        font-weight: 700;
        transition: color 0.3s ease;
    }

    .gallery-item:hover .gallery-item-title {
        color: #c084fc;
        text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
    }

    .gallery-item-description {
        color: var(--text-secondary);
        font-size: 0.95rem;
        line-height: 1.6;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-top: auto;
    }

    .gallery-loading {
        grid-column: 1 / -1;
        text-align: center;
        color: var(--text-secondary);
        font-size: 1.1rem;
        padding: 4rem 2rem;
        background: var(--bg-card);
        border: var(--glass-border);
        border-radius: 12px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design for Gallery */
@media (max-width: 1200px) {
    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.8rem;
    }
}

@media (max-width: 768px) {
    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .gallery-item-content {
        padding: 1.2rem;
    }

    .gallery-item-title {
        font-size: 1.1rem;
    }

    .gallery-item-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
}

@media (max-width: 480px) {
    .realisations-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .gallery-item-content {
        padding: 1.2rem;
    }

    .gallery-item-title {
        font-size: 1rem;
    }

    .gallery-item-description {
        font-size: 0.85rem;
    }
}

/* Ensure images display on all devices */
@media (min-width: 1400px) {
    .realisations-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(15px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    width: 1200px;
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    animation: zoomIn 0.3s ease;
    padding: 2rem;
}

.lightbox-image {
    flex: 1;
    max-width: 60%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(168, 85, 247, 0.4);
}

.lightbox-info {
    flex: 0.8;
    display: flex;
    flex-direction: column;
    text-align: left;
    background: rgba(10, 15, 30, 0.95);
    border: 1px solid rgba(168, 85, 247, 0.6);
    padding: 2.5rem;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    max-height: 70vh;
    position: relative;
    overflow-y: auto;
}

.lightbox-info::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    transform: translateY(-50%);
    border-width: 15px;
    border-style: solid;
    border-color: transparent rgba(168, 85, 247, 0.6) transparent transparent;
}

.lightbox-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
}

.lightbox-description {
    color: var(--text-primary) !important;
    font-size: 1.1rem;
    line-height: 1.7;
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    color: var(--accent-primary);
    transform: rotate(90deg);
}

/* Mobile lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        flex-direction: column;
        width: 95%;
        max-height: 95vh;
        gap: 1.5rem;
        padding: 1rem;
        justify-content: flex-start;
        overflow-y: auto;
    }

    .lightbox-image {
        max-width: 100%;
        max-height: 50vh;
        width: auto;
        flex: none;
        object-fit: contain;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .lightbox-info {
        flex: none;
        width: 100%;
        text-align: left;
        padding: 1.5rem;
        border-radius: 20px;
        max-height: none;
        overflow-y: visible;
    }

    .lightbox-info::before {
        top: -24px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        border-color: transparent transparent rgba(168, 85, 247, 0.6) transparent;
    }

    .lightbox-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .lightbox-description {
        font-size: 0.95rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 2.5rem;
        z-index: 1001;
    }
}