/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #164e81;
    --secondary-color: #764ba2;
    --accent-color: #ffd700;
    --text-dark: #333;
    --text-light: #666;
    --white: #fff;
    --gradient: #0f456c;
    --gradient-hover: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f456c;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader {
    width: 50px;
    height: 50px;
    border: 3px solid var(--white);
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}
/* ============================================
   LOGO STYLES - FULLY RESPONSIVE
   ============================================ */

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-brand a {
    display: inline-block;
    line-height: 0; /* Removes extra spacing */
}

.logo-img {
    /* Default size for desktop */
    width: auto;
    /*height: 60px;*/
    max-width: 200px;
    
    /* Maintain aspect ratio */
    object-fit: contain;
    
    /* Smooth transitions */
    transition: all 0.3s ease;
    
    /* Ensure crisp display */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Tablet devices (768px to 1024px) */
@media (max-width: 1024px) {
    .logo-img {
        height: 55px;
        max-width: 180px;
    }
}

/* Mobile devices (481px to 767px) */
@media (max-width: 768px) {
    .logo-img {
        height: 45px;
        max-width: 150px;
    }
}

/* Small mobile devices (320px to 480px) */
@media (max-width: 480px) {
    .logo-img {
        height: 38px;
        max-width: 130px;
    }
}

/* Extra small devices (below 320px) */
@media (max-width: 320px) {
    .logo-img {
        height: 32px;
        max-width: 110px;
    }
}

/* Optional: Add hover effect */
.logo-img:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* For retina displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-img {
        image-rendering: auto;
    }
}

/* If you want text logo fallback when image doesn't load */
.nav-brand a::after {
    content: "CGSoftTech";
    display: none;
    font-size: 1.2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo-img[src=""], 
.logo-img:not([src]) {
    display: none;
}

.logo-img[src=""] + a::after,
.logo-img:not([src]) + a::after {
    display: block;
}

/* .nav-brand a {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-brand span {
    color: var(--accent-color);
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
} */

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#particles-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-content {
    text-align: center;
    color: var(--white);
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
}

.glow-text {
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.5); }
    50% { text-shadow: 0 0 30px rgba(255,255,255,0.8); }
}

.highlight {
    color: var(--accent-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-down i {
    font-size: 1.5rem;
    color: var(--white);
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-header h2 span {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: var(--gradient);
    transition: left 0.3s;
}

.service-card:hover::before {
    left: 0;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 3rem;
    color: var(--primary-color);
    z-index: 1;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
    100% { transform: scale(1); opacity: 0.1; }
}

.service-features {
    list-style: none;
    margin: 1rem 0;
    text-align: left;
}

.service-features li {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.service-features i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 1rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* Stats Section */
.stats {
    background: var(--gradient);
    padding: 60px 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
}

/* Technologies Slider */
.technologies {
    padding: 80px 0;
    background: var(--white);
    overflow: hidden;
}

.tech-slider {
    overflow: hidden;
    padding: 20px 0;
}

.tech-track {
    display: flex;
    animation: scroll 20s linear infinite;
    gap: 3rem;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.tech-item {
    flex: 0 0 auto;
    text-align: center;
    margin: 0 1rem;
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-color);
}

.tech-item span {
    display: block;
    margin-top: 0.5rem;
}

/* Process Timeline */
.process {
    padding: 80px 0;
    background: #f8f9fa;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    margin-bottom: 3rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 60px;
    bottom: -30px;
    width: 2px;
    background: var(--gradient);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 70px;
    height: 70px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    margin-right: 2rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background: var(--white);
}

.testimonial-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-content i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    margin-top: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

/* CTA Section */
.cta {
    background: var(--gradient);
    padding: 60px 0;
    text-align: center;
    color: var(--white);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h3, .footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--accent-color);
}

.social-links {
    margin-top: 1rem;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 0.5rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: none;
    padding: 1rem;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-content button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

/* Page Header */
.page-header {
    background: var(--gradient);
    padding: 120px 0 60px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Detailed Services */
.detailed-services {
    padding: 80px 0;
}

.service-detail {
    display: flex;
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.service-detail-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-detail-content {
    flex: 1;
}

.service-sub-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.sub-item {
    display: flex;
    gap: 1rem;
    align-items: start;
}

.sub-item i {
    color: var(--primary-color);
    margin-top: 0.2rem;
}

/* Pricing Section */
.pricing-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.pricing-subtitle {
    text-align: center;
    font-size: 2rem;
    margin: 3rem 0 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.pricing-package {
    background: var(--white);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.pricing-package:hover {
    transform: translateY(-10px);
}

.pricing-package.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.02);
}

.package-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--gradient);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.price {
    margin: 1rem 0;
}

.currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.amount {
    font-size: 3rem;
    font-weight: bold;
    color: var(--primary-color);
}

.period {
    font-size: 0.9rem;
    color: var(--text-light);
}

.package-features {
    list-style: none;
    margin: 2rem 0;
    text-align: left;
}

.package-features li {
    margin: 0.8rem 0;
}

.package-features i {
    margin-right: 0.5rem;
}

.fa-check {
    color: #28a745;
}

.fa-times {
    color: #dc3545;
}

/* Why Choose Us */
.why-choose-us {
    padding: 80px 0;
    background: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    transition: transform 0.3s;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-section {
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.contact-info {
    list-style: none;
}

.contact-info li {
    margin-bottom: 1rem;
}

.contact-info i {
    width: 30px;
    color: var(--primary-color);
}

.contact-form .form-group {
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.contact-form textarea {
    height: 150px;
}

.map {
    margin-top: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        transition: left 0.3s;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        padding: 2rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail {
        flex-direction: column;
    }
    
    .pricing-package.featured {
        transform: none;
    }
}
/* WhatsApp Floating Button Styles */
    .whatsapp-float-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9999;
    }
    
    .whatsapp-float {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        background-color: #25D366;
        border-radius: 50%;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        transition: all 0.3s ease;
        text-decoration: none;
        animation: pulse 2s infinite;
    }
    
    .whatsapp-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    }
    
    @keyframes pulse {
        0% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
        }
        70% {
            box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
        }
        100% {
            box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
        }
    }
    
    /* Mobile Responsive */
    @media (max-width: 768px) {
        .whatsapp-float-container {
            bottom: 15px;
            right: 15px;
        }
        
        .whatsapp-float {
            width: 50px;
            height: 50px;
        }
    }