/* ==================== Root Variables ==================== */
:root {
    --primary-color: #14213D;
    --primary-dark: #000000;
    --accent-color: #FCA311;
    --secondary-color: #FFFFFF;
    --surface-color: #E5E5E5;
    --text-dark: #14213D;
    --text-light: #000000;
    --muted-color: #E5E5E5;
    --border-color: #E5E5E5;
    --success-color: #FCA311;
    --transition: all 0.3s ease;
}

/* ==================== Global Styles ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

.brand-logo {
    width: 200px;
    height: 60px;
    object-fit: cover;
    margin-right: 0.65rem;
}

.brand-logo-footer {
    width: 200px;
    height: 100px;
    object-fit: contain;
    margin-right: 0;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0;
}

.line-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: currentColor;
}

.line-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.line-icon-sm {
    width: 18px;
    height: 18px;
}

.line-icon-lg {
    width: 52px;
    height: 52px;
}

/* ==================== Navbar ==================== */
.navbar {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(20, 33, 61, 0.95);
    backdrop-filter: blur(8px);
}

.navbar-brand {
    font-size: 1.5rem;
    color: white !important;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    margin-left: 1rem;
    font-weight: 500;
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: white !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ==================== Top Bar ==================== */
.top-bar {
    background-color: var(--secondary-color);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.top-bar-info {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.top-bar-info span {
    display: flex;
    align-items: center;
}

.top-bar-info .line-icon {
    margin-right: 0.4rem;
}

/* ==================== Hero Section ==================== */
.hero {
    background: linear-gradient(135deg, rgba(20, 33, 61, 0.92) 0%, rgba(0, 0, 0, 0.92) 100%),
        url("https://images.unsplash.com/photo-1519389950473-47ba0277781c") center/cover no-repeat;
    color: white;
    padding: 120px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(252, 163, 17, 0.2);
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: slideInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
    animation: slideInUp 0.8s ease 0.4s backwards;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    border: none;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--surface-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: var(--transition);
}

.btn-outline-light:hover {
    background-color: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* ==================== Section Headers ==================== */
.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-top: 1rem;
}

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

.services-visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.15);
}

.services-visual img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    height: 100%;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(31, 41, 55, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-description {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-features {
    list-style: none;
    text-align: left;
    font-size: 0.9rem;
}

.service-features li {
    padding: 0.5rem 0;
    color: var(--text-dark);
    display: flex;
    align-items: center;
}

/* ==================== About Section ==================== */
.about {
    padding: 100px 0;
    background-color: var(--surface-color);
}

.about-content h2 {
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.about-content p {
    color: var(--text-dark);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.feature-item h5 {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin: 0;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(31, 41, 55, 0.18);
}

.about-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    display: block;
}

/* ==================== Tech Stack Section ==================== */
.tech-stack {
    padding: 70px 0;
    background-color: var(--secondary-color);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stack-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-start;
}

.stack-badge {
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

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

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section .lead {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.btn-light {
    background-color: var(--accent-color);
    color: var(--primary-dark);
    font-weight: 600;
    border: none;
    transition: var(--transition);
}

.btn-light:hover {
    background-color: var(--surface-color);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ==================== Contact Section ==================== */
.contact {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

.contact-card {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: var(--surface-color);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.contact-card:hover .contact-icon {
    color: white;
}

.contact-icon {
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.contact-card h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-card p {
    margin: 0;
    color: inherit;
}

.contact-card a {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-card a:hover {
    opacity: 0.8;
}

.contact-form {
    background: var(--surface-color);
    padding: 2.5rem;
    border-radius: 12px;
}

.form-control {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(252, 163, 17, 0.25);
}

/* ==================== Footer ==================== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 3rem 0 1rem;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer p {
    color: var(--muted-color);
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

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

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

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

.footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer a {
    color: var(--muted-color);
    text-decoration: none;
    transition: var(--transition);
}

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

/* ==================== Responsive Design ==================== */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .hero {
        padding: 60px 0;
    }

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

    .services,
    .about,
    .contact {
        padding: 60px 0;
    }

    .cta-section {
        padding: 50px 0;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .top-bar-info {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .services-visual img {
        height: 220px;
    }

    .about-image img {
        height: 260px;
    }

    .tech-stack {
        padding: 50px 0;
    }

    .stack-badges {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 40px 0;
        min-height: auto;
    }

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

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

    .navbar-brand {
        font-size: 1.2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .services-visual img {
        height: 180px;
    }

    .about-image img {
        height: 200px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
        margin-right: 0.4rem;
    }
}

/* ==================== Utilities ==================== */
.text-success {
    color: var(--success-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-muted {
    color: var(--muted-color) !important;
}

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