:root {
    /* Color Palette */
    --bg-dark: #0f1115;
    --bg-card: #1a1d23;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    /* Much lighter slate for optimal readability */
    --accent-blue: #0077ff;
    --accent-teal: #00d2ff;
    --accent-green: #10b981;
    /* Emerald */
    --accent-neon: #ff5e00;
    /* Neon Orange highlight */
    --glass-bg: rgba(26, 29, 35, 0.75);
    --glass-border: rgba(255, 255, 255, 0.08);

    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

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

/* Typography Helpers */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 119, 255, 0.1);
    color: var(--accent-teal);
    border: 1px solid rgba(0, 119, 255, 0.2);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-green), #059669);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 0.6rem 1.5rem;
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background: linear-gradient(180deg, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.4) 60%, rgba(15, 17, 21, 0) 100%);
    backdrop-filter: blur(12px);
}

#navbar.scrolled {
    background: rgba(15, 17, 21, 0.96);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.logo-text-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
    font-family: 'Outfit', sans-serif;
}

.logo-img {
    height: 65px;
    width: auto;
    margin-right: 12px;
    border-radius: 8px;
    display: block;
}

.logo-dot {
    color: var(--accent-neon);
}

.logo-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 0.52rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    margin-top: 4px;
    opacity: 0.75;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    opacity: 0.85;
    transition: var(--transition);
    font-size: 0.95rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.nav-links a:hover {
    color: var(--accent-teal);
    opacity: 1;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('hero-bg.png') no-repeat center center/cover;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 17, 21, 0.6) 0%, var(--bg-dark) 90%),
        linear-gradient(180deg, rgba(15, 17, 21, 0.9) 0%, rgba(15, 17, 21, 0.3) 50%, var(--bg-dark) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.85);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* Philosophy Section */
.philosophy-section {
    padding: 10rem 0;
    background: var(--bg-dark);
}

.section-header {
    margin-bottom: 4rem;
}

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

.philosophy-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.philosophy-text p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.philosophy-text strong {
    color: var(--text-primary);
    font-weight: 600;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.accent-icon {
    font-size: 3rem;
    color: var(--accent-teal);
    margin-bottom: 1.5rem;
}

/* Solutions Section */
.solutions-section {
    padding: 10rem 0;
    background: #14171d;
}

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

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 1rem auto 0;
}

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

.solution-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.solution-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 119, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.card-header-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 119, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.solution-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0;
    line-height: 1.3;
}

.solution-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-list {
    list-style: none;
}

.card-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-list li::before {
    content: "→";
    color: var(--accent-blue);
}

/* Tech Architecture */
.tech-section {
    padding: 10rem 0;
    background: var(--bg-dark);
}

.tech-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.tech-features {
    margin-top: 3rem;
    display: grid;
    gap: 2rem;
}

.tech-item {
    display: flex;
    gap: 1.5rem;
}

.tech-icon-small {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
    font-size: 1.2rem;
}

.tech-item h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.tech-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Terminal Card UI */
.tech-card-main {
    background: #080a0c;
    border-radius: 12px;
    border: 1px solid #2d333b;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.tech-card-header {
    background: #161b22;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid #2d333b;
}

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

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    margin-left: auto;
    margin-right: auto;
    font-size: 0.75rem;
    color: #8b949e;
    font-family: monospace;
}

.tech-card-body {
    padding: 2rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-line {
    display: block;
    margin-bottom: 0.5rem;
}

.code-cmd {
    color: var(--accent-teal);
}

.code-comment {
    color: #8b949e;
}

.code-success {
    color: #2ecc71;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 15px;
    background: white;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Contact Section */
.contact-section {
    padding: 10rem 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, #1a1d23 100%);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    display: grid;
    gap: 1.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
}

.detail-item i {
    color: var(--accent-blue);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: white;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

/* Footer */
footer {
    padding: 5rem 0;
    background: #080a0c;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    margin-bottom: 3rem;
}

.footer-logo .logo-text {
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 0.5rem;
    display: block;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    width: 100%;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.accent-text {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Animations */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
}

.animate-reveal {
    opacity: 0;
    transform: scale(0.95);
}

.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Mobile Responsive */
@media (max-width: 992px) {

    .philosophy-content,
    .tech-container,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .contact-wrapper {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-dark);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        transition: 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

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

    .hero-title {
        font-size: 2.2rem;
        margin-top: 4rem;
        /* Prevent overlap with fixed navbar */
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}