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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0a0a;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-brand h2 {
    color: #fff;
    font-weight: 600;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4f46e5;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #fff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title-static {
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title-rotating {
    position: relative;
    display: inline-block;
    min-height: 1.2em;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    white-space: nowrap;
}

.rotating-text.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rotating-text.fade-out {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
}

.rotating-text.fade-in {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.rotating-description {
    position: relative;
    min-height: 3em;
}

.description-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: all 0.8s ease-in-out;
    transform: translateY(20px);
}

.description-text.active {
    opacity: 1;
    transform: translateY(0);
}

.description-text.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.description-text.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

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

.btn-primary {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* AI Visualization */
.ai-visualization {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
}

.neural-network {
    position: relative;
    width: 400px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.neural-layer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.layer-1 .node:nth-child(1) { animation-delay: 0s; }
.layer-1 .node:nth-child(2) { animation-delay: 0.3s; }
.layer-1 .node:nth-child(3) { animation-delay: 0.6s; }

.layer-2 .node:nth-child(1) { animation-delay: 0.1s; }
.layer-2 .node:nth-child(2) { animation-delay: 0.4s; }
.layer-2 .node:nth-child(3) { animation-delay: 0.7s; }
.layer-2 .node:nth-child(4) { animation-delay: 1s; }

.layer-3 .node:nth-child(1) { animation-delay: 0.2s; }
.layer-3 .node:nth-child(2) { animation-delay: 0.5s; }

.node {
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    border-radius: 50%;
    animation: neural-pulse 2.5s infinite ease-in-out;
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    position: relative;
}

.node::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(79, 70, 229, 0.3);
    border-radius: 50%;
    animation: ripple 3s infinite;
}

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.connection {
    stroke: rgba(79, 70, 229, 0.4);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 5,5;
    animation: data-flow 4s infinite linear;
}

.data-flow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 2px;
    background: #4f46e5;
    border-radius: 50%;
    box-shadow: 0 0 10px #4f46e5;
    animation: flow-pulse 2s infinite;
    z-index: 3;
}

@keyframes neural-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 0 20px rgba(79, 70, 229, 0.6);
    }
    50% {
        transform: scale(1.4);
        opacity: 0.8;
        box-shadow: 0 0 30px rgba(79, 70, 229, 0.9);
    }
}

@keyframes ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

@keyframes data-flow {
    0% {
        stroke-dashoffset: 0;
        stroke: rgba(79, 70, 229, 0.4);
    }
    50% {
        stroke: rgba(124, 58, 237, 0.8);
    }
    100% {
        stroke-dashoffset: -20;
        stroke: rgba(79, 70, 229, 0.4);
    }
}

@keyframes flow-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.7;
    }
}

@keyframes flow-along-path {
    0% {
        transform: translate(0, 0) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        transform: translate(100%, 100%) scale(0.8);
        opacity: 0;
    }
}

.data-particle {
    animation: flow-along-path 3s infinite linear;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: white;
}

/* About Section */
.about {
    background: #111111;
    color: white;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.service-highlights h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

.highlight-list {
    display: grid;
    gap: 1.5rem;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.2);
    border-color: rgba(79, 70, 229, 0.3);
}

.highlight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.highlight-content h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
}

.highlight-content p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat h3 {
    font-size: 2.5rem;
    color: #4f46e5;
    margin-bottom: 0.5rem;
}

.stat p {
    color: rgba(255, 255, 255, 0.7);
}

/* Services Section */
.services {
    background: #0a0a0a;
    color: white;
}

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

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(79, 70, 229, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

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

.service-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Team Section */
.team {
    background: #111111;
    color: white;
}

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

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.member-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    margin: 0 auto 1.5rem;
    overflow: hidden;
}

.member-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-member h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.member-title {
    color: #4f46e5;
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    background: #0a0a0a;
    color: white;
}

.contact-content-center {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.contact-email {
    margin-top: 2rem;
}

.contact-email a {
    font-size: 1.5rem;
    color: #4f46e5;
    text-decoration: none;
    font-weight: 600;
    padding: 1rem 2rem;
    border: 2px solid #4f46e5;
    border-radius: 8px;
    display: inline-block;
    transition: all 0.3s ease;
}

.contact-email a:hover {
    background: #4f46e5;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

/* Footer */
.footer {
    background: #000;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: 3rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: #4f46e5;
}

.footer-column a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

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

/* Mobile-First Responsive Design */

/* Base styles are already mobile-first */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .hamburger {
        display: none;
    }

    .nav-menu {
        display: flex;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 800px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

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

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

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

    .footer-content {
        grid-template-columns: 2fr 1fr;
        text-align: left;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .stats {
        flex-direction: column;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 0 60px;
    }
}

/* Mobile-specific styles (max-width: 767px) */
@media (max-width: 767px) {
    .container {
        padding: 0 15px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: 80vh;
    }

    .hero .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        max-width: 800px;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-title-static {
        font-size: 1.8rem;
        margin-bottom: 0.3rem;
    }

    .hero-title-rotating {
        min-height: 1.3em;
    }

    .rotating-text {
        font-size: 2.2rem;
        white-space: nowrap;
    }

    .rotating-description {
        min-height: 4em;
    }

    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }

    /* AI Visualization Mobile */
    .ai-visualization {
        height: 300px;
        margin-top: 2rem;
    }

    .neural-network {
        width: 280px;
        height: 280px;
    }

    .neural-layer {
        gap: 25px;
    }

    .node {
        width: 12px;
        height: 12px;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-highlights h3 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .highlight-item {
        padding: 1rem;
        gap: 0.8rem;
    }

    .highlight-icon {
        font-size: 1.3rem;
    }

    .highlight-content h4 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .highlight-content p {
        font-size: 0.9rem;
    }

    .about-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .team-member {
        padding: 1.5rem;
    }

    .member-photo {
        width: 100px;
        height: 100px;
        margin-bottom: 1rem;
    }

    .contact-content-center {
        padding: 0 1rem;
    }

    .contact-info h3 {
        font-size: 1.6rem;
    }

    .contact-email a {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-links {
        justify-content: center;
        gap: 2rem;
    }

    .stats {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }

    .stat {
        padding: 1.5rem;
    }

    .stat h3 {
        font-size: 2rem;
    }
}

/* Very small devices (320px and up) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .neural-network {
        width: 240px;
        height: 240px;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .team-member {
        padding: 1rem;
    }
}