/* 
   Theme: Ellantra Professional Light
   Fonts: 'Outfit', sans-serif
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Colors - Dark Theme */
    --bg-dark: #0f172a;
    /* Dark Slate 900 */
    --bg-light: #1e293b;
    /* Slate 800 (Secondary BG) */
    --bg-card: #1e293b;
    /* Slate 800 */
    --bg-card-hover: #334155;
    /* Slate 700 */
    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */
    --primary: #38bdf8;
    /* Sky 400 (Brighter for dark mode) */
    --primary-glow: rgba(56, 189, 248, 0.3);
    --accent: #8b5cf6;
    /* Violet 500 */
    --accent-glow: rgba(139, 92, 246, 0.3);
    --border: #334155;
    /* Slate 700 */
    --gradient-main: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);

    /* Spacing */
    --container-width: 1200px;
    --header-height: 80px;

    /* Animation */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-gradient {
    /* Gradient for dark theme pop */
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--primary-glow);
}

/* Card Styles (Global) */
.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.3);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* Header */
header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    /* Dark Slate with Blur */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-main);
    transition: var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}


/* Tech Globe / Dynamic Orb */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    z-index: 2;
}

.swirly-orb {
    position: relative;
    width: 400px;
    height: 400px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}

.orb-core {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, #ffffff 5%, #06b6d4 20%, #8b5cf6 60%, transparent 85%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(139, 92, 246, 0.6), 0 0 30px rgba(6, 182, 212, 0.6);
    animation: pulse-core 3s ease-in-out infinite alternate;
}

/* Removed orb-glow */

.orb-ring {
    position: absolute;
    border-radius: 50%;
    transform-style: preserve-3d;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}

.ring-1 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(6, 182, 212, 0.7);
    /* Cyan */
    border-left-color: transparent;
    border-right-color: transparent;
    animation: rotate-3d 8s linear infinite;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

.ring-2 {
    width: 360px;
    height: 360px;
    border: 1px dashed rgba(139, 92, 246, 0.7);
    /* Violet */
    animation: rotate-3d-reverse 12s linear infinite;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.ring-3 {
    width: 250px;
    height: 250px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    /* White/Silver */
    border-top-color: transparent;
    border-bottom-color: transparent;
    border-width: 3px;
    animation: rotate-flat 6s linear infinite;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

@keyframes pulse-core {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
        box-shadow: 0 0 90px rgba(139, 92, 246, 0.8), 0 0 40px rgba(6, 182, 212, 0.8);
    }
}

@keyframes rotate-3d {
    0% {
        transform: rotateX(60deg) rotateY(0deg) rotateZ(0deg);
    }

    100% {
        transform: rotateX(60deg) rotateY(360deg) rotateZ(360deg);
    }
}

@keyframes rotate-3d-reverse {
    0% {
        transform: rotateX(-45deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(-45deg) rotateY(-360deg);
    }
}

@keyframes rotate-flat {
    0% {
        transform: rotateZ(0deg) scale(1.1);
    }

    50% {
        transform: rotateZ(180deg) scale(0.9);
    }

    100% {
        transform: rotateZ(360deg) scale(1.1);
    }
}

/* Detailed Content Sections */
.detail-section {
    padding: 6rem 0;
    background: var(--bg-dark);
}

.detail-section:nth-of-type(even) {
    background: var(--bg-light);
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
}

.read-more-btn {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.read-more-btn:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px var(--primary-glow);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background:
        radial-gradient(circle at 10% 20%, rgba(29, 78, 216, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: white;
    /* Force white for dark hero */
}

.hero-content p {
    font-size: 1.2rem;
    color: #cbd5e1;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Abstract 3D-like shape in CSS */
.cube-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

.glowing-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: var(--gradient-main);
    filter: blur(80px);
    opacity: 0.2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 1rem;
    display: block;
    font-weight: 600;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Cards Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(29, 78, 216, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(29, 78, 216, 0.05);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    transition: var(--transition-fast);
}

.card:hover .card-icon {
    background: var(--gradient-main);
    color: white;
}

.card h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.card-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Stats/About Section */
.about-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 4rem;
    padding: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Page Header Styles */
.page-header {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.95)), var(--bg-dark);
    padding: 10rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 0;
}

.page-header h1 {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.page-header p {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Prose/Content Styles */
.prose {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.prose h3,
.prose h4 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem;
}

.prose h4 {
    font-size: 1.4rem;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

/* Feature Row (Text + Image) */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 4rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    height: 400px;
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* Badge/Tag Styles */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(29, 78, 216, 0.1);
    color: var(--primary);
    border: 1px solid rgba(29, 78, 216, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Input Styles */
input,
textarea {
    background: #f8fafc !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border) !important;
}

input:focus,
textarea:focus {
    background: white !important;
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.1);
}

/* Footer */
footer {
    background: #020617;
    /* Very dark slate */
    color: white;
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Separator Line */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    max-width: 300px;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #94a3b8;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-btns {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--header-height);
    overflow: hidden;
    background: radial-gradient(circle at center, #1e293b 0%, #0f172a 100%);
    /* Dark Slate Background */
    color: white;
    /* Force white text in hero */
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .about-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .feature-image {
        width: 100%;
        height: 300px;
    }
}

/* --- Component: Carousel (Industries) --- */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease-in-out;
    gap: 2rem;
}

.carousel-slide {
    min-width: 300px;
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

.carousel-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-btn {
    background: white;
    border: 1px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.carousel-btn:hover {
    background: var(--primary);
    color: white;
}


/* --- Component: Marquee (Clients) --- */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 3rem 0;
    background: var(--bg-dark);
    /* Dark background */
}

.marquee-content {
    display: inline-flex;
    animation: marquee 25s linear infinite;
    gap: 4rem;
    align-items: center;
}

.client-logo-placeholder {
    width: 150px;
    height: 80px;
    background: var(--bg-card);
    /* Darker card bg */
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--border);
}

.client-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-120%);
    }
}


/* --- Component: Modal (Details) --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    /* Dark blur overlay */
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    /* Center Vertically */
    justify-content: center;
    /* Center Horizontally */
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 2rem;
    /* Prevent touching edges on small screens */
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    /* White Modal Background */
    color: #1e293b;
    /* Dark Text */
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    border-radius: 20px;
    padding: 2.5rem;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    /* relative, let flexbox handle centering */
    border: 1px solid var(--border);
    /* Remove absolute centering since overlay is flex */
}


.modal-content h2,
.modal-content h3,
.modal-content h4 {
    color: #0f172a;
    /* Ensure Headers are Dark */
}

.modal-content p,
.modal-content li {
    color: #334155;
    /* Ensure Body is Slate */
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #f1f5f9;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.close-modal-btn:hover {
    background: #e2e8f0;
    color: var(--primary);
}

/* Responsive Overrides */
@media (max-width: 968px) {
    .carousel-slide {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 600px) {
    .carousel-slide {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .modal-content {
        padding: 1.5rem;
    }
}