/* --- CSS Reset / Normalize --- */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
*, *::before, *::after {
    box-sizing: border-box;
}

/* Variables pour les couleurs - Phoenix On Wire */
:root {
    /* Couleurs Primaires */
    --primary-orange: #FF6B4A;
    --primary-purple: #B844D8;
    --primary-cyan: #00D9FF;
    
    /* Couleurs Neutres - Dark Mode */
    --dark-bg: #0f0f0f;
    --header-bg: #1a1a1a;
    --main-bg: #1a1a1a;
    --footer-bg: #000000;
    --card-bg: #1a1a1a;
    --light-grey: #E5E7EB;
    --text-color: #9CA3AF;
    --heading-color: #E5E7EB;
    
    /* Effets de lueur */
    --glow-orange: 0 0 20px rgba(255, 107, 74, 0.4);
    --glow-purple: 0 0 20px rgba(184, 68, 216, 0.4);
    --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.4);
}

/* Light Mode Variables */
body.light-mode {
    --dark-bg: #fafbfc;
    --header-bg: #ffffff;
    --main-bg: #f5f7fa;
    --footer-bg: #2a2d3a;
    --card-bg: #ffffff;
    --light-grey: #1a1a1a;
    --text-color: #374151;
    --heading-color: #111827;
    
    /* Enhanced glows and shadows for light mode */
    --glow-orange: 0 4px 20px rgba(255, 107, 74, 0.25);
    --glow-purple: 0 4px 20px rgba(184, 68, 216, 0.25);
    --glow-cyan: 0 4px 20px rgba(0, 217, 255, 0.25);
}

/* Light mode specific enhancements */
body.light-mode .header {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(184, 68, 216, 0.1);
}

body.light-mode .hero-section {
    background: linear-gradient(135deg, 
        rgba(255, 107, 74, 0.03) 0%, 
        rgba(184, 68, 216, 0.05) 50%, 
        rgba(0, 217, 255, 0.03) 100%);
}

body.light-mode .services-section {
    background: linear-gradient(180deg, 
        #ffffff 0%, 
        rgba(184, 68, 216, 0.02) 100%);
}

body.light-mode .work-section {
    background: linear-gradient(180deg, 
        rgba(0, 217, 255, 0.02) 0%, 
        #f5f7fa 100%);
}

body.light-mode .service-card,
body.light-mode .work-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border-width: 2px;
}

body.light-mode .service-card:hover,
body.light-mode .work-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

body.light-mode .service-card.card-purple {
    background: linear-gradient(135deg, #ffffff 0%, rgba(184, 68, 216, 0.02) 100%);
}

body.light-mode .service-card.card-cyan {
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 217, 255, 0.02) 100%);
}

body.light-mode .service-card.card-orange {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 107, 74, 0.02) 100%);
}

body.light-mode .work-card.card-purple {
    background: linear-gradient(135deg, #ffffff 0%, rgba(184, 68, 216, 0.02) 100%);
}

body.light-mode .work-card.card-cyan {
    background: linear-gradient(135deg, #ffffff 0%, rgba(0, 217, 255, 0.02) 100%);
}

body.light-mode .work-card.card-orange {
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 107, 74, 0.02) 100%);
}

body.light-mode .btn-primary {
    box-shadow: 0 4px 15px rgba(184, 68, 216, 0.3);
}

body.light-mode .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(184, 68, 216, 0.4);
}

body.light-mode .cta-banner {
    background: linear-gradient(135deg, 
        rgba(255, 107, 74, 0.08) 0%, 
        rgba(184, 68, 216, 0.06) 50%, 
        rgba(0, 217, 255, 0.04) 100%);
    border-top: 2px solid rgba(255, 107, 74, 0.2);
    border-bottom: 2px solid rgba(255, 107, 74, 0.2);
}

body.light-mode .footer {
    background: linear-gradient(180deg, #2a2d3a 0%, #1a1d2e 100%);
    color: #e5e7eb;
}

body.light-mode .footer .logo-text .phoenix-text,
body.light-mode .footer .logo-text .onwire-text,
body.light-mode .footer a,
body.light-mode .footer p {
    color: #e5e7eb;
}

body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3 {
    font-weight: 700;
}

/* --- Base styles --- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Skip Link for keyboard navigation accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-orange);
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 4px 0;
    z-index: 100;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 0;
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Enhanced focus visible for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Remove default focus outline but keep for keyboard users */
*:focus:not(:focus-visible) {
    outline: none;
}

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

h1, h2, h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
}

h1 {
    font-size: 4em;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.1;
}

h2 {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 60px;
    color: var(--light-grey);
    letter-spacing: 1px;
    font-weight: 400;
}

h3 {
    font-size: 1.2em;
    font-weight: 600;
}

a {
    color: var(--primary-cyan);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--light-grey);
}

.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s ease;
    font-size: 0.9em;
    letter-spacing: 1px;
}

.btn-primary {
    background-color: var(--primary-orange);
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #ff8566;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 74, 0.4);
}

.btn-secondary {
    background-color: var(--primary-cyan);
    color: var(--dark-bg);
    border: none;
    font-weight: 700;
}

.btn-secondary:hover {
    background-color: #4dd4ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 217, 255, 0.4);
}

/* --- Header --- */
.header {
    background-color: var(--header-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--primary-cyan);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background-color: rgba(0, 217, 255, 0.1);
    transform: rotate(15deg);
}

.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .sun-icon {
    opacity: 0;
    transform: rotate(-90deg);
}

.theme-toggle .moon-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body.light-mode .theme-toggle .sun-icon {
    opacity: 1;
    transform: rotate(0deg);
}

body.light-mode .theme-toggle .moon-icon {
    opacity: 0;
    transform: rotate(90deg);
}

/* Language Toggle */
.lang-toggle {
    background: rgba(255, 107, 74, 0.1);
    border: 1px solid rgba(255, 107, 74, 0.3);
    color: var(--primary-orange);
    cursor: pointer;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.lang-toggle:hover {
    background: rgba(255, 107, 74, 0.2);
    border-color: var(--primary-orange);
    box-shadow: var(--glow-orange);
    transform: translateY(-2px);
}

.lang-toggle:active {
    transform: translateY(0);
}

.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .logo img {
    height: 45px;
    width: auto;
    aspect-ratio: auto;
}

.header {
    background-color: var(--header-bg);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;  /* ← AJOUTER CETTE LIGNE */
}

.agency-title {
    color: var(--text-color);
    font-size: 0.75em;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.navbar ul {
    display: flex;
    gap: 40px;
}

.navbar ul li a {
    color: var(--primary-cyan);
    font-weight: 400;
    font-size: 0.95em;
    position: relative;
    padding-bottom: 5px;
}

.navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-cyan);
    transition: width 0.3s ease;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(to right, #000000 0%, #0f0f0f 50%, #1a1a1a 100%);
    color: white;
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
    transition: background 0.3s ease;
}

body.light-mode .hero-section {
    background: linear-gradient(to right, #f0f2f5 0%, #e9ecef 50%, #dee2e6 100%);
}

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

.hero-content {
    max-width: 50%;
    z-index: 2;
}

.hero-section h1 {
    color: var(--primary-orange);
    margin-bottom: 25px;
}

.hero-subtitle {
    font-size: 1.5em;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.hero-description {
    font-size: 0.95em;
    line-height: 1.7;
    margin-bottom: 35px;
    color: var(--text-color);
    max-width: 450px;
}

.hero-phoenix {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 450px;
    z-index: 1;
}

.hero-phoenix img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    display: block;
    filter: drop-shadow(0 0 30px rgba(184, 68, 216, 0.3));
}

/* --- Services Section --- */
.services-section {
    background-color: var(--main-bg);
    padding: 80px 0;
    transition: background-color 0.3s ease; 
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
}

.service-card {
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.service-card.card-purple {
    border-color: var(--primary-purple);
}

.service-card.card-cyan {
    border-color: var(--primary-cyan);
}

.service-card.card-orange {
    border-color: var(--primary-orange);
}

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

.service-card.card-purple:hover {
    box-shadow: 0 10px 30px rgba(184, 68, 216, 0.3);
}

.service-card.card-cyan:hover {
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.service-card.card-orange:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.3);
}

.service-card .icon-placeholder {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.service-card.card-purple .icon-placeholder {
    color: var(--primary-purple);
}

.service-card.card-cyan .icon-placeholder {
    color: var(--primary-cyan);
}

.service-card.card-orange .icon-placeholder {
    color: var(--primary-orange);
}

.service-card h3 {
    color: var(--heading-color);
    font-size: 1.1em;
    margin-bottom: 15px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    font-size: 0.85em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.card-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.card-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-color);
    opacity: 0.5;
}

.card-purple .card-dots span:nth-child(1) {
    background-color: var(--primary-purple);
    opacity: 1;
}

.card-cyan .card-dots span:nth-child(2) {
    background-color: var(--primary-cyan);
    opacity: 1;
}

.card-orange .card-dots span:nth-child(3) {
    background-color: var(--primary-orange);
    opacity: 1;
}

/* --- Work Section --- */
.work-section {
    background-color: var(--dark-bg);
    padding: 80px 0;
    transition: background-color 0.3s ease;
}

/* Portfolio Carousel - 3 cards visible at once */
.portfolio-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    margin-top: 30px;
}

.portfolio-carousel-container {
    overflow: hidden;
    width: 100%;
    padding-top: 10px;
}

.portfolio-carousel-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease;
    align-items: stretch;
}

.portfolio-carousel-track .work-card {
    flex: 0 0 calc((100% - 60px) / 3);
    min-width: calc((100% - 60px) / 3);
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 12px;
    border: 2px solid;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Portfolio Navigation Buttons */
.portfolio-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(5px);
    color: var(--primary-cyan);
}

.portfolio-carousel-prev {
    left: 0;
}

.portfolio-carousel-next {
    right: 0;
}

.portfolio-carousel-nav:hover {
    background: var(--primary-cyan);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--glow-cyan);
}

.portfolio-carousel-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%);
}

/* Portfolio Indicators */
.portfolio-carousel-indicators {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 30px;
}

.portfolio-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-color);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.portfolio-indicator.active {
    opacity: 1;
    transform: scale(1.3);
    background: var(--primary-cyan);
    border-color: var(--primary-cyan);
    box-shadow: var(--glow-cyan);
}

.portfolio-indicator:hover {
    opacity: 0.6;
}

/* Work Card Styles (kept from original) */
.work-card {
    background-color: var(--card-bg);
    padding: 35px 25px;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.work-card.card-purple {
    border-color: var(--primary-purple);
}

.work-card.card-cyan {
    border-color: var(--primary-cyan);
}

.work-card.card-orange {
    border-color: var(--primary-orange);
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-card.card-purple:hover {
    box-shadow: 0 10px 30px rgba(184, 68, 216, 0.3);
}

.work-card.card-cyan:hover {
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.3);
}

.work-card.card-orange:hover {
    box-shadow: 0 10px 30px rgba(255, 107, 74, 0.3);
}

.work-card .icon-placeholder {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
}

.work-card.card-purple .icon-placeholder {
    color: var(--primary-purple);
}

.work-card.card-cyan .icon-placeholder {
    color: var(--primary-cyan);
}

.work-card.card-orange .icon-placeholder {
    color: var(--primary-orange);
}

.work-card h3 {
    color: var(--heading-color);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.work-card p {
    font-size: 0.85em;
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 10px;
}

.work-card p:last-of-type {
    margin-bottom: 25px;
}

/* Project Link Button */
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9em;
    transition: all 0.3s ease;
    margin-top: auto;
    border: 2px solid;
    width: fit-content;
    align-self: center;
}

.card-purple .project-link {
    color: var(--primary-purple);
    border-color: var(--primary-purple);
}

.card-cyan .project-link {
    color: var(--primary-cyan);
    border-color: var(--primary-cyan);
}

.card-orange .project-link {
    color: var(--primary-orange);
    border-color: var(--primary-orange);
}

.card-purple .project-link:hover {
    background-color: var(--primary-purple);
    color: #fff;
    transform: translateX(5px);
    box-shadow: var(--glow-purple);
}

.card-cyan .project-link:hover {
    background-color: var(--primary-cyan);
    color: #fff;
    transform: translateX(5px);
    box-shadow: var(--glow-cyan);
}

.card-orange .project-link:hover {
    background-color: var(--primary-orange);
    color: #fff;
    transform: translateX(5px);
    box-shadow: var(--glow-orange);
}

.project-link svg {
    transition: transform 0.3s ease;
}

.project-link:hover svg {
    transform: translateX(3px);
}

/* --- CTA Banner --- */
.cta-banner {
    background: linear-gradient(135deg, 
        rgba(255, 107, 74, 0.15) 0%, 
        rgba(184, 68, 216, 0.1) 50%, 
        rgba(0, 217, 255, 0.05) 100%);
    padding: 60px 0;
    text-align: center;
    border-top: 2px solid rgba(255, 107, 74, 0.3);
    border-bottom: 2px solid rgba(255, 107, 74, 0.3);
    transition: background 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 107, 74, 0.1), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

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

.cta-banner h3 {
    color: var(--light-grey);
    font-size: 1.8em;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 400;
}

/* --- Footer --- */
.footer {
    background-color: var(--footer-bg);
    color: var(--text-color);
    padding: 50px 0;
    transition: background-color 0.3s ease;
}

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

.footer-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer .logo img {
    height: 50px;
    width: auto;
    aspect-ratio: auto;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.phoenix-text {
    color: var(--light-grey);
    font-size: 1.1em;
    font-weight: 700;
    letter-spacing: 1px;
}

.onwire-text {
    color: var(--text-color);
    font-size: 0.75em;
    letter-spacing: 2px;
}

.footer-center {
    text-align: center;
}

.footer-center p {
    font-size: 0.85em;
    color: var(--text-color);
}

.footer-center .legal-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-center .legal-link:hover {
    color: var(--primary-cyan);
    text-decoration: underline;
}

.footer-center .legal-link.active {
    color: var(--primary-cyan);
}

.footer-right {
    display: flex;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Portfolio carousel - show 2 cards on tablets */
    .portfolio-carousel-track .work-card {
        flex: 0 0 calc((100% - 30px) / 2);
        min-width: calc((100% - 30px) / 2);
    }
    
    .hero-phoenix {
        width: 350px;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .header-actions {
        order: -1;
        width: 100%;
        justify-content: flex-end;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-phoenix {
        position: relative;
        right: auto;
        transform: none;
        margin-top: 40px;
        width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 2.5em;
    }

    h2 {
        font-size: 2em;
    }

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

    /* Portfolio carousel responsive - show 1 card at a time on mobile */
    .portfolio-carousel-track .work-card {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .portfolio-carousel-wrapper {
        padding: 0 50px;
    }

    .portfolio-carousel-nav {
        width: 40px;
        height: 40px;
    }

    .cta-container {
        flex-direction: column;
        gap: 25px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-left {
        flex-direction: column;
        gap: 20px;
    }
}

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

    h1 {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .btn {
        padding: 12px 25px;
        font-size: 0.85em;
    }
}

/* Performance Optimizations */

/* Reduce animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Optimize animations with will-change for GPU acceleration */
.service-card:hover,
.work-card:hover,
.btn:hover,
.portfolio-carousel-nav:hover {
    will-change: transform;
}

.portfolio-carousel-track {
    will-change: transform;
}

/* Remove will-change after animation completes to free up GPU resources */
.service-card,
.work-card,
.btn,
.portfolio-carousel-nav {
    will-change: auto;
}

/* Optimize mobile performance - reduce expensive effects */
@media (max-width: 768px) {
    /* Simpler shadows on mobile */
    .service-card:hover,
    .work-card:hover {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    }
    
    /* Reduce blur effects on mobile for better performance */
    .cta-banner::before {
        filter: none;
    }
    
    /* Simplify gradients on mobile */
    body.light-mode .service-card.card-purple,
    body.light-mode .service-card.card-cyan,
    body.light-mode .service-card.card-orange,
    body.light-mode .work-card.card-purple,
    body.light-mode .work-card.card-cyan,
    body.light-mode .work-card.card-orange {
        background: #ffffff;
    }
}

/* Content visibility for better rendering performance */
.work-section,
.services-section,
.cta-banner {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
}

/* Optimize font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeSpeed;
}

/* Hover effect for h3 in service cards with respective colors */
.service-card.card-orange h3:hover {
    color: var(--primary-orange);
    text-shadow: var(--glow-orange);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-card.card-purple h3:hover {
    color: var(--primary-purple);
    text-shadow: var(--glow-purple);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.service-card.card-cyan h3:hover {
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover effects for icons in service cards - matching card glow */
.service-card.card-orange .icon-placeholder:hover svg {
    filter: drop-shadow(0 0 10px rgba(255, 107, 74, 0.6));
    transform: scale(1.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.service-card.card-purple .icon-placeholder:hover svg {
    filter: drop-shadow(0 0 10px rgba(184, 68, 216, 0.6));
    transform: scale(1.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.service-card.card-cyan .icon-placeholder:hover svg {
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.6));
    transform: scale(1.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}

/* Hover effect for h3 in work cards with respective colors */
.work-card.card-orange h3:hover {
    color: var(--primary-orange);
    text-shadow: var(--glow-orange);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.work-card.card-purple h3:hover {
    color: var(--primary-purple);
    text-shadow: var(--glow-purple);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.work-card.card-cyan h3:hover {
    color: var(--primary-cyan);
    text-shadow: var(--glow-cyan);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* Hover effects for icons in work cards - matching card glow */
.work-card.card-orange .icon-placeholder:hover svg {
    filter: drop-shadow(0 0 10px rgba(255, 107, 74, 0.6));
    transform: scale(1.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.work-card.card-purple .icon-placeholder:hover svg {
    filter: drop-shadow(0 0 10px rgba(184, 68, 216, 0.6));
    transform: scale(1.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.work-card.card-cyan .icon-placeholder:hover svg {
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.6));
    transform: scale(1.15);
    transition: filter 0.3s ease, transform 0.3s ease;
}