/* Global Styles */
:root {
    /* Teal / Grey palette */
    --primary-color: #0F8A8A; /* deep teal */
    --secondary-color: #2FA3A5; /* medium teal */
    --accent-green: #84C7C8; /* light aqua */
    --accent-purple: #79BEC0; /* muted aqua */
    --accent-red: #52595A; /* dark grey accent */
    --text-dark: #2F3A3A; /* dark slate */
    --text-light: #5E6E6E; /* mid slate */
    --bg-light: #E5EFEF; /* very light aqua/grey */
    --bg-cream: #CBD8D8; /* soft desaturated grey */
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Glass morphism colors */
    --glass-bg: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    --backdrop-blur: blur(15px);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    --gradient-teal: linear-gradient(135deg, var(--accent-green), var(--primary-color));
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-cream) 0%, #eef6f6 100%);
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

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

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline, .btn-white {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 138, 138, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 138, 138, 0.4);
}

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

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

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

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

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.btn-yellow {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--gradient-primary);
    color: var(--white);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(15, 138, 138, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-yellow::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.6s;
}

.btn-yellow:hover::before {
    left: 100%;
}

.btn-yellow:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(15, 138, 138, 0.4);
}

.btn-yellow i {
    transition: transform 0.3s;
}

.btn-yellow:hover i {
    transform: translateX(5px);
}

/* Header */
.header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

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

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

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

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

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-cream) 0%, #eef6f6 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    color: var(--text-dark);
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.hero-text h1 .hero-line-1 {
    white-space: nowrap;
}

.hero-text p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    height: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: inherit;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slider .slide.active {
    opacity: 1;
}

.hero-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
}

.hero-illustration:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}

.hero-illustration:hover .hero-slider .slide img {
    transform: none;
}

.hero-bg-elements,
.bg-circle,
.floating-shapes,
.shape,
.step-connector {
    display: none !important;
}

/* Services Cards Section with Glassmorphism */
.services-cards {
    background: #249b9c;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.services-cards .container {
    position: relative;
    z-index: 2;
}

.services-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    backdrop-filter: var(--backdrop-blur);
}

.services-header h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.3px;
}

.header-underline {
    width: 110px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 2px;
    margin: 8px auto 0;
    position: relative;
}

.header-underline::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36px;
    height: 100%;
    background: var(--white);
    border-radius: inherit;
    animation: slideUnderline 3s ease-in-out infinite;
}

.swiper-wrapper {
    display: flex !important;
    align-items: stretch;
}

.service-card {
    /* Gradient light card like reference */
    background: linear-gradient(165deg, #f3f8df 0%, #e7f2ff 55%, #cfe7ff 100%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 22px;
    backdrop-filter: blur(6px);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.75rem; /* consistent inner spacing to avoid large gaps */
    min-height: 360px;
    max-width: 100%;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.10), inset 0 1px 0 rgba(255,255,255,0.7);
}

.service-card::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.6s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.18);
    border-color: rgba(255, 255, 255, 0.8);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Subtle soft glow over gradient card */
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(255,255,255,0.1));
    opacity: 0.12;
    border-radius: inherit;
    filter: blur(20px);
    transition: opacity 0.4s;
    z-index: -1;
}

.service-card:hover .card-glow {
    opacity: 0.2;
}

.service-icon {
    position: relative;
    font-size: 2.2rem;
    color: #0b2b45; /* dark navy like reference */
    margin: 0 auto 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
}

/* Subtle circular background behind service icon */
.services-cards .service-icon .icon-bg {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255,255,255,0.85), rgba(255,255,255,0.2));
    filter: blur(0.2px);
    z-index: -1;
    display: block !important;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #0b2b45;
}

.service-card p {
font-size: 0.95rem;
color: #123a5a;
line-height: 1.6;
margin-bottom: 0;
flex-grow: 0; /* prevent paragraph from stretching and creating empty bottom space */
}

.card-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* Subtle teal border for definition on white */
    border: 1px solid rgba(15, 138, 138, 0.25);
    border-radius: inherit;
    background: transparent;
    opacity: 1;
    pointer-events: none;
}

/* Services Slider */
.services-slider {
    overflow: hidden;
    padding-bottom: 3rem;
    width: 100%;
}

.services-slider .swiper-slide {
    flex-shrink: 0;
}

.services-slider .service-card {
    opacity: 1 !important;
    transform: none !important;
}

.services-slider .swiper-pagination {
    position: relative;
    margin-top: 3rem; /* space below slides */
}

/* When arrows are moved next to dots, lay them out inline */
.services-slider .swiper-pagination.with-arrows {
    display: inline-flex;
    align-items: center; /* vertically align arrows with dots */
    justify-content: center;
    gap: 12px;
    line-height: 0; /* prevent inline misalignment */
}

.services-slider .swiper-pagination.with-arrows .swiper-button-prev,
.services-slider .swiper-pagination.with-arrows .swiper-button-next {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
    color: #ffffff;
    background: transparent; /* match outlined dots */
    border: 2px solid rgba(255,255,255,0.6);
    box-shadow: none;
    transform: none;
    z-index: 2;
}

.services-slider .swiper-pagination.with-arrows .swiper-button-prev:hover,
.services-slider .swiper-pagination.with-arrows .swiper-button-next:hover {
    background: #ffffff; /* filled like active dot */
    color: var(--primary-color);
    border-color: #ffffff;
}

.services-slider .swiper-pagination.with-arrows .swiper-button-prev::after,
.services-slider .swiper-pagination.with-arrows .swiper-button-next::after {
    font-size: 16px;
}

/* Keyboard focus visibility */
.services-slider .swiper-pagination.with-arrows .swiper-button-prev:focus-visible,
.services-slider .swiper-pagination.with-arrows .swiper-button-next:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.services-slider .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.6);
    opacity: 1;
    margin: 0 6px !important;
}

.services-slider .swiper-pagination-bullet-active {
    background: #ffffff;
    border-color: #ffffff;
}

.services-slider .swiper-button-prev,
.services-slider .swiper-button-next {
    color: #ffffff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
}

.services-slider .swiper-button-prev::after,
.services-slider .swiper-button-next::after {
    font-size: 16px;
    font-weight: 700;
}

.services-slider .swiper-button-prev:hover,
.services-slider .swiper-button-next:hover {
    background: rgba(255, 255, 255, 0.25);
}

.services-slider .swiper-button-prev { left: 8px; }
.services-slider .swiper-button-next { right: 8px; }

/* Strategy Section */
.strategy-section {
    background: transparent;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.strategy-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, var(--accent-green) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--primary-color) 0%, transparent 50%);
    opacity: 0.03;
    z-index: 1;
}

.strategy-container {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.strategy-content {
    flex: 1 1 40%;
    position: sticky;
    top: 150px;
}

.strategy-content .section-label {
    color: var(--primary-color);
    background: var(--bg-light);
    border: 1px solid rgba(15, 138, 138, 0.2);
}

.strategy-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

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

.strategy-steps {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.strategy-step {
    display: flex;
    align-items: center;
    background: var(--glass-bg);
    border: 3px solid rgba(11, 142, 142, 0.676);
    border-radius: 20px;
    backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    gap: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.strategy-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 138, 138, 0.1), transparent);
    transition: left 0.8s;
}

.strategy-step:hover::before {
    left: 100%;
}

.strategy-step:hover {
    transform: translateY(-2px) scale(1.01);
    border-color: rgba(15, 138, 138, 0.35);
    box-shadow: 0 18px 36px rgba(15, 138, 138, 0.15);
}

.step-number {
    position: relative;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    background: var(--gradient-primary);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(15, 138, 138, 0.3);
    transition: all 0.4s;
}

.number-glow {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--gradient-primary);
    border-radius: 50%;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s;
    z-index: -1;
}

.strategy-step:hover .number-glow {
    opacity: 0.6;
}

.strategy-step:hover .step-number {
    transform: scale(1.1) rotate(5deg);
}

.step-details {
    flex: 1;
}

.step-details h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.step-details p {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Testimonials/Community Section */
.community-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, rgba(229, 239, 239, 0.5) 100%);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23CBD8D8" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    z-index: 1;
}

.community-section .container {
    position: relative;
    z-index: 2;
}

.community-header {
    text-align: center;
    margin-bottom: 4rem;
}

.community-header .section-label {
    color: var(--primary-color);
    background: var(--white);
    border: 1px solid rgba(15, 138, 138, 0.2);
    box-shadow: 0 5px 15px rgba(15, 138, 138, 0.1);
}

.community-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.community-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.testimonials-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 3px solid rgba(11, 142, 142, 0.676);
    border-radius: 24px;
    backdrop-filter: var(--backdrop-blur);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-8px) rotateX(5deg);
    border-color: rgba(15, 138, 138, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.quote-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    opacity: 0.8;
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(15, 138, 138, 0.3);
    overflow: hidden; /* ensure inner image is clipped to a perfect circle */
}

.author-info strong {
    color: var(--text-dark);
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
}

.author-info span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Make testimonial avatar images circular and cover the container */
.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.card-shimmer {
    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.8s;
    pointer-events: none;
}

.glass-card:hover .card-shimmer {
    left: 100%;
}

/* Business Solutions Section */
.business-solutions {
    background: transparent;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.solution-bg-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-green) 100%);
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}

.business-solutions-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    position: relative;
    z-index: 2;
}

.business-solutions-illustration {
    flex: 1 1 50%;
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.4s;
    aspect-ratio: 16/9;
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.image-frame:hover {
    transform: scale(1.02);
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.25);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: none;
}

.business-solutions-content {
    flex: 1 1 50%;
    padding: 0 2rem;
}

.business-solutions-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.business-solutions-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.feature-points {
    margin-bottom: 2.5rem;
}

.feature-point {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem;
    background: var(--glass-bg);
    border: 2px solid rgba(15, 138, 138, 0.35);
    border-radius: 12px;
    backdrop-filter: var(--backdrop-blur);
    transition: all 0.3s;
}

.feature-point:hover {
    transform: translateX(8px);
    border-color: rgba(15, 138, 138, 0.3);
}

.feature-point i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.feature-point span {
    color: var(--text-dark);
    font-weight: 500;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr; /* logo column + links column, same as index */
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-brand .brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo {
    height: 50px;
    width: auto;
    max-width: 100%;
}

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

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

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* two columns, same as index */
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--white);
}

.footer-column ul {
    list-style: none;
}

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

.footer-column ul li a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.footer-column ul li a:hover {
    color: var(--white); /* match index */
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 2rem;
    text-align: center;
    color: var(--text-light);
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-15px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes slideUnderline {
    0%, 100% { left: 0; width: 40px; }
    50% { left: 40px; width: 40px; }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav { padding: 1rem; }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        box-shadow: var(--shadow);
        transition: var(--transition);
        z-index: 999;
    }

    .nav-menu.active { left: 0; }
    .hamburger { display: flex; z-index: 1001; }

    .hamburger.active span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }

    .hero { padding: 90px 0 60px; }
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        grid-template-areas: 'text' 'image';
        padding: 0; /* remove inner side padding to keep equal margins */
    }
    .hero-text { grid-area: text; }
    .hero-image { grid-area: image; }
    .hero-text h1 { margin-top: 32px; font-size: 2rem; }
    /* Allow first hero line to wrap on phones to avoid overflow shifting the layout */
    .hero-text h1 .hero-line-1 { white-space: normal; }
    .hero-text p { text-align: center; margin: 0 auto 2rem; max-width: 36ch; font-size: 1rem; }
    .hero-buttons { flex-direction: column; gap: 1rem; align-items: center; }
    .hero-buttons .btn-primary, .hero-buttons .btn-secondary { width: 100%; max-width: 280px; justify-content: center; }
    /* Make hero card strictly 16:9 on mobile */
    .hero-illustration { 
        width: 100%;
        max-width: 360px;
        aspect-ratio: 16/9;
        height: auto;
        margin: 0 auto; 
    }
    /* Ensure hero image fills the card with no extra space on mobile */
    .hero-slider .slide img { object-fit: cover; }

    .services-header h2 { font-size: 2.2rem; white-space: nowrap; }

    /* Services cards: reduce padding and remove fixed height on mobile to avoid empty space */
    .service-card { min-height: unset; padding: 1.75rem 1.25rem; }
    .service-icon { width: 56px; height: 56px; font-size: 1.8rem; }
    .service-card h3 { font-size: 1.1rem; }
    .service-card p { font-size: 0.95rem; line-height: 1.55; }

    .strategy-container { flex-direction: column; gap: 3rem; }
    .strategy-content { position: static; text-align: center; }
    .strategy-content h2 { font-size: 2rem; }

    .testimonials-wrapper { grid-template-columns: 1fr; gap: 1.5rem; }

    .business-solutions-container { flex-direction: column; gap: 3rem; text-align: center; }
    .business-solutions-content { padding: 0 1rem; }
    .business-solutions-content h2 { font-size: 2.2rem; }
    /* Footer: improved mobile layout */
    .footer-content { grid-template-columns: 1fr; row-gap: 2rem; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-brand .brand { width: 100%; display: flex; justify-content: center; }
    .social-links { justify-content: center; }
    .footer-links { grid-template-columns: 1fr; gap: 1.25rem; text-align: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 15px; }
    .nav { padding: 1rem 15px; }
    .hero { padding: 80px 0 60px; }
    .services-cards, .strategy-section, .community-section, .business-solutions { padding: 60px 0 40px; }
    .services-header { margin-bottom: 3rem; }
    /* Keep services title on one line and scale font to fit small screens */
    .services-header h2 { 
        font-size: clamp(1rem, 5vw, 1.5rem);
        white-space: nowrap;
    }
    .service-card { padding: 2rem 1.5rem; margin: 0 auto; max-width: 350px; }
    .service-icon { font-size: 2rem; width: 60px; height: 60px; }
    .service-card h3 { font-size: 1.2rem; }
    .strategy-step { padding: 1.5rem; gap: 1.5rem; }
    .step-number { width: 60px; height: 60px; font-size: 1.3rem; }
    .glass-card { padding: 2rem 1.5rem; }
    .business-solutions-content h2 { font-size: 1.8rem; }
    .btn-primary, .btn-secondary, .btn-outline, .btn-white, .btn-yellow { width: 100%; max-width: 280px; justify-content: center; padding: 14px 24px; }
    /* Maintain 16:9 card on very small screens */
    .hero-illustration { width: 100%; max-width: 360px; aspect-ratio: 16/9; height: auto; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
