/* Design System & Variables */
:root {
    /* Colors */
    --bg-dark: hsl(222, 47%, 11%);
    --bg-card: hsl(223, 47%, 15%);
    --bg-header: hsla(222, 47%, 11%, 0.85);
    
    --primary: hsl(217, 91%, 60%);
    --primary-hover: hsl(217, 91%, 65%);
    --primary-glow: hsla(217, 91%, 60%, 0.4);
    
    --secondary: hsl(180, 100%, 45%);
    --secondary-hover: hsl(180, 100%, 55%);
    --secondary-glow: hsla(180, 100%, 45%, 0.3);
    
    --text-primary: hsl(210, 40%, 98%);
    --text-muted: hsl(215, 20%, 65%);
    --text-dark: hsl(222, 47%, 11%);
    
    --border-color: hsla(217, 91%, 60%, 0.15);
    --border-hover: hsla(180, 100%, 45%, 0.4);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --transition-speed: 0.3s;
    --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-speed) var(--transition-bezier);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

input, textarea, button {
    font-family: inherit;
}

/* Layout Containers */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-speed) var(--transition-bezier);
    border: none;
    outline: none;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), hsl(217, 91%, 50%));
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
    background: linear-gradient(135deg, var(--primary-hover), hsl(217, 91%, 55%));
}

.btn-secondary {
    background-color: hsla(217, 91%, 60%, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: hsla(217, 91%, 60%, 0.18);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

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

.icon-right {
    font-size: 0.85em;
    transition: transform var(--transition-speed) var(--transition-bezier);
}

.btn:hover .icon-right {
    transform: translateX(4px);
}

/* Badge & Text Utility */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: hsla(217, 91%, 60%, 0.12);
    color: var(--primary);
    border: 1px solid var(--border-color);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all var(--transition-speed) var(--transition-bezier);
}

.header.scrolled {
    height: 70px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    background-color: hsla(222, 47%, 8%, 0.9);
}

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

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.6rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-highlight {
    color: var(--primary);
    font-weight: 500;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition-speed) var(--transition-bezier);
    border-radius: 4px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    width: 100%;
}

.nav-link:hover::after {
    width: 100%;
}

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

/* Sections General Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-tag {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    color: var(--secondary);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-title.text-left {
    text-align: left;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    padding-top: calc(var(--header-height) + 40px);
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
}

.hero-bg-glow {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(217, 91%, 60%, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 620px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 16px;
}

/* Hero Code Editor & Floating Cards Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.code-editor-mock {
    background-color: hsl(223, 47%, 7%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    font-size: 0.85rem;
    width: 100%;
}

.editor-header {
    background-color: hsl(223, 47%, 5%);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.editor-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.editor-header .dot.red { background-color: #ff5f56; }
.editor-header .dot.yellow { background-color: #ffbd2e; }
.editor-header .dot.green { background-color: #27c93f; }

.editor-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-left: 12px;
    font-weight: 500;
}

.editor-body {
    padding: 20px;
    overflow-x: auto;
}

.editor-body pre {
    margin: 0;
}

.editor-body code {
    color: #abb2bf;
}

.editor-body .keyword { color: #c678dd; }
.editor-body .number { color: #d19a66; }
.editor-body .title { color: #61afef; }
.editor-body .type { color: #e5c07b; }
.editor-body .string { color: #98c379; }
.editor-body .comment { color: #5c6370; font-style: italic; }

.floating-stat-card {
    position: absolute;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    transition: transform var(--transition-speed);
}

.floating-stat-card.card-1 {
    top: -24px;
    right: -20px;
    animation: float 4s ease-in-out infinite alternate;
}

.floating-stat-card.card-2 {
    bottom: -24px;
    left: -20px;
    animation: float 4.5s ease-in-out infinite alternate-reverse;
}

.stat-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsla(180, 100%, 45%, 0.1);
    color: var(--secondary);
    font-size: 1.1rem;
}

.floating-stat-card.card-1 .stat-icon {
    background-color: hsla(217, 91%, 60%, 0.1);
    color: var(--primary);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 0.95rem;
    font-weight: 700;
}

@keyframes float {
    0% { transform: translateY(0); }
    100% { transform: translateY(-10px); }
}

/* Services Grid Section */
.services-section {
    background-color: hsl(222, 47%, 9%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 40px;
    transition: all var(--transition-speed) var(--transition-bezier);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.service-icon-wrapper {
    width: 54px;
    height: 54px;
    background-color: hsla(217, 91%, 60%, 0.08);
    color: var(--primary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    transition: all var(--transition-speed) var(--transition-bezier);
}

.service-card-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.service-card-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Service Card Hover States */
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 12px 30px rgba(180, 100, 45, 0.08), 0 4px 20px rgba(217, 91, 60, 0.05);
}

.service-card:hover .service-icon-wrapper {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px var(--primary-glow);
}

/* About Us Section */
.about-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.about-visual {
    display: flex;
    justify-content: center;
}

.about-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: 400px;
}

.abstract-graphic {
    width: 100%;
    height: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.graphic-circle {
    position: absolute;
    border-radius: 50%;
}

.graphic-circle.circle-1 {
    width: 300px;
    height: 300px;
    border: 1px dashed rgba(217, 91, 60, 0.15);
    animation: rotateCircle 30s linear infinite;
}

.graphic-circle.circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, hsla(180, 100%, 45%, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
}

.graphic-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2;
}

.handshake-icon {
    font-size: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
}

.experience-badge {
    background-color: hsla(222, 47%, 11%, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 24px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.experience-badge .number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    font-family: var(--font-heading);
}

.experience-badge .label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.about-content {
    max-width: 580px;
}

.about-text {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 32px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.about-feature i {
    color: var(--secondary);
    font-size: 1.15rem;
}

.about-feature span {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    background-color: hsl(222, 47%, 9%);
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.contact-bg-glow {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, hsla(180, 100%, 45%, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    pointer-events: none;
}

.contact-container {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.contact-info {
    max-width: 480px;
}

.contact-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background-color: hsla(217, 91%, 60%, 0.08);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.contact-text {
    display: flex;
    flex-direction: column;
}

.contact-text .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
    font-weight: 600;
}

.contact-text .value {
    font-size: 1.1rem;
    font-weight: 700;
    transition: color var(--transition-speed);
}

.contact-text a.value:hover {
    color: var(--primary);
}

/* Contact Form Grid Card */
.contact-form-wrapper {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    position: relative;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    background-color: hsl(223, 47%, 10%);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.95rem;
    transition: all var(--transition-speed) var(--transition-bezier);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: hsl(215, 10%, 45%);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
    background-color: hsl(223, 47%, 8%);
}

/* Contact Success Message States */
.contact-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    animation: scaleIn 0.4s var(--transition-bezier) forwards;
}

.contact-success.hidden {
    display: none;
}

.success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: hsla(180, 100%, 45%, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.contact-success h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.contact-success p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 360px;
    line-height: 1.5;
    margin-bottom: 12px;
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.92);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* Footer Section */
.footer {
    border-top: 1px solid var(--border-color);
    background-color: hsl(222, 47%, 7%);
    padding: 60px 0;
    font-size: 0.9rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 40px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 280px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4,
.footer-legal h4 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links a {
    color: var(--text-muted);
}

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

.footer-legal p {
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
}

/* Mobile & Responsive Breakpoints */
@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .about-visual {
        order: 2;
    }
    
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-legal {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 70px;
    }
    
    .header.scrolled {
        height: 60px;
    }
    
    .mobile-toggle {
        display: block;
        z-index: 1100;
    }
    
    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: hsl(222, 47%, 9%);
        border-left: 1px solid var(--border-color);
        flex-direction: column;
        justify-content: center;
        gap: 28px;
        padding: 40px;
        transition: right var(--transition-speed) var(--transition-bezier);
        z-index: 1050;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
    }
    
    .navbar.open {
        right: 0;
    }
    
    .navbar .btn-nav {
        width: 100%;
        margin-top: 10px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 30px 24px;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-legal {
        grid-column: span 1;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
}
