.developer-credit {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: 0.02em;
    font-weight: 500;
    animation: fadeInUp 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.developer-credit a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}
.developer-credit a:hover,
.developer-credit a:focus {
    cursor: pointer;
    text-decoration: none;
    opacity: 0.95;
}
.developer-credit .altair {
    color: #D22163;
    font-weight: 700;
    animation: colorPulse 2.5s infinite alternate;
}
.developer-credit .hamood {
    color: #ff6bd5;
    font-weight: 700;
    animation: colorPulse2 2.5s infinite alternate;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes colorPulse {
    from { color: #D22163; }
    to { color: #ff6bd5; }
}
@keyframes colorPulse2 {
    from { color: #ff6bd5; }
    to { color: #D22163; }
}
.footer-divider {
    border: none;
    border-top: 2px solid rgba(255,255,255,0.25);
    margin: 2.5rem 0 0 0;
    width: 100%;
}
@media (max-width: 600px) {
    .footer-logo {
        justify-content: center !important;
        text-align: center !important;
        margin-left: auto;
        margin-right: auto;
        display: flex !important;
    }
    .footer-logo-image {
        display: block;
        margin-left: auto;
        margin-right: auto;
        height: 70px;
        max-width: 120px;
        transform: scale(1.2);
    }
}
/* Avenue Items (Avenues Page) */
.avenue-item {
    background: linear-gradient(135deg, #fff0f6 0%, #f8e1ec 100%);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(210, 33, 99, 0.10);
    border: 2px solid #f8e1ec;
    padding: 2.5rem 2rem 2rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
    overflow: hidden;
}

.avenue-item .avenue-icon {
    background: linear-gradient(135deg, #D22163 0%, #ff6bd5 100%);
    color: #fff;
    font-size: 2.7rem;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    box-shadow: 0 4px 18px rgba(210, 33, 99, 0.13);
    border: 3px solid #fff0f6;
    transition: background 0.3s, transform 0.3s;
}

.avenue-item .avenue-label {
    font-size: 1.35rem;
    font-weight: 700;
    color: #D22163;
    margin-bottom: 0.7rem;
    letter-spacing: -0.01em;
}

/* Ensure avenue links match label styling and have no underline */
.avenue-item .avenue-label a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}
.avenue-item .avenue-label a:hover,
.avenue-item .avenue-label a:focus {
    text-decoration: none;
    opacity: 0.95;
}

.avenue-item p {
    color: #5b5b5b;
    font-size: 1.08rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.avenue-item:hover {
    box-shadow: 0 16px 48px rgba(210, 33, 99, 0.18);
    border-color: #D22163;
    transform: translateY(-6px) scale(1.025);
}

.avenue-item:hover .avenue-icon {
    background: linear-gradient(135deg, #ff6bd5 0%, #D22163 100%);
    transform: scale(1.08) rotate(-8deg);
}

@media (max-width: 900px) {
    .avenue-item {
        padding: 2rem 1.2rem 1.5rem 1.2rem;
    }
    .avenue-item .avenue-icon {
        width: 60px;
        height: 60px;
        font-size: 2.1rem;
    }
}

@media (max-width: 600px) {
    .avenue-item {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
        border-radius: 15px;
    }
    .avenue-item .avenue-icon {
        width: 48px;
        height: 48px;
        font-size: 1.4rem;
    }
    .avenue-item .avenue-label {
        font-size: 1.1rem;
    }
    .avenue-item p {
        font-size: 0.98rem;
    }
}
/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #D22163 0%, #D22163 50%, #D22163 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    /* faster, smoother fade that matches other UI timings */
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
    animation: pulse 2s infinite;
}

.loading-spinner {
    width: 96px;
    height: 96px;
    margin: 0 auto 1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    /* Use an absolute path so it works from pages and root */
    background-image: url('/images/rotary-gear.png');
    animation: spin 1s linear infinite;
}

/* Page exit / navigation loader state */
.loading-screen.exiting {
    opacity: 1; /* keep visible while exiting */
    visibility: visible;
    pointer-events: all;
}

/* Fade the current page out when navigating */
:root.page-exit body,
:root.page-exit main,
:root.page-exit .container {
    transition: opacity 420ms ease, transform 420ms ease;
    opacity: 0.12;
    transform: scale(0.995);
}

.loading-content p {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100vw;
    min-width: 0;
    overflow-x: hidden;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #ffffff;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 40px rgba(220, 38, 38, 0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: #D22163;
}

.logo-image {
    height: 70px;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    transition: all 0.3s ease;
    transform: scale(2.5);
    margin-left: 20px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

/* Avenues dropdown */
.nav-menu .has-dropdown{ position: relative; }
.nav-menu .has-dropdown > a { display: inline-flex; align-items: center; gap:6px; line-height:1; padding: 0.75rem 0; }
.nav-menu .has-dropdown > a .chev{ display:inline-block; font-size:1.4rem; line-height:1; margin-left:4px; transform:translateY(1px); transition: transform 200ms ease; }

.nav-menu .has-dropdown .dropdown{ position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border-radius: 8px; box-shadow: 0 10px 30px rgba(16,24,40,0.08); overflow: hidden; border: 1px solid #eef2f6; z-index: 1200; margin-top:6px; display: flex; flex-direction: column; }
.nav-menu .has-dropdown .dropdown li a{ display:block; padding:10px 14px; color:#374151; font-weight:500; text-decoration:none }
.nav-menu .has-dropdown .dropdown li a:hover{ background:linear-gradient(90deg,#fff5f8,#fff); color:var(--brand) }

/* show/hide using class/focus/hover - use opacity & transform for smooth appearance. Remove display:none so transitions can run. */
.nav-menu .has-dropdown .dropdown{
    opacity: 0;
    visibility: hidden;
    transform-origin: top center;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 200ms cubic-bezier(.2,.9,.2,1), transform 200ms cubic-bezier(.2,.9,.2,1), visibility 200ms;
    pointer-events: none; /* prevent clicks when hidden */
}
.nav-menu .has-dropdown:focus-within .dropdown,
.nav-menu .has-dropdown:hover .dropdown,
.nav-menu .has-dropdown.open .dropdown{
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Rotate chevron when dropdown is open */
.nav-menu .has-dropdown.open > a .chev{
    transform: translateY(1px) rotate(180deg);
}

/* Small-screen: dropdowns inside the mobile nav become static blocks */
@media (max-width: 768px) {
    .nav-menu { top: 80px; }
    /* Remove the Avenues dropdown entirely on mobile */
    .nav-menu .has-dropdown > a .chev { display: none !important; }
    .nav-menu .has-dropdown .dropdown{ display: none !important; }
}

/* Header social icons (next to nav) */
.nav-social {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.nav-social a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #374151;
    background: transparent;
    transition: all 0.25s ease;
    text-decoration: none;
    font-size: 0.95rem;
}
.nav-social a:hover {
    color: #fff;
    background: linear-gradient(135deg, #D22163 0%, #ff6bd5 100%);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .nav-social { display: none; }
}

.nav-menu a {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 0;
}

/* Ensure each nav item and its anchor are vertically centered in the header */
.nav-menu > li { display: flex; align-items: center; }
.nav-menu a { display: inline-flex; align-items: center; }

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #D22163, #D22163);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover {
    color: #D22163;
    transform: translateY(-2px);
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Avenue Directors section */
.avenue-directors {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
}
.avenue-directors .lead {
    color: #6b7280;
    margin-bottom: 1.25rem;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}
.avenue-directors h3 {
    /* Match page's H3 theme (same as .about-text h3) */
    font-size: 2rem;
    color: #D22163;
    margin-bottom: 0.5rem;
    margin-top: 0;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
}
.avenue-directors h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -12px;
    width: 80px;
    height: 5px;
    background: linear-gradient(90deg, #ff6bd5, #D22163);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(220,38,38,0.12);
}
.director-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}
.director-year {
    background: linear-gradient(180deg,#ffffff 0%, #fff6fb 100%);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(226, 232, 240, 0.6);
    box-shadow: 0 8px 26px rgba(210,33,99,0.06);
    transition: transform 220ms ease, box-shadow 220ms ease;
}
.director-year:hover { transform: translateY(-6px); box-shadow: 0 18px 48px rgba(210,33,99,0.10); }
.director-year .year {
    font-size: 1.15rem;
    color: #D22163;
    margin-bottom: 0.6rem;
    font-weight: 800;
}
.director-list { list-style: none; padding-left: 0; margin: 0; }
.director { padding: 0.5rem 0; border-top: 1px dashed #f3f4f6; }
.director:first-child { border-top: none; }
.director-name { font-weight: 700; color: #111827; }
.director-role { font-size: 0.94rem; color: #6b7280; }

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #D22163, #D22163);
    margin: 3px 0;
    transition: transform 0.3s ease, opacity 0.2s ease;
    border-radius: 2px;
    display: block;
    transform-origin: center;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, #D22163 0%, #D22163 50%, #D22163 100%);
    color: white;
    padding: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Hero Particle Canvas */
.hero-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2; /* between background carousel and overlay */
        pointer-events: none;
        opacity: 0.6;
        mix-blend-mode: screen;
}

@media (prefers-reduced-motion: reduce) {
    .hero-particles { display: none !important; }
}

/* Prevent page scrolling while the loading-screen is active */
html.loading-active,
body.loading-active {
    overflow: hidden;
    height: 100vh;
}

.hero-bg-carousel .carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s cubic-bezier(0.4,0,0.2,1);
    will-change: opacity;
}

.hero-bg-carousel .carousel-image.active {
    opacity: 0.5;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.18) 100%);
    z-index: 3;
}



.hero-content {
    position: relative;
    z-index: 4;
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 0 20px;
    /* hidden until animations-ready is added by JS */
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateX(-30px);
}

.hero-content h3 {
        font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
        font-size: 2.2rem;
}

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

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 3rem;
    opacity: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transform: translateX(30px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Only run these hero/heading animations when JS has marked the app ready */
.animations-ready .hero-content {
    animation: fadeInUp 1s ease-out;
    opacity: 1;
    transform: none;
}
.animations-ready .hero-content h1 {
    animation: slideInLeft 1s ease-out 0.2s both;
    opacity: 1;
    transform: none;
}
.animations-ready .hero-content p {
    animation: slideInRight 1s ease-out 0.4s both;
    opacity: 1;
    transform: none;
}
.animations-ready .hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
    opacity: 1;
    transform: none;
}
.animations-ready .scroll-indicator {
    animation: fadeInUp 1s ease-out 0.8s both;
    opacity: 1;
    transform: translateX(-50%);
}

.hero-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(12px);
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 2;
    opacity: 0;
    transform: translateY(12px) translateX(-50%);
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    margin: 0 auto 10px;
    position: relative;
    animation: bounce 2s infinite;
}

.scroll-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid rgba(255, 255, 255, 0.6);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(3px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    color: #D22163;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Section Titles */
h2 {
    text-align: center;
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 4rem;
    color: #D22163;
    text-shadow: 0 2px 8px #fff, 0 1px 0 #fff;
    position: relative;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #D22163, #D22163, #D22163);
    border-radius: 3px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.3);
}

/* About Section */
.about {
    padding: 120px 0;
    background: linear-gradient(135deg, #fef2f2 0%, #ffffff 50%, #fafafa 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    align-items: start;
}

.about-text h3 {
    font-size: 2rem;
    color: #D22163;
    margin-bottom: 2rem;
    margin-top: 3rem;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.about-text h3:first-child {
    margin-top: 0;
}

.about-text h3::after {
    content: '';
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 35px;
    background: linear-gradient(180deg, #ff6bd5, #D22163);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.3);
}

.about-text p {
    margin-bottom: 2.5rem;
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.15rem;
    font-weight: 400;
}

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


.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.08);
    position: relative;
    overflow: hidden;
    width: 175px;
    gap: 0.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: #D22163;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.05), transparent);
    transition: left 0.6s ease;
}

.stat-item:hover::before {
    left: 100%;
}

.stat-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.15);
}


.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #D22163;
    margin-bottom: 0.75rem;
    margin-right: 0;
    text-shadow: 0 2px 4px rgba(220, 38, 38, 0.1);
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
    text-align: center;
}


.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    color: #6b7280;
    font-weight: 600;
    font-size: 1.2rem;
    letter-spacing: 0.025em;
    transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
    color: #dc2626;
}

/* Projects Section */
.projects {
    padding: 120px 0;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 50%, #ffffff 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
}

.project-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 38, 38, 0.08);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.02) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(220, 38, 38, 0.15);
    border-color: rgba(220, 38, 38, 0.2);
}

.project-image {
    height: 250px;
    background: linear-gradient(135deg, #D22163 0%, #D22163 50%, #D22163 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
    background: linear-gradient(135deg, #D22163 0%, #D22163 50%, #D22163 100%);
}

.project-content {
    padding: 3rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    font-size: 1.8rem;
    color: #dc2626;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.project-card:hover .project-content h3 {
    color: #D22163;
}

.project-content p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.3s ease;
    margin-bottom: 1.5rem;
}

.project-card:hover .project-content p {
    color: #4b5563;
}

.project-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    background: rgba(220, 38, 38, 0.05);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.project-stat i {
    color: #dc2626;
    font-size: 0.8rem;
}

.project-card:hover .project-stat {
    background: rgba(220, 38, 38, 0.1);
    color: #4b5563;
}

/* Contact Section */

.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, #fff0f6 0%, #ffffff 50%, #fafafa 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}



.contact-info h3 {
    font-size: 2.5rem;
    color: #D22163;
    margin-bottom: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.contact-info p {
    color: #6b7280;
    margin-bottom: 3rem;
    line-height: 1.7;
    font-size: 1.2rem;
    font-weight: 400;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}


.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.3rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(210, 33, 99, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(210, 33, 99, 0.08);
    position: relative;
    overflow: hidden;
}


@media (max-width: 768px) {
    .contact-content {
        justify-content: center;
        align-items: center;
    }
    .hamburger {
        z-index: 3000;
        position: relative;
    }
    .contact-item, .contact-form {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .stat-item {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .stat-icon {
        font-size: 2rem;
    }
}



.contact-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 33, 99, 0.05), transparent);
    transition: left 0.6s ease;
}


.contact-item:hover::before {
    left: 100%;
}


.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(210, 33, 99, 0.15);
    border-color: rgba(210, 33, 99, 0.15);
}


.contact-item i {
    color: #D22163;
    font-size: 2rem;
    margin-top: 0.25rem;
    background: linear-gradient(135deg, rgba(210, 33, 99, 0.1) 0%, rgba(210, 33, 99, 0.05) 100%);
    padding: 1.25rem;
    border-radius: 50%;
    min-width: 70px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(210, 33, 99, 0.1);
    transition: all 0.3s ease;
}


.contact-item:hover i {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(210, 33, 99, 0.15) 0%, rgba(210, 33, 99, 0.1) 100%);
    box-shadow: 0 8px 25px rgba(210, 33, 99, 0.2);
}


.contact-item h4 {
    color: #D22163;
    margin-bottom: 0.75rem;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}


.contact-item:hover h4 {
    color: #D22163;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s ease;

}

.contact-item:hover p {
    color: #4b5563;
}


.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    padding: 3.5rem;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(210, 33, 99, 0.08);
    border: 1px solid rgba(210, 33, 99, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}


.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 33, 99, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
}

.contact-form:hover::before {
    opacity: 1;
}


.contact-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(210, 33, 99, 0.12);
    border-color: rgba(210, 33, 99, 0.15);
}


.contact-form h3 {
    font-size: 2rem;
    color: #D22163;
    margin-bottom: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    position: relative;
    z-index: 2;
}

.form-group {
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 2;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}


.form-group:focus-within label {
    color: #D22163;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: #f9fafb;
    font-weight: 400;
    position: relative;
}


.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D22163;
    background: white;
    box-shadow: 0 0 0 4px rgba(210, 33, 99, 0.1);
    transform: translateY(-3px);
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #10b981;
    background: #f0fdf4;
}


.form-group input:invalid:not(:placeholder-shown),
.form-group textarea:invalid:not(:placeholder-shown) {
    border-color: #D22163;
    background: #fff0f6;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #D22163 0%, #D22163 50%, #D22163 100%);
    color: white;
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-logo-image {
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
    transform: scale(5);
    filter: brightness(0) invert(1) drop-shadow(0 4px 15px rgba(255, 255, 255, 0.2));
}


.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    font-weight: 400;
}

.footer-section h4 {
    color: white;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

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

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

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    position: relative;
    font-weight: 400;
    padding: 0.5rem 0;
    display: inline-block;
}

.footer-section ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section ul li a:hover::after {
    width: 100%;
}

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

.social-links a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.3rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.social-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-links a:hover::before {
    left: 100%;
}

.social-links a:hover {
    background: white;
    color: #dc2626;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #dc2626;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Success/Error States */
.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.error {
    border-color: #D22163 !important;
    background: #fef2f2 !important;
}

/* Scroll to Top Button (brand-styled) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D22163 0%, #ff6bd5 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 10px 30px rgba(210,33,99,0.22);
    transition: opacity 0.32s ease, transform 0.32s ease, box-shadow 0.2s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 45px rgba(210,33,99,0.28);
}

.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(210,33,99,0.12);
}

.scroll-to-top i { color: #fff; }

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        padding: 0.75rem;
        border-radius: 12px;
    }
    
    /* Mobile: use absolute positioning inside a fixed-height container so
       the top and bottom bars rotate into the exact center to create a
       perfectly centered X. This avoids relying on translateY values that
       vary with margin/line-height. */
    .hamburger {
        /* make a predictable box for the three bars */
        width: 36px;
        height: 24px;
        padding: 0.25rem;
        display: block; /* override flex for absolute positioning of spans */
        position: relative;
        margin-right: 20px;
    }

    .hamburger span {
        position: absolute;
        left: 4px;
        right: 4px;
        height: 3px;
        background: linear-gradient(90deg, #D22163, #D22163);
        border-radius: 2px;
        transition: transform 0.28s ease, top 0.28s ease, opacity 0.18s ease;
        transform-origin: center;
        margin: 0; /* reset margins which would affect positioning */
    }

    /* stack the three bars explicitly */
    .hamburger span:nth-child(1) { top: 4px; }
    .hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
    .hamburger span:nth-child(3) { bottom: 4px; }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s ease;
        box-shadow: 0 15px 35px rgba(220, 38, 38, 0.15);
        padding: 2rem 0;
        gap: 2rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        padding: 1rem 0;
        font-weight: 600;
        border-radius: 8px;
        margin: 0 1rem;
    }

    /* When active, move the top/bottom bars to the center and rotate to form an X */
    .hamburger.active span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

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

    .hamburger.active span:nth-child(3) {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%) rotate(-45deg);
    }
    
    .hero {
        padding: 120px 0 80px;
        min-height: 90vh;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.8rem;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2.5rem;
        padding: 0 0.5rem;
    }
    

    .hero-buttons {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        padding: 1.2rem 2rem;
        font-size: 1.1rem;
        border-radius: 15px;
    }
    
    h2 {
        font-size: 2.5rem;
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .about {
        padding: 80px 0;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .about-text h3 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
        margin-top: 2rem;
    }
    
    .about-text p {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
    
    .stat-number {
        font-size: 2.8rem;
    }
    
    .stat-label {
        font-size: 1.1rem;
    }
    
    .projects {
        padding: 80px 0;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .project-card {
        border-radius: 20px;
    }
    
    .project-image {
        height: 200px;
        font-size: 3rem;
    }
    
    .project-content {
        padding: 2rem;
    }
    
    .project-content h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .project-content p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact {
        padding: 80px 0;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 1rem;
    }
    
    .contact-info h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .contact-details {
        gap: 1.5rem;
    }
    
    .contact-item {
        padding: 2rem;
        border-radius: 15px;
        gap: 1.5rem;
    }
    
    .contact-item i {
        font-size: 1.8rem;
        padding: 1rem;
        min-width: 60px;
    }
    
    .contact-item h4 {
        font-size: 1.2rem;
    }
    
    .contact-item p {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .contact-form h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .form-group {
        margin-bottom: 2rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1.2rem;
        font-size: 1rem;
        border-radius: 12px;
    }
    
    .footer {
        padding: 80px 0 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 0 1rem;
    }
    
    .footer-logo-image {
        height: 80px;
        transform: scale(3);
    }
    
    .footer-section p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .footer-section h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.8rem;
    }
    
    .footer-section ul li a {
        font-size: 1rem;
        padding: 0.5rem 0;
        display: inline-block;
    }
    
    .social-links {
        justify-content: center;
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        font-size: 0.95rem;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.05rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 15px;
    }
    
    .logo-image {
        height: 60px;
        transform: scale(2);
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
        line-height: 1.5;
    }
    
    .btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        max-width: 250px;
    }
    
    h2 {
        font-size: 2rem;
        margin-bottom: 2.5rem;
    }
    
    .about {
        padding: 60px 0;
    }
    
    .about-text h3 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }
    
    .about-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .projects {
        padding: 60px 0;
    }
    
    .project-image {
        height: 180px;
        font-size: 2.5rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .project-content h3 {
        font-size: 1.4rem;
    }
    
    .project-content p {
        font-size: 0.95rem;
    }
    
    .contact {
        padding: 60px 0;
    }
    
    .contact-info h3 {
        font-size: 1.8rem;
    }
    
    .contact-info p {
        font-size: 1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .contact-item i {
        font-size: 1.6rem;
        padding: 0.8rem;
        min-width: 50px;
    }
    
    .contact-item h4 {
        font-size: 1.1rem;
    }
    
    .contact-item p {
        font-size: 0.95rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .contact-form h3 {
        font-size: 1.6rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 1rem;
        font-size: 0.95rem;
    }
    
    .footer {
        padding: 60px 0 20px;
    }
    
    .footer-logo-image {
        height: 70px;
        transform: scale(2.5);
    }
    
    .footer-section p {
        font-size: 0.95rem;
    }
    
    .footer-section h4 {
        font-size: 1.2rem;
    }
    
    .footer-section ul li a {
        font-size: 0.95rem;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .footer-bottom {
        font-size: 0.9rem;
    }
    
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
*:focus {
    outline: 2px solid #dc2626;
    outline-offset: 2px;
}

/* Enhanced form styling */
.form-group {
    position: relative;
}

.form-group input.success,
.form-group textarea.success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading states */
.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid currentColor;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Scroll to Top Button (brand-styled) */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #D22163 0%, #ff6bd5 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 10px 30px rgba(210,33,99,0.22);
    transition: opacity 0.32s ease, transform 0.32s ease, box-shadow 0.2s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 18px 45px rgba(210,33,99,0.28);
}

.scroll-to-top:focus {
    outline: none;
    box-shadow: 0 0 0 6px rgba(210,33,99,0.12);
}

.scroll-to-top i { color: #fff; }

/* Notification system */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.notification-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.notification-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Enhanced hover effects */
.project-card:hover .project-image {
    transform: scale(1.05);
}

.contact-item:hover {
    transform: translateY(-5px);
}

.stat-item:hover {
    transform: translateY(-8px);
}

/* Reduced motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
