/* Corpalis Website - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #2ecc71;
    --accent-hover: #27ae60;
    --text-color: #545454;
    --text-light: #777777;
    --background: #ffffff;
    --background-alt: #f8f9fa;
    --border-color: #e0e0e0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Different reveal directions */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

header.header-hidden {
    transform: translateY(-100%);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.02);
}

.logo-white img {
    height: 38px;
    width: auto;
    max-width: 190px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 500;
    padding: 10px 0;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: -20px;
    background: var(--background);
    min-width: 280px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12);
    border-radius: 12px;
    padding: 12px 0;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content a {
    display: block;
    padding: 14px 24px;
    color: var(--text-color);
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-content a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-color);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-content a:hover {
    background: var(--background-alt);
    color: var(--accent-color);
    padding-left: 28px;
}

.dropdown-content a:hover::before {
    transform: scaleY(1);
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 150px 20px 100px;
    text-align: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Hero Background Elements */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(46, 204, 113, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 40%, rgba(46, 204, 113, 0.1) 0%, transparent 30%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, var(--background-alt) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

/* Floating Geometric Shapes */
.hero-float {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    animation: heroFloat 20s ease-in-out infinite;
    z-index: 1;
}

.hero-float-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--accent-color), transparent);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.hero-float-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #fff, transparent);
    bottom: 10%;
    left: -50px;
    animation-delay: -5s;
}

.hero-float-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--accent-color), transparent);
    top: 30%;
    right: 10%;
    animation-delay: -10s;
}

.hero-float-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #fff, transparent);
    bottom: 30%;
    left: 15%;
    animation-delay: -15s;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

/* Grid Pattern Overlay */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Network Animation Canvas */
.hero-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
    z-index: 0;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: heroFadeIn 1s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    text-shadow: 0 4px 30px rgba(0,0,0,0.15);
    min-height: 1.2em;
}

.hero h1.typing-text {
    min-height: 2.5em;
}

.hero .tagline {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 20px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 30px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
}

.hero > .hero-content > p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

/* Hero Buttons Enhancement */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    position: relative;
    overflow: hidden;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-buttons .btn:hover::before {
    left: 100%;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: scrollBounce 2s ease-in-out infinite;
}

.scroll-indicator a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.scroll-indicator a:hover {
    color: white;
}

.scroll-indicator .arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator .arrow::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

@keyframes scrollDot {
    0%, 100% { top: 8px; opacity: 1; }
    50% { top: 30px; opacity: 0.3; }
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent-color) 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 204, 113, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255,255,255,0.2);
}

/* Sections */
section {
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    margin-bottom: 70px;
}

.section-title h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    font-weight: 700;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    border-radius: 2px;
}

.section-title p {
    color: var(--text-light);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 25px auto 0;
    line-height: 1.7;
}

/* About Section */
.about {
    background: var(--background-alt);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--text-light);
    line-height: 1.8;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1), transparent);
    z-index: 1;
    pointer-events: none;
}

.about-image img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ========================================
   SERVICE CARDS (Sub-pages)
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--background);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card .icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.25);
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(46, 204, 113, 0.35);
}

.service-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 20px;
}

.service-card ul li {
    padding: 8px 0;
    color: var(--text-light);
    position: relative;
    padding-left: 25px;
}

.service-card ul li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* ========================================
   FEATURED SERVICES (Homepage)
   ======================================== */
.featured-services {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 24px;
}

/* --- Card Base --- */
.fs-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

/* --- Color Themes --- */
.fs-card--navy  { background: linear-gradient(135deg, #1a1a3e 0%, #2c3e6e 100%); }
.fs-card--green { background: linear-gradient(135deg, #1a6b3c 0%, #2ecc71 100%); }
.fs-card--teal  { background: linear-gradient(135deg, #0d3b4a 0%, #1abc9c 100%); }
.fs-card--slate { background: linear-gradient(135deg, #2c2c54 0%, #474787 100%); }

/* --- Decorative SVG Icon --- */
.fs-card__icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    width: 200px;
    height: 200px;
    color: rgba(255,255,255,0.08);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}

.fs-card__icon svg {
    width: 100%;
    height: 100%;
}

.fs-card:hover .fs-card__icon {
    color: rgba(255,255,255,0.14);
    transform: translate(-50%, -55%) scale(1.1) rotate(5deg);
}

/* --- Bottom Content --- */
.fs-card__bottom {
    position: relative;
    z-index: 3;
    padding: 28px 28px 24px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 12px;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-card__bottom h3 {
    width: 100%;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 4px;
}

.fs-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.fs-card__tags span {
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #fff;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.fs-card:hover .fs-card__tags span {
    background: rgba(255,255,255,0.25);
}

/* Arrow button */
.fs-card__arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-card__arrow svg {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.fs-card:hover .fs-card__arrow {
    background: var(--accent-color);
    transform: scale(1.1);
}

.fs-card:hover .fs-card__arrow svg {
    color: #fff;
    transform: translate(1px, -1px);
}

/* --- Hover Overlay --- */
.fs-card__overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.92) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.fs-card:hover .fs-card__overlay {
    opacity: 1;
    transform: translateY(0);
}

.fs-card__overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.fs-card__overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 1;
}

.fs-card__overlay ul li {
    padding: 6px 0 6px 20px;
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    line-height: 1.5;
    position: relative;
}

.fs-card__overlay ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 13px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

/* Wide card overlay uses 2 columns for list */
.fs-card:first-child .fs-card__overlay ul {
    columns: 2;
    column-gap: 20px;
}

/* Team Section */
.team {
    background: var(--background-alt);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    background: var(--background);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.04);
}

.team-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

@media (max-width: 768px) {
    .team-card:hover {
        transform: translateY(-5px);
    }
}

.team-card .avatar {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 50%;
    margin: 30px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(46, 204, 113, 0.25);
}

.team-card:hover .avatar {
    transform: scale(1.08);
    box-shadow: 0 15px 40px rgba(46, 204, 113, 0.35);
}

.team-card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.team-card .title {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-card p {
    color: var(--text-light);
    padding: 0 25px 25px;
    font-size: 0.95rem;
}

.team-card .social-links {
    padding: 15px;
    border-top: 1px solid var(--border-color);
}

.team-card .social-links a {
    display: inline-block;
    padding: 10px 20px;
    color: var(--accent-color);
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 90%, rgba(46, 204, 113, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.contact .section-title h2 {
    color: white;
}

.contact .section-title p {
    color: rgba(255,255,255,0.8);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-item .icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(255,255,255,0.1));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.3rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-item:hover .icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.5), rgba(255,255,255,0.2));
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p, .contact-item a {
    color: rgba(255,255,255,0.8);
}

.contact-item a:hover {
    color: white;
}

/* Contact Form */
.contact-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.15);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

.form-group {
    margin-bottom: 12px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.9);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: 2px solid var(--accent-color);
}

/* Footer */
footer {
    background: #0d1b2a;
    color: white;
    padding: 60px 20px 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
    display: block;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 160px 20px 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 30% 70%, rgba(46, 204, 113, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, var(--background) 0%, transparent 100%);
    pointer-events: none;
}

.page-header .tagline {
    font-size: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 15px;
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    background: rgba(255,255,255,0.1);
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Content Pages */
.content-section {
    padding: 60px 20px;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin: 30px 0 15px;
}

.content-section p {
    margin-bottom: 20px;
    color: var(--text-light);
}

.content-section ul {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section ul li {
    margin-bottom: 10px;
    color: var(--text-light);
}

/* Partner Logos */
.partner-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.partner-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

/* DDX Roadmap Visual */
.ddx-roadmap {
    margin-top: 40px;
    text-align: center;
    background: var(--background);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.ddx-roadmap img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Methodology Cards */
.method-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.method-card {
    background: var(--background-alt);
    padding: 22px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-color);
}

.method-card h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.method-card p {
    font-size: 0.88rem;
}

/* Benefits List */
.benefits-list {
    list-style: none;
    padding: 0;
}

.benefits-list li {
    padding: 15px 0 15px 40px;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.benefits-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
}

/* CTA Section */
.cta-section {
    background: var(--accent-color);
    color: white;
    text-align: center;
    padding: 60px 20px;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.cta-section .btn {
    background: white;
    color: var(--accent-color);
}

.cta-section .btn:hover {
    background: var(--primary-color);
    color: white;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    padding-top: 100px;
}

.legal-content h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 40px 0 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-light);
}

/* Map Container */
.map-container {
    height: 400px;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 40px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .featured-services {
        grid-template-columns: 1fr 1fr;
    }

    .fs-card {
        min-height: 280px;
    }

    .method-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .dropdown-content {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        display: none;
    }

    .dropdown.active .dropdown-content {
        display: block;
    }

    .hero {
        padding: 130px 20px 80px;
        min-height: 100vh;
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }

    .hero .tagline {
        font-size: 0.85rem;
        padding: 6px 14px;
    }

    .hero-float {
        display: none;
    }

    .scroll-indicator {
        bottom: 25px;
    }

    .scroll-indicator span {
        display: none;
    }

    section {
        padding: 60px 20px;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        padding: 30px 20px;
    }

    .featured-services {
        grid-template-columns: 1fr;
    }

    .fs-card {
        min-height: 260px;
    }

    .fs-card__bottom h3 {
        font-size: 1.3rem;
    }

    .fs-card:first-child .fs-card__overlay ul {
        columns: 1;
    }
}

/* ========================================
   PAGE TRANSITIONS
   ======================================== */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    z-index: 9999;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.4s ease;
}

body.page-loaded .page-transition-overlay {
    opacity: 0;
}

body.page-transitioning .page-transition-overlay {
    opacity: 1;
}

/* ========================================
   TYPING ANIMATION
   ======================================== */
.typing-text {
    display: inline-block;
    min-height: 1.5em;
}

.typing-active::after {
    content: '|';
    animation: blink 0.7s infinite;
    margin-left: 2px;
    color: var(--accent-color);
}

.typing-done::after {
    content: '';
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* ========================================
   STATS / COUNTER SECTION
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(46, 204, 113, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    line-height: 1;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-number .counter {
    display: inline;
}

.stat-number .suffix {
    font-size: 2rem;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

/* ========================================
   GRADIENT BLOB ANIMATIONS
   ======================================== */
.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.gradient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: blobFloat 15s ease-in-out infinite;
    will-change: transform;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.5), rgba(39, 174, 96, 0.3));
    top: -150px;
    right: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(52, 73, 94, 0.4), rgba(44, 62, 80, 0.3));
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.3), rgba(255, 255, 255, 0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes blobFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05) rotate(5deg);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95) rotate(-5deg);
    }
    75% {
        transform: translate(20px, 10px) scale(1.02) rotate(3deg);
    }
}

/* ========================================
   MARQUEE ANIMATION
   ======================================== */
.marquee-section {
    background: var(--background-alt);
    padding: 40px 0;
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 60px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    flex-shrink: 0;
}

.marquee:hover .marquee-content {
    animation-play-state: paused;
}

.marquee-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.marquee-item:hover {
    opacity: 1;
}

.marquee-item .dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-100% - 60px));
    }
}

/* Reverse direction marquee */
.marquee-reverse .marquee-content {
    animation-direction: reverse;
}

/* ========================================
   3D TILT EFFECT
   ======================================== */
.service-card,
.team-card {
    transform-style: preserve-3d;
    will-change: transform;
}

@media (min-width: 769px) {
    .service-card:hover,
    .team-card:hover {
        box-shadow: 0 30px 60px rgba(0,0,0,0.15);
    }
}

/* Inner elements pop out effect */
.service-card .icon,
.team-card .avatar {
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.service-card h3,
.team-card h3 {
    transform: translateZ(20px);
}

/* ========================================
   ENHANCED PARALLAX BACKGROUNDS
   ======================================== */
.parallax-bg {
    position: relative;
    overflow: hidden;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
    z-index: -1;
}

/* ========================================
   MAGNETIC BUTTON EFFECTS
   ======================================== */
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   GLOW EFFECTS
   ======================================== */
.glow-accent {
    box-shadow: 0 0 40px rgba(46, 204, 113, 0.3);
}

.glow-text {
    text-shadow: 0 0 40px rgba(46, 204, 113, 0.5);
}

/* ========================================
   SHIMMER EFFECT
   ======================================== */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.2),
        transparent
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ========================================
   FLOATING LABELS
   ======================================== */
.float-label {
    position: relative;
}

.float-label input,
.float-label textarea {
    padding-top: 25px;
}

.float-label label {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    color: var(--text-light);
}

.float-label input:focus + label,
.float-label input:not(:placeholder-shown) + label,
.float-label textarea:focus + label,
.float-label textarea:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--accent-color);
}

/* ========================================
   SMOOTH IMAGE LOADING
   ======================================== */
img {
    opacity: 1;
    transition: opacity 0.5s ease;
}

img[data-src] {
    opacity: 0;
}

img.loaded {
    opacity: 1;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    z-index: 1001;
    transition: width 0.1s ease;
}

/* ========================================
   ENHANCED HERO WITH BLOBS
   ======================================== */
.hero .blob-container .gradient-blob {
    opacity: 0.15;
}

/* ========================================
   CLIENTS/PARTNERS SECTION
   ======================================== */
.clients-section {
    padding: 60px 20px;
    background: var(--background);
}

.clients-section .section-title {
    margin-bottom: 40px;
}

.clients-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.client-logo {
    opacity: 0.5;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    max-height: 50px;
    width: auto;
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* ========================================
   TEXT GRADIENT ANIMATION
   ======================================== */
.gradient-text {
    background: linear-gradient(
        90deg,
        var(--accent-color),
        var(--primary-color),
        var(--accent-color)
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ========================================
   PULSE ANIMATION
   ======================================== */
.pulse {
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* ========================================
   STAGGER CHILDREN ANIMATION
   ======================================== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: staggerFadeIn 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   HOVER UNDERLINE ANIMATION
   ======================================== */
.hover-underline {
    position: relative;
    display: inline-block;
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--accent-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.hover-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ========================================
   SPLIT TEXT ANIMATION
   ======================================== */
.split-text {
    overflow: hidden;
}

.split-text span {
    display: inline-block;
    transform: translateY(100%);
    animation: splitReveal 0.6s ease forwards;
}

@keyframes splitReveal {
    to {
        transform: translateY(0);
    }
}
