:root {
    --bg-dark: #0a0a0a;
    --bg-card: #131313;
    --v-green: #31A55E;
    --v-blue: #466CB3;
    --v-orange: #F29B0E;
    --v-pink: #E31C65;
    --text-white: #ffffff;
    --text-gray: #a0a0a0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Animated gradient background elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(49, 165, 94, 0.08) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(227, 28, 101, 0.06) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* --- Hero Section --- */
.hero-section {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Sections Style --- */
section {
    padding: 120px 8%;
    position: relative;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 60px;
    text-align: center;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    position: relative;
    display: inline-block;
    width: 100%;
}

h2::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -20px;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--v-green), var(--v-blue), var(--v-orange), var(--v-pink), var(--v-green));
    background-size: 200% 100%;
    border-radius: 2px;
    animation: underlineFlow 4s linear infinite;
}

@keyframes underlineFlow {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

h2 .gradient-text {
    background: linear-gradient(135deg, var(--v-green), var(--v-blue), var(--v-pink), var(--v-orange));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- About Section --- */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: subtleFloat 6s ease-in-out infinite;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes subtleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-10px) scale(1.02);
    }
}

.about-image:hover img {
    transform: translateY(-15px) scale(1.05);
}

.about-content {
    padding: 20px 0;
}

.about-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2rem;
    margin-bottom: 25px;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--v-green), var(--v-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* --- ADN Section with Enhanced Cards --- */
.adn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.adn-card {
    padding: 50px 30px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.adn-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--card-color), transparent);
    opacity: 0;
    transition: opacity 0.5s;
}

.adn-card:hover {
    transform: translateY(-10px);
    border-color: var(--card-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px var(--card-glow);
}

.adn-card:hover::before {
    opacity: 1;
}

.adn-card.c1 { --card-color: var(--v-green); --card-glow: rgba(49, 165, 94, 0.2); }
.adn-card.c2 { --card-color: var(--v-blue); --card-glow: rgba(70, 108, 179, 0.2); }
.adn-card.c3 { --card-color: var(--v-orange); --card-glow: rgba(242, 155, 14, 0.2); }
.adn-card.c4 { --card-color: var(--v-pink); --card-glow: rgba(227, 28, 101, 0.2); }

.adn-card i {
    font-size: 3rem;
    margin-bottom: 25px;
    transition: transform 0.5s;
    display: inline-block;
}

.adn-card:hover i {
    transform: scale(1.15) rotate(5deg);
}

.adn-card.c1 i { color: var(--v-green); }
.adn-card.c2 i { color: var(--v-blue); }
.adn-card.c3 i { color: var(--v-orange); }
.adn-card.c4 i { color: var(--v-pink); }

.adn-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.adn-card p {
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 45px 35px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--service-color);
    transform: scaleX(0);
    transition: transform 0.5s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--service-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:nth-child(1) { --service-color: var(--v-green); }
.service-card:nth-child(2) { --service-color: var(--v-blue); }
.service-card:nth-child(3) { --service-color: var(--v-pink); }
.service-card:nth-child(4) { --service-color: var(--v-orange); }
.service-card:nth-child(5) { --service-color: var(--v-green); }
.service-card:nth-child(6) { --service-color: var(--v-blue); }

.service-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 25px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--service-color);
    transition: all 0.4s;
}

.service-card:hover .service-icon {
    background: var(--service-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-white);
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* --- PDF Teaser Banner --- */
.pdf-banner {
    margin-bottom: 80px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 50px;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 28px;
    padding: 60px 60px;
    overflow: hidden;
}

.pdf-banner-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at left center, rgba(227,28,101,0.12) 0%, rgba(70,108,179,0.08) 50%, transparent 70%);
    pointer-events: none;
}

.pdf-icon-wrap {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pdf-icon-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, var(--v-pink), var(--v-blue)) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spinRing 6s linear infinite;
}

@keyframes spinRing {
    to { transform: rotate(360deg); }
}

.pdf-icon {
    font-size: 3.5rem;
    background: linear-gradient(135deg, var(--v-pink), var(--v-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.pdf-text {
    flex: 1;
}

.pdf-text h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-white);
    line-height: 1.3;
}

.pdf-text p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 520px;
}

.pdf-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    background: linear-gradient(135deg, var(--v-pink), var(--v-orange));
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    box-shadow: 0 8px 30px rgba(227,28,101,0.3);
}

.pdf-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--v-orange), var(--v-pink));
    opacity: 0;
    transition: opacity 0.4s;
}

.pdf-btn:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 50px rgba(227,28,101,0.5);
}

.pdf-btn:hover::before {
    opacity: 1;
}

.pdf-btn i,
.pdf-btn span {
    position: relative;
    z-index: 1;
}

@media (max-width: 900px) {
    .pdf-banner {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 50px 35px;
    }
    .pdf-text p { max-width: 100%; }
}

@media (max-width: 480px) {
    .pdf-banner { padding: 40px 25px; }
    .pdf-text h3 { font-size: 1.4rem; }
    .pdf-btn { padding: 15px 28px; font-size: 0.9rem; }
}

/* --- Video items in gallery --- */
.video-item video {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.video-item:hover video {
    transform: scale(1.08);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    pointer-events: none;
}

.play-overlay i {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0,0,0,0.65);
    backdrop-filter: blur(4px);
    border: 2px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    transition: all 0.3s;
}

.video-item:hover .play-overlay i {
    background: var(--v-pink);
    border-color: var(--v-pink);
    transform: scale(1.15);
}

/* --- Gallery Section with Masonry Layout --- */
.gallery-grid {
    columns: 3;
    column-gap: 20px;
}

.project-item {
    background: var(--bg-card);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    margin-bottom: 20px;
    break-inside: avoid;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(49, 165, 94, 0.3), rgba(227, 28, 101, 0.3));
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
    mix-blend-mode: multiply;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
}

.project-item:hover::before {
    opacity: 1;
}

.project-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.project-item:hover img {
    transform: scale(1.08);
}

/* --- Footer with Gradient --- */
footer {
    padding: 120px 8% 60px;
    text-align: center;
    background: linear-gradient(to top, #000000, var(--bg-dark));
    position: relative;
}

footer h2 {
    margin-bottom: 20px;
}

footer p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-top: 40px;
    margin-bottom: 40px;
}

.social-icons {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 25px;
}

.social-icons a {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-icons a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--social-color);
    transform: scale(0);
    transition: transform 0.4s;
    z-index: -1;
}

.social-icons a:hover {
    transform: translateY(-5px);
    border-color: transparent;
    box-shadow: 0 10px 30px var(--social-glow);
}

.social-icons a:hover::before {
    transform: scale(1);
}

.social-icons a.fb { --social-color: var(--v-blue); --social-glow: rgba(70, 108, 179, 0.4); }
.social-icons a.ig { --social-color: var(--v-pink); --social-glow: rgba(227, 28, 101, 0.4); }
.social-icons a.yt { --social-color: #ff0000; --social-glow: rgba(255, 0, 0, 0.4); }
.social-icons a.ln { --social-color: var(--v-blue); --social-glow: rgba(70, 108, 179, 0.4); }

footer .copyright {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* Lightbox Enhanced */
#lb {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.96);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

#lb img,
#lb video {
    max-width: 82%;
    max-height: 85%;
    box-shadow: 0 20px 80px rgba(0,0,0,0.8);
    animation: zoomIn 0.3s ease;
    cursor: default;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
    z-index: 1001;
}

.lb-nav:hover {
    background: var(--v-pink);
    border-color: var(--v-pink);
    transform: translateY(-50%) scale(1.1);
}

.lb-prev { left: 24px; }
.lb-next { right: 24px; }

.lb-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    backdrop-filter: blur(6px);
    z-index: 1001;
}

.lb-close:hover {
    background: rgba(227,28,101,0.7);
    border-color: var(--v-pink);
    transform: scale(1.1);
}

@media (max-width: 600px) {
    .lb-prev { left: 10px; }
    .lb-next { right: 10px; }
    .lb-nav { width: 42px; height: 42px; font-size: 1rem; }
    #lb img, #lb video { max-width: 90%; }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animation for cards */
.adn-card,
.service-card,
.project-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.adn-card.visible,
.service-card.visible,
.project-item.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 968px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        height: 400px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    h2 { font-size: 2.5rem; }
    section { padding: 80px 6%; }
    .adn-grid { grid-template-columns: 1fr; }
    .social-icons a { width: 50px; height: 50px; font-size: 1.2rem; }
    .gallery-grid { columns: 2; column-gap: 15px; }
    .project-item { margin-bottom: 15px; }
}

@media (max-width: 480px) {
    h2 { font-size: 2rem; }
    .about-content h3 { font-size: 1.5rem; }
    .about-content p { font-size: 1rem; }
    .gallery-grid { columns: 1; }
    .about-image { height: 300px; }
}