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

:root * {
    /* Pause the animation */
    animation-play-state: paused;
    /* Bind the animation to scroll */
    animation-delay: calc(var(--scroll) * -1s);
    /* These last 2 properites clean up overshoot weirdness */
    animation-iteration-count: 1;
    animation-fill-mode: both;
}

:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #895af6;
    --accent-color: #10b981;
    --text-primary: #09101f;
    --text-secondary: #444a4f;
    --text-muted: #94a3b8;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-dark: #0f172a;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --code-bg: #021d47;
    --code-bg2: #042553;
    --code-border: #334155;
    --shadow-color: #777777;
    --gradient-angle: 210deg;
    --box-width:300px;
    --box-height:220px;
}

.space-mono-regular {
    font-family: "Space Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.ibm-plex-mono-thin {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 100;
    font-style: normal;
}

.ibm-plex-mono-extralight {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 200;
    font-style: normal;
}

.ibm-plex-mono-light {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 300;
    font-style: normal;
}

.ibm-plex-mono-regular {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.open-sans {
    font-family: "Open Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    font-variation-settings:
        "wdth" 100;
}

body {
    font-family: "IBM Plex Mono";
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);

    animation: body 1s linear;
}


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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(25px);
    box-shadow: 0 0px 10px var(--bg-dark);
    /* border-bottom: 1px solid var(--border-color); */
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.logo-icon {
    width: 42px;
    height: 42px;
    margin-left: 2.5rem;
    background: linear-gradient(210deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

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

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

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

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-primary {
    background: white;
    border-color: var(--primary-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    color : white;
    background: var(--primary-color);
    box-shadow: 0 2px 5px var(--primary-dark);
}

/* Hero Section */
.hero {
    width: 100%; 
    height: 100%;
}

.hero-background {
    position: relative; 
    width: 100%; 
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.6) 20%, rgb(250, 250, 250) 75%), conic-gradient(from 45deg, #c95eb2 52deg, #117253 65deg, #293fe8 120deg 307deg, #7a41e3 180deg);
    /* background-size: cover; */
    /* background-position: center; */
}

.hero-background .blur{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    
    /* blurring */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.hero-content {
    padding: 100px 0 80px;
    text-align: center;
    max-width: 1024 px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    margin-top: 2rem;
    margin-bottom: 5rem;
    font-family: "Space Mono", monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 200;
    margin-bottom: 4rem;
    line-height: 1.2    ;
    background: linear-gradient(45deg, rgb(40, 40, 40) 0%, rgb(77, 77, 77) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-family: "Open Sans", sans-serif;
    font-weight: 200;
    font-size: 1.25rem;
    max-width: 720px;
    margin: auto;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 6rem;
}

.btn-large {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Code Demo */
.code-demo {
    background: linear-gradient(90deg, var(--code-bg) 0%, var(--code-bg2) 100%);
    border: 1px solid var(--code-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 600px;
    position: relative;
    box-shadow: 0px 5px 25px var(--shadow-color);
    /* animation: slideIn 0.5s ease; */
    /* animation-play-state: paused;
    animation-delay: calc(var(--scroll) * -1s);
    animation-iteration-count: 1;
    animation-fill-mode:forwards; */
}

.code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--code-border);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background: #ef4444; }
.code-dot.yellow { background: #f59e0b; }
.code-dot.green { background: #10b981; }

.code-title {
    font-family: "Space Mono", monospace;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: 10rem;
    margin-right: auto;
}

.code-content {
    font-family: "Space Mono", monospace;
    font-size: 0.875rem;
    margin-left: 0.75rem;
    color: #e2e8f0;
    line-height: 1.6;
}

.code-line {
    display: block;
    margin-bottom: 0.25rem;
    text-align: left;
}

.code-comment { color: #64748b; }
.code-keyword { color: #835dee; }
.code-string { color: #10b981; }
.code-function { color: #0ea5e9; }
.code-import { color: #f8d073e6;}

/* Features Section */
.solutions {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    margin-top: 2rem;
}

.section-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-family: "Space Mono", monospace;
    font-size: 0.75rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 0.015em;
    margin-top: 0rem;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-family: "IBM Plex Mono", monospace;
    font-weight: 170;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-primary);

}

.section-header p {
    font-family: "Open Sans", sans-serif;
    font-weight:170;
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 1020px;
    margin: 0 auto;
}

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

.solutions-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    width: 350px;
    max-width: 350px;
    height: 300px;
    max-height: 300px;
    /* transition: all 0.3s ease; */
}

.solutions-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 164, 233, 0.25);
}

.solutions-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(210deg, rgba(6, 150, 239, 0.65), rgba(124, 81, 242, 0.65));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;

}

.solutions-card h3 {
    font-family: "Space Mono", monospace;
    font-size: 1.25rem;
    font-weight: 100;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.solutions-card p {
    font-family: "Open Sans",sans-serif;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Architecture Section */
.architecture {
    padding: 80px 0;
    /* background: var(--bg-secondary); */
}

.architecture-diagram {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    margin: 2rem 0;
    text-align:left;
}

.diagram-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin: 3.5rem 0;
    flex-wrap: wrap;
}

.diagram-box{
    border:0px solid transparent;
}

.diagram-box-grey {
    background: linear-gradient(var(--gradient-angle), var(--code-border), var(--text-muted));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 300;
    width:var(--box-width);
    height:var(--box-height);
    opacity: 0.90;
}

.diagram-box-purple {
    background: linear-gradient(var(--gradient-angle), var(--code-border), var(--secondary-color));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 300;
    width:var(--box-width);
    height:var(--box-height);
    opacity: 0.90;
    /* min-width: 120px;
    max-width: 256px; */
}

.diagram-box-blue {
    background: linear-gradient(var(--gradient-angle), var(--code-border), var(--primary-color));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-weight: 300;
    width:var(--box-width);
    height:var(--box-height);
    opacity: 0.80;
    /* min-width: 120px;
    max-width: 256px; */
}

.diagram-box ul{
    list-style-type: disc;
    margin-top:1em;
    margin-left: 2em;
}

.diagram-box:hover {
    box-shadow: 0 1px 20px var(--text-muted);
    border-width: 2px;
    border-color: var(--accent-color);
}

.diagram-arrow {
    font-size: 1.5rem;
    color: var(--text-muted);
}

/* Documentation Section */
.documentation {
    padding: 80px 0;
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.doc-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

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

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

.doc-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.doc-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.doc-link:hover {
    text-decoration: underline;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--bg-dark);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stat-item p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 4rem;

}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    font-size: small;
    transition: all 0.3s ease;
    /* width:var(--box-width); */
    /* gap:0px; */
    /* width:100px; */
}

.about-card:hover {
    /* transform: translateY(-2px); */
    box-shadow: 0 8px 25px var(--text-muted);
}

.about-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Resize images */
.card-box {
    background: linear-gradient(210deg, rgba(6, 150, 239, 0.5), rgba(124, 81, 242, 0.5));
    /* background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.6) 20%, rgb(250, 250, 250) 75%), conic-gradient(from 45deg, #c95eb2 52deg, #117253 65deg, #293fe8 120deg 307deg, #7a41e3 180deg); */
    border: 1px solid var(--border-color);
    border-radius: 18px;
    margin-left: 3em;
    margin-bottom: 2em;
    display: flex;
    justify-content: center;
    margin-top: 2em;
    width: 220px;
}

.card-box img {
    margin-bottom: 0.5em;
    width: 95%;
    height: auto;
}

/* Footer */
.footer {
    /* margin-top: 3rem; */
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo{
    width:100px;
    height:100px;
    margin-top: 2em;
    display: flex;
    justify-content: center;
}

.footer-logo img{
    width:100%;
    height: 100%;
}

.footer-section {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.footer-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    position:absolute;
    width: 30px;
    height: 30px;
    background: transparent;
    font-size: 20px;
    border-radius: 4px;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    /* margin-bottom: 10em; */
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color:white;
    transform: translateY(-1px);
}

.social-link.brands:before {
    font-family: 'Font Awesome 5 Brands';
}

/* Contact Form */
.contact {
    padding: 80px 0;
    position: relative; 
    width: 100%;
    /* max-width: 90%; */
    margin-top: 1em;
    margin-bottom: 0;
    background: transparent;
    /* background: radial-gradient(circle at center, rgba(255, 255, 255, 0.9) 0, rgba(255, 255, 255, 0.6) 20%, rgb(250, 250, 250) 75%), conic-gradient(from 45deg, #c95eb2 52deg, #117253 65deg, #293fe8 120deg 307deg, #7a41e3 180deg); */
    /* border-radius: 20px; */
    /* box-shadow: 0 20px 40px rgba(0,0,0,0.1); */
    /* overflow: hidden; */
    /* animation: slideUp 0.6s ease-out; */
}

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

.contact-background {
    width: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.7) 0, rgba(255, 255, 255, 0.6) 20%, rgb(250, 250, 250) 75%), conic-gradient(from 45deg, #c95eb284 52deg, #1172538a 65deg, #293fe886 120deg 307deg, #7a41e388 180deg);
}

.contact .blur{
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    
    /* blurring */
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);
}

.form-header {
    color: var(--text-primary);
    padding: 40px;
    text-align: center;
}

.form-header h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 200;
}

.form-header p {
    opacity: 0.9;
    font-size: 1.1em;
}

.form-container {
    display: flex;
    flex-direction: column;
    padding: 4em;
    position: relative;
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    margin-left: 3em;
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95em;
}

.form-control {
    /* position: absolute; */
    margin-left: 2em;
    width: auto;
    min-width: 500px;
    max-width: 600px;
    padding: 15px 10px;
    /* margin: -70px 0 0 -170px; */
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(249, 249, 249, 0.452);
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
    font-family: "Open Sans";
}

.form-btn {
    background: linear-gradient(var(--gradient-angle), var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    margin-left: 2em;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 500px;
    max-width: 600px;
    position: relative;
    overflow: hidden;
}

.form-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px var(--text-secondary);
}

.form-btn:active {
    transform: translateY(0);
}

.form-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.status-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.status-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.required {
    color: #eb351d;
}

.column {
    float: left;
    background: transparent;
}

.row {
    display: flex;
    background: transparent;
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }
    
    .header {
        padding: 30px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .form-container {
        padding: 30px 20px;
    }
}
/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }

    .diagram-row {
        flex-direction: column;
    }

    .diagram-arrow {
        transform: rotate(90deg);
    }

    .footer-bottom {
        text-align: center;
        flex-direction: column;
    }
}

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

@keyframes slideIn {
    from {
        transform: translateY(50px);
        opacity: 0.1;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

/* Code typing animation */
.typing {
    overflow: hidden;
    border-right: 1px solid transparent;
    white-space: nowrap;
    animation: typing 4s steps(44) 1s 1;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: transparent }
}

@keyframes t{
    from {background-size:0 200%}
    }

@keyframes b{
    50% {background-position:0 -100%,0 0}
}