/* 
* Gentle IT Solutions - Main Stylesheet
* Version: 1.0.0
*/

/* Import Modular CSS Files */
@import url('./base.css');
@import url('./components.css');
@import url('./layout.css');
@import url('./fonts.css');

/* Modern Reset and Base Styles */
:root {
    /* Z-index layers */
    --z-preloader: 9999;
    --z-header: 1000;
    --z-dropdown: 1001;
    --z-floating: 998;
    --z-hero: 1;

    /* Color System */
    --primary-color: #ff002e;
    --secondary-color: #ff4d6d;
    --accent-color: #ff002e;
    --text-color: #ffffff;
    --light-text: #9ca3af;
    --background: #050505;
    --section-bg: #0a0a0a;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --dark-bg: #050505;
    /* Deep black for Neo-Modern look */
    --light-bg: #0a0a0a;
    /* Slightly lighter for contrast */
    --white: #ffffff;
    --text-primary: #ffffff;
    --text-secondary: #e5e7eb;
    /* Lighter gray for better readability */
    --text-light: #d1d5db;
    /* Much lighter gray for body text */
    --text-dark: #ffffff;
    /* Ensure headers are white */

    /* Effects */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --section-padding: 80px 0;
    --section-spacing: 2rem;
    --content-spacing: 1.5rem;

    /* Typography */
    --font-primary: 'Mona Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.6;
    --heading-line-height: 1.2;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Container */
    --container-max-width: 1440px;
    --container-padding: 2rem;

    /* Added for RGB values */
    --primary-color-rgb: 255, 0, 46;
    --secondary-color-rgb: 255, 77, 109;
}

/* Loading States */
html.loading,
body.loading {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    z-index: var(--z-preloader);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-logo {
    width: 180px;
    height: auto;
    animation: logoAnimation 2s infinite;
    filter: drop-shadow(0 0 15px rgba(255, 0, 46, 0.3));
}

.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 40%;
    background: var(--primary-color);
    animation: progressAnimation 1.5s ease-in-out infinite;
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-color);
}

@keyframes logoAnimation {

    0%,
    100% {
        transform: translateY(0) scale(1);
        filter: drop-shadow(0 0 15px rgba(255, 0, 46, 0.3));
    }

    50% {
        transform: translateY(-10px) scale(1.05);
        filter: drop-shadow(0 0 25px rgba(255, 0, 46, 0.5));
    }
}

@keyframes progressAnimation {
    0% {
        left: -40%;
    }

    100% {
        left: 100%;
    }
}

.loader-text {
    display: flex;
    gap: 0.8rem;
    position: relative;
}

.loader-letter {
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.4s ease forwards;
}

.loader-letter:nth-child(1) {
    animation-delay: 0s;
}

.loader-letter:nth-child(2) {
    animation-delay: 0.05s;
}

.loader-letter:nth-child(3) {
    animation-delay: 0.1s;
}

.loader-letter:nth-child(4) {
    animation-delay: 0.15s;
}

.loader-letter:nth-child(5) {
    animation-delay: 0.2s;
}

.loader-letter:nth-child(6) {
    animation-delay: 0.25s;
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.loader-text::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 1px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left;
    animation: lineReveal 0.3s ease forwards 0.4s;
}

@keyframes lineReveal {
    to {
        transform: scaleX(1);
    }
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-padding, 80px);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    background: var(--background);
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

body.loading {
    overflow: hidden;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Smooth transition for all interactive elements */
a,
button,
.nav-links a,
.service-card,
.tech-item,
.social-link,
.contact-cta,
.floating-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth animation for section reveals */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Content Visibility */
.hero,
.services,
.about,
.technologies,
.contact {
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 100px;
    opacity: 1 !important;
    visibility: visible !important;
    min-height: 100px;
    padding: var(--section-padding);
    margin: 0;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 140px 0 80px;
    /* Increased top padding to clear fixed header (approx 80px-100px) */
    overflow: hidden;
    background: #050505;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 0% 0%, rgba(255, 0, 46, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(255, 77, 109, 0.05) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    animation: gradientPulse 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: calc(100vh - 80px);
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-text {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(255, 0, 46, 0.1);
    transition: all 0.3s ease;
}

.hero-tag:hover {
    border-color: rgba(255, 0, 46, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 46, 0.2);
    transform: translateY(-2px);
}

.tag-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    position: relative;
}

.tag-dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 2s ease-out infinite;
}

.tag-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: left;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    animation: lineReveal 0.8s ease forwards 1.2s;
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 600px;
    text-align: left;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color), #ff4d4d);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 0, 46, 0.2);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 46, 0.25);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hero-img-3d {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    object-fit: contain;
    /* filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5)); Removed to eliminate border-like effect */
    animation: float 6s ease-in-out infinite;
    margin-top: -110px;
    /* Increased lift to -110px as requested */
    -webkit-mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
    /* Fades the sharp edges to remove the 'box' look */
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.metric-value {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: clamp(0.875rem, 1.5vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
}

.hero-image {
    position: relative;
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align image to the top of its container */
}

.hero-image .floating-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    /* Increased max-width */
    animation: float 6s ease-in-out infinite;
}

/* Ensure old hero visual styles are hidden or removed */
.hero-visual,
.hero-visual-content,
.tech-illustration,
.tech-circle,
.tech-icon,
.tech-connections,
.connection-line,
.tech-glow,
#particleCanvas,
.data-flow,
.data-nodes,
.node {
    display: none;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero {
        padding: 120px 0 60px;
    }

    .hero-container {
        gap: 3rem;
    }

    .hero-image .floating-image {
        max-width: 550px;
        /* Increased max-width for this breakpoint */
    }
}

@media (max-width: 992px) {

    /* Ensure .hero itself has enough top padding for the fixed header */
    .hero {
        padding-top: 100px;
        /* Reduced top padding */
        padding-bottom: 60px;
        /* Adjusted for more balanced spacing */
        min-height: auto;
        /* Allow height to be determined by content */
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        min-height: auto;
        padding-top: 0;
        /* Reduced top padding; hero section's padding will provide base top space */
    }

    .hero-content {
        margin-bottom: 0;
        /* Remove bottom margin to rely on hero section's padding */
    }

    .hero-text {
        max-width: 100%;
        align-items: center;
    }

    .hero h1 {
        text-align: center;
    }

    .hero p {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, 1fr);
        max-width: 800px;
        margin: 2rem auto 0;
    }

    .hero-image {
        order: -1;
        /* Hide the image on mobile screens */
        display: none;
    }

    .hero-image .floating-image {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .hero-container {
        /* Adjusted top padding to 0, bottom padding remains 2rem */
        padding: 0 1.5rem;
        /* Removed bottom padding, hero section handles it */
    }

    .hero-tag {
        padding: 0.4rem 0.875rem;
        margin-bottom: 1.25rem;
    }

    .tag-text {
        font-size: 0.85rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .hero-buttons .cta-button {
        width: 100%;
        justify-content: center;
    }

    .hero-metrics {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-image .floating-image {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        /* Adjusted top padding to 0, bottom padding remains 2rem */
        padding: 0 1rem;
        /* Removed bottom padding, hero section handles it */
    }

    .hero-tag {
        padding: 0.35rem 0.75rem;
        margin-bottom: 1rem;
    }

    .tag-dot {
        width: 6px;
        height: 6px;
    }

    .tag-text {
        font-size: 0.8rem;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .metric-item {
        padding: 1rem;
    }

    .hero-image .floating-image {
        max-width: 250px;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

@keyframes lineReveal {
    to {
        transform: scaleX(1);
    }
}

@keyframes gradientPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }
}

/* Modern Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--section-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

/* Modern Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-header);
    background: transparent;
    transition: all 0.3s ease;
    padding: 1.25rem 0;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--container-padding);
    max-width: var(--container-max-width);
    margin: 0 auto;
}

.logo {
    z-index: var(--z-header);
}

.logo-image {
    height: 35px;
    width: auto;
    transition: all 0.3s ease;
}

.header.scrolled .logo-image {
    height: 32px;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
}

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

.nav-cta.active {
    color: var(--primary-color);
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: var(--z-header);
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: all 0.3s ease;
}

.header.scrolled .menu-toggle span {
    background: var(--white);
}

/* Animated Menu Toggle Icon */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }

    /* Ensure body scroll is prevented when menu is open */
    body.menu-open {
        overflow: hidden;
    }

    .header.scrolled .menu-toggle span {
        background: var(--white);
        /* Ensure toggle is visible on scrolled dark header */
    }

    /* If header is not scrolled, and menu is open, toggle should be visible against dark menu */
    .menu-toggle.active span {
        background: var(--white);
        /* Or a contrasting color if menu bg is light */
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        /* Changed from right */
        width: 100%;
        height: 100vh;
        background: var(--gradient);
        /* Use a beautiful gradient */
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        /* Increased gap */
        transform: translateY(-100%);
        /* Start off-screen above */
        transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: var(--z-dropdown);
        padding-top: 60px;
        /* Space for header */
    }

    .nav-links.active {
        transform: translateY(0);
        /* Slide in from top */
    }

    .nav-link {
        font-size: 1.5rem;
        /* Larger font size for mobile links */
        font-weight: 600;
        color: var(--white);
        /* Links should be white on gradient background */
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s;
        /* Delay for staggered effect */
    }

    .nav-links.active .nav-link {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation for links */
    .nav-links.active li:nth-child(1) a {
        transition-delay: 0.3s;
    }

    .nav-links.active li:nth-child(2) a {
        transition-delay: 0.4s;
    }

    .nav-links.active li:nth-child(3) a {
        transition-delay: 0.5s;
    }

    .nav-links.active li:nth-child(4) a {
        transition-delay: 0.6s;
    }

    /* Add more if you have more links */

    .nav-link:hover,
    .nav-link.active-page {
        /* Assuming you have an active-page class for current page */
        color: var(--white);
        text-decoration: underline;
        /* Simple hover effect */
        text-decoration-thickness: 2px;
        text-underline-offset: 4px;
    }

    .nav-cta {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
}

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

    .logo-image {
        height: 30px;
    }

    .header.scrolled .logo-image {
        height: 28px;
    }

    .nav-cta {
        padding: 0.7rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* Policy Page Styles (for terms.php, privacy-policy.php) */
.policy-section {
    /* Renamed from .privacy-section for broader use */
    padding: 4rem 0;
    /* Reduced padding */
    background-color: var(--dark-bg);
    padding: 6rem 0;
    background: #f8fafc;
    /* Light Gray */
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    /* White Container */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Light Border */
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.policy-content h2 {
    font-size: 2rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.policy-item {
    margin-bottom: 2.5rem;
}

.policy-content h3 {
    font-size: 1.5rem;
    color: #0a0a0a;
    /* Dark Subtitle */
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.policy-content h3 i {
    color: var(--primary-color);
}

.policy-content p,
.policy-content ul {
    color: #4b5563;
    /* Dark Gray Text */
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.policy-content ul {
    list-style: none;
    padding-left: 1.5rem;
}

.policy-content ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.policy-content ul li::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: -2px;
}

.policy-contact-info {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.policy-contact-info p {
    margin-bottom: 0.5rem;
}

.policy-contact-info p strong {
    color: #0a0a0a;
    /* Dark Bold Text */
}

.policy-contact-info a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

/* Floating Contact Button */
.floating-contact {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: var(--z-floating);
}

.floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(255, 0, 46, 0.3);
    transition: var(--transition);
}

.floating-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 0, 46, 0.4);
}

.floating-btn i {
    font-size: 1.5rem;
}

/* Logo Styles */
.logo {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
}

.logo a {
    display: block;
    line-height: 0;
}

.logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(0.2) opacity(0.7);
    /* Turn logos dark gray */
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%) brightness(1) opacity(1);
    /* Color on hover */
    transform: scale(1.1);
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 1.5rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Global Section Subtitle */
.section-subtitle {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

/* Services Section - Hybrid Light Theme */
.services-section {
    background-color: #f8fafc;
    /* Light BG */
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.services-section .section-header h2 {
    color: #0a0a0a;
    /* Explicit Dark Text */
    margin-bottom: 1rem;
}

.services-section .section-header p {
    color: #4b5563 !important;
    /* Dark Gray (Tailwind Gray-600) for visibility */
    font-weight: 500;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    animation: pulseGlow 10s infinite alternate;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 2.5rem;
    /* backdrop-filter: blur(10px); Removed for light theme */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 46, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 0, 46, 0.05);
    /* Light red tint */
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 0, 46, 0.1);
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    border-color: rgba(255, 0, 46, 0.2);
    background: rgba(255, 0, 46, 0.1);
}

.service-icon i {
    font-size: 1.75rem;
    color: #ff002e;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0a0a0a;
    /* Explicit Dark text */
    letter-spacing: -0.02em;
}

.service-content p {
    color: #666;
    /* Standard dark mode gray text */
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Expertise Section */
.expertise {
    padding: var(--section-padding);
    background: #ffffff;
    /* Explicit White */
}

.expertise-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.expertise-category {
    margin-bottom: var(--spacing-2xl);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.header-icon {
    width: 64px;
    align-items: center;
    height: 64px;
    background: #f1f5f9;
    /* Light gray */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: var(--transition);
}

.header-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

/* Removing hover effects for header icons */
.category-header:hover .header-icon {
    background: var(--light-bg);
}

.category-header:hover .header-icon i {
    color: var(--primary-color);
    transform: none;
}

.author-details-new h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    /* Explicit Dark text */
    margin-bottom: 0.25rem;
}

.header-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #0a0a0a;
    /* Explicit Dark text */
    margin-bottom: 0.25rem;
}

.header-text p {
    color: var(--text-light);
    margin: 0;
    font-size: 1.125rem;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.expertise-box {
    background: var(--white);
    border-radius: 20px;
    padding: var(--spacing-xl);
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    /* For consistent card height and internal alignment */
    flex-direction: column;
    /* Stack items vertically */
}

.expertise-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.tech-icon {
    width: 64px;
    height: 64px;
    background: #f1f5f9;
    /* Light gray */
    border-radius: 18px;
    margin-bottom: var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: var(--transition);
}

.tech-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.expertise-box:hover .tech-icon {
    background: var(--primary-color);
}

.expertise-box:hover .tech-icon i {
    color: var(--white);
    transform: scale(1.1);
}

.expertise-box h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #0a0a0a;
    /* Explicit Dark text */
    margin-bottom: var(--spacing-md);
    /* 1rem */
}

.tech-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    /* Allow this to take up available space */
}

.tech-features li {
    color: #4b5563;
    /* Dark Gray */
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
}

.tech-features li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Technologies Section */
.technologies {
    padding: 80px 0;
    background: var(--section-bg);
    position: relative;
}

.tech-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    background: var(--card-bg);
    border-radius: 8px;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow);
}

.tech-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
}

.tech-item span {
    color: #0a0a0a;
    /* Explicit Dark text */
    font-size: 0.9rem;
    font-weight: 500;
}

/* Hover Effects */
.tech-item:hover .tech-icon {
    background: var(--primary-color);
}

.tech-item:hover .tech-icon i {
    color: white;
}

/* Animation for progress bars */
[data-aos="fade-up"] .tech-progress {
    width: 0 !important;
    transition: width 1s ease 0.5s;
}

[data-aos="fade-up"].aos-animate .tech-progress {
    width: var(--progress-width);
}

/* Responsive Design */
@media (max-width: 992px) {
    .tech-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .technologies {
        padding: 60px 0;
    }

    .tech-container {
        padding: 0 1rem;
    }

    .tech-category {
        padding: 1.5rem;
    }

    .category-header {
        margin-bottom: 1.5rem;
    }

    .tech-items {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .tech-category {
        padding: 1.25rem;
    }

    .category-header i {
        width: 32px;
        height: 32px;
        font-size: 1.25rem;
    }

    .category-header h3 {
        font-size: 1.125rem;
    }

    .tech-item i {
        font-size: 1.75rem;
    }
}

/* Expertise Section Responsive */
@media (max-width: 992px) {
    .expertise {
        padding: 5rem 0;
        /* Slightly reduce padding */
    }

    .expertise-grid {
        gap: var(--spacing-md);
        /* 1rem, reduce gap */
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .expertise-box {
        padding: var(--spacing-lg);
        /* 1.5rem, reduce padding */
    }

    .header-text h3 {
        font-size: 1.5rem;
        /* Reduce category title size */
    }

    .header-text p {
        font-size: 1rem;
        /* Reduce category subtitle size */
    }
}

@media (max-width: 768px) {
    .expertise {
        padding: 4rem 0;
        /* Further reduce padding */
    }

    .expertise-container {
        padding: 0 var(--spacing-sm);
        /* 0 0.5rem, reduce container padding */
    }

    .category-header {
        gap: var(--spacing-md);
        /* 1rem, reduce gap */
        margin-bottom: var(--spacing-lg);
        /* 1.5rem */
    }

    .header-icon {
        width: 56px;
        /* Reduce icon container size */
        height: 56px;
        border-radius: 16px;
        margin-bottom: var(--spacing-md);
        /* 1rem */
    }

    .header-icon i {
        font-size: 1.5rem;
        /* Reduce icon size */
    }

    .header-text h3 {
        font-size: 1.35rem;
    }

    .expertise-grid {
        grid-template-columns: 1fr;
        /* Stack to single column for better readability */
        gap: var(--spacing-md);
        /* 1rem */
    }

    .expertise-box h4 {
        font-size: 1.15rem;
        /* Reduce box title size */
    }

    .tech-icon {
        width: 56px;
        /* Reduce tech icon container size */
        height: 56px;
        margin-bottom: var(--spacing-md);
        /* 1rem */
    }

    .tech-icon i {
        font-size: 1.5rem;
        /* Reduce tech icon size */
    }

    .tech-features li {
        font-size: 0.9rem;
        /* Reduce feature text size */
    }
}

@media (max-width: 480px) {
    .expertise {
        padding: 3rem 0;
    }

    .expertise-category {
        margin-bottom: var(--spacing-xl);
        /* 2rem */
    }

    /* Further adjustments for very small screens can be added if needed */
}

/* Contact Section (CTA) - Hybrid Light Theme */
.contact-section {
    padding: var(--section-padding);
    background: #f8fafc;
    /* Light BG */
    position: relative;
    overflow: hidden;
    text-align: center;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 0, 46, 0.1) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.contact-section .container {
    position: relative;
    z-index: 1;
}

.contact-section .section-header h2 {
    font-size: 3rem;
    background: none;
    -webkit-text-fill-color: initial;
    color: #0a0a0a;
    /* Explicit Dark Text */
    margin-bottom: 1.5rem;
}

.contact-section .section-header p {
    font-size: 1.25rem;
    color: #666;
    /* Gray Text */
    max-width: 600px;
    margin: 0 auto 3rem;
}

.contact-cta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Footer Styles - Neo-Modern Redesign */
.footer {
    background: #000000;
    /* Darker than dark-bg for footer */
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    border-top: 1px solid var(--border-color);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.footer-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(1.2);
}

.footer-section p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.footer-section h3 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    color: var(--text-light);
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.2rem;
}

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

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px -4px rgba(255, 0, 46, 0.4);
    border-color: var(--primary-color);
}

.footer-bottom {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-content p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact-section .section-header h2 {
        font-size: 2.5rem;
    }

    .footer {
        padding: 60px 0 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

/* Container Styles */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Contact Section */


.contact-cta {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.contact-cta .btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-cta .btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.contact-cta .btn-primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

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

.contact-cta .btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* Contact Section Responsive */
@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 0;
    }

    .contact-section .section-header {
        margin-bottom: 2rem;
    }

    .contact-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-cta .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 3rem 0;
    }

    .contact-section .section-header h2 {
        font-size: 1.75rem;
    }

    .contact-cta .btn {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
}

/* Scroll Animations Removed */
.scroll-fade-up,
.scroll-fade-right,
.scroll-fade-left,
.scroll-scale {
    opacity: 1;
    transform: none;
}

/* Enhanced Service Cards Animation */
.service-card {
    transform-origin: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover::after {
    opacity: 1;
}

/* Enhanced Tech Items Animation */
.tech-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-item:hover {
    transform: translateY(-10px) rotate(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.floating {
    animation: float 6s ease-in-out infinite;
}

/* Parallax Effect */
.parallax {
    transition: transform 0.1s ease-out;
    will-change: transform;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: var(--z-header);
}

/* Enhanced Section Headers */
.section-header {
    opacity: 1;
}

.section-header h2 {
    opacity: 1;
    transform: none;
}

/* Enhanced Button Hover Effects */
.cta-button {
    position: relative;
    overflow: hidden;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: 0.5s;
}

.cta-button:hover::after {
    left: 100%;
}

/* Scroll-triggered section backgrounds */
.section-bg-animate {
    position: relative;
    overflow: hidden;
}

/* Contact section specific styles */
.contact .section-header h2 {
    color: white;
}

.contact .section-header p {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 992px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }
}

/* About Page Sections */
.about-section {
    padding: 6rem 0;
    /* Standardize padding */
    background: #f8fafc;
    /* Light Gray BG */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    /* Increased gap */
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.about-content p {
    font-size: 1.1rem;
    color: #4b5563;
    /* Dark Gray text */
    line-height: 1.8;
    margin-bottom: 2rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #4b5563;
    /* Dark Label */
    font-weight: 500;
}

.about-image {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); Removed box shadow */
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Values Section */
.values-section {
    padding: 6rem 0;
    background: #f8fafc;
    /* Light Gray BG */
}

/* Fix visibility of section header in values section */
.values-section .section-header h2 {
    color: #0a0a0a;
}

.values-section .section-header p {
    color: #4b5563;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.value-card {
    flex: 0 1 350px;
    /* Base width 350px, can shrink */
    min-width: 300px;
    /* Minimum width */
    max-width: 400px;
    /* Maximum width */
    background: #ffffff;
    /* White Card */
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    /* Restored padding */
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    /* Soft shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Force horizontal center */
    text-align: center;
    /* Center text content */
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.value-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 0, 46, 0.1);
    /* Light Red Tint */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    /* Margin bottom only */
    transition: all 0.3s ease;
}

.value-card:hover .value-icon {
    background: var(--primary-color);
    transform: scale(1.1);
}

.value-icon i {
    font-size: 1.75rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.value-card:hover .value-icon i {
    color: white;
}

.value-card h3 {
    font-size: 1.35rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 1rem;
    font-weight: 700;
    text-align: center;
    /* Force Center */
    width: 100%;
    /* Ensure full width for centering */
}

.value-card p {
    font-size: 0.95rem;
    color: #4b5563;
    /* Dark Gray text */
    line-height: 1.6;
    text-align: center;
    /* Force Center */
    width: 100%;
    /* Ensure full width for centering */
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: #f8fafc;
    /* Light Gray BG */
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* backdrop-filter: blur(10px); */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.member-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-member h3 {
    font-size: 1.25rem;
    color: var(--white);
    margin: 1.5rem 1.5rem 0.5rem;
}

.member-role {
    font-size: 0.95rem;
    color: var(--primary-color);
    margin: 0 1.5rem 1rem;
    font-weight: 600;
}

.member-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 1.5rem 1.5rem;
}

/* About Page Responsive */
@media (max-width: 1200px) {
    .about-grid {
        gap: 3rem;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .about-section,
    .values-section,
    .team-section {
        padding: 4rem 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .values-grid,
    .team-grid {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 2rem auto 0;
    }

    .team-member {
        margin-bottom: 1.5rem;
    }
}

/* Page Hero Section */
.page-hero {
    background: var(--dark-bg);
    color: white;
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

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

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

.page-hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.page-hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    animation: fadeInUp 0.8s ease-out 0.2s;
    animation-fill-mode: both;
}



/* Tech Section */
.tech-section {
    padding: 6rem 0;
    background: #f8fafc;
    /* Light Gray */
}

/* Fix Section Header Visibility in Tech Section */
.tech-section .section-header h2 {
    color: #0a0a0a;
}

.tech-section .section-header p {
    color: #4b5563;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.tech-category {
    background: #ffffff;
    /* White Card */
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tech-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.category-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.category-header h3 {
    font-size: 1.5rem;
    color: #0a0a0a;
    /* Dark Title */
    margin: 0;
    font-weight: 700;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--spacing-md);
}

.tech-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: #ffffff;
    /* White background for items */
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Subtle border */
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.tech-item:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tech-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.tech-item:hover i {
    color: var(--white);
}

.tech-item span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Process Section */
.process-section {
    padding: 6rem 0;
    background: #ffffff;
    /* White Background */
    margin-top: 0;
}

/* Fix Section Header Visibility in Process Section */
.process-section .section-header h2 {
    color: #0a0a0a;
}

.process-section .section-header p {
    color: #4b5563;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.process-step {
    background: #f8fafc;
    /* Light Gray Card */
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
}

.process-step h3 {
    font-size: 1.5rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.process-step p {
    color: #4b5563;
    /* Dark Gray */
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.step-details {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.step-details li {
    padding: 0.5rem 0;
    color: #4b5563;
    /* Dark Gray */
    position: relative;
    padding-left: 1.5rem;
}

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

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: #f8fafc;
    /* Light Gray */
}

/* Fix Section Header Visibility in Features Section */
.features-section .section-header h2 {
    color: #0a0a0a;
}

.features-section .section-header p {
    color: #4b5563;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.feature-item {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.feature-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    transition: var(--transition);
}

.feature-item:hover i {
    transform: scale(1.1);
}

.feature-item h3 {
    font-size: 1.5rem;
    color: #0a0a0a;
    /* Dark Title */
    margin-bottom: 1rem;
}

.feature-item p {
    color: #4b5563;
    /* Dark Gray */
    line-height: 1.6;
}

/* Work Portfolio Section - Neo-Modern Redesign */
/* Work Portfolio Section - Hybrid Light Theme */
.work-portfolio-section {
    padding: var(--section-padding);
    background: #ffffff;
    /* Light BG */
    position: relative;
    overflow: hidden;
}

.work-portfolio-section .section-header h2 {
    color: #0a0a0a !important;
    /* Force Dark Text */
    margin-bottom: 1rem;
    opacity: 1;
    /* Safety check for animation */
}

.work-portfolio-section .section-header p {
    color: #4b5563 !important;
    /* Dark Gray for visibility */
    font-weight: 500;
}

/* Subtitle is now global .section-subtitle */

.work-portfolio-section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 0, 46, 0.08) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.work-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.work-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Explicitly reset wrapper hover */
.work-item-link:hover {
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Work Portfolio Items - Hybrid Light Theme */
.work-portfolio-item {
    background: #ffffff;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Light border */
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    /* Ensure visible regardless of AOS */
    visibility: visible !important;
}

/* CSS Rules Deleted for Debugging - Restoring SAFE cosmetic effects only */
.work-portfolio-item:hover {
    transform: none !important;
    /* STRICTLY NO MOVEMENT */
    margin: 0 !important;
    top: 0 !important;
    border-color: rgba(255, 0, 46, 0.5) !important;
    /* Red border on hover */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.work-portfolio-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.work-portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-portfolio-item:hover .work-portfolio-image img {
    transform: none !important;
    /* Disable zoom */
}

.work-portfolio-content {
    background: #ffffff;
    /* White background */
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.work-portfolio-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0a0a0a;
    /* Explicit Dark text */
}

.work-item-category {
    display: inline-block;
    font-size: 0.875rem;
    color: #ff4d6d;
    /* Primary blue tint */
    background: rgba(255, 0, 46, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    /* Pill shape */
    margin-bottom: 1rem;
    align-self: flex-start;
    border: 1px solid rgba(255, 0, 46, 0.2);
}

.work-portfolio-content p {
    font-size: 0.95rem;
    color: #666;
    /* Gray text */
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.work-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: auto;
    transition: var(--transition);
}

.work-portfolio-link span {
    background: linear-gradient(90deg, #ff002e, #ff4d6d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.work-portfolio-link i {
    transition: transform 0.3s ease;
    color: #ff4d6d;
}

.work-portfolio-link:hover {
    border-bottom-color: rgba(255, 77, 109, 0.5);
}

.work-portfolio-link:hover i {
    transform: translateX(4px);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .work-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .work-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .work-portfolio-item {
        min-height: auto;
    }
}

/* Featured Projects Section Header (on index.php) */
#featured-projects .section-header {
    text-align: center;
    margin-bottom: 3rem;
    /* Consistent with other section headers */
}

#featured-projects .section-header .section-subtitle {
    display: block;
    /* Or inline-block */
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    /* Consistent with other subtitles */
}

#featured-projects .section-header h2 {
    font-size: 2.5rem;
    /* Consistent with other section titles */
    color: var(--text-dark);
    /* Or var(--primary-color) if preferred */
    margin-bottom: 1rem;
}

#featured-projects .section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
    /* Consistent with other section descriptions */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Button Base Styles */
.btn,
.cta-button,
.submit-button,
.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: var(--border-radius);
    transition: var(--transition);
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
}

/* Primary Button */
.btn-primary,
.cta-button.primary {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover,
.cta-button.primary:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* Secondary Button */
.btn-secondary,
.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover,
.cta-button.secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* Submit Button */
.submit-button {
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    width: 100%;
}

.submit-button:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

/* Filter Button */
.filter-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Button with Icon */
.btn i,
.cta-button i,
.submit-button i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.btn:hover i,
.cta-button:hover i,
.submit-button:hover i {
    transform: translateX(4px);
}

/* Disabled State */
.btn:disabled,
.btn.disabled,
.cta-button:disabled,
.cta-button.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 1.5rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {

    .btn,
    .cta-button,
    .submit-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn-group .btn,
    .btn-group .cta-button {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    .btn,
    .cta-button,
    .submit-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Testimonials Section - Neo-Modern Redesign */
.testimonials-section {
    padding: var(--section-padding);
    background: #f8fafc;
    /* Light Gray Background - consistent with Services/Hybrid theme */
    /* background: var(--light-bg); - REMOVED: var(--light-bg) is dark */
    position: relative;
    overflow: hidden;
}

.testimonials-section .section-header h2 {
    color: #0a0a0a;
    /* Explicit Dark text */
    margin-bottom: 1rem;
}

.testimonials-section .section-header p {
    color: #4b5563 !important;
    /* Dark Gray (standardized) */
    font-weight: 500;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

/* New Testimonial Card Design */
.testimonial-card-new {
    background: #ffffff;
    /* White card */
    padding: 2.5rem;
    border-radius: 20px;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.testimonial-card-new:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 0, 46, 0.3);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Background icon removed as per request */
/* .testimonial-card-new::before { content: '"'; ... } */
/* .testimonial-card-new:hover::before { ... } */

.testimonial-quote-icon-new {
    font-size: 2rem;
    color: var(--primary-color);
    /* Solid Primary Color */
    margin-bottom: 1.5rem;
}

.testimonial-text-new {
    flex-grow: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    /* Dark gray text */
    margin-bottom: 2rem;
    font-style: italic;
}

.testimonial-author-new {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.author-details-new {
    line-height: 1.3;
}

.author-name-new {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0a0a0a;
    /* Dark Text */
    margin: 0 0 0.25rem 0;
}

.author-title-new {
    font-size: 0.9rem;
    color: #ff4d6d;
    /* Blue tint */
    margin: 0;
    font-weight: 500;
}

/* Company Logos - Infinite Slider */
.company-logos {
    margin-top: 6rem;
    /* Added spacing after client reviews */
    padding: 60px 0;
    overflow: hidden;
    background: transparent;
    /* Removed dark bg */
    position: relative;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.company-logos::before,
.company-logos::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.company-logos::before {
    left: 0;
    background: linear-gradient(to right, #f8fafc, transparent);
    /* Fade from Light Gray */
}

.company-logos::after {
    right: 0;
    background: linear-gradient(to left, #f8fafc, transparent);
    /* Fade from Light Gray */
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.logo-track {
    display: flex;
    white-space: nowrap;
    animation: slide 30s linear infinite;
    gap: 4rem;
    width: max-content;
    padding: 10px 0;
}

.logo-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    /* Make grayscale but KEEP DARK */
    /* Removed invert(1) brightness(2) */
    background: transparent;
    border: none;
    padding: 0;
    height: 50px;
    width: auto;
    min-width: auto;
}

.logo-item:hover {
    opacity: 1;
    filter: grayscale(0%);
    /* Restore color on hover */
    transform: scale(1.1);
}

.logo-item img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@keyframes slide {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card-new {
        padding: 2rem;
    }

    .company-logos {
        padding: 60px 0;
    }

    .logo-track {
        gap: 3rem;
    }
}

/* Badge for featured items in the main portfolio grid */
.work-item {
    position: relative;
    /* For badge positioning */
    background-color: var(--white);
    border-radius: var(--border-radius, 8px);
    /* Slightly smaller radius */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
    /* Softer shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

/* .work-item:hover { */
/* transform: translateY(-4px); More subtle lift */
/* box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); Slightly stronger hover shadow */
/* } */

.work-item-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    /* Common professional aspect ratio */
    object-fit: cover;
    background-color: #f0f2f5;
    /* Lighter placeholder */
}

.work-item-content {
    padding: var(--spacing-md, 1rem);
    /* Consistent padding */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.work-item-title {
    font-size: 1.15rem;
    /* Slightly smaller for a cleaner look */
    font-weight: 600;
    color: var(--text-dark, #1a1a1a);
    margin-bottom: var(--spacing-sm, 0.5rem);
    line-height: 1.3;
}

.work-item-category {
    font-size: 0.75rem;
    /* Smaller category text */
    color: var(--primary-color, #ff002e);
    font-weight: 500;
    margin-bottom: var(--spacing-sm, 0.5rem);
    /* Reduced margin */
    display: inline-block;
    text-transform: capitalize;
    background-color: rgba(var(--primary-color-rgb, 255, 0, 46), 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    /* Less rounded, more professional */
}

.work-item-description {
    font-size: 0.875rem;
    /* Standard body text size */
    color: var(--text-light, #666666);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* Show 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
    /* Pushes description down if title/category are short */
}

.portfolio-featured-badge {
    position: absolute;
    top: 12px;
    /* Adjust as needed */
    right: 12px;
    /* Adjust as needed */
    background-color: var(--primary-color);
    /* Or a specific color for featured items */
    color: var(--white, #fff);
    padding: 0.25rem 0.5rem;
    /* Smaller padding */
    font-size: 0.65rem;
    /* Smaller font size for badge */
    font-weight: 500;
    border-radius: 4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    /* Softer shadow for badge */
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-featured-badge i {
    font-size: 0.6rem;
    /* Smaller icon in badge */
}

/* In your main stylesheet (e.g., assets/css/style.css) */
body.modal-open {
    /* Alternative to direct style manipulation, add/remove this class */
    overflow: hidden;
}

.work-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* Semi-transparent overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    /* Ensure it's above other content */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    padding: 15px;
    /* Padding for smaller screens */
}

.work-modal.active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
}

.work-modal .modal-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 700px;
    /* Adjust as needed */
    max-height: 90vh;
    /* Maximum height */
    overflow-y: auto;
    /* Allow content to scroll within the modal if it's too long */
    position: relative;
    /* For positioning the close button */
    padding: 20px;
    /* Inner padding for modal content */
    display: flex;
    flex-direction: column;
}

.work-modal .work-image {
    width: 100%;
    max-height: none;
    /* Adjust max-height as desired */
    /* max-height: 400px; /* Removed fixed max-height, will use viewport relative for image */
    overflow: hidden;
    border-radius: 6px;
    /* Optional: if you want rounded corners for the image container */
    background-color: #f0f0f0;
    /* Placeholder color */
    display: flex;
    /* For centering the image if using object-fit: contain */
    display: flex;
    /* For centering the image if it doesn't fill the container */
    align-items: center;
    justify-content: center;
}

.work-modal .work-image img {
    width: 100%;
    height: 100%;
    display: block;
    /* Remove extra space below image */
    width: 100%;
    /* Image will take full width of its container */
    height: auto;
    /* Height will adjust to maintain aspect ratio */
    max-height: 65vh;
    /* Limit image height to 65% of viewport height. Adjust as needed. */
    object-fit: contain;
    /* Ensures the whole image is visible, might leave empty space */
    /* Use 'object-fit: cover;' if you want to fill the area and crop the image */
    /* Removed explicit height: 100% to allow natural aspect ratio scaling */

}

.work-modal .close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.8rem;
    /* ... other styling for close button ... */
}

nav-link {
    color: #ffffff;
}