:root {
    --primary: #ff0000;
    --primary-dark: #ffffff;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray: #64748b;
    --accent: #8b5cf6;

    /* Light theme variables */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --card-bg: #ffffff;
    --card-shadow: rgba(0, 0, 0, 0.05);
    --header-bg: #ffffff;
    --border-color: #e2e8f0;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: #1e293b;
    --card-shadow: rgba(0, 0, 0, 0.2);
    --header-bg: #1e293b;
    --border-color: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Roboto", "Calibri", 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 60px;
    background: var(--secondary);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

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

.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 4rem;
}

.mt-4 {
    margin-top: 4rem;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.section-title h2 {
    display: inline-block;
}

.section-title h2::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

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

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

.flex {
    display: flex;
}

.grid {
    display: grid;
}

.gap-2 {
    gap: 2rem;
}

.gap-4 {
    gap: 4rem;
}

/* Header / Navigation */
header {
    background-color: var(--header-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    background-color: var(--header-bg);
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0;
    color: var(--primary);
}

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

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

.nav-links li {
    margin: 0 0.2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    padding: 0.75rem 0.75rem;
    border-radius: 6px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
    font-size: 1.05rem;
}

.nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #ff0000;
    border-radius: 6px;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #ff0000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-links a:hover {
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.15);
    background-color: var(--primary);
}

.nav-links a:hover::before {
    transform: scale(1);
    opacity: 0.1;
}

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

.nav-links a:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 0, 0, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    margin-right: 1rem;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.3s ease;
    margin-right: 0;
}

.theme-toggle:hover {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), url('/api/placeholder/1920/1080') center/cover no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    padding-top: 80px;
}

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

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* About Section */
.about-grid {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
}

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

/* Vision & Mission */
.vision-mission {
    background-color: var(--primary);
    color: white;
}

.vm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.vm-card {
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.vm-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Values */
.values-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
}

.value-card {
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease, background-color 0.3s ease;
}

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

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

/* Services */
.services {
    background-color: #f1f5f9;
}

[data-theme="dark"] .services {
    background-color: var(--bg-secondary);
}

.services .section-title {
    color: var(--text-primary);
}

.service-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    gap: 1rem;
}

.service-tab {
    padding: 0.75rem 1.5rem;
    background-color: var(--card-bg);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease;
}

.service-tab.active,
.service-tab:hover {
    background-color: var(--primary);
    color: white;
}

.service-content {
    display: none;
}

.service-content.active {
    display: block;
}

.service-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
}

.service-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease;
}

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

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

/* Industries */
.industries-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.industry-card {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 1rem;
}

.industry-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    transition: all 0.5s ease;
}

.industry-card:hover .industry-bg {
    transform: scale(1.1);
    filter: brightness(0.6);
}

.industry-content {
    position: relative;
    z-index: 1;
}

/* Team */
.team {
    background-color: #f1f5f9;
}

[data-theme="dark"] .team {
    background-color: var(--bg-secondary);
}

.team .section-title {
    color: var(--text-primary);
}

.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease;
}

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

.team-img {
    height: 300px;
    overflow: hidden;
}

.team-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img img,
.team-card:hover .team-img-horizontal img {
    transform: scale(1.1);
}

/* Vertical team card layout */
.team-card.vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    text-align: center;
}

.team-img-vertical {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border: 5px solid var(--card-bg);
    margin: 0 auto;
}

.team-img-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-card:hover .team-img-vertical img {
    transform: scale(1.1);
}

.team-info {
    width: 100%;
    padding-top: 0.5rem;
}

.team-social {
    justify-content: center;
}

@media (max-width: 768px) {
    .team-img-vertical {
        width: 180px;
        height: 180px;
    }
}

.team-info {
    padding: 1.5rem;
}

.team-info h3 {
    margin-bottom: 0.5rem;
}

.team-position {
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.team-social a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.team-social a:hover {
    background-color: var(--primary);
    color: white;
}

/* Tech Stack */
.tech-stack {
    text-align: center;
}

.tech-categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-category {
    padding: 0.5rem 1rem;
    background-color: var(--bg-secondary);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease, background-color 0.3s ease;
}

.tech-category.active,
.tech-category:hover {
    background-color: var(--primary);
    color: white;
}

.tech-content {
    display: none;
}

.tech-content.active {
    display: block;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
    justify-content: center;
}

.tech-item {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 10px 30px var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease, background-color 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

/* Approach */
.approach {
    background-color: #f1f5f9;
}

[data-theme="dark"] .approach {
    background-color: var(--bg-secondary);
}

.approach .section-title {
    color: var(--text-primary);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--gray);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
}

.timeline-item:nth-child(odd) .timeline-content {
    border-radius: 10px 10px 10px 0;
}

.timeline-item:nth-child(even) .timeline-content {
    border-radius: 10px 10px 0 10px;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary);
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -52px;
}

.timeline-item:nth-child(even) .timeline-content::after {
    left: -52px;
}

.timeline-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    font-weight: bold;
    position: absolute;
    top: 12px;
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-number {
    right: -60px;
}

.timeline-item:nth-child(even) .timeline-number {
    left: -60px;
}

/* Why Choose Us */
.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    display: flex;
    gap: 1rem;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 10px;
    box-shadow: 0 10px 30px var(--card-shadow);
    transition: all 0.3s ease, background-color 0.3s ease;
}

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

.feature-icon {
    font-size: 2rem;
    color: var(--primary);
}

/* Contact */
.contact {
    position: relative;
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('/api/placeholder/1920/1080') center/cover no-repeat fixed;
    color: white;
}

.contact-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;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    color: var(--text-primary);
    box-shadow: 0 10px 30px var(--card-shadow);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.6rem;
    font-size: 0.95rem;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary);
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

.contact-form .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
}

.contact-form .btn-primary:hover {
    background-color: #cc0000;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

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

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

.footer-links h4 {
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 40px;
    background: var(--secondary);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

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

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    text-align: center;
    color: #94a3b8;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-grid,
    .vm-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -36px;
    }

    .timeline-item:nth-child(odd) .timeline-number,
    .timeline-item:nth-child(even) .timeline-number {
        left: -60px;
    }
    
    .nav-links a {
        font-size: 1rem;
        padding: 0.7rem 0.6rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        background-color: var(--bg-secondary);
        width: 100%;
        height: calc(100vh - 80px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 2rem;
        transition: left 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    }

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

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

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1rem 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
        padding: 0.8rem 1.5rem;
    }

    .hamburger {
        display: block;
        order: 1;
    }
    
    .theme-toggle {
        order: 2;
    }

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

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .timeline-content {
        padding: 15px;
    }

    .nav-container {
        flex: 1;
        justify-content: flex-end;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 3rem 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

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