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

:root {
    --primary-color: #64ffda;
    --secondary-color: #0a192f;
    --background: #0a192f;
    --text-color: #e6f1ff;
    --light-text: #8892b0;
    --card-bg: rgba(2, 12, 27, 0.7);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(100, 255, 218, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-brackets {
    display: flex;
    align-items: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    gap: 0.5rem;
}

.bracket-left, .bracket-right {
    font-family: 'Fira Code', monospace;
    opacity: 0.9;
    text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}

.logo-content {
    width: 40px;
    height: 40px;
    position: relative;
}

.neural-network {
    width: 100%;
    height: 100%;
    position: relative;
}

.node {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    box-shadow: 0 0 10px rgba(100, 255, 218, 0.5);
}

.n1 { top: 0; left: 50%; transform: translateX(-50%); }
.n2 { bottom: 0; left: 20%; }
.n3 { bottom: 0; right: 20%; }
.n4 { top: 50%; right: 0; transform: translateY(-50%); }

.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.connections::before,
.connections::after {
    content: '';
    position: absolute;
    background: var(--primary-color);
    opacity: 0.4;
}

.connections::before {
    width: 2px;
    height: 100%;
    left: 50%;
    transform: translateX(-50%);
    animation: pulseVertical 2s infinite;
}

.connections::after {
    width: 100%;
    height: 2px;
    top: 50%;
    transform: translateY(-50%);
    animation: pulseHorizontal 2s infinite 1s;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-left: 0.5rem;
    letter-spacing: -0.5px;
}

.code-text {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 60px;
    overflow: hidden;
}

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

.gradient-sphere {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle at center, 
        rgba(100, 255, 218, 0.15),
        rgba(100, 255, 218, 0.05) 30%,
        rgba(10, 25, 47, 0) 70%
    );
    border-radius: 50%;
    filter: blur(60px);
    animation: pulse 8s ease-in-out infinite;
}

.animated-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(100, 255, 218, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(100, 255, 218, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(100, 255, 218, 0.1);
    border: 1px solid rgba(100, 255, 218, 0.2);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 2rem;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
}

.title-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease forwards 0.2s;
    opacity: 0;
    width: 100%;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    letter-spacing: -0.02em;
    text-align: center;
}

.bracket {
    font-size: 5rem;
    color: var(--primary-color);
    opacity: 0.5;
    font-weight: 300;
    margin: 0 1rem;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto 4rem;
    animation: fadeInUp 0.8s ease forwards 0.4s;
    opacity: 0;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    animation: fadeInUp 0.8s ease forwards 0.6s;
    opacity: 0;
    width: 100%;
    margin-bottom: 4rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem 3rem;
    background: rgba(100, 255, 218, 0.05);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 250px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(100, 255, 218, 0.1);
    transition: all 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    background: rgba(100, 255, 218, 0.1);
    box-shadow: 0 8px 30px rgba(100, 255, 218, 0.2);
    color: #fff;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button .arrow {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    transition: transform 0.3s ease;
}

.cta-button:hover .arrow {
    transform: translateX(5px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 6rem;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem;
    background: rgba(100, 255, 218, 0.03);
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

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

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    text-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--light-text);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tech-stack {
    margin-top: 2rem;
    animation: fadeInUp 0.8s ease forwards 0.8s;
    opacity: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tech-label {
    font-size: 0.875rem;
    color: var(--light-text);
    margin-bottom: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tech-pills {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 600px;
}

.tech-pill {
    padding: 0.75rem 1.5rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 24px;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.tech-pill:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.15);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInUp 0.8s ease forwards 1s;
    opacity: 0;
    width: auto;
    text-align: center;
}

.scroll-indicator span {
    color: var(--light-text);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
    opacity: 0.8;
}

.uk-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInDown 0.8s ease forwards;
    opacity: 0;
    transition: all 0.3s ease;
}

.uk-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.uk-badge span {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.union-jack {
    width: 24px;
    height: 16px;
    position: relative;
    background: #012169;
    overflow: hidden;
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.union-jack::before,
.union-jack::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

.union-jack::before {
    background: 
        linear-gradient(to bottom right, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px)),
        linear-gradient(to bottom left, transparent calc(50% - 1px), #fff calc(50% - 1px), #fff calc(50% + 1px), transparent calc(50% + 1px));
}

.union-jack::after {
    background:
        linear-gradient(to bottom right, transparent calc(50% - 2px), #C8102E calc(50% - 2px), #C8102E calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(to bottom left, transparent calc(50% - 2px), #C8102E calc(50% - 2px), #C8102E calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(90deg, transparent calc(50% - 3px), #fff calc(50% - 3px), #fff calc(50% + 3px), transparent calc(50% + 3px)),
        linear-gradient(0deg, transparent calc(50% - 3px), #fff calc(50% - 3px), #fff calc(50% + 3px), transparent calc(50% + 3px)),
        linear-gradient(90deg, transparent calc(50% - 2px), #C8102E calc(50% - 2px), #C8102E calc(50% + 2px), transparent calc(50% + 2px)),
        linear-gradient(0deg, transparent calc(50% - 2px), #C8102E calc(50% - 2px), #C8102E calc(50% + 2px), transparent calc(50% + 2px));
}

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

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes gridMove {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(50px);
    }
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

@keyframes pulseVertical {
    0%, 100% { transform: translateX(-50%) scaleY(0.3); opacity: 0.2; }
    50% { transform: translateX(-50%) scaleY(1); opacity: 0.8; }
}

@keyframes pulseHorizontal {
    0%, 100% { transform: translateY(-50%) scaleX(0.3); opacity: 0.2; }
    50% { transform: translateY(-50%) scaleX(1); opacity: 0.8; }
}

.node {
    animation: pulse 2s infinite;
}

.n1 { animation-delay: 0s; }
.n2 { animation-delay: 0.5s; }
.n3 { animation-delay: 1s; }
.n4 { animation-delay: 1.5s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; }
}

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

/* About Section */
.about {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
}

.about-content {
    display: grid;
    gap: 3rem;
    position: relative;
    place-items: center;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    font-weight: 600;
}

.about-text p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p:first-of-type {
    font-size: 1.25rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

/* Add a subtle gradient background effect */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(100, 255, 218, 0.03), transparent 70%);
    pointer-events: none;
}

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

    .about h2 {
        font-size: 2rem;
    }

    .about-text h3 {
        font-size: 1.25rem;
    }

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

    .about-text p:first-of-type {
        font-size: 1.1rem;
    }
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--background);
}

.services h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1400px;
    padding: 0 2rem;
}

.service-card {
    flex: 1;
    background: rgba(2, 12, 27, 0.4);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(100, 255, 218, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-width: 280px;
    max-width: 340px;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(100, 255, 218, 0.1);
}

.service-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.service-card h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--light-text);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: auto;
}

.service-tag {
    padding: 0.5rem 1rem;
    background: rgba(100, 255, 218, 0.05);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.service-tag:hover {
    background: rgba(100, 255, 218, 0.1);
    border-color: var(--primary-color);
}

@media (max-width: 1200px) {
    .services-grid {
        flex-wrap: wrap;
        justify-content: center;
    }

    .service-card {
        flex: 0 1 calc(50% - 1rem);
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .service-card {
        flex: 1 1 100%;
        max-width: 500px;
    }
}

/* Contact Section */
.contact {
    padding: 100px 0;
    position: relative;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid rgba(100, 255, 218, 0.1);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(2, 12, 27, 0.9);
    border: 1px solid rgba(100, 255, 218, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background: rgba(2, 12, 27, 0.9);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    flex: 1;
    max-width: 300px;
}

.footer-logo .logo-container {
    margin-bottom: 1rem;
    transform: scale(0.9);
    transform-origin: left;
}

.footer-tagline {
    color: var(--light-text);
    font-size: 0.875rem;
    margin-top: 1rem;
    opacity: 0.8;
}

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

.footer-section h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-section ul li a {
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
    opacity: 1;
}

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

.footer-bottom p {
    color: var(--light-text);
    font-size: 0.875rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-logo {
        max-width: 100%;
    }

    .footer-logo .logo-container {
        transform: scale(1);
        justify-content: center;
    }

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

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

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-section h4 {
        margin-bottom: 1rem;
    }
}

/* Buttons */
.cta-button,
.submit-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.cta-button:hover,
.submit-button:hover {
    background: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 3rem;
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .cta-button {
        padding: 1.25rem 2.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
}
