/* Global Styles */
:root {
    --primary-color: #2d5be3;
    --secondary-color: #6c63ff;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --accent-color: #00d4aa;
    --text-color: #333;
    --text-light: #6c757d;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar {
    background-color: rgba(26, 26, 46, 0.95);
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-brand .logo-text {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: white;
}

.navbar-brand .tech-text {
    color: var(--accent-color);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-color) 0%, #16213e 100%);
    color: white;
    padding: 10rem 0 6rem;
    margin-top: 76px;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 90%;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 0.8rem 2rem;
    font-weight: 600;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #1e4bd1;
    border-color: #1e4bd1;
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--dark-color);
}

.hero-image {
    position: relative;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(109, 99, 255, 0.2);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: -20px;
    left: -20px;
}

.shape-2 {
    width: 80px;
    height: 80px;
    bottom: 30px;
    right: -10px;
    background: rgba(0, 212, 170, 0.2);
}

.shape-3 {
    width: 60px;
    height: 60px;
    bottom: -10px;
    left: 30px;
    background: rgba(45, 91, 227, 0.2);
}

.hero-image img {
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Sections Common */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Services */
.services-section {
    background-color: #f8f9ff;
    padding: 6rem 0;
}

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.service-icon i {
    font-size: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-description {
    color: var(--text-light);
}

/* Technologies */
.tech-section {
    padding: 5rem 0;
}

.tech-stack {
    gap: 2rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.tech-item i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tech-item:nth-child(1) i { color: #61dafb; } /* React */
.tech-item:nth-child(2) i { color: #777bb4; } /* PHP */
.tech-item:nth-child(3) i { color: #512bd4; } /* .NET */
.tech-item:nth-child(4) i { color: #02569b; } /* Flutter */
.tech-item:nth-child(5) i { color: #ffca28; } /* Firebase */
.tech-item:nth-child(6) i { color: #3776ab; } /* Python */
.tech-item:nth-child(7) i { color: #339933; } /* Node.js */

.tech-item span {
    font-weight: 600;
    color: var(--dark-color);
}

/* Global Section */
.global-section {
    background-color: #f8f9ff;
    padding: 6rem 0;
}

.global-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.global-list {
    list-style: none;
    padding: 0;
}

.global-list li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.global-list i {
    color: var(--accent-color);
    margin-right: 10px;
}

.world-map img {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6rem 0;
}

.cta-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

.cta-section .btn-light {
    background-color: white;
    color: var(--primary-color);
    border-radius: 50px;
    padding: 1rem 2.5rem;
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background-color: var(--dark-color);
    color: white;
}

.footer-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 900;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--accent-color);
}

.footer-about {
    opacity: 0.8;
    max-width: 300px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.footer-heading {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

.footer-contact {
    list-style: none;
    padding: 0;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.footer-contact i {
    color: var(--accent-color);
    margin-right: 10px;
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright, .footer-terms {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-terms a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 5px;
}

.footer-terms a:hover {
    color: var(--accent-color);
}

/* Services Page Specific */
.service-detail-card {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    border: 1px solid #f0f0f0;
}

.service-detail-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.service-icon-large {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-large i {
    font-size: 2rem;
    color: white;
}

.service-detail-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.service-detail-desc {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    padding: 0;
}

.service-features li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.service-features i {
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 0.9rem;
}

/* Tech Stack Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.tech-category {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.tech-category-title {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-badge {
    background: #f0f5ff;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Process Steps */
.process-step {
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.step-desc {
    color: var(--text-light);
}

/* Courses Page */
.additional-course {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.additional-course:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.project-mini-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.project-mini-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* Contact Page */
.office-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s;
    height: 100%;
    padding: 30px;
    text-align: center;
}

.office-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

/* Live Chat Button */
.live-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 20px rgba(45, 91, 227, 0.3);
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.live-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(45, 91, 227, 0.4);
}

.live-chat-btn.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(45, 91, 227, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(45, 91, 227, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(45, 91, 227, 0);
    }
}

/* Live Chat Window */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: none;
    overflow: hidden;
}

.chat-window.active {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
    font-size: 1rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-body {
    padding: 20px;
    height: 350px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.chat-message.bot {
    align-items: flex-start;
}

.chat-message.user {
    align-items: flex-end;
}

.message-bubble {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.bot .message-bubble {
    background: #f0f5ff;
    color: var(--dark-color);
    border-bottom-left-radius: 5px;
}

.user .message-bubble {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-bottom-right-radius: 5px;
}

.message-time {
    font-size: 0.7rem;
    color: var(--text-light);
    margin-top: 5px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.send-btn:hover {
    transform: scale(1.1);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
    font-size: 0.8rem;
    color: var(--text-light);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Quick Questions */
.quick-questions {
    padding: 15px;
    background: #f8f9ff;
    border-top: 1px solid #eee;
}

.quick-questions h6 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-size: 0.9rem;
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.question-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: var(--dark-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s;
}

.question-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 10px 15px;
    background: #f0f5ff;
    border-radius: 15px;
    width: fit-content;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: typing 1.5s infinite ease-in-out;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 100% { transform: translateY(0); opacity: 0.6; }
    50% { transform: translateY(-5px); opacity: 1; }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .cta-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 8rem 0 4rem;
        text-align: center;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .hero-buttons .btn.me-3 {
        margin-right: 0 !important;
    }
    
    .floating-shapes {
        display: none;
    }
    
    .tech-item {
        width: 100px;
        height: 100px;
    }
    
    .tech-item i {
        font-size: 2.5rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .service-detail-card {
        padding: 1.5rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .chat-window {
        width: 300px;
        right: 15px;
        bottom: 90px;
    }
    
    .live-chat-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .cta-title {
        font-size: 1.8rem;
    }
    
    .chat-window {
        width: calc(100% - 30px);
        right: 15px;
        left: 15px;
    }
}