/* ==================== */
/* Reset & Base Styles  */
/* ==================== */

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

:root {
    /* Colors */
    --primary-red: #c8102e;
    --primary-red-dark: #a00d25;
    --dark-gray: #1a1a1a;
    --medium-gray: #4a4a4a;
    --light-gray: #f5f5f5;
    --white: #ffffff;
    --border-gray: #e0e0e0;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--dark-gray);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== */
/* Availability Banner  */
/* ==================== */

.availability-banner {
    background: var(--primary-red);
    color: var(--white);
    text-align: center;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
}

.availability-banner p {
    margin: 0;
}

/* ==================== */
/* Navigation           */
/* ==================== */

.navbar {
    background: var(--white);
    border-bottom: 1px solid var(--border-gray);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
}

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

.nav-brand {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-gray);
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-links a {
    color: var(--medium-gray);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--primary-red);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 6px;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    background: var(--primary-red-dark);
    color: var(--white) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark-gray);
    transition: var(--transition);
}

/* ==================== */
/* Hero Section         */
/* ==================== */

.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 25%, #6b6b6b 50%, #4a4a4a 75%, #2a2a2a 100%);
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(107, 107, 107, 0.4) 50%, rgba(42, 42, 42, 0.85) 100%);
    z-index: 1;
}

.hero-pattern {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0.6;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(107, 107, 107, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(107, 107, 107, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 3;
}

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

/* ==================== */
/* Data Flow Animation  */
/* ==================== */

.data-flow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    opacity: 0.25;
    pointer-events: none;
}

.data-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: nodeFloat 4s ease-in-out infinite;
}

.data-node:nth-child(2) {
    animation: nodeFloatWide 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.data-node:nth-child(3) {
    animation: nodeFloatWide 4.5s ease-in-out infinite;
    animation-delay: 1s;
}

.data-node:nth-child(4) {
    animation: nodeFloat 4s ease-in-out infinite;
    animation-delay: 1.5s;
}

.data-node:nth-child(5) {
    animation: nodeFloatCircular 6s ease-in-out infinite;
    animation-delay: 2s;
}

.data-node:nth-child(6) {
    animation: nodeFloatCircular 5.5s ease-in-out infinite;
    animation-delay: 2.5s;
}

.node-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(200, 16, 46, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.node-icon:hover {
    background: rgba(200, 16, 46, 0.2);
    border-color: var(--primary-red);
    transform: scale(1.1);
}

.node-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.data-line {
    stroke: rgba(200, 16, 46, 0.3);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: linePulse 2s ease-in-out infinite;
}

.data-line.line-2 {
    animation-delay: 0.4s;
}

.data-line.line-3 {
    animation-delay: 0.8s;
}

.data-line.line-4 {
    animation-delay: 1.2s;
}

.data-line.line-5 {
    animation-delay: 1.6s;
}

.data-packet {
    filter: drop-shadow(0 0 8px rgba(200, 16, 46, 0.8));
}

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

@keyframes nodeFloatWide {
    0%, 100% {
        transform: translate(0px, 0px);
    }
    25% {
        transform: translate(15px, -12px);
    }
    50% {
        transform: translate(-8px, -20px);
    }
    75% {
        transform: translate(-15px, -10px);
    }
}

@keyframes nodeFloatCircular {
    0%, 100% {
        transform: translate(0px, 0px) rotate(0deg);
    }
    25% {
        transform: translate(20px, -15px) rotate(5deg);
    }
    50% {
        transform: translate(10px, -25px) rotate(-5deg);
    }
    75% {
        transform: translate(-15px, -18px) rotate(3deg);
    }
}

@keyframes linePulse {
    0%, 100% {
        stroke-opacity: 0.3;
        stroke-width: 2;
    }
    50% {
        stroke-opacity: 0.6;
        stroke-width: 2.5;
    }
}

.hero-subtitle {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    color: var(--white);
}

.hero-description {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    line-height: 1.6;
}

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

/* ==================== */
/* Buttons              */
/* ==================== */

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background: var(--white);
    color: var(--dark-gray);
}

/* ==================== */
/* Section Headers      */
/* ==================== */

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark-gray);
}

.section-divider {
    width: 60px;
    height: 4px;
    background: var(--primary-red);
    margin: 0 auto;
}

.section-subtitle {
    font-size: 18px;
    color: var(--medium-gray);
    margin-top: 16px;
}

/* ==================== */
/* About Section        */
/* ==================== */

.about {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--medium-gray);
    margin-bottom: 24px;
    text-align: center;
}

.about-text:last-child {
    margin-bottom: 0;
}

/* ==================== */
/* Services Section     */
/* ==================== */

.services {
    padding: var(--section-padding) 0;
    background: var(--light-gray);
}

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

.service-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid var(--border-gray);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    font-size: 48px;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--dark-gray);
}

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

/* ==================== */
/* Expertise Section    */
/* ==================== */

.expertise {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.expertise-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 64px;
    align-items: center;
}

.expertise-highlight {
    text-align: center;
    padding: 48px;
    background: var(--light-gray);
    border-radius: 12px;
}

.expertise-number {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-red);
    line-height: 1;
    margin-bottom: 16px;
}

.expertise-highlight p {
    font-size: 18px;
    color: var(--medium-gray);
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.expertise-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.check-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-red);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.expertise-item h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--dark-gray);
}

.expertise-item p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ==================== */
/* Why Us Section       */
/* ==================== */

.why-us {
    padding: var(--section-padding) 0;
    background: var(--light-gray);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.why-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--white);
    border-radius: 12px;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.why-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 20px;
}

.why-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-gray);
}

.why-card p {
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ==================== */
/* Contact Section      */
/* ==================== */

.contact {
    padding: var(--section-padding) 0;
    background: var(--white);
}

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

.contact-info h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
    color: var(--dark-gray);
}

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

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.contact-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--medium-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-item a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.contact-item a:hover {
    color: var(--primary-red-dark);
}

/* ==================== */
/* Contact Form         */
/* ==================== */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

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

.form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark-gray);
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 12px 16px;
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234a4a4a' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

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

.form-group input[type="date"] {
    cursor: pointer;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    filter: opacity(0.6);
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator:hover {
    filter: opacity(1);
}

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

.checkbox-label {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-weight: 400 !important;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.5;
}

.btn-submit {
    width: 100%;
    font-size: 16px;
}

.hidden {
    display: none;
}

.form-status {
    text-align: center;
    padding: 16px;
    border-radius: 8px;
    font-weight: 500;
    display: none;
}

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

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

/* ==================== */
/* Footer               */
/* ==================== */

.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 64px 0 24px;
}

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

.footer-section h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
}

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

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

/* ==================== */
/* Profile Section      */
/* ==================== */

.profile {
    padding: var(--section-padding) 0;
    background: var(--white);
}

.profile-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    max-width: 600px;
}

.profile-image-container {
    position: relative;
    width: 250px;
    height: 250px;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 5px solid var(--light-gray);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-red);
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
}

.profile-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-red);
    margin: 0;
}

.profile-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--medium-gray);
    margin: 0;
}

.profile-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--medium-gray);
    text-align: center;
}

.profile-linkedin {
    margin-top: 8px;
}

.profile-linkedin .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-color: var(--primary-red);
    color: var(--primary-red);
}

.profile-linkedin .btn:hover {
    background: var(--primary-red);
    color: var(--white);
}

/* ==================== */
/* Responsive Design    */
/* ==================== */

@media (max-width: 968px) {
    :root {
        --section-padding: 80px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-description {
        font-size: 18px;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .expertise-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

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

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 20px;
        box-shadow: var(--shadow-md);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-cta {
        flex-direction: column;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .availability-banner {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* ==================== */
/* Animations           */
/* ==================== */

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

.hero-content,
.service-card,
.expertise-item,
.why-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}
