/* 
* 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: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --section-bg: #f8f9fa;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --dark-bg: #1a1a1a;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --text-dark: #1a1a1a;
    --text-light: #666666;

    /* 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: 6rem 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: 0, 123, 255;
    --secondary-color-rgb: 108, 99, 255;
}

/* 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;
    padding: 4rem 0;
    margin: 0;
    width: 100%;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 75px 0 80px; /* Minimized top padding to clear header */
    overflow: hidden;
    background: #1a1a1a;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        linear-gradient(45deg, rgba(0, 0, 0, 0.5) 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.05);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.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(2.5rem, 5vw, 4.5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-align: left;
}

.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 6px 20px rgba(255, 0, 46, 0.3);
}

.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-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: 60px 0;
    }
    
    .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(--section-bg);
}

.policy-content { /* Renamed from .privacy-content */
    max-width: 900px; /* Slightly wider for better readability */
    margin: 0 auto;
    background-color: var(--white);
    padding: 2.5rem; /* Increased padding */
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.policy-content h2 {
    font-size: 2rem; /* Slightly smaller */
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    text-align: left; /* Align to left for policy pages */
}

.policy-content h3 {
    font-size: 1.5rem; /* Consistent heading size */
    color: var(--text-dark);
    margin-top: 2rem; /* More space above h3 */
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee; /* Subtle separator */
}

.policy-content p,
.policy-content ul {
    font-size: 1rem; /* Consistent text size */
    color: var(--text-light);
    line-height: 1.7; /* Improved line height */
    margin-bottom: 1rem;
}

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

.policy-content ul li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem; /* Space between list items */
}

.policy-content ul li::before {
    content: "\f058"; /* Font Awesome check-circle icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900; /* Solid icon */
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 2px; /* Adjust vertical alignment */
}

.policy-contact-info {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

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

/* 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-image {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

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

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-section .section-header .section-subtitle {
    margin-bottom: 1rem;
}

.services-section .section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Loading Spinner */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--primary-color);
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.loading-spinner span {
    font-size: 1.1rem;
}

/* No Services Message */
.no-services {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.no-services i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Error Message */
.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--error-color);
}

.error-message i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

/* Service Card */
.service-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
}

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

.service-icon {
    width: 80px;
    height: 80px;
    background: rgba(var(--primary-color-rgb), 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.service-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}

.service-icon i {
    font-size: 2rem;
    color: var(--primary-color);
    transition: var(--transition);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
    transform: scale(1.1);
    background: transparent;
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-card:hover .service-icon i {
    color: var(--white);
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.service-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.service-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

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

.service-icon i {
    animation: iconFloat 3s ease-in-out infinite;
}

/* Different animation delays for each service card */
.service-card:nth-child(3n+1) .service-icon i {
    animation-delay: 0s;
}

.service-card:nth-child(3n+2) .service-icon i {
    animation-delay: 0.5s;
}

.service-card:nth-child(3n+3) .service-icon i {
    animation-delay: 1s;
}

@media (max-width: 768px) {
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
    }
    
    .service-icon i {
        font-size: 1.75rem;
    }
    
    .service-content h3 {
        font-size: 1.25rem;
    }
}

/* Expertise Section */
.expertise {
    padding: var(--section-padding);
    background: var(--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: var(--light-bg);
    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;
}

.header-text h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    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: var(--light-bg);
    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: var(--text-dark);
    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: var(--text-light);
    margin-bottom: 0.75rem;
    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-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-category {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.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: var(--text-color);
    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 */
}

/* Footer Styles */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 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: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--gradient);
}

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

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

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

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 3rem;
    width: 100%;
}

.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.7);
    text-decoration: none;
    font-size: 0.9rem;
}

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

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

@media (max-width: 768px) {
    .footer {
        padding: 60px 0 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
}

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

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--section-bg);
    margin-top: 0;
    text-align: center;
}

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

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

.contact-section .section-header h2 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.contact-section .section-header p {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.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: 4rem 0; /* Reduced top and bottom padding */
    background: var(--section-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem; /* Reduced gap for better connection */
    align-items: center;
}

.about-content h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.about-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    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: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
}

.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: var(--white);
}

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

.value-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.value-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.value-card h3 {
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Team Section */
.team-section {
    padding: 6rem 0;
    background: var(--section-bg);
}

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

.team-member {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px 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(--text-dark);
    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;
    -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;
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.services-section .section-header .section-subtitle {
    margin-bottom: 1rem;
}

.services-section .section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

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

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--white);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card .service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .service-icon i {
    font-size: 30px;
    color: var(--white);
}

.service-card .service-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card .service-description {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-section {
        padding: 60px 0;
    }

    .services-section .section-header h2 {
        font-size: 2rem;
    }

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

    .service-card {
        padding: 20px;
    }
}

/* Tech Section */
.tech-section {
    padding: var(--section-padding);
    background: var(--white);
    margin-top: 0;
}

.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: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.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: var(--text-dark);
    margin: 0;
}

.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: var(--light-bg);
    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: var(--section-padding);
    background: var(--section-bg);
    margin-top: 0;
}

.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: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-xl);
    box-shadow: var(--card-shadow);
    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: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.process-step p {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.step-details {
    list-style: none;
    padding: 0;
    margin: var(--spacing-md) 0 0;
}

.step-details li {
    padding: var(--spacing-sm) 0;
    color: var(--text-light);
    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: var(--section-padding);
    background: var(--white);
    margin-top: 0;
}

.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: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.feature-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Work Portfolio Section */
.work-portfolio-section {
    padding: var(--section-padding);
    background: var(--section-bg);
    position: relative;
}

.work-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-xl); /* Add bottom margin to push subsequent elements down */
}

.work-portfolio-item {
    position: relative;
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    display: flex !important; /* Force display flex */
    flex-direction: column !important;
    min-height: 350px !important; 
    opacity: 1 !important; 
    visibility: visible !important; 
    /* border: 2px solid red !important; */ /* DEBUG BORDER REMOVED */
}

.work-portfolio-item:hover {
    /* transform: translateY(-5px); */
    box-shadow: var(--hover-shadow);
}

.work-portfolio-image {
    position: relative;
    width: 100%;
    /* padding-top: 66.67%; Using min-height for image instead for testing */
    min-height: 200px !important; /* Give image container a definite min height */
    overflow: hidden;
    background: var(--light-bg); /* Ensure a background for image container */
    /* border: 2px solid blue !important; */ /* DEBUG BORDER REMOVED */
}

.work-portfolio-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block; /* Remove potential extra space below image */
    transition: transform 0.5s ease;
    opacity: 1 !important; /* Ensure image itself is opaque */
    visibility: visible !important; /* Ensure image itself is visible */
}


.work-portfolio-content {
    padding: var(--spacing-xl);
    flex-grow: 1 !important; /* Allow content to fill available vertical space */
    background: var(--white);
    opacity: 1 !important; 
    visibility: visible !important;
    /* border: 2px solid green !important; */ /* DEBUG BORDER REMOVED */
    min-height: 100px !important; /* Ensure content has some height */
}

.work-portfolio-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--spacing-md);
}

.work-portfolio-content h3,
.work-portfolio-content p,
.work-portfolio-content span { /* Target spans within content too */
    color: var(--text-dark) !important; /* Force text color */
    opacity: 1 !important;
    visibility: visible !important;
}

.work-portfolio-content p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.work-portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

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

.work-portfolio-link span:hover {
    color: var(--primary-color);
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-hero-content h1 {
        font-size: 3rem;
    }
    
    .work-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 120px 0 60px;
    }
    
    .page-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .page-hero-content p {
        font-size: 1.1rem;
    }
    
    .work-portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .work-portfolio-content {
        padding: var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .page-hero-content h1 {
        font-size: 2rem;
    }
    
    .work-portfolio-item {
        max-width: 400px;
        margin: 0 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 */
.testimonials-section {
    padding: 100px 0;
    background: var(--light-bg);
}

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

.testimonial-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

.testimonial-content {
    position: relative;
}

.quote-icon {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 1.5rem;
    opacity: 0.5;
}

.testimonial-text {
    color: var(--text-color);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-color);
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

@media (max-width: 992px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .testimonial-card {
        padding: 25px;
    }
}

/* New Testimonial Card Design */
.testimonial-card-new {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem; /* Increased padding */
    text-align: left; /* Align text to left */
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06); /* Adjusted for a softer, more modern shadow */
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards in a row have same height if content varies */
}

.testimonial-card-new:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08); /* Adjusted hover shadow */
}

.testimonial-quote-icon-new {
    font-size: 2.5rem; /* Larger quote icon */
    color: var(--primary-color);
    opacity: 0.6;
    margin-bottom: 1rem;
    line-height: 1;
}

.testimonial-text-new {
    font-size: 1.05rem; /* Slightly larger text */
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex-grow: 1; /* Allows text to take available space, pushing author down */
}

.testimonial-author-new {
    display: flex;
    align-items: center;
    /* gap: 1rem; Removed gap as image is gone */
    margin-top: auto; /* Pushes author to the bottom of the card */
    padding-top: 1.5rem;
    border-top: 1px solid #eee; /* Subtle separator */
}

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

.author-name-new {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.25rem 0;
}

.author-title-new {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

.company-logos {
    margin: 0;
    padding: 60px 0;
    overflow: hidden;
    background: var(--light-bg);
    position: relative;
}

.company-logos::before {
    content: '';
    position: absolute;
    left: -100%;
    right: -100%;
    top: 0;
    bottom: 0;
    background: var(--light-bg);
    z-index: -1;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 40px 0;
}

.logo-track {
    display: flex;
    animation: slide 45s linear infinite;
    width: max-content;
    gap: 30px;
    padding: 0 15px;
}

.logo-item {
    opacity: 0.6;
    transition: all 0.3s ease;
    filter: grayscale(100%);
    padding: 20px 40px;
    flex-shrink: 0;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 200px;
    height: 80px;
}

.logo-item img {
    max-width: 150px;
    max-height: 60px;
    transition: transform 0.3s ease;
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-230px * 5));
    }
}

@media (max-width: 768px) {
    .logo-slider {
        padding: 30px 0;
    }
    
    .logo-item {
        padding: 15px 30px;
        margin: 0 10px;
        min-width: 160px;
        height: 70px;
    }
    
    .logo-item img {
        max-width: 100px;
    }
}

/* 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; /* 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;
}

/* assets/css/style.css excerpt */
.policy-section {
    padding: 4rem 0;
    background-color: var(--section-bg);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
}

.policy-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.policy-content h3 .icon-left {
    margin-right: 0.65rem;
    font-size: 0.85em;
    vertical-align: middle;
}
