/* ===========================
   CSS Variables
   =========================== */
:root {
    /* Primary Orange (from Transcend logo) */
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8555;

    /* Secondary Colors */
    --secondary-color: #2C3E50;
    --secondary-dark: #1A252F;
    --secondary-light: #34495E;

    /* Accent Colors */
    --accent-color: #17A2B8;
    --accent-teal: #17A2B8;
    --accent-green: #27AE60;
    --accent-amber: #F39C12;
    --accent-red: #E74C3C;

    /* Neutral Colors */
    --text-dark: #2C3E50;
    --text-light: #5A6C7D;
    --text-lighter: #95A5A6;
    --bg-light: #F8F9FA;
    --bg-white: #ffffff;
    --bg-dark: #1A252F;
    --border-color: #E0E6ED;

    /* Shadows with orange tint */
    --shadow-sm: 0 2px 4px rgba(255, 107, 53, 0.1);
    --shadow-md: 0 4px 8px rgba(255, 107, 53, 0.15);
    --shadow-lg: 0 10px 20px rgba(255, 107, 53, 0.2);
    --shadow-xl: 0 20px 40px rgba(255, 107, 53, 0.25);

    /* Gradients */
    --transition: all 0.3s ease;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    --gradient-mixed: linear-gradient(135deg, #FF6B35 0%, #17A2B8 100%);

    /* Monitoring-specific colors */
    --vibration-color: #9B59B6;
    --tilt-color: #3498DB;
    --piezometer-color: #16A085;
    --sound-color: #E67E22;

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Theme alternatives */
[data-theme="blue"] {
    --primary-color: #3498DB;
    --primary-dark: #2980B9;
    --primary-light: #5DADE2;
    --accent-teal: #1ABC9C;
    --gradient: linear-gradient(135deg, #3498DB 0%, #5DADE2 100%);
    --gradient-mixed: linear-gradient(135deg, #3498DB 0%, #1ABC9C 100%);
    --shadow-sm: 0 2px 4px rgba(52, 152, 219, 0.1);
    --shadow-md: 0 4px 8px rgba(52, 152, 219, 0.15);
    --shadow-lg: 0 10px 20px rgba(52, 152, 219, 0.2);
    --shadow-xl: 0 20px 40px rgba(52, 152, 219, 0.25);
}

[data-theme="green"] {
    --primary-color: #7A8F3E;
    /* Olive Green */
    --primary-dark: #5C6B2F;
    /* Darker Olive Green */
    --primary-light: #A3B86B;
    /* Lighter Olive Green */
    --secondary-color: #D9C7A3;
    /* Sand Beige */
    --secondary-dark: #B8A47A;
    /* Darker Sand Beige */
    --secondary-light: #F0E6D6;
    /* Lighter Sand Beige */
    --accent-color: #D97A3A;
    /* Burnt Orange */
    --accent-teal: #D97A3A;
    /* Burnt Orange as accent */
    --bg-light: #FAF8F3;
    /* Off-White */
    --bg-white: #FAF8F3;
    /* Off-White */
    --bg-dark: #B8A47A;
    /* Use darker sand beige for dark bg */
    --text-dark: #3A2F2A;
    /* Espresso */
    --text-light: #7A8F3E;
    /* Olive Green as light text */
    --text-lighter: #D9C7A3;
    /* Sand Beige as lighter text */
    --border-color: #D9C7A3;
    /* Sand Beige for borders */
    --gradient: linear-gradient(135deg, #7A8F3E 0%, #A3B86B 100%);
    --gradient-mixed: linear-gradient(135deg, #7A8F3E 0%, #D97A3A 100%);
    --shadow-sm: 0 2px 4px rgba(122, 143, 62, 0.1);
    --shadow-md: 0 4px 8px rgba(122, 143, 62, 0.15);
    --shadow-lg: 0 10px 20px rgba(122, 143, 62, 0.2);
    --shadow-xl: 0 20px 40px rgba(122, 143, 62, 0.25);
}

[data-theme="purple"] {
    --primary-color: #9B59B6;
    --primary-dark: #8E44AD;
    --primary-light: #BB8FCE;
    --accent-teal: #3498DB;
    --gradient: linear-gradient(135deg, #9B59B6 0%, #BB8FCE 100%);
    --gradient-mixed: linear-gradient(135deg, #9B59B6 0%, #3498DB 100%);
    --shadow-sm: 0 2px 4px rgba(155, 89, 182, 0.1);
    --shadow-md: 0 4px 8px rgba(155, 89, 182, 0.15);
    --shadow-lg: 0 10px 20px rgba(155, 89, 182, 0.2);
    --shadow-xl: 0 20px 40px rgba(155, 89, 182, 0.25);
}

[data-theme="red"] {
    --primary-color: #E74C3C;
    --primary-dark: #C0392B;
    --primary-light: #EC7063;
    --accent-teal: #16A085;
    --gradient: linear-gradient(135deg, #E74C3C 0%, #EC7063 100%);
    --gradient-mixed: linear-gradient(135deg, #E74C3C 0%, #16A085 100%);
    --shadow-sm: 0 2px 4px rgba(231, 76, 60, 0.1);
    --shadow-md: 0 4px 8px rgba(231, 76, 60, 0.15);
    --shadow-lg: 0 10px 20px rgba(231, 76, 60, 0.2);
    --shadow-xl: 0 20px 40px rgba(231, 76, 60, 0.25);
}

/* ===========================
   Global Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===========================
   Navigation
   =========================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-left: 0.1rem;
}

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

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: var(--transition);
}

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

.nav-link:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--gradient);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: var(--transition);
}

.cta-button::after {
    display: none;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition);
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.05;
    z-index: -1;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.hero-image {
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    position: absolute;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.visual-card i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.visual-card span {
    font-weight: 600;
    font-size: 1.1rem;
}

.card-1 {
    top: 10%;
    left: 10%;
    animation: float 3s ease-in-out infinite;
}

.card-2 {
    top: 50%;
    right: 5%;
    animation: float 4s ease-in-out infinite;
    animation-delay: 1s;
}

.card-3 {
    bottom: 10%;
    left: 20%;
    animation: float 3.5s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-lighter);
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ===========================
   Animations
   =========================== */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.fade-in-delay {
    animation: fadeIn 1s ease-in 0.3s backwards;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-in 0.6s backwards;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-in 0.9s backwards;
}

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

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

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 2rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
}

.feature-list i {
    color: var(--primary-color);
}

/* ===========================
   Platform Gallery Section
   =========================== */
.platform-gallery {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.gallery-container {
    margin-top: 3rem;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-main {
    position: relative;
    margin-bottom: 2rem;
}

.gallery-display {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.gallery-display img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 70%, transparent 100%);
    color: white;
    padding: 2rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.gallery-caption h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gallery-caption p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-nav i {
    font-size: 1.2rem;
}

.gallery-fullscreen {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-fullscreen:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.thumbnail-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.thumbnail-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

.thumbnail-item span {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: white;
    padding: 8px 10px;
    font-size: 0.85rem;
    font-weight: 500;
    text-align: center;
}

/* ===========================
   Solutions Section
   =========================== */
.solutions {
    padding: 6rem 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.solution-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 3rem;
    border-radius: 16px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(255, 107, 53, 0.4);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.solution-icon i {
    font-size: 2.5rem;
}

.solution-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.solution-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    opacity: 0.95;
}

/* ===========================
   Technology Section
   =========================== */
.technology {
    padding: 6rem 0;
    background: var(--bg-light);
}

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

.tech-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-feature {
    display: flex;
    gap: 1.5rem;
}

.tech-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tech-icon i {
    font-size: 1.5rem;
    color: white;
}

.tech-text h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tech-text p {
    color: var(--text-light);
}

.tech-stack {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tech-badge {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.tech-badge:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.tech-badge i {
    font-size: 2rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-badge span {
    font-weight: 600;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: 6rem 0;
    background: var(--gradient);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.cta-section .btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* ===========================
   Contact Section
   =========================== */
.contact {
    padding: 6rem 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: white;
}

.contact-text h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-text a:hover {
    text-decoration: underline;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 70px;
    width: auto;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

.footer-bottom a {
    color: var(--accent-color);
    text-decoration: none;
}

/* ===========================
   Scroll to Top Button
   =========================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.scroll-top.visible {
    display: flex;
}

/* ===========================
   Image Lightbox
   =========================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

#lightboxImage {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-caption {
    background: var(--bg-white);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-top: 1.5rem;
    max-width: 600px;
    text-align: center;
}

.lightbox-caption h4 {
    color: var(--text-dark);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.lightbox-caption p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: var(--bg-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-close:hover {
    background: var(--primary-color);
    color: white;
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-dark);
    transition: var(--transition);
    z-index: 10001;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 1024px) {

    .hero-content,
    .tech-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 400px;
    }

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

@media (max-width: 768px) {
    .gallery-container {
        padding: 1.5rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .gallery-fullscreen {
        width: 38px;
        height: 38px;
        top: 10px;
        right: 10px;
    }

    .gallery-caption {
        padding: 1.5rem;
    }

    .gallery-caption h3 {
        font-size: 1.3rem;
    }

    .gallery-caption p {
        font-size: 0.9rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .thumbnail-item img {
        height: 80px;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        padding: 2rem;
        box-shadow: var(--shadow-md);
        transition: var(--transition);
        align-items: flex-start;
    }

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

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .features-grid,
    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .tech-stack {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .cta-content h2 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Lightbox mobile adjustments */
    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    #lightboxImage {
        max-height: 60vh;
    }

    .lightbox-caption {
        padding: 1rem;
        margin-top: 1rem;
    }

    .lightbox-caption h4 {
        font-size: 1rem;
    }

    .lightbox-caption p {
        font-size: 0.85rem;
    }
}

/* ===========================
   Language Toggle & Theme Toggle Button
   =========================== */
.lang-toggle,
.theme-toggle {
    background: rgba(102, 126, 234, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.lang-toggle:hover,
.theme-toggle:hover {
    background: rgba(102, 126, 234, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.navbar.scrolled .lang-toggle,
.navbar.scrolled .theme-toggle {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.3);
    color: #2d3748;
}

.navbar.scrolled .lang-toggle:hover,
.navbar.scrolled .theme-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.lang-toggle i,
.theme-toggle i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {

    .lang-toggle,
    .theme-toggle {
        width: 100%;
        justify-content: center;
        padding: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar.scrolled .lang-toggle,
    .navbar.scrolled .theme-toggle {
        border-top-color: rgba(0, 0, 0, 0.1);
    }
}

/* ===========================
   Theme Notification
   =========================== */
.theme-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    z-index: 10000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.theme-notification i {
    font-size: 1.2rem;
}

.theme-notification strong {
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .theme-notification {
        bottom: 20px;
        right: 20px;
        left: 20px;
        justify-content: center;
    }
}

/* ===========================
   Partnership Popup
   =========================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-container {
    background: linear-gradient(135deg, #ffffff 0%, #f7fafc 100%);
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    text-align: center;
}

.popup-overlay.active .popup-container {
    transform: scale(1) translateY(0);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #4a5568;
}

.popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-lg);
}

.popup-icon i {
    font-size: 2.5rem;
    color: #ffffff;
}

.popup-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
}

.popup-content {
    margin-bottom: 2rem;
}

.popup-message {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4a5568;
    margin-bottom: 1.5rem;
}

.popup-message strong {
    color: var(--primary-color);
    font-weight: 700;
}

.popup-partner {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--gradient);
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    box-shadow: var(--shadow-md);
}

.popup-partner i {
    font-size: 1.3rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    justify-content: center;
}

.popup-buttons .btn {
    flex: 0 0 auto;
    padding: 0.625rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.popup-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #718096;
    cursor: pointer;
    user-select: none;
}

.popup-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.popup-checkbox:hover {
    color: #4a5568;
}

@media (max-width: 768px) {
    .popup-container {
        padding: 2rem 1.5rem;
        max-width: 90%;
    }

    .popup-title {
        font-size: 1.5rem;
    }

    .popup-message {
        font-size: 1rem;
    }

    .popup-buttons {
        flex-direction: column;
    }

    .popup-partner {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
}

.popup-link {
    color: #667eea;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.popup-link:hover {
    color: #764ba2;
    border-bottom-color: #764ba2;
}

/* ===========================
   Pricing Section Styles
   =========================== */
.pricing {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 25px;
}

.pricing-header h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.pricing-price {
    margin: 20px 0;
}

.price-currency {
    font-size: 1.2rem;
    color: var(--text-light);
    vertical-align: top;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.price-period {
    font-size: 1rem;
    color: var(--text-lighter);
}

.pricing-desc {
    color: var(--text-light);
    font-size: 0.95rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary-color);
    margin-right: 10px;
}

.pricing-card .btn {
    margin-top: 20px;
    width: 100%;
}

.pricing-note {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 12px;
    color: var(--text-light);
}

.pricing-note i {
    color: var(--primary-color);
    margin-right: 8px;
}

@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-card.popular {
        transform: scale(1);
    }
}

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

    .pricing-card.popular:hover {
        transform: translateY(-10px);
    }
}