/* ===========================
   FUSION BRIDGE - Global Styles
   =========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-bg: #0a0e27;
    --secondary-bg: #1a1f3a;
    --tertiary-bg: #2a2f4a;
    --accent-cyan: #40a7db;
    --accent-magenta: #ba652f;
    --accent-purple: #40a7db;
    --accent-pink: #ba652f;
    --accent-lime: #40a7db;
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --border-color: rgba(23, 118, 166, 0.2);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===========================
   Typography
   =========================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

code, .monospace {
    font-family: 'Courier New', Courier, monospace;
    background-color: var(--secondary-bg);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.logo {
    height: 60px;
    aspect-ratio: auto;
    filter: drop-shadow(0 0 20px rgba(46, 163, 221, 0.6));
    transition: all 0.3s ease;
}

.logo:hover {
    filter: drop-shadow(0 0 30px rgba(47, 164, 223, 0.8)) brightness(1.2);
    transform: scale(1.1);
}

.logo-text {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    transition: width 0.3s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* ===========================
   Buttons
   =========================== */

.btn {
    padding: 12px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: var(--primary-bg);
    box-shadow: 0 0 30px rgba(23, 118, 166, 0.4), 0 0 60px rgba(186, 101, 47, 0.2);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 50px rgba(23, 118, 166, 0.6), 0 0 80px rgba(186, 101, 47, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-cyan);
    border: 2px solid var(--accent-cyan);
    box-shadow: inset 0 0 20px rgba(23, 118, 166, 0.1);
}

.btn-secondary:hover {
    background-color: rgba(23, 118, 166, 0.1);
    box-shadow: inset 0 0 20px rgba(23, 118, 166, 0.2), 0 0 30px rgba(23, 118, 166, 0.4);
    transform: translateY(-4px);
}

/* ===========================
   Hero Section
   =========================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    z-index: 2;
    animation: fadeInLeft 1s ease-out;
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-background {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.floating-code,
.floating-code-2 {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    padding: 1.5rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(23, 118, 166, 0.1), rgba(186, 101, 47, 0.1));
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    animation: float 6s ease-in-out infinite;
    box-shadow: 0 0 40px rgba(23, 118, 166, 0.3), inset 0 0 20px rgba(23, 118, 166, 0.1);
}

.floating-code-2 {
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
    box-shadow: 0 0 40px rgba(186, 101, 47, 0.3), inset 0 0 20px rgba(186, 101, 47, 0.1);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-40px) translateX(0px);
    }
    75% {
        transform: translateY(-20px) translateX(-10px);
    }
}

.floating-code code {
    color: var(--accent-cyan);
    background: none;
    padding: 0;
    border-radius: 0;
}

.floating-code-2 code {
    color: var(--accent-magenta);
    background: none;
    padding: 0;
    border-radius: 0;
}

/* ===========================
   Section Styling
   =========================== */

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    margin: 1rem auto 0;
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(23, 118, 166, 0.5);
}

section {
    padding: 4rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

/* ===========================
   Services Section
   =========================== */

.services {
    background: linear-gradient(180deg, rgba(10, 14, 39, 1) 0%, rgba(26, 31, 58, 0.5) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(42, 47, 74, 0.6));
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(23, 118, 166, 0.3), transparent);
    opacity: 0;
    transition: all 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 60px rgba(23, 118, 166, 0.2), inset 0 0 30px rgba(23, 118, 166, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1.5rem;
    color: var(--accent-cyan);
    stroke-width: 1.5;
    filter: drop-shadow(0 0 10px rgba(23, 118, 166, 0.5));
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.service-card:hover .service-icon {
    color: var(--accent-magenta);
    transform: scale(1.1) rotate(10deg);
    filter: drop-shadow(0 0 20px rgba(186, 101, 47, 0.5));
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.service-accent {
    width: 3px;
    height: 0;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    border-radius: 2px;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 10;
}

.service-card:hover .service-accent {
    height: 40px;
    box-shadow: 0 0 20px currentColor;
}

/* ===========================
   About Section
   =========================== */

.about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-content {
    animation: fadeInLeft 1s ease-out;
}

.about-text {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.9;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(23, 118, 166, 0.1), rgba(186, 101, 47, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--text-secondary);
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.about-image {
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.about-img {
    width: 100%;
    border-radius: 16px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 50px rgba(23, 118, 166, 0.3), inset 0 0 30px rgba(23, 118, 166, 0.1);
    transition: all 0.4s ease;
}

.about-img:hover {
    box-shadow: 0 0 80px rgba(23, 118, 166, 0.5), inset 0 0 30px rgba(23, 118, 166, 0.15);
    transform: scale(1.02);
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===========================
   Technology Stack
   =========================== */

.tech-stack {
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.5) 0%, rgba(10, 14, 39, 1) 100%);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-item {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(23, 118, 166, 0.15), rgba(186, 101, 47, 0.15));
    border: 1px solid rgba(23, 118, 166, 0.3);
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(23, 118, 166, 0.3), transparent);
    transition: left 0.5s ease;
}

.tech-item:hover::before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-8px);
    border-color: var(--accent-cyan);
    box-shadow: 0 20px 40px rgba(23, 118, 166, 0.3), inset 0 0 20px rgba(23, 118, 166, 0.1);
    background: linear-gradient(135deg, rgba(23, 118, 166, 0.25), rgba(186, 101, 47, 0.25));
}

.tech-code {
    font-size: 1rem;
    color: var(--accent-cyan);
    background: none;
    padding: 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
    font-weight: 600;
}

.tech-item:hover .tech-code {
    color: var(--accent-magenta);
    text-shadow: 0 0 15px var(--accent-magenta);
}

/* ===========================
   Contact Section
   =========================== */

.contact {
    background: linear-gradient(180deg, rgba(10, 14, 39, 1) 0%, rgba(26, 31, 58, 0.5) 100%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.contact-info h3,
.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-detail {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-label {
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-detail span,
.contact-detail a {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-detail a {
    color: var(--accent-magenta);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-detail a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(23, 118, 166, 0.5);
}

.contact-form {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.8), rgba(42, 47, 74, 0.6));
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--accent-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: rgba(10, 14, 39, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    background-color: rgba(10, 14, 39, 0.8);
    border-color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(23, 118, 166, 0.3);
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: auto;
    margin-right: 0.8rem;
    cursor: pointer;
    accent-color: var(--accent-cyan);
}

.form-group.checkbox label {
    margin: 0;
    text-transform: none;
    font-size: 0.95rem;
}

.form-group.checkbox a {
    color: var(--accent-magenta);
    text-decoration: none;
}

.form-group.checkbox a:hover {
    text-decoration: underline;
    color: var(--accent-cyan);
}

.form-group.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.contact-form .btn {
    width: 100%;
    margin-top: 1rem;
}

.contact-form .btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
    box-shadow: none;
}

.map-container {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
}

.map-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.map-container iframe {
    border-radius: 12px;
    border: 2px solid var(--border-color);
    box-shadow: 0 0 40px rgba(23, 118, 166, 0.2);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background-color: var(--secondary-bg);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem 1rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(23, 118, 166, 0.5);
    padding-left: 0.5rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: 0.5rem;
}

.compliance-notice {
    font-size: 0.85rem;
    color: var(--accent-cyan);
    opacity: 0.8;
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about {
        grid-template-columns: 1fr;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-background {
        display: none;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .logo-text {
        display: none;
    }

    .nav-menu {
        flex-wrap: wrap;
        gap: 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 1rem;
        min-height: 80vh;
    }

    .hero-title {
        font-size: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    section {
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .services-grid {
        gap: 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .map-container iframe {
        height: 300px !important;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ===========================
   Animations
   =========================== */

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(23, 118, 166, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(23, 118, 166, 0.8);
    }
}

/* Scroll animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }
}
