/* Up Lancer Brand Colors */
:root {
    --uplancer-orange: #FF6B35;
    --uplancer-purple: #5D3991;
    --uplancer-dark: #1A1A2E;
    --uplancer-light: #F8F9FA;
    --uplancer-white: #FFFFFF;
    --uplancer-gray: #6C757D;
    --uplancer-text: #2C3E50;
    --uplancer-border: #E1E8ED;
    
    /* Gradients */
    --uplancer-gradient: linear-gradient(135deg, var(--uplancer-orange) 0%, var(--uplancer-purple) 100%);
    --uplancer-gradient-subtle: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(93, 57, 145, 0.1) 100%);
    
    /* Shadows */
    --uplancer-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --uplancer-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --uplancer-shadow-light: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Hero Section - Enhanced Modern Design */
.hero-section {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 100px 0 80px;
    color: var(--uplancer-text);
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(247, 147, 30, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(93, 57, 145, 0.08) 0%, transparent 50%);
    opacity: 0.6;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: var(--uplancer-purple);
    animation: fadeInUp 0.8s ease-out;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.hero-badge i {
    color: var(--uplancer-orange);
    margin-right: 12px;
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    color: var(--uplancer-text);
    animation: fadeInUp 0.8s ease-out 0.2s both;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 40px;
    color: var(--uplancer-gray);
    animation: fadeInUp 0.8s ease-out 0.4s both;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 300px;
    height: 300px;
}

.floating-element {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #F7931E;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 2px solid #F7931E;
    animation: float 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

.floating-element:nth-child(1) {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.floating-element:nth-child(2) {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
}

.floating-element:nth-child(3) {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.floating-element:nth-child(4) {
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(-50%);
    }
    50% {
        transform: translateY(-20px) translateX(-50%);
    }
}

.floating-element:nth-child(2) {
    animation-name: floatRight;
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    50% {
        transform: translateY(-50%) translateX(-20px);
    }
}

.floating-element:nth-child(3) {
    animation-name: floatBottom;
}

@keyframes floatBottom {
    0%, 100% {
        transform: translateY(0px) translateX(-50%);
    }
    50% {
        transform: translateY(20px) translateX(-50%);
    }
}

.floating-element:nth-child(4) {
    animation-name: floatLeft;
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    50% {
        transform: translateY(-50%) translateX(20px);
    }
}

/* Filter Section */
.filter-section {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.9) 0%, rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.filter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(93, 57, 145, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.05) 0%, transparent 50%);
    opacity: 0.6;
}

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

.filter-section h3 {
    font-weight: 800;
    color: var(--uplancer-text);
    margin-bottom: 3rem;
    font-size: 2.5rem;
    text-align: center;
}

.filter-buttons-container {
    margin-top: 3rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--uplancer-gray);
    padding: 18px 35px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    min-width: 180px;
}

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

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

.filter-btn:hover,
.filter-btn.active {
    background: var(--uplancer-purple);
    border-color: var(--uplancer-purple);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(93, 57, 145, 0.3);
}

.filter-btn i {
    font-size: 1.2rem;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.filter-btn:hover i,
.filter-btn.active i {
    transform: scale(1.1);
}

/* Simple Beautiful Project Cards */
.project-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 100%;
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.08);
    min-height: 420px;
}

.project-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(93, 57, 145, 0.3);
}

.project-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.4s ease;
    border-radius: 16px 16px 0 0;
}

.project-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(93, 57, 145, 0.9);
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
}

.project-item:hover .overlay {
    opacity: 1;
}

.view-icon {
    color: #fff;
    font-size: 2rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.view-icon:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.project-content {
    padding: 25px;
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    position: relative;
}

.project-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25px;
    right: 25px;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.3) 50%, 
        transparent 100%);
}

.project-title {
    font-weight: 800;
    color: var(--uplancer-text);
    margin-bottom: 18px;
    font-size: 1.3rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 12px;
}

.project-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #FF6B35, #5D3991);
    border-radius: 2px;
}

.project-description {
    color: var(--uplancer-gray);
    line-height: 1.7;
    margin-bottom: 20px;
    font-size: 0.95rem;
    position: relative;
    padding: 16px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    border-radius: 12px;
    border-left: 4px solid #FF6B35;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.project-description::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 1.5rem;
    color: #FF6B35;
    font-weight: 700;
    opacity: 0.6;
}

.project-item:hover .project-description {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.service-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--uplancer-purple);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.service-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Enhanced Load More Button */
.load-more-btn {
    background: var(--uplancer-purple);
    border: 2px solid var(--uplancer-purple);
    color: white;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(93, 57, 145, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.load-more-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.6s;
}

.load-more-btn:hover::before {
    left: 100%;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(93, 57, 145, 0.4);
    color: white;
}

.load-more-btn:disabled {
    opacity: 0.6;
    transform: none;
}

/* Enhanced Search Box */
.search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.search-input {
    width: 100%;
    padding: 20px 35px;
    padding-right: 60px; /* Add space for the icon */
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    font-size: 1.2rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: var(--uplancer-purple);
    box-shadow: 0 0 0 4px rgba(93, 57, 145, 0.1), 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.search-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--uplancer-gray);
    font-size: 1.3rem;
    pointer-events: none; /* Prevent icon from interfering with input */
}

/* Enhanced No Projects Message */
.no-projects {
    text-align: center;
    padding: 100px 20px;
    color: var(--uplancer-gray);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 16px;
    margin: 80px 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.no-projects i {
    font-size: 6rem;
    color: var(--uplancer-light-gray);
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.no-projects h4 {
    font-weight: 800;
    color: var(--uplancer-text);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.no-projects p {
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Loading animation */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Enhanced animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 100px 0 80px;
        min-height: auto;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-visual {
        height: 300px;
    }
    
    .floating-elements {
        width: 250px;
        height: 250px;
    }
    
    .floating-element {
        width: 60px;
        height: 60px;
        font-size: 1.4rem;
    }
    
    .filter-section {
        padding: 70px 0;
    }
    
    .filter-section h3 {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .filter-buttons {
        gap: 15px;
        max-width: 100%;
    }
    
    .filter-btn {
        padding: 16px 28px;
        font-size: 1rem;
        min-width: 160px;
    }
    
    .search-input {
        padding: 18px 30px;
        font-size: 1.1rem;
    }
    
    .project-item img {
        height: 250px;
    }
    
    .project-content {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        gap: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-visual {
        height: 250px;
    }

    .floating-elements {
        width: 200px;
        height: 200px;
    }

    .floating-element {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 220px;
        margin: 5px 0;
    }
    
    .search-box {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* Extra Large Devices (1400px and up) */
@media (min-width: 1400px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 120px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .hero-description {
        font-size: 1.3rem;
    }
    
    .filter-section {
        padding: 80px 0;
    }
    
    .project-item {
        min-height: 450px;
    }
}

/* Large Devices (1200px and up) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .hero-content {
        gap: 60px;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
}

/* Medium Devices (992px and up) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-content {
        gap: 50px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .filter-buttons {
        gap: 15px;
    }
    
    .filter-btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
}

/* Small Devices (768px and up) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-section {
        padding: 100px 0 80px;
        min-height: 80vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        height: 300px;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .hero-badge {
        font-size: 0.9rem;
        padding: 10px 20px;
    }
    
    .filter-section {
        padding: 60px 0;
    }
    
    .filter-buttons {
        gap: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
    
    .search-container {
        max-width: 400px;
        margin: 0 auto 30px;
    }
    
    .project-item {
        min-height: 400px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .project-title {
        font-size: 1.1rem;
    }
    
    .project-description {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices (576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-section {
        padding: 80px 0 60px;
        min-height: 70vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        height: 250px;
    }
    
    .hero-title {
        font-size: 2.4rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-bottom: 25px;
    }
    
    .filter-section {
        padding: 50px 0;
    }
    
    .filter-buttons {
        gap: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
        border-radius: 20px;
    }
    
    .search-container {
        max-width: 350px;
        margin: 0 auto 25px;
    }
    
    .search-input {
        padding: 12px 45px 12px 20px;
        font-size: 0.9rem;
    }
    
    .search-icon {
        font-size: 1rem;
        right: 15px;
    }
    
    .project-item {
        min-height: 350px;
        margin-bottom: 25px;
    }
    
    .project-content {
        padding: 18px;
    }
    
    .project-title {
        font-size: 1rem;
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .project-title::after {
        width: 30px;
        height: 2px;
    }
    
    .project-description {
        font-size: 0.85rem;
        line-height: 1.5;
        padding: 12px;
    }
    
    .project-description::before {
        font-size: 1.1rem;
        top: 5px;
        left: 8px;
    }
    
    .service-badge {
        font-size: 0.75rem;
        padding: 4px 12px;
    }
    
    .load-more-btn {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}

/* Mobile Devices (up to 575px) */
@media (max-width: 575px) {
    .hero-section {
        padding: 60px 0 50px;
        min-height: 60vh;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        order: 1;
    }
    
    .hero-visual {
        order: 2;
        height: 200px;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    
    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
        margin-bottom: 20px;
    }
    
    .filter-section {
        padding: 40px 0;
    }
    
    .filter-buttons {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filter-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
        border-radius: 18px;
        min-width: auto;
    }
    
    .search-container {
        max-width: 300px;
        margin: 0 auto 20px;
    }
    
    .search-input {
        padding: 10px 40px 10px 15px;
        font-size: 0.85rem;
    }
    
    .search-icon {
        font-size: 0.9rem;
        right: 12px;
    }
    
    .project-item {
        min-height: 300px;
        margin-bottom: 20px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-title {
        font-size: 0.95rem;
        margin-bottom: 6px;
        padding-bottom: 8px;
    }
    
    .project-title::after {
        width: 30px;
        height: 2px;
    }
    
    .project-description {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 12px;
    }
    
    .project-description::before {
        font-size: 1.1rem;
        top: 5px;
        left: 8px;
    }
    
    .service-badge {
        font-size: 0.7rem;
        padding: 3px 10px;
    }
    
    .load-more-btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    
    .no-projects {
        padding: 40px 20px;
    }
    
    .no-projects i {
        font-size: 3rem;
    }
    
    .no-projects h4 {
        font-size: 1.2rem;
    }
    
    .no-projects p {
        font-size: 0.9rem;
    }
}

/* Ultra Small Devices (up to 375px) */
@media (max-width: 375px) {
    .hero-section {
        padding: 50px 0 40px;
        min-height: 50vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 12px;
    }
    
    .filter-section {
        padding: 30px 0;
    }
    
    .filter-buttons {
        gap: 6px;
    }
    
    .filter-btn {
        padding: 5px 12px;
        font-size: 0.75rem;
        border-radius: 16px;
    }
    
    .search-container {
        max-width: 280px;
    }
    
    .search-input {
        padding: 8px 35px 8px 12px;
        font-size: 0.8rem;
    }
    
    .search-icon {
        font-size: 0.85rem;
        right: 10px;
    }
    
    .project-item {
        min-height: 280px;
        margin-bottom: 15px;
    }
    
    .project-content {
        padding: 12px;
    }
    
    .project-title {
        font-size: 0.9rem;
    }
    
    .project-description {
        font-size: 0.75rem;
    }
    
    .service-badge {
        font-size: 0.65rem;
        padding: 2px 8px;
    }
    
    .load-more-btn {
        padding: 8px 20px;
        font-size: 0.85rem;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-section {
        padding: 40px 0;
        min-height: 50vh;
    }
    
    .hero-content {
        gap: 20px;
    }
    
    .hero-visual {
        height: 150px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .filter-section {
        padding: 30px 0;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .filter-btn:hover {
        transform: none;
    }
    
    .project-item:hover {
        transform: none;
    }
    
    .load-more-btn:hover {
        transform: none;
    }
    
    /* Increase touch targets */
    .filter-btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .search-input {
        min-height: 44px;
    }
    
    .load-more-btn {
        min-height: 44px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section::after {
        background-size: 25px 25px;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .filter-section,
    .load-more-btn,
    .back-to-top {
        display: none !important;
    }
    
    .project-item {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .filter-btn,
    .project-item,
    .load-more-btn {
        animation: none !important;
        transition: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .hero-section {
        background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(40, 40, 60, 0.8) 100%);
        color: #ffffff;
    }
    
    .hero-badge {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .filter-btn {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    
    .search-input {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
} 