/* --- Reset & Global Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 80px; /* Adjusted for potentially taller fixed header */
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Modern Font Stack */
    line-height: 1.7;
    color: #e0e0e0; /* Slightly brighter light gray */
    background: #0a0f1a; /* Darker base */
    background: linear-gradient(140deg, #0d131f 0%, #10182b 30%, #1e2a47 70%, #111827 100%); /* Refined Gradient */
    background-size: 200% 200%; /* Smaller size for smoother animation */
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    animation: gradientBG 20s ease infinite;
    -webkit-font-smoothing: antialiased; /* Smoother fonts */
    -moz-osx-font-smoothing: grayscale;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Container --- */
.container {
    max-width: 1200px; /* Slightly wider container */
    margin: 0 auto;
    padding: 0 25px;
}

/* --- Perspective & Parallax Setup --- */
body {
    perspective: 1000px; /* Set perspective on the body for 3D space */
}

#main-content {
    /* This wrapper can help manage perspective context if needed */
    transform-style: preserve-3d;
}

.content-section {
     /* Apply subtle depth to sections - adjust as needed */
    transform: translateZ(-50px);
    position: relative; /* Needed for z-index stacking */
    background-color: rgba(25, 35, 55, 0.5); /* Semi-transparent background */
    border-radius: 20px; /* More rounded */
    margin-bottom: 60px;
    padding: 80px 60px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.03); /* Deeper shadow + subtle inset */
    border: 1px solid rgba(255, 255, 255, 0.08); /* Slightly more visible border */
    z-index: 1;
}

/* --- Navigation --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background-color: rgba(13, 19, 31, 0.75); /* Darker, slightly more transparent */
    backdrop-filter: blur(12px) saturate(150%); /* Stronger blur */
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
    height: 75px; /* Slightly taller header */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Keeps elements visually on top */
    transform: translateZ(0);
}

/* Optional: Slightly change header bg on scroll */
/* body:not([data-scroll-pos="0"]) header {
    background-color: rgba(13, 19, 31, 0.85);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.35);
} */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

nav .logo {
    font-size: 1.8rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(60deg, #7dd3fc, #a78bfa, #f472b6); /* Brighter gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease;
}
nav .logo:hover {
    transform: scale(1.05);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: 2.5rem; /* Increased spacing */
}

nav ul li a {
    color: #c7d2fe; /* Lighter, slightly blueish */
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    padding: 8px 4px; /* Add some padding for easier clicking */
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0; /* Start from left */
    background: linear-gradient(90deg, #7dd3fc, #a78bfa);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smoother ease */
    border-radius: 1px;
}

nav ul li a:hover {
    color: #fff;
    transform: translateY(-2px);
}

nav ul li a:hover::after {
    width: 100%;
}

/* --- Mobile Menu Toggle --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-right: -10px; /* Align edge */
}

.hamburger-line {
    display: block;
    width: 28px;
    height: 3px;
    background-color: #e0e0e0;
    margin: 5px 0;
    border-radius: 3px;
    transition: transform 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

/* --- General Animation Keyframes --- */
@keyframes subtleFadeInUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
     0% { opacity: 0; transform: scale(0.9); }
    70% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseGlow {
    0% { text-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
    50% { text-shadow: 0 0 20px rgba(167, 139, 250, 0.9); }
    100% { text-shadow: 0 0 8px rgba(167, 139, 250, 0.6); }
}

@keyframes subtleRotate {
    from { transform: rotateY(-5deg) rotateX(3deg); }
    to { transform: rotateY(5deg) rotateX(-3deg); }
}

@keyframes float {
	0% { transform: translatey(0px); }
	50% { transform: translatey(-10px); }
	100% { transform: translatey(0px); }
}

/* --- Sections --- */
section {
    padding: 100px 0; /* Keep vertical padding */
    /* Other section styling moved to .content-section for parallax */
}

section h2 {
    text-align: center;
    font-size: 3.2rem; /* Slightly larger */
    font-weight: 700;
    margin-bottom: 20px; /* Less space before paragraph */
    position: relative;
    padding-bottom: 25px; /* More space for underline */
    color: #fff; /* Base color */
    letter-spacing: -0.5px; /* Subtle tightening */
}

/* Gradient Underline Effect */
section h2::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #7dd3fc, #a78bfa, #f472b6); /* Match logo gradient */
    border-radius: 3px;
    opacity: 0; /* Start hidden */
    transition: width 0.6s 0.3s ease, opacity 0.4s 0.3s ease; /* Animate width and opacity */
}

/* Reveal underline when section is visible */
section.is-visible h2::after {
    width: 120px; /* Expand width */
    opacity: 1;
}

p {
    margin-bottom: 1.5rem;
    color: #b0b8c5; /* Softer paragraph color */
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

/* --- Hero Section --- */
#hero {
    text-align: center;
    padding: 140px 0 120px 0;
    min-height: calc(95vh - 75px); /* Taller hero */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative; /* For deco element */
    z-index: 5; /* Above parallax sections */
    transform: translateZ(0); /* Keep hero flat */
}

#hero h1 {
    font-size: 4.8rem; /* Larger H1 */
    font-weight: 800; /* Bolder */
    margin-bottom: 1.5rem;
    color: #fff;
    line-height: 1.15;
    letter-spacing: -1.5px; /* Tighten letters */
}

/* Hero text animation */
.word-reveal {
    display: inline-block;
    overflow: hidden; /* Clip the inner span */
    margin-right: 0.15em; /* Space between words */
    opacity: 0;
    animation: revealWord 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
/* Stagger the word animations */
h1 .word-reveal:nth-child(1) { animation-delay: 0.1s; }
h1 .word-reveal:nth-child(2) { animation-delay: 0.25s; }
h1 .word-reveal:nth-child(3) { animation-delay: 0.4s; }
h1 .word-reveal:nth-child(4) { animation-delay: 0.55s; }

@keyframes revealWord {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0%); opacity: 1; }
}

.gradient-text {
    background: linear-gradient(60deg, #a78bfa, #f472b6); /* Accent gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

#hero .subtitle {
    font-size: 1.7rem; /* Slightly smaller subtitle */
    color: #c7d2fe; /* Match nav link color */
    margin-bottom: 2.5rem; /* More space before buttons */
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
}

#hero .highlight {
    background: linear-gradient(90deg, #6ee7b7, #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    /* Removed pulse glow for cleaner look, add back if desired */
}

/* Hero Load Animations (using classes) */
.animate-fade-in-up {
    opacity: 0;
    animation: subtleFadeInUp 0.8s 0.2s ease-out forwards;
}
.animate-fade-in-up.delay-1 { animation-delay: 0.6s; }
.animate-fade-in-up.delay-2 { animation-delay: 0.8s; }

/* --- Button Styles (More 3D & Interactive) --- */
.btn {
    display: inline-block;
    padding: 16px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); /* Smooth elastic transition */
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    will-change: transform, box-shadow; /* Performance hint */
    transform: translateZ(0); /* Prevent clipping issues */
}

/* Glossy effect */
.btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0) 60%);
    transform: translate(-25%, -25%) scale(0.5);
    transition: transform 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    z-index: 0; /* Behind text */
}

.btn:hover::before {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

.btn span { /* Wrap text for stacking */
    position: relative;
    z-index: 1;
}

.btn.btn-primary {
    background: linear-gradient(100deg, #3b82f6, #8b5cf6);
    color: #fff;
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.3), 0 2px 5px rgba(0, 0, 0, 0.2);
    /* Removed pulsing animation for cleaner feel */
}

.btn.btn-primary:hover {
     background: linear-gradient(100deg, #2563eb, #7c3aed);
     transform: translateY(-5px) scale(1.05); /* More pronounced lift */
     box-shadow: 0 12px 25px rgba(139, 92, 246, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05); /* Very subtle background */
    color: #c7d2fe; /* Light blueish text */
    border: 1px solid rgba(167, 139, 250, 0.4); /* Subtle purple border */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.btn.btn-secondary:hover {
    background-color: rgba(167, 139, 250, 0.15); /* Tint on hover */
    color: #fff;
    border-color: rgba(167, 139, 250, 0.7); /* Stronger border */
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 15px rgba(167, 139, 250, 0.2), 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero-buttons {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

/* --- Services Section (3D Cards) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Min width 300px */
    gap: 45px;
    text-align: left;
    perspective: 1500px; /* Perspective for card tilt */
}

.service-item {
    background: linear-gradient(145deg, #1f2937, #2b3441); /* Slightly different gradient */
    padding: 45px 35px; /* More padding */
    border-radius: 16px; /* More rounded */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; /* Bounce effect */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative; /* For pseudo-elements */
    overflow: hidden; /* Clip hover effects */
    transform-style: preserve-3d; /* Enable 3D transforms for children */
    will-change: transform, box-shadow;
}

/* Subtle glow effect on hover */
.service-item::after {
    content: "";
    position: absolute;
    inset: -1px; /* Cover border */
    background: radial-gradient(circle at var(--glow-x, 50%) var(--glow-y, 120%), rgba(167, 139, 250, 0.2), transparent 60%);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1; /* Behind content */
    pointer-events: none; /* Ignore mouse */
}

.service-item:hover::after {
    opacity: 1;
}

/* 3D tilt effect applied via JS (data-tilt attribute) */
.service-item:hover {
    /* Let JS handle transform, but keep shadow */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.service-icon-wrapper {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.15), rgba(96, 165, 250, 0.1)); /* Soft background */
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 2rem auto; /* Center horizontally */
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2), 0 1px 2px rgba(255,255,255,0.05);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-item i {
    font-size: 2.5rem; /* Smaller icon */
    background: linear-gradient(60deg, #7dd3fc, #a78bfa);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.service-item:hover .service-icon-wrapper {
     transform: scale(1.1) translateZ(20px); /* Lift icon */
     box-shadow: inset 0 2px 6px rgba(0,0,0,0.3), 0 5px 15px rgba(129, 140, 248, 0.2);
}

.service-item h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
    text-align: center;
}

.service-item p {
    font-size: 1rem;
    color: #b0b8c5;
    text-align: center;
    margin-left: 0;
    margin-right: 0;
}

/* --- Portfolio Section (Enhanced Cards) --- */
#portfolio p { text-align: center; }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); /* Slightly wider cards */
    gap: 50px;
    align-items: stretch;
    perspective: 1500px; /* Perspective for card tilt */
}

.portfolio-item {
    background-color: #252f42; /* Slightly lighter dark blue */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

/* Tilt effect via JS (data-tilt) */
.portfolio-item:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
}

.portfolio-image-wrapper {
    overflow: hidden;
    height: 250px;
    position: relative;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Image zoom effect */
.portfolio-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #374151;
    transition: transform 0.7s cubic-bezier(0.165, 0.84, 0.44, 1); /* Slower, smoother zoom */
    border-radius: 16px 16px 0 0; /* Match card rounding */
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item-content {
    padding: 35px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transform: translateZ(20px); /* Bring content slightly forward */
}

.portfolio-item h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 0.8rem;
}

.portfolio-item-content p {
    font-size: 1rem;
    color: #b0b8c5;
    margin-bottom: 1.8rem;
    margin-left: 0;
    margin-right: 0;
    flex-grow: 1;
}

.portfolio-link {
    color: #a78bfa; /* Brighter Purple */
    text-decoration: none;
    font-weight: 600; /* Bolder */
    font-size: 1rem;
    transition: color 0.3s ease, letter-spacing 0.3s ease, transform 0.3s ease;
    display: inline-block;
    margin-top: auto;
    align-self: flex-start;
}

.portfolio-link i {
    margin-left: 8px;
    transition: transform 0.3s ease;
    display: inline-block; /* Needed for transform */
}

.portfolio-link:hover {
    color: #c4b5fd; /* Lighter purple */
    letter-spacing: 0.5px;
    transform: translateX(3px); /* Move text slightly */
}

.portfolio-link:hover i {
    transform: translateX(5px) scale(1.1); /* Move icon further */
}

/* --- Contact Section --- */
#contact { text-align: center; }

#contact p {
    max-width: 700px;
    margin-bottom: 3.5rem;
}

.contact-action {
    transform: translateZ(10px); /* Bring button slightly forward */
}

.btn-cta {
    padding: 20px 45px !important; /* Larger CTA */
    font-size: 1.3rem !important;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4), 0 3px 8px rgba(0, 0, 0, 0.2) !important;
}
.btn-cta:hover {
     box-shadow: 0 15px 35px rgba(139, 92, 246, 0.5), 0 5px 10px rgba(0, 0, 0, 0.3) !important;
     transform: translateY(-6px) scale(1.08) !important;
}

.btn-cta i {
    margin-right: 15px;
    transition: transform 0.4s ease;
}
.btn-cta:hover i {
    transform: rotate(-15deg) scale(1.1);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 50px 20px;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Consistent border */
    color: #9ca3af;
    font-size: 0.95rem;
    opacity: 0.8;
    transform: translateZ(-20px); /* Push footer back slightly */
    z-index: 0;
}

/* --- Scroll Reveal Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px) rotateX(-10deg); /* Add subtle rotation */
    transform-origin: bottom center;
    transition: opacity 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1), transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    transition-delay: calc(0.1s * var(--reveal-delay, 0)); /* Stagger delay using custom property */
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* Add delay classes helper */
.reveal-on-scroll.delay-0 { --reveal-delay: 0; }
.reveal-on-scroll.delay-1 { --reveal-delay: 1; }
.reveal-on-scroll.delay-2 { --reveal-delay: 2; }
.reveal-on-scroll.delay-3 { --reveal-delay: 3; }
/* Add more delays as needed */


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .container { max-width: 920px; }
    #hero h1 { font-size: 4rem; letter-spacing: -1px; }
    #hero .subtitle { font-size: 1.5rem; }
    section h2 { font-size: 2.8rem; }
    .content-section { padding: 70px 45px; }
    .services-grid, .portfolio-grid { gap: 35px; }
}

@media (max-width: 768px) {
    html { font-size: 15px; scroll-padding-top: 70px; }
    body { perspective: none; /* Disable perspective on mobile? Optional */ }
    header { height: 70px; }
    nav .logo { font-size: 1.6rem; }
    .mobile-menu-toggle { display: block; }

    nav ul.nav-links {
        position: absolute;
        top: 70px; /* Match header height */
        left: 0;
        width: 100%;
        background-color: rgba(25, 35, 55, 0.97); /* Slightly opaque */
        backdrop-filter: blur(8px) saturate(120%);
        flex-direction: column;
        align-items: center;
        padding: 25px 0;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
        opacity: 0;
        transform: translateY(-15px) scaleY(0.98);
        transform-origin: top center;
        pointer-events: none;
        transition: opacity 0.35s ease, transform 0.35s ease;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        z-index: -1; /* Below header initially */
    }

    nav ul.nav-links.active {
        opacity: 1;
        transform: translateY(0) scaleY(1);
        pointer-events: auto;
        z-index: 999; /* Above content when active */
    }

    nav ul.nav-links li { margin: 12px 0; margin-left: 0; width: 100%; text-align: center; }
    nav ul.nav-links li a { font-size: 1.25rem; padding: 12px 0; color: #e0e0e0; }
    nav ul.nav-links li a:hover { color: #fff; transform: none; }
    nav ul.nav-links li a::after { display: none; }

    .mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    #hero { padding: 100px 0 80px 0; min-height: calc(85vh - 70px); }
    #hero h1 { font-size: 3.2rem; }
    #hero .subtitle { font-size: 1.3rem; }
    section { padding: 80px 0; }
    .content-section { padding: 60px 30px; margin-bottom: 50px; transform: none; /* Disable section Z transform on mobile */ }
    section h2 { font-size: 2.5rem; margin-bottom: 15px; padding-bottom: 20px;}
    section h2::after { height: 4px; width: 80px; /* Static underline */ animation: none; opacity: 1; transition: none;}
    .services-grid, .portfolio-grid { grid-template-columns: 1fr; gap: 30px; perspective: none; }
    p { max-width: 95%; font-size: 1rem; }
    .service-item, .portfolio-item { transform-style: flat; /* Disable 3D inside cards */ }
    .service-item:hover, .portfolio-item:hover { transform: translateY(-8px); } /* Simpler hover */
    #contact a.email-link:hover { transform: translateY(-4px) scale(1.05); }
    .service-item::after { display: none; } /* Hide glow effect */
    /* Ensure tilt is disabled on mobile if library doesn't handle it */
    [data-tilt] { transform: none !important; }
    footer { transform: none; }
}

@media (max-width: 576px) {
    html { font-size: 14.5px; }
    #hero h1 { font-size: 2.6rem; letter-spacing: -0.5px;}
    #hero .subtitle { font-size: 1.15rem; }
    section h2 { font-size: 2.2rem; }
    .btn { padding: 14px 30px; font-size: 1rem; }
    .btn-cta { padding: 16px 35px !important; font-size: 1.15rem !important; }
    .hero-buttons { gap: 1rem; }
    .content-section { padding: 50px 20px; }
    .portfolio-item-content { padding: 25px; }
}

/* --- Reduced Motion Preference --- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    body { animation: none; perspective: none; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        animation-delay: 0ms !important;
    }
    .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important;}
    .word-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
    .animate-fade-in-up { animation: none !important; opacity: 1 !important; }
    #hero h1 { animation: none !important; }
    nav .logo:hover, .btn:hover, .service-item:hover, .portfolio-item:hover, .portfolio-link:hover, .btn-cta:hover, .service-item:hover .service-icon-wrapper, .portfolio-item:hover img { transform: none !important; }
    .btn::before, .service-item::after, section h2::after, nav ul li a::after { display: none !important; }
    [data-tilt] { transform: none !important; }
}