/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary-color: #0ea5e9;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --text-primary: #0a0a0a;
    --text-secondary: #525252;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --border-color: #e5e5e5;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-3: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-cta: linear-gradient(134deg, #ef3d3d 0%, #e90e7f 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 60px;
}

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

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

.nav-brand h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.ai-text {
    color: var(--primary-color);
}

.logo{
    width: 70%;
}
.nav-menu {
    display: flex;
    list-style: none;
    gap: 48px;
    align-items: center;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.cta-link {
    color: var(--primary-color) !important;
    font-weight: 600 !important;
}

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

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 180px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25) 0%, transparent 70%);
    top: -100px;
    right: -150px;
    animation-delay: 5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 10s;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    33% {
        transform: translateY(-30px) translateX(20px);
    }
    66% {
        transform: translateY(20px) translateX(-20px);
    }
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 32px;
    animation: fadeInDown 0.6s ease-out;
}

.hero-badge-top svg {
    color: var(--primary-color);
}

.hero-title {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 28px;
    color: var(--text-primary);
    animation: fadeInUp 0.6s ease-out 0.1s backwards;
}

.hero-subtitle {
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 48px;
    animation: fadeInUp 0.6s ease-out 0.2s backwards;
}

.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s backwards;
}

.cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 17px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(239, 61, 61, 0.35);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(239, 61, 61, 0.5);
}

.cta-primary svg {
    transition: transform 0.3s ease;
}

.cta-primary:hover svg {
    transform: translateX(4px);
}

.cta-secondary {
    display: inline-flex;
    align-items: center;
    padding: 18px 36px;
    background: white;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.cta-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 60px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Hero Visual Elements */
.hero-visual {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 20px 24px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    animation: floatCard 6s ease-in-out infinite;
}

.card-icon {
    font-size: 32px;
    line-height: 1;
}

.card-text {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-1 {
    top: 25%;
    left: 5%;
    animation-delay: 0s;
}

.card-2 {
    top: 20%;
    right: 8%;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 25%;
    left: 10%;
    animation-delay: 3s;
}

.card-4 {
    bottom: 30%;
    right: 6%;
    animation-delay: 4.5s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styles */
section {
    padding: 120px 0;
}

.section-number {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.section-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.section-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 32px;
    color: var(--text-primary);
}

.section-description {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 900px;
    margin-bottom: 48px;
}

.cta-button {
    display: inline-block;
    padding: 18px 40px;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(239, 61, 61, 0.35);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(239, 61, 61, 0.5);
}

/* Intro Section */
.intro {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
}

.intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}

/* Work Section */
.work {
    background: white;
}

.services-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    margin-top: 60px;
}

.service-category h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    position: relative;
    padding-left: 20px;
}

.service-category h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-2);
    border-radius: 2px;
}

.service-category ul {
    list-style: none;
}

.service-category ul li {
    font-size: 18px;
    color: var(--text-secondary);
    padding: 12px 0 12px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.service-category ul li:hover {
    color: var(--primary-color);
    padding-left: 28px;
}

.service-category ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    opacity: 0;
    transition: all 0.2s ease;
    color: var(--primary-color);
}

.service-category ul li:hover::before {
    opacity: 1;
}

.service-category ul li:last-child {
    border-bottom: none;
}

/* About Section */
.about {
    background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    position: relative;
}

.about::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(99, 102, 241, 0.3) 50%, transparent 100%);
}

.team {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
}

.team-member {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
    padding: 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.team-member:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.15);
    transform: translateY(-4px);
}

.team-photo-wrapper {
    position: relative;
}

.team-photo {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.team-member:hover .team-photo {
    transform: scale(1.02);
    /*box-shadow: 0 8px 30px rgba(99, 102, 241, 0.2);*/
}

.team-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    background: var(--gradient-2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.team-badge.engineer {
    background: var(--gradient-3);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

.team-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.team-info h4 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.team-role {
    font-size: 17px;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.team-bio {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Testimonials */
.testimonials {
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

.testimonial-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.12);
}

.testimonial-card.featured:hover {
    box-shadow: 0 16px 50px rgba(99, 102, 241, 0.2);
}

.featured-label {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-2);
    color: white;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.quote-icon {
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 24px;
}

.testimonial-card.featured .quote-icon {
    color: var(--primary-color);
    opacity: 0.5;
}

.testimonial-card blockquote {
    border-left: none;
    padding: 0;
    margin: 0 0 32px 0;
    flex-grow: 1;
}

.testimonial-card blockquote p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    font-weight: 500;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.testimonial-card.featured .testimonial-author {
    border-top-color: rgba(99, 102, 241, 0.2);
}

.testimonial-author strong {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Contact Section */
.contact {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.section-label-center {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

.section-title-center {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 48px;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.cta-button-large {
    display: inline-block;
    padding: 22px 52px;
    background: var(--gradient-cta);
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(239, 61, 61, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button-large:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(239, 61, 61, 0.5);
}

/* Footer */
.footer {
    background: white;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

.footer-copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 40px;
    }

    .navbar .container {
        padding: 20px 40px;
    }

    .services-list {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .team {
        gap: 60px;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 32px;
    }

    .team-photo-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    .team-photo {
        height: 280px;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .testimonial-card {
        padding: 36px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .navbar .container {
        padding: 16px 24px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 40px 0;
        border-bottom: 1px solid var(--border-color);
        gap: 32px;
    }

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

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 140px 0 80px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        margin-bottom: 60px;
    }

    .cta-primary,
    .cta-secondary {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-number {
        font-size: 36px;
    }

    /* Hide floating cards on mobile */
    .floating-card {
        display: none;
    }

    section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 36px;
    }

    .section-description {
        font-size: 18px;
    }

    .team {
        gap: 48px;
    }

    .team-member {
        padding: 24px;
    }

    .team-info h4 {
        font-size: 26px;
    }

    .team-role {
        font-size: 15px;
    }

    .team-bio {
        font-size: 15px;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .testimonial-card {
        padding: 32px;
    }

    .testimonial-card blockquote p {
        font-size: 17px;
    }

    .featured-label {
        top: 16px;
        right: 16px;
        font-size: 10px;
        padding: 5px 10px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

/* Smooth transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease;
}