:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #0f172a;
    --accent: #8b5cf6;
    --light: #f8fafc;
    --gray: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --ai-blue: #0ea5e9;
    --ai-purple: #8b5cf6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--secondary);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header Styles */
/* Header Styles */
header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 15px; /* Increased gap for better spacing */
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    gap: 3px; /* Small gap between main text and slogan */
}

.logo-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.logo-slogan {
    font-size: 0.8rem; /* Smaller size */
    font-weight: 400;
    color: var(--gray); /* Muted color */
    letter-spacing: 0.5px; /* Slight letter spacing for elegance */
    font-style: italic; /* Italic for subtle elegance */
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo {
        gap: 10px;
    }
    
    .logo-slogan {
        font-size: 0.7rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #93c5fd);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--primary);
}

/* Sections */
.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ai-blue), var(--accent));
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.service-icon i {
    font-size: 30px;
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.service-card p {
    color: var(--gray);
    margin-bottom: 20px;
}

/* Pipeline Section */
.pipeline-section {
    background: rgba(15, 23, 42, 0.7);
}

.pipeline-container {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 10px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pipeline-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 50px;
}

.pipeline-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 4px;
    background: var(--primary);
    z-index: 1;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    width: 18%;
}

.step-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 3px solid var(--primary);
    font-size: 24px;
}

.step h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.step p {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.stat-card {
    background: rgba(30, 41, 59, 0.5);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.stat-card .label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* Responsive adjustments for pipeline */
@media (max-width: 768px) {
    .pipeline-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .pipeline-steps::before {
        display: none;
    }
    
    .step {
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .step-icon {
        flex-shrink: 0;
    }
    
    /* Smaller text for mobile */
    .step h3 {
        font-size: 1.1rem;
    }
    
    .step p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .pipeline-stats {
        gap: 15px;
    }
    
    .stat-card .label {
        font-size: 0.8rem;
    }
    
    .pipeline-container {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-icon {
        margin-bottom: 10px;
    }
    
    .step h3 {
        font-size: 1rem;
    }
    
    .step p {
        font-size: 0.75rem;
    }
    
    .pipeline-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .stat-card .number {
        font-size: 2rem;
    }
    
    .stat-card .label {
        font-size: 0.75rem;
    }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.portfolio-item {
    background: rgba(30, 41, 59, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.portfolio-img {
    height: 200px;
    background: linear-gradient(45deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-img i {
    font-size: 4rem;
    color: var(--accent);
}

.portfolio-content {
    padding: 20px;
}

.portfolio-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.portfolio-content p {
    color: var(--gray);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 15px;
}

.tech {
    background: rgba(37, 99, 235, 0.2);
    color: #93c5fd;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--secondary) 0%, #1e293b 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: white;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--accent);
    margin-top: 5px;
}

/* Footer */
.footer {
    background: var(--secondary);
    color: #cbd5e1;
    padding: 60px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Poppins', sans-serif;
}

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

.footer h4 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cbd5e1;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

.social-links {
    margin-top: 15px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    text-align: center;
    line-height: 35px;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--accent);
    color: #fff;
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.btn.small-btn {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 8px;
    margin-top: 10px;
}

/* Contact Form Styles */
.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-form-container {
    background: rgba(30, 41, 59, 0.7);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--gray);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%2394a3b8' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    font-size: 1rem;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
    border: 1px solid #10b981;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid #ef4444;
}

.form-message.loading {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid #3b82f6;
}

.form-message.show {
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .pipeline-steps {
        flex-direction: column;
        gap: 40px;
    }
    
    .pipeline-steps::before {
        display: none;
    }
    
    .step {
        width: 100%;
        display: flex;
        align-items: center;
        text-align: left;
        gap: 20px;
    }
    
    .step-icon {
        flex-shrink: 0;
    }
}

/* Mobile-specific fixes for small screens */
@media (max-width: 380px) {
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 16px;
        font-size: 0.9rem;
        margin: 0;
    }
    
    .btn-outline {
        margin-top: 8px;
        margin-left: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .service-card,
    .portfolio-item {
        padding: 20px;
    }
    
    .footer-content {
        gap: 25px;
    }
}

/* Extra small screens (320px and below) */
@media (max-width: 320px) {
    .hero-btns {
        gap: 10px;
    }
    
    .btn {
        padding: 12px 12px;
        font-size: 0.85rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 12px;
    }
}
