/* ==================== VARIABLES ==================== */
:root {
    /* Colors - FlowMap Dev Brand */
    --primary-color: #1B96C8;
    --primary-dark: #0B4870;
    --primary-light: #40C4E5;
    --secondary-color: #3FB5D5;
    --accent-color: #FDB913;
    --text-primary: #003D5C;
    --text-secondary: #4A6C7A;
    --text-light: #8BA5B0;
    --bg-primary: #ffffff;
    --bg-secondary: #F0F8FB;
    --bg-dark: #002B3D;
    --border-color: #D0E7F0;

    /* Gradients - FlowMap Dev Brand */
    --gradient-primary: linear-gradient(135deg, #1B96C8 0%, #0B4870 100%);
    --gradient-secondary: linear-gradient(135deg, #40C4E5 0%, #1B96C8 100%);
    --gradient-accent: linear-gradient(135deg, #3FB5D5 0%, #40C4E5 100%);
    --gradient-text: linear-gradient(135deg, #1B96C8 0%, #0B4870 100%);

    /* Spacing */
    --section-padding: 100px 0;
    --container-max-width: 1200px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Typography */
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
    background-color: transparent;
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 15px 0;
}

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

.nav-brand .logo {
    height: 89.25px;
    width: auto;
    display: block;
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-brand .logo {
    height: 40px;
}

.nav-brand h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-brand .dot {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: -10px;
    transition: all var(--transition-base);
}

.navbar.scrolled .nav-menu {
    margin-top: 0;
}

.nav-link {
    position: relative;
    font-weight: 500;
    transition: color var(--transition-fast);
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-base);
}

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all var(--transition-base);
    border-radius: 2px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background: linear-gradient(135deg, #40C4E515 0%, #1B96C815 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(27, 150, 200, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(64, 196, 229, 0.1) 0%, transparent 50%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

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

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

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

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

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-block {
    width: 100%;
}

.hero-image {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-2xl);
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    width: 280px;
    height: 180px;
    top: 20%;
    left: 10%;
    background: var(--gradient-primary);
}

.card-2 {
    width: 240px;
    height: 160px;
    top: 50%;
    right: 20%;
    background: linear-gradient(135deg, #FDB913 0%, #FFA000 100%);
    animation-delay: 1s;
}

.card-3 {
    width: 200px;
    height: 140px;
    bottom: 15%;
    left: 25%;
    background: var(--gradient-accent);
    animation-delay: 2s;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 28px;
    height: 45px;
    border: 2px solid var(--primary-color);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(15px);
    }
}

/* ==================== SECTIONS ==================== */
section {
    padding: var(--section-padding);
}

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

.section-label {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ==================== ABOUT SECTION ==================== */
.about {
    background: var(--bg-secondary);
}

/* ==================== SERVICES SECTION ==================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
    border-color: var(--primary-light);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 105px;
    transition: all var(--transition-base);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon svg {
    width: 35px;
    height: 35px;
    color: white;
}

.service-icon.logo-container {
    background: transparent;
    padding: 0;
    width: 165px;
    height: 165px;
    margin: 0 auto 10px auto;
}

.service-icon.logo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top;
}

.service-icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.service-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-subtitle {
    margin-bottom: 16px;
    color: #13698C;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
}

.service-features {
    list-style: none;
}

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

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

/* ==================== PROJECTS SECTION ==================== */
.projects {
    background: var(--bg-secondary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-2xl);
}

.project-image {
    position: relative;
    height: 250px;
    background: var(--gradient-primary);
    overflow: hidden;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    padding: 12px 28px;
    background: white;
    color: var(--primary-color);
    border-radius: 8px;
    font-weight: 600;
    transform: translateY(20px);
    transition: all var(--transition-base);
}

.project-card:hover .project-link {
    transform: translateY(0);
}

.project-content {
    padding: 30px;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.project-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== CONTACT SECTION ==================== */
.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

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

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-primary);
    transition: all var(--transition-base);
    background: var(--bg-secondary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

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

.info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.info-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.info-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 12px;
    filter: brightness(0) invert(1);
}

.footer-brand h3 {
    font-size: 28px;
    margin-bottom: 12px;
}

.footer-brand p {
    color: var(--text-light);
}

.footer-links {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.footer-links a {
    color: var(--text-light);
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

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

/* ==================== ANIMATIONS ==================== */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.fade-in-up {
    transform: translateY(30px);
}

.fade-in-up.animated {
    transform: translateY(0);
}

.fade-in-right {
    transform: translateX(-30px);
}

.fade-in-right.animated {
    transform: translateX(0);
}

.slide-in-left {
    transform: translateX(-50px);
}

.slide-in-left.animated {
    transform: translateX(0);
}

.slide-in-right {
    transform: translateX(50px);
}

.slide-in-right.animated {
    transform: translateX(0);
}

.slide-in-up {
    transform: translateY(50px);
}

.slide-in-up.animated {
    transform: translateY(0);
}

.scale-in {
    transform: scale(0.9);
}

.scale-in.animated {
    transform: scale(1);
}

.zoom-in {
    transform: scale(0.95);
}

.zoom-in.animated {
    transform: scale(1);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
    }

    .hero-image {
        display: none;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

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

    .footer-social {
        justify-content: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 40px 0;
        margin-top: 0;
    }

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

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

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

    .hero-subtitle {
        font-size: 16px;
    }

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

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

    section {
        padding: 60px 0;
    }
}

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

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

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

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

    .stat-number {
        font-size: 42px;
    }
}

/* ==================== S2D PAGE STYLES ==================== */
.s2d-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.s2d-header .section-description {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary-dark);
}

.s2d-content {
    padding: 60px 0;
}

.s2d-section {
    margin-bottom: 60px;
}

.s2d-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.s2d-section ul {
    list-style-type: none;
    padding-left: 0;
}

.s2d-section ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.s2d-section ul li::before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.s2d-section ul li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 30px 0;
    color: #757575;
    font-weight: bold;
    border: 2px dashed #bdbdbd;
}

.step-list {
    counter-reset: step;
}

.step-list li {
    padding-left: 40px !important;
}

.step-list li::before {
    content: counter(step);
    counter-increment: step;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    top: 0;
}

/* ==================== S2D PAGE STYLES ==================== */
.s2d-header {
    padding-top: 120px;
    padding-bottom: 60px;
    background: var(--bg-secondary);
    text-align: center;
}

.s2d-content {
    padding: 60px 0;
}

.s2d-section {
    margin-bottom: 60px;
}

.s2d-section h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.s2d-section ul {
    list-style-type: none;
    padding-left: 0;
}

.s2d-section ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 25px;
}

.s2d-section ul li::before {
    content: '?';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.s2d-section ul li strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 5px;
}

.placeholder-img {
    width: 100%;
    height: 300px;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin: 30px 0;
    color: #757575;
    font-weight: bold;
    border: 2px dashed #bdbdbd;
}

.step-list {
    counter-reset: step;
}

.step-list li {
    padding-left: 40px !important;
}

.step-list li::before {
    content: counter(step);
    counter-increment: step;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    top: 0;
}


/* ==================== IMAGE MODAL STYLES ==================== */
.clickable-image {
    cursor: pointer;
    transition: 0.3s;
}

.clickable-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 1600px;
    max-height: 95vh;
    object-fit: contain;
    cursor: zoom-in;
}

.modal-content.zoomed {
    width: auto;
    max-width: 100%;
    max-height: none;
    cursor: zoom-out;
}

#caption {
    margin: auto;
    display: block;
    width: 95%;
    max-width: 1200px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 150px;
}

.modal-content, #caption {
    animation-name: zoom;
    animation-duration: 0.6s;
}

@keyframes zoom {
    from {transform:scale(0)}
    to {transform:scale(1)}
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@media only screen and (max-width: 700px){
    .modal-content {
        width: 100%;
    }
}

