:root {
    --primary: #1a365d;
    --secondary: #2d5a87;
    --accent: #3bb1e1;
    --light: #f8fafc;
    --dark: #1e293b;
    --text: #334155;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    overflow-x: hidden;
}

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

/* Header */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: fixed;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    text-decoration: none;
}

.logo img {
    max-height: 40px; /* Adjust this to match text size */
    height: auto;
    width: auto;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: color 0.3s;
}

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

.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgb(66 101 151 / 0%), rgb(0 0 0 / 68%)), url(../assets/ai-background.png) center / cover no-repeat;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h3 {
    font-size: 2.5rem;
}

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

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

.btn {
    display: inline-block;
    background-color: var(--accent);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
    text-align: center;
}

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

/* Project Stories */
.success-stories {
    background-color: var(--light);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.success-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.success-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.success-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 2rem;
    text-align: center;
}

.success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.success-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-header .client-name {
    font-size: 1rem;
    opacity: 0.8;
}

.success-content {
    padding: 1.5rem;
}

.success-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.success-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.success-metrics {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: var(--light);
    border-radius: 8px;
}

.metric {
    text-align: center;
    flex: 1;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-tag {
    background-color: rgba(26, 54, 93, 0.1);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Project Gallery Styles */
.project-gallery {
    margin-bottom: 1.5rem;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    height: 200px;
    margin-bottom: 1rem;
}

.gallery-slides {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.gallery-slide {
    min-width: 100%;
    position: relative;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-align: center;
}

.gallery-slide.interface img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.gallery-slide.dashboard {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.gallery-slide.mobile {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

.gallery-slide.analytics {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.gallery-slide.workflow {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
    color: var(--dark);
}

.gallery-slide.system {
    background: linear-gradient(135deg, #ff8a80, #ea4c89);
}

.gallery-slide.learning {
    background: linear-gradient(135deg, #84fab0, #8fd3f4);
    color: var(--dark);
}

.gallery-slide.platform {
    background: linear-gradient(135deg, #a18cd1, #fbc2eb);
    color: var(--dark);
}

.gallery-slide.demo {
    background: linear-gradient(135deg, #fad0c4, #ffd1ff);
    color: var(--dark);
}

.gallery-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}

.gallery-dot.active {
    background-color: var(--accent);
}

.gallery-nav {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.gallery-nav:hover {
    background-color: rgba(59, 177, 225, 0.1);
}

.gallery-nav:disabled {
    color: #ccc;
    cursor: not-allowed;
}

.gallery-nav:disabled:hover {
    background-color: transparent;
}

.success-content h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.success-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

/* Sections */
section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

section h2::after {
    content: "";
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent);
    margin: 0.5rem auto 0;
}

/* About */
.about {
    background-color: var(--light);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-img {
    flex: 1;
}

.about-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

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

.service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Values */
.values {
    background-color: var(--light);
}

.values-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.value-item {
    flex: 1;
    min-width: 300px;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-icon {
    width: 80px;
    height: 80px;
    background-color: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
}

.value-item h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.team-member {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.team-member:hover {
    transform: translateY(-10px);
}

.member-img {
    height: 250px;
    overflow: hidden;
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    padding: 1.5rem;
    text-align: center;
}

.member-info h3 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.member-info p {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.social-links {
    gap: 1rem;
}

.social-links a {
    color: var(--primary);
    font-size: 1.2rem;
    transition: color 0.3s;
    text-decoration: none;
}

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

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-item a {
    text-decoration: none;
}

.contact-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.contact-form {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

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

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

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

.footer-column h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-column h3::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 0.5rem;
}

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

.footer-column li {
    margin-bottom: 0.8rem;
}

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

.footer-column a:hover {
    color: white;
}

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

/* Hide element */
.success-stories .project-gallery,
#team .team-member .social-links {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
        text-align: center;
    }
    
    .about-img {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        background-color: white;
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        transform: translateY(-150%);
        transition: transform 0.3s;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-links li {
        margin: 1rem 0;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
}

/* Centered marketing-friendly alert / loading */
.overlay-center {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.45);
    z-index: 2000;
    padding: 20px;
}

.modal-card {
    background: linear-gradient(180deg, #ffffff, #f7fbff);
    color: var(--dark);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(17,24,39,0.35);
    max-width: 520px;
    width: 100%;
    padding: 28px 24px;
    text-align: center;
    transform: translateY(0);
    transition: transform 240ms ease, opacity 180ms ease;
}

.modal-card h4 {
    margin-bottom: 8px;
    font-size: 1.25rem;
    color: var(--primary);
}

.modal-card p {
    margin-bottom: 16px;
    color: var(--text);
}

.modal-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.btn-ghost {
    background: transparent;
    border: 1px solid rgba(26,54,93,0.08);
    color: var(--primary);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.loader-center {
    display: inline-block;
    width: 48px;
    height: 48px;
    border: 4px solid rgba(0,0,0,0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

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