:root {
    --primary-color: #1F75FE;
    --secondary-color: #0A0F29;
    --text-color: #333;
    --light-bg: #ffffff;
    --glass-bg: rgba(10, 15, 41, 0.9);
    --transition: all 0.3s ease;
}

/* Dark mode variables */
[data-theme="dark"] {
    --primary-color: #4F94FD;
    --secondary-color: #000;
    --text-color: #fff;
    --light-bg: #0a192f;
    --glass-bg: rgba(10, 15, 41, 0.95);
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--secondary-color);
    min-height: 100vh;
}

/* Logo Section */
.logo-section {
    padding: 80px 0;
    text-align: center;
    background: var(--secondary-color);
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-logo {
    width: 200px;
    height: auto;
    object-fit: contain;
}

.tagline h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.tagline p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Header and Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.navbar {
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: 700;
    color: rgb(117, 21, 21);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand img {
    height: 40px;
    object-fit: contain;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-links li a.active {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
}

.cta-btn {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.cta-btn a {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.hero-content {
    max-width: 600px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

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

.secondary-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.hero-image {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50%;
}

.hero-image img {
    width: 100%;
    height: auto;
}

/* Solutions Section */
.solutions {
    padding: 100px 0;
    background: var(--secondary-color);
}

.solutions h2 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 50px;
    text-align: center;
    color: #FFD700;
    font-weight: 700;
}

.solutions h2 .degree {
    font-size: 0.6em;
    vertical-align: super;
    margin-left: -0.2em;
    color: var(--primary-color);
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.solution-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #ddd;
    color: var(--text-color);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.solution-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Industries Section */
.industries {
    padding: 100px 0;
    background: var(--secondary-color);
    color: white;
}

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.industry-card {
    background: white;
    border: 1px solid #ddd;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    color: black;
}

.industry-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.industry-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Clients Section */
.clients {
    padding: 100px 0;
    background: var(--secondary-color);
    color: white;
}

.clients h2 {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

/* Swiper Brands Section */
.brands {
    padding: 100px 0;
    background: var(--secondary-color);
    color: white;
}

.brands .section-description {
    text-align: center;
    margin-bottom: 50px;
    color: white;
    opacity: 0.9;
}

.brands-swiper {
    width: 100%;
    padding: 20px;
}

.swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
    min-height: 70px;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.swiper-button-next,
.swiper-button-prev {
    color: white;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
    background: white;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 50px;
}

.brand-item {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    border-radius: 10px;
    transition: var(--transition);
    min-height: 70px;
    position: relative;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.brand-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    max-height: 200px;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.brand-image[src=""] {
    opacity: 0;
}

.brand-image[style*="display: none"] {
    display: none !important;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 50px;
}

.clients-grid img {
    max-width: 100%;
    height: auto;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.clients-grid img:hover {
    opacity: 1;
}

/* Testimonials Section */
.testimonials {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white !important;    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.testimonials h2,
.testimonials p,
.testimonials .testimonial-content {
    color: blue !important;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3));
    z-index: 1;
}

.company-logo {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.company-logo img {
    max-width: 200px;
    max-height: 150px;
    object-fit: contain;
}

.testimonials h2 {
    text-align: center;
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 80px;
    font-weight: 700;
    position: relative;
    z-index: 2;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.testimonial-item {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-item.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

.testimonial-item.fade-in[data-delay="0.2"] {
    animation-delay: 0.2s;
}

.testimonial-item.fade-in[data-delay="0.4"] {
    animation-delay: 0.4s;
}

.testimonial-item.fade-in[data-delay="0.6"] {
    animation-delay: 0.6s;
}

.testimonial-item.fade-in[data-delay="0.8"] {
    animation-delay: 0.8s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.testimonial-image {
    text-align: center;
    margin-bottom: 25px;
}

.testimonial-image img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
}

.testimonial-content {
    margin-bottom: 30px;
}

.testimonial-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 20px;
    font-weight: 400;
}

.rating {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.rating i {
    color: #ffd700;
    font-size: 1.5rem;
}

.testimonial-author {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.author-info h4 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 600;
}

.author-info p {
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.8;
}

.business-logo {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.business-logo img {
    max-height: 50px;
    object-fit: contain;
}

/* Case Studies Section */
.case-studies {
    padding: 100px 0;
    background: blue;
}

.case-studies h2 {
    text-align: center;
    margin-bottom: 50px;
    color: white;
}

.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.case-study-card {
    background: var(--glass-bg);
    border-radius: 10px;
    padding: 30px;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.case-study-card:hover {
    transform: translateY(-10px);
}

.case-study-header {
    padding: 20px;
    background: var(--primary-color);
    color: white;
}

.stat {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.stat span {
    font-size: 1.5rem;
    font-weight: bold;
}

.case-study-content {
    padding: 20px;
    color: white;
    font-weight: bold;
}

/* Why Choose Us Section */
.why-us {
    padding: 100px 0;
    background: var(--secondary-color);
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid #ddd;
    color: var(--text-color);
}

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

.feature-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}

.contact-form {
    background: var(--glass-bg);
    padding: 30px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: var(--glass-bg);
    border-radius: 5px;
    transition: var(--transition);
    color: white;
}

.info-item:hover {
    transform: translateX(10px);
}

.info-item i {
    color: var(--primary-color);
}

.info-item a {
    color: white;
    text-decoration: none;
}

.info-item i.fab.fa-whatsapp {
    color: var(--primary-color);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

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

.scroll-top:hover {
    transform: translateY(-5px);
}

/* Floating CTA */
.floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.floating-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: var(--primary-color);
    color: white;
}

.floating-btn i {
    font-size: 1.2rem;
}

.floating-btn span {
    font-weight: 500;
}

/* Dark mode adjustments */
[data-theme="dark"] .floating-btn,
[data-theme="dark"] .cta-btn a {
    background: white;
    color: var(--primary-color);
}

[data-theme="dark"] .floating-btn:hover,
[data-theme="dark"] .cta-btn a:hover {
    background: var(--primary-color);
    color: white;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.dark-mode-toggle:hover {
    transform: rotate(360deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-image {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .features-grid,
    .solutions-grid,
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .solution-card,
    .industry-card,
    .brand-item {
        transform: none;
    }
}

.section-description {
    margin: 20px 0;
    color: var(--text-color);
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

/* Swiper Styles */
.swiper {
    width: 100%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0 auto;
    max-width: 1200px;
}

.swiper-wrapper {
    justify-content: center;
    align-items: center;
}

.swiper-slide {
    background-position: center;
    background-size: cover;
    width: 300px;
    height: 200px;
    margin: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.swiper-slide img {
    width: 100%;
    border: 1px solid #d3d3d3;
    margin-bottom: 2px;
    display: block;
}

.swiper-slide .brand-item {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.swiper-slide .brand-item {
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
}

.swiper-slide .brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
    border: 2px solid #fff;
}

/* Debugging styles to show if images are loading */
.swiper-slide .brand-item img[src=""] {
    background-color: #ffcccc;
}

.swiper-slide .brand-item img[style*="display: none"] {
    background-color: #ffcccc;
}

.swiper-slide .brand-item img[src=""] {
    opacity: 0;
}

.swiper-slide .brand-item img[style*="display: none"] {
    display: none !important;
}

/* Swiper Navigation */
.swiper-button-next,
.swiper-button-prev {
    color: #000;
}

.swiper-pagination {
    bottom: 0;
}

.swiper-pagination-bullet {
    background: #000;
    opacity: 0.4;
}

.swiper-pagination-bullet-active {
    opacity: 1;
}

/* Animations */
.animate {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade {
    opacity: 1;
    transform: scale(1);
}

.animate-slide {
    opacity: 1;
    transform: translateX(0);
}

/* Lazy Loading */
.lazy {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy[loading="lazy"]:not([data-loaded]) {
    opacity: 0;
}

.lazy[loading="lazy"][data-loaded] {
    opacity: 1;
}

/* Dark Mode Background */
[data-theme="dark"] body {
    background: #0a192f;
}
