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

:root {
    --primary-blue: #1a3a5f;
    --primary-teal: #2dd4bf;
    --dark-blue: #0f2537;
    --light-teal: #5eead4;
    --gradient-start: #1a3a5f;
    --gradient-end: #2dd4bf;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

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

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-b {
    font-size: 42px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-teal) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    font-family: 'Arial Black', Arial, sans-serif;
}

.brand-name {
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: baseline;
}

.brand-name .byte {
    color: var(--primary-blue);
}

.brand-name .ace {
    color: var(--primary-teal);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-teal);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-teal);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    background-image: 
        radial-gradient(circle at 20% 50%, var(--primary-blue) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, var(--primary-teal) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
    color: var(--text-dark);
}

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

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.6;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(45, 212, 191, 0.3);
}

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--primary-teal);
    border-color: var(--primary-teal);
}

.btn-outline:hover {
    background: var(--primary-teal);
    color: white;
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-dark);
}

/* Services Overview */
.services-overview {
    padding: 80px 0;
    background: var(--bg-white);
}

/* Portfolio */
.portfolio {
    padding: 80px 0;
    background: var(--bg-light);
}

.portfolio-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 48px;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

.portfolio-card {
    background: white;
    border-radius: 14px;
    padding: 28px;
    border: 1px solid var(--border-color);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-teal);
}

.portfolio-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
}

.portfolio-category {
    color: var(--primary-blue);
    background: rgba(26, 58, 95, 0.08);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
}

.portfolio-metric {
    color: var(--primary-teal);
    font-size: 0.95rem;
}

.portfolio-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.portfolio-card p {
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.7;
}

.portfolio-highlights {
    list-style: none;
    padding-left: 0;
    margin: 0 0 18px 0;
}

.portfolio-highlights li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.6;
}

.portfolio-highlights li::before {
    content: '•';
    position: absolute;
    left: 8px;
    color: var(--primary-teal);
    font-weight: bold;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.portfolio-tags span {
    background: rgba(45, 212, 191, 0.12);
    color: var(--primary-blue);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid rgba(45, 212, 191, 0.25);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 48px;
}

.service-card {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-teal);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.7;
}

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

/* Tech Stack */
.tech-stack {
    padding: 80px 0;
    background: var(--bg-light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
}

.tech-item {
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.tech-item:hover {
    border-color: var(--primary-teal);
    color: var(--primary-teal);
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-blue);
}

.cta-section .btn-primary:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
}

/* Page Hero (for inner pages) */
.page-hero {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-teal));
    color: white;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.page-hero p {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Services Detail */
.services-detail {
    padding: 80px 0;
}

.service-detail-card {
    display: flex;
    gap: 32px;
    margin-bottom: 64px;
    padding: 48px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.service-detail-icon {
    font-size: 4rem;
    flex-shrink: 0;
}

.service-detail-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.service-detail-content > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.8;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.service-features li {
    padding: 12px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-dark);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

/* About Content */
.about-content {
    padding: 80px 0;
}

.about-intro,
.about-mission,
.about-expertise {
    margin-bottom: 64px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

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

.about-approach {
    margin-bottom: 64px;
}

.approach-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.approach-item {
    padding: 32px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.approach-item h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.approach-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.contact-info > p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.contact-details {
    margin-top: 32px;
}

.contact-detail-item h3 {
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.contact-detail-item ul {
    list-style: none;
}

.contact-detail-item li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
}

.contact-detail-item li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-teal);
    font-weight: bold;
}

/* Contact Form */
.contact-form-wrapper {
    background: white;
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s;
}

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

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

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    display: none;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    display: block;
}

.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    display: block;
}

/* Footer */
.footer {
    background: var(--dark-blue);
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 12px;
    opacity: 0.8;
    font-size: 14px;
}

.footer-links h4,
.footer-services h4 {
    margin-bottom: 16px;
    font-size: 1.1rem;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
}

.footer-links li,
.footer-services li {
    margin-bottom: 8px;
}

.footer-links a,
.footer-services a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

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

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

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-card {
        flex-direction: column;
        padding: 32px 24px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }

    .approach-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .btn-large {
        padding: 14px 32px;
        font-size: 16px;
    }
}

