/* 
    SICO Plastic - Salim Industrial Company (Pvt) Limited
    PREMIUM MODERN DESIGN SYSTEM
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@300;400;600;700;800&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

:root {
    /* Color Palette - Deep Industrial Theme */
    --primary: #10233F;
    --secondary: #00D2FF;
    --accent: #64FFDA;
    --text-primary: #CCD6F6;
    --text-secondary: #8892B0;
    --white: #FFFFFF;
    --bg-main: #10233F;
    --bg-card: #17345A;
    --bg-light: #2A4770;

    /* Spacing & Borders */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --transition: all 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    /* Changed from secondary to primary for better overall contrast */
    line-height: 1.6;
    overflow-x: hidden;
    caret-color: transparent;
    -webkit-user-select: none;
    user-select: none;
}

input,
textarea,
select,
[contenteditable="true"] {
    caret-color: auto;
    -webkit-user-select: text;
    user-select: text;
}

body.custom-cursor-ready,
body.custom-cursor-ready a,
body.custom-cursor-ready button,
body.custom-cursor-ready input,
body.custom-cursor-ready textarea,
body.custom-cursor-ready select {
    cursor: none;
}

.sico-custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 999999;
    opacity: 0;
    transform: translate3d(-120px, -120px, 0);
    transition: opacity 0.18s ease, scale 0.18s ease;
}

.sico-custom-cursor.is-visible {
    opacity: 1;
}

.sico-custom-cursor.is-hovering {
    scale: 1;
}

.cursor-arrow-head {
    position: absolute;
    top: 0;
    left: 0;
    width: 15px;
    height: 21px;
    background: #2563eb;
    clip-path: polygon(0 0, 0 21px, 5px 16px, 9px 21px, 12px 19px, 9px 14px, 15px 14px);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.32));
}

.cursor-arrow-tail {
    display: none;
}

.cursor-logo-badge {
    position: absolute;
    left: 13px;
    top: 15px;
    width: 23px;
    height: 15px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.cursor-logo-badge::before {
    content: '';
    position: absolute;
    right: 0;
    top: 3px;
    width: 62%;
    height: 58%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    z-index: 0;
}

.cursor-logo-badge img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    filter: contrast(1.35) saturate(1.15) drop-shadow(0 1px 2px rgba(255, 255, 255, 0.28));
}

@media (hover: none), (pointer: coarse) {
    body.custom-cursor-ready,
    body.custom-cursor-ready a,
    body.custom-cursor-ready button,
    body.custom-cursor-ready input,
    body.custom-cursor-ready textarea,
    body.custom-cursor-ready select {
        cursor: auto;
    }

    .sico-custom-cursor {
        display: none;
    }
}

h1,
h2,
h3,
h4,
.brand {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 115px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(179, 229, 252, 0.95);
    /* Light Blue */
    background-image: repeating-linear-gradient(45deg,
            rgba(0, 0, 0, 0.03) 0px,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 1px,
            transparent 12px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
}

nav.scrolled {
    height: 90px;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: 2px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 1.5rem;
}

.logo img {
    height: 60px;
    mix-blend-mode: multiply;
    filter: contrast(2) brightness(1.1);
    /* Restored: Pushes near-white to pure white for better blending */
    transition: var(--transition);
}

.logo img:hover {
    transform: scale(1.05);
}

.company-name {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    font-style: italic;
    color: var(--primary);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    list-style: none;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-links li:not(:last-child)::after {
    content: "";
    height: 24px;
    width: 3px;
    /* Bolder */
    background: #2563eb;
    /* Professional blue */
    position: absolute;
    right: -0.6rem;
    /* Position to the right */
    transform: rotate(15deg);
    /* Slight tilt */
    opacity: 0.7;
    /* Slightly more visible */
    border-radius: 2px;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    /* Dark color for readability on light blue */
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.1;
    text-align: left;
}

.nav-links a i {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 10%;
    overflow: visible;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Slider */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    filter: brightness(0.6);
    animation: hero-fade 81s infinite;
}

.carton-slide {
    background-size: cover;
}

.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 3s;
}

.slide:nth-child(3) {
    animation-delay: 6s;
}

.slide:nth-child(4) {
    animation-delay: 9s;
}

.slide:nth-child(5) {
    animation-delay: 12s;
}

.slide:nth-child(6) {
    animation-delay: 15s;
}

.slide:nth-child(7) {
    animation-delay: 18s;
}

.slide:nth-child(8) {
    animation-delay: 21s;
}

.slide:nth-child(9) {
    animation-delay: 24s;
}

.slide:nth-child(10) {
    animation-delay: 27s;
}

.slide:nth-child(11) {
    animation-delay: 30s;
}

.slide:nth-child(12) {
    animation-delay: 33s;
}

.slide:nth-child(13) {
    animation-delay: 36s;
}

.slide:nth-child(14) {
    animation-delay: 39s;
}

.slide:nth-child(15) {
    animation-delay: 42s;
}

.slide:nth-child(16) {
    animation-delay: 45s;
}

.slide:nth-child(17) {
    animation-delay: 48s;
}

.slide:nth-child(18) {
    animation-delay: 51s;
}

.slide:nth-child(19) {
    animation-delay: 54s;
}

.slide:nth-child(20) {
    animation-delay: 57s;
}

.slide:nth-child(21) {
    animation-delay: 60s;
}

.slide:nth-child(22) {
    animation-delay: 63s;
}

.slide:nth-child(23) {
    animation-delay: 66s;
}

.slide:nth-child(24) {
    animation-delay: 69s;
}

.slide:nth-child(25) {
    animation-delay: 72s;
}

.slide:nth-child(26) {
    animation-delay: 75s;
}

.slide:nth-child(27) {
    animation-delay: 78s;
}

@keyframes hero-fade {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    1.5%,
    3.7% {
        opacity: 1;
        transform: scale(1);
    }

    4.9%,
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(10, 25, 47, 0.4) 0%, rgba(10, 25, 47, 0.8) 100%);
    z-index: 0;
}

.hero-content {
    padding: 180px 0 100px 0;
    position: relative;
    z-index: 1;
    max-width: 1100px;
    /* Increased to fit 2 lines */
}

.desktop-br {
    display: block;
}

.hero-content span {
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: block;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

.btn-primary {
    display: inline-block;
    padding: 1rem 2rem;
    border: 1px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-5px);
}

/* Sections Global */
section {
    padding: 120px 10%;
}

.section-header {
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 300px;
    height: 1px;
    background: var(--bg-light);
}

/* Grid System */
.grid {
    display: grid;
    gap: 30px;
}

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

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

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* About Section */
.about-img-placeholder {
    width: 100%;
    height: 400px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.about-img-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent);
    border-radius: var(--radius-md);
    z-index: -1;
    transition: var(--transition);
}

/* Service Cards */
.card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-md);
    transition: var(--transition);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: block;
}

.card h3 {
    margin-bottom: 15px;
}

.founder-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent);
    overflow: hidden;
}

.eco-visual-strip {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.eco-icon-inline {
    width: 180px;
    min-height: 112px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.eco-icon-inline i {
    font-size: 4rem;
    color: var(--accent);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
    animation: ecoMarkBlink 2.8s ease-in-out infinite;
}

.eco-custom-icon {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.25));
    animation: ecoMarkBlink 2.8s ease-in-out infinite;
}

.eco-icon-inline span {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.eco-icon-inline:nth-child(2) i {
    animation-delay: 0.25s;
}

.eco-icon-inline:nth-child(3) i {
    animation-delay: 0.5s;
}

.eco-icon-inline:nth-child(4) i {
    animation-delay: 0.75s;
}

.eco-icon-inline:nth-child(5) i {
    animation-delay: 1s;
}

.eco-icon-inline:nth-child(6) i {
    animation-delay: 1.25s;
}

.eco-icon-inline:nth-child(7) i {
    animation-delay: 1.5s;
}

.eco-icon-inline:nth-child(8) i {
    animation-delay: 1.75s;
}

.eco-icon-inline:nth-child(9) i {
    animation-delay: 2s;
}

.eco-icon-inline:nth-child(10) i {
    animation-delay: 2.25s;
}

.eco-icon-inline:nth-child(11) i {
    animation-delay: 2.5s;
}

.eco-icon-inline:nth-child(12) i {
    animation-delay: 2.75s;
}

.eco-icon-inline:nth-child(13) i {
    animation-delay: 3s;
}

.eco-icon-inline:nth-child(14) .eco-custom-icon {
    animation-delay: 3.25s;
}

@keyframes ecoMarkBlink {
    0%,
    100% {
        opacity: 0.72;
        transform: scale(1);
    }

    45%,
    55% {
        opacity: 1;
        transform: scale(1.08);
        filter: drop-shadow(0 0 16px rgba(100, 255, 218, 0.5));
    }
}

/* Director Cards */
.director-card {
    text-align: center;
}

.director-img {
    width: 180px;
    /* Slightly larger for better detail */
    height: 180px;
    background: var(--bg-light);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--accent);
    overflow: hidden;
    /* Ensure image stays circular */
}

.director-img-src {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Crop to fit circular area */
}

/* Marquee */
.marquee-container {
    background: var(--bg-card);
    padding: 60px 0;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    gap: 100px;
    animation: scroll 30s linear infinite;
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-secondary);
    opacity: 0.5;
    white-space: nowrap;
}

@keyframes scroll {
    from {
        transform: translateX(10%);
    }

    to {
        transform: translateX(-250%);
    }
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
}

.info-item {
    margin-bottom: 30px;
}

.info-item h4 {
    color: var(--accent);
    margin-bottom: 5px;
}

.contact-info a[href*="maps"] {
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    transform-origin: left center;
}

.contact-info a[href*="maps"]:hover {
    background-color: rgba(100, 255, 218, 0.08);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    transform: scale(1.04);
}

/* Footer */
footer {
    padding: 60px 10%;
    text-align: center;
    border-top: 1px solid var(--bg-light);
}

.go-up-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid rgba(100, 255, 218, 0.65);
    border-radius: var(--radius-sm);
    background: rgba(23, 52, 90, 0.9);
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.go-up-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.go-up-btn:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-4px);
}

.go-up-btn i {
    font-size: 0.95rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {

    .grid-2,
    .grid-3,
    .grid-4,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* 
    TAB COMPONENTS 
*/
.tabs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
    transition: var(--transition);
    opacity: 0.7;
}

.tab-btn:hover {
    opacity: 1;
    color: var(--white);
}

.tab-btn.active {
    opacity: 1;
    color: var(--white);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1.1rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.tabs-content {
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active {
    display: block;
}

.tab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.tab-text h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.tab-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.tab-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tab-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.tab-list li::before {
    content: '→';
    color: var(--accent);
    font-weight: bold;
}

.tab-visual {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.tab-visual.has-images {
    background: transparent;
    padding: 0;
    box-shadow: none;
    overflow: visible;
}

.certification-slider img {
    width: 100%;
    max-width: 500px;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.image-cycle {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-cycle img {
    position: absolute;
    width: 280px;
    height: 280px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 4px solid var(--accent);
    opacity: 0;
}

/* 5 Images Animation (Tube Making) */
.cycle-5 img {
    animation: flow-cycle-5 20s infinite linear;
}

.cycle-5 img:nth-child(1) {
    animation-delay: 0s;
}

.cycle-5 img:nth-child(2) {
    animation-delay: 4s;
}

.cycle-5 img:nth-child(3) {
    animation-delay: 8s;
}

.cycle-5 img:nth-child(4) {
    animation-delay: 12s;
}

.cycle-5 img:nth-child(5) {
    animation-delay: 16s;
}

@keyframes flow-cycle-5 {
    0% {
        opacity: 0;
        transform: translate(40px, 40px) rotate(10deg) scale(0.9);
        z-index: 1;
    }

    5% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        z-index: 10;
    }

    15% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        z-index: 10;
    }

    20% {
        opacity: 0.7;
        transform: translate(-40px, -40px) rotate(-10deg) scale(0.95);
        z-index: 5;
    }

    25% {
        opacity: 0;
        transform: translate(-80px, -80px) rotate(-20deg) scale(0.9);
        z-index: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 6 Images Animation (Printing) */
.cycle-6 img {
    animation: flow-cycle-6 24s infinite linear;
}

.cycle-6 img:nth-child(1) {
    animation-delay: 0s;
}

.cycle-6 img:nth-child(2) {
    animation-delay: 4s;
}

.cycle-6 img:nth-child(3) {
    animation-delay: 8s;
}

.cycle-6 img:nth-child(4) {
    animation-delay: 12s;
}

.cycle-6 img:nth-child(5) {
    animation-delay: 16s;
}

.cycle-6 img:nth-child(6) {
    animation-delay: 20s;
}

@keyframes flow-cycle-6 {
    0% {
        opacity: 0;
        transform: translate(40px, 40px) rotate(10deg) scale(0.9);
        z-index: 1;
    }

    4% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        z-index: 10;
    }

    13% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        z-index: 10;
    }

    17% {
        opacity: 0.7;
        transform: translate(-40px, -40px) rotate(-10deg) scale(0.95);
        z-index: 5;
    }

    21% {
        opacity: 0;
        transform: translate(-80px, -80px) rotate(-20deg) scale(0.9);
        z-index: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 8 Images Animation (Bag Making) */
.cycle-8 img {
    animation: flow-cycle-8 32s infinite linear;
}

.cycle-8 img:nth-child(1) {
    animation-delay: 0s;
}

.cycle-8 img:nth-child(2) {
    animation-delay: 4s;
}

.cycle-8 img:nth-child(3) {
    animation-delay: 8s;
}

.cycle-8 img:nth-child(4) {
    animation-delay: 12s;
}

.cycle-8 img:nth-child(5) {
    animation-delay: 16s;
}

.cycle-8 img:nth-child(6) {
    animation-delay: 20s;
}

.cycle-8 img:nth-child(7) {
    animation-delay: 24s;
}

.cycle-8 img:nth-child(8) {
    animation-delay: 28s;
}

@keyframes flow-cycle-8 {
    0% {
        opacity: 0;
        transform: translate(40px, 40px) rotate(10deg) scale(0.9);
        z-index: 1;
    }

    3% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        z-index: 10;
    }

    9% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        z-index: 10;
    }

    12% {
        opacity: 0.7;
        transform: translate(-40px, -40px) rotate(-10deg) scale(0.95);
        z-index: 5;
    }

    15% {
        opacity: 0;
        transform: translate(-80px, -80px) rotate(-20deg) scale(0.9);
        z-index: 1;
    }

    100% {
        opacity: 0;
    }
}

/* 8 Images Animation (R&D Merge) */
.cycle-rd img {
    animation: rd-merge 32s infinite ease-in-out;
}

.cycle-rd img:nth-child(1) {
    animation-delay: 0s;
}

.cycle-rd img:nth-child(2) {
    animation-delay: 4s;
}

.cycle-rd img:nth-child(3) {
    animation-delay: 8s;
}

.cycle-rd img:nth-child(4) {
    animation-delay: 12s;
}

.cycle-rd img:nth-child(5) {
    animation-delay: 16s;
}

.cycle-rd img:nth-child(6) {
    animation-delay: 20s;
}

.cycle-rd img:nth-child(7) {
    animation-delay: 24s;
}

.cycle-rd img:nth-child(8) {
    animation-delay: 28s;
}

@keyframes rd-merge {
    0% {
        opacity: 0;
        transform: scale(0.5);
        filter: blur(10px);
        z-index: 1;
    }

    5%,
    20% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
        z-index: 10;
    }

    25% {
        opacity: 0.5;
        transform: scale(1.1);
        filter: blur(5px);
        z-index: 5;
    }

    30%,
    100% {
        opacity: 0;
        transform: scale(1.2);
        z-index: 1;
    }
}

/* 4 Images Animation (Workshop) */
.cycle-workshop img {
    animation: workshop-reveal 16s infinite ease-in-out;
    border-color: var(--secondary);
    /* Different border color for workshop */
}

.cycle-workshop img:nth-child(1) {
    animation-delay: 0s;
}

.cycle-workshop img:nth-child(2) {
    animation-delay: 4s;
}

.cycle-workshop img:nth-child(3) {
    animation-delay: 8s;
}

.cycle-workshop img:nth-child(4) {
    animation-delay: 12s;
}

@keyframes workshop-reveal {
    0% {
        opacity: 0;
        transform: scale(1.1) translateY(20px);
    }

    5%,
    20% {
        opacity: 1;
        transform: scale(1) translateY(0);
        z-index: 10;
    }

    25% {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
        z-index: 1;
    }

    100% {
        opacity: 0;
    }
}

.tab-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, rgba(179, 229, 252, 0.1) 0px, rgba(179, 229, 252, 0.1) 1px, transparent 1px, transparent 10px);
}

.tab-visual i {
    font-size: 6rem;
    color: var(--accent);
    position: relative;
    z-index: 1;
}

.card-large {
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--shadow);
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.card-large i {
    font-size: 4rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.card-logo {
    height: 8rem;
    /* Double the size */
    width: auto;
    object-fit: contain;
    margin-bottom: 2rem;
}

.card-large h3 {
    /* font-family: 'Playfair Display', serif; */
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card-large p {
    font-size: 1.2rem;
    line-height: 2;
    color: var(--primary);
}

/* Responsive Design */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 1250px) {
    #navbar {
        padding: 1rem 3%;
    }

    .company-name {
        font-size: 18px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        left: -100%;
        flex-direction: column;
        background: rgba(16, 35, 63, 0.98);
        width: 100%;
        height: calc(100vh - 90px);
        transition: 0.3s;
        gap: 0;
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
        z-index: 1000;
        padding: 1rem 0 2rem;
        overflow-y: auto;
    }

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

    .nav-links li {
        width: 100%;
        justify-content: center;
        padding: 0;
        border-bottom: 1px solid rgba(204, 214, 246, 0.12);
    }

    .nav-links li::after {
        display: none;
        /* Hide dividers on mobile */
    }

    .nav-links a {
        min-height: 72px;
        padding: 1rem 1.5rem;
        font-size: 1.15rem;
        font-weight: 700;
        width: 100%;
        justify-content: center;
        text-align: center;
        color: var(--text-primary);
        gap: 12px;
        line-height: 1.2;
    }

    .nav-links a i {
        color: var(--accent);
        font-size: 1rem;
        opacity: 1;
    }

    .nav-links a:hover {
        color: var(--accent);
        background: rgba(100, 255, 218, 0.08);
    }
}

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

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

    .section-header h2 {
        font-size: 2rem;
    }

    .card-large {
        padding: 2rem;
    }

    .card-large h3 {
        font-size: 1.8rem;
    }

    .tab-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .tab-list {
        grid-template-columns: 1fr;
        text-align: left;
        max-width: 300px;
        margin: 0 auto;
    }

    .tab-visual {
        order: -1;
        padding: 2rem;
    }

    .desktop-br {
        display: none;
    }
}

@media (max-width: 480px) {
    .company-name {
        display: none;
        /* Only show logo on very small screens */
    }

    #navbar {
        justify-content: space-between;
    }

    .hero {
        padding: 120px 20px 60px;
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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