/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ffffff;
    --secondary-color: #1a1a1a;
    --accent-color: #2d2d2d;
    --text-light: #b0b0b0;
    --border-color: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Logo Design */
.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    position: relative;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-icon::before {
    content: 'CB';
    color: var(--secondary-color);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -1px;
}

.logo-text {
    font-weight: 800;
    font-size: 20px;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.logo-text .bridge {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9em;
}

@keyframes logoPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}


.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.title-line {
    display: block;
    animation: slideInLeft 1s ease-out forwards;
    opacity: 0;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 30px;
    animation: fadeInUp 1s ease-out 0.8s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 1s ease-out 1s forwards;
    opacity: 0;
}

/* Motion Graphic 1 - Floating Cards */
.motion-graphic-1 {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-cards {
    position: relative;
    width: 300px;
    height: 200px;
}

.card {
    position: absolute;
    width: 80px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 35px rgba(255, 255, 255, 0.2);
}

.card-1 {
    top: 20px;
    left: 50px;
    animation: floatCard1 3s ease-in-out infinite;
}

.card-2 {
    top: 80px;
    right: 50px;
    animation: floatCard2 3s ease-in-out infinite 0.5s;
}

.card-3 {
    bottom: 20px;
    left: 100px;
    animation: floatCard3 3s ease-in-out infinite 1s;
}

@keyframes floatCard1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes floatCard2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-3deg); }
}

@keyframes floatCard3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(2deg); }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    background: var(--secondary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--secondary-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
}

/* Features Section */
.features {
    background: var(--accent-color);
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.2s; }
.feature-item:nth-child(3) { animation-delay: 0.3s; }

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-content p {
    color: var(--text-light);
}

/* Motion Graphic 2 - Dashboard */
.motion-graphic-2 {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-mockup {
    width: 250px;
    height: 180px;
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: var(--shadow-lg);
    animation: dashboardPulse 2s ease-in-out infinite;
}

.dashboard-header {
    height: 20px;
    background: var(--primary-color);
    border-radius: 4px;
    margin-bottom: 20px;
}

.dashboard-content {
    display: flex;
    align-items: end;
    gap: 10px;
    height: 100px;
}

.chart-bar {
    flex: 1;
    background: var(--primary-color);
    border-radius: 4px 4px 0 0;
    animation: chartGrow 2s ease-in-out infinite;
}

.chart-bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.chart-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { height: 40%; animation-delay: 0.4s; }
.chart-bar:nth-child(4) { height: 90%; animation-delay: 0.6s; }

@keyframes dashboardPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes chartGrow {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(1.1); }
}

/* Pricing Section */
.pricing {
    background: var(--secondary-color);
}

.pricing-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.pricing-message {
    background: var(--secondary-color);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.pricing-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 32px;
    animation: pulse 2s ease-in-out infinite;
}

.pricing-message h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.pricing-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.6;
}

.pricing-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: var(--accent-color);
    border-radius: 8px;
    transition: var(--transition);
}

.benefit-item:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.benefit-item i {
    color: var(--primary-color);
    font-size: 18px;
    transition: var(--transition);
}

.benefit-item:hover i {
    color: var(--secondary-color);
}

.benefit-item span {
    font-weight: 500;
}

.pricing-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Motion Graphic 3 - Data Flow */
.motion-section {
    background: var(--accent-color);
    padding: 60px 0;
}

.motion-graphic-3 {
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-flow {
    position: relative;
    width: 400px;
    height: 150px;
}

.data-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: dataPulse 2s ease-in-out infinite;
}

.point-1 { top: 20px; left: 50px; animation-delay: 0s; }
.point-2 { top: 20px; right: 50px; animation-delay: 0.5s; }
.point-3 { bottom: 20px; left: 100px; animation-delay: 1s; }
.point-4 { bottom: 20px; right: 100px; animation-delay: 1.5s; }

.connection-line {
    position: absolute;
    height: 2px;
    background: var(--primary-color);
    animation: lineFlow 3s ease-in-out infinite;
}

.line-1 {
    top: 30px;
    left: 70px;
    width: 260px;
    animation-delay: 0.2s;
}

.line-2 {
    top: 80px;
    left: 120px;
    width: 160px;
    animation-delay: 0.7s;
}

.line-3 {
    bottom: 30px;
    left: 120px;
    width: 160px;
    animation-delay: 1.2s;
}

@keyframes dataPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
}

@keyframes lineFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Contact Section */
.contact {
    background: var(--secondary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    animation: slideInLeft 0.8s ease-out forwards;
    opacity: 0;
}

.contact-item:nth-child(1) { animation-delay: 0.1s; }
.contact-item:nth-child(2) { animation-delay: 0.2s; }
.contact-item:nth-child(3) { animation-delay: 0.3s; }

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-details h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.contact-details p {
    color: var(--text-light);
}

.contact-form {
    animation: slideInRight 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--secondary-color);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Motion Graphic 4 - Tech Orbit */
.final-motion {
    background: var(--accent-color);
    padding: 60px 0;
}

.motion-graphic-4 {
    position: relative;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-orbit {
    position: relative;
    width: 200px;
    height: 200px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: centerRotate 4s linear infinite;
}

.center-icon {
    color: var(--secondary-color);
    font-size: 24px;
}

.orbit-item {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    animation: orbitRotate 6s linear infinite;
}

.item-1 { animation-delay: 0s; }
.item-2 { animation-delay: 1.5s; }
.item-3 { animation-delay: 3s; }
.item-4 { animation-delay: 4.5s; }

@keyframes centerRotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes orbitRotate {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    color: var(--primary-color);
}

.footer-logo .logo-text .bridge {
    color: #ffffff !important;
    font-weight: 700;
    font-size: 0.9em;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 10px;
}

.footer-column a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
}

.founder {
    font-size: 0.9rem;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 8px;
    opacity: 0.8;
}

/* Animations */
@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(50px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .features-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .pricing-benefits {
        grid-template-columns: 1fr;
    }
    
    .pricing-cta {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .motion-graphic-1,
    .motion-graphic-2,
    .motion-graphic-3,
    .motion-graphic-4 {
        height: 250px;
    }

    .floating-cards {
        width: 280px;
    }
    
    .card {
        width: 70px;
        height: 50px;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-icon::before {
        font-size: 14px;
    }
    
    .logo-text {
        font-size: 16px;
    }

    .dashboard-mockup {
        width: 200px;
        height: 150px;
    }

    .data-flow {
        width: 300px;
    }

    .tech-orbit {
        width: 150px;
        height: 150px;
    }

    .orbit-item {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    @keyframes orbitRotate {
        0% { transform: rotate(0deg) translateX(75px) rotate(0deg); }
        100% { transform: rotate(360deg) translateX(75px) rotate(-360deg); }
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .pricing-card {
        padding: 30px 20px;
    }
}

/* Scroll animations */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Performance optimizations for Hostinger */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preload critical animations */
.hero-title,
.hero-description,
.hero-buttons {
    will-change: transform, opacity;
}

/* Optimize motion graphics for performance */
.motion-graphic-1,
.motion-graphic-2,
.motion-graphic-3,
.motion-graphic-4 {
    will-change: transform;
    transform: translateZ(0);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
