/* Global Styles */
:root {
    --primary-color: #61bebc;
    --secondary-color: #000000;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #ffffff;
    --gray-light: #f8f8f8;
    --gray-medium: #e0e0e0;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    font-display: swap; /* Improve font loading performance */
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--primary-color);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: var(--transition);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #4fa8a6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(97, 190, 188, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--secondary-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    transform: translateZ(0); /* Hardware acceleration */
    backface-visibility: hidden;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--white);
}

.logo-symbol {
    height: 50px;
    transition: var(--transition);
    opacity: 1 !important;
    visibility: visible !important;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Playfair Display', serif;
    color: var(--white);
    letter-spacing: -0.5px;
}

.logo:hover .logo-symbol {
    transform: scale(1.05);
}

.logo:hover .logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

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

.nav-cta {
    background: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-cta:hover {
    background: #4fa8a6;
    transform: translateY(-2px);
}

.nav-cta::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-radius: 2px;
    transform-origin: center;
    display: block;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://imagedelivery.net/AxiltAhlSb-DenOHJvSIVw/vibeoutdoors-hero-image/public') center/cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 1;
}

.hero-logo {
    max-width: 400px;
    margin: 0 auto 2rem auto; /* Center the logo horizontally */
    display: block; /* Ensure it's a block element for margin auto to work */
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--white);
    opacity: 0.7;
}

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

/* Services Section */
.services {
    padding: 80px 0;
    background: var(--gray-light);
}

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

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

.service-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.service-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-light);
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .lead {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
}

.about-image {
    position: relative;
}

.image-wrapper {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.experience-badge .years {
    font-size: 2rem;
    font-weight: 700;
    display: block;
}

.experience-badge .text {
    font-size: 0.9rem;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    background: #f8f9fa;
}

.portfolio::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #f8f9fa);
    pointer-events: none;
}

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

.portfolio-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    position: relative;
    display: block;
    opacity: 1;
    visibility: visible;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.portfolio-cta {
    text-align: center;
    margin-top: 4rem;
}

.portfolio-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: var(--secondary-color);
    color: var(--white);
    overflow: hidden;
}

.testimonials .section-title::after {
    background: var(--primary-color);
}

.testimonials .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-slider {
    overflow: hidden;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: 2rem;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: slideInfinite 52s linear infinite;
    width: calc(320px * 12 + 22rem); /* 12 testimonials (6 original + 6 cloned) with gaps */
    will-change: transform; /* Optimize for animation */
    backface-visibility: hidden;
}

@keyframes slideInfinite {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(calc(-320px * 6 - 12rem), 0, 0);
    }
}

.testimonial-card {
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stars {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.testimonial-author h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.testimonial-author span {
    color: var(--primary-color);
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Testimonials Placeholder */
.testimonials-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 2rem;
}

.placeholder-content {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.placeholder-content i {
    display: block;
    margin-bottom: 1rem;
}

.placeholder-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--gray-light);
    padding: 3rem;
    border-radius: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    position: relative;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid transparent;
    border-bottom: 2px solid var(--gray-medium);
    background: transparent;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.form-group label {
    position: absolute;
    left: 12px;
    top: 12px;
    color: var(--text-light);
    transition: var(--transition);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group select:focus + label,
.form-group select:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    left: 0;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.contact-info {
    padding-top: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 30px;
}

.info-item h4 {
    margin-bottom: 0.3rem;
}

.info-item p {
    color: var(--text-light);
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 80px;
    max-width: 200px;
    object-fit: contain;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 300px;
}

.footer-section h4 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

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

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

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-contact i {
    color: var(--primary-color);
    width: 16px;
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    opacity: 0.7;
    font-size: 0.9rem;
    margin: 0;
}

/* SIMPLIFIED ANIMATIONS */
[data-aos] {
    transition-duration: 400ms;
}

/* Ensure critical elements are always visible */
.logo-symbol,
.hero-logo,
.footer-logo img {
    opacity: 1 !important;
    visibility: visible !important;
}

/* SIMPLIFIED PORTFOLIO STYLES */
.portfolio-item {
    display: block;
    opacity: 1;
    visibility: visible;
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

/* Hidden items - initially not displayed */
.portfolio-item.hidden-item {
    display: none !important;
}

/* Load More Button */
.portfolio-load-more {
    text-align: center;
    margin-top: 2rem;
}

#loadMoreBtn {
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

#loadMoreBtn:hover {
    background: #4fa8a6;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(97, 190, 188, 0.3);
}

#loadMoreBtn i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

#loadMoreBtn:hover i {
    transform: translateY(2px);
}

/* PERFORMANCE OPTIMIZATIONS */
.portfolio-item img {
    backface-visibility: hidden;
    transform: translateZ(0); /* Hardware acceleration */
}

.portfolio-grid {
    contain: layout style;
    will-change: auto;
}

/* Reduce repaints and reflows */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Optimize animations */
.portfolio-item {
    transition: transform 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px) scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 0.75rem 0; /* Reduced padding for mobile */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.98) 100%);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        text-align: center;
        padding: 8rem 2rem 2rem;
        transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 1000;
        justify-content: flex-start;
        align-items: center;
        gap: 2rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu .nav-link {
        font-size: 1.8rem;
        font-weight: 600;
        color: var(--white);
        text-decoration: none;
        padding: 1rem 2rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        min-width: 200px;
        opacity: 0;
        transform: translateX(-50px);
        animation: slideInLeft 0.6s ease forwards;
    }

    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.6s; }

    @keyframes slideInLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .nav-menu .nav-link::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(97, 190, 188, 0.2), transparent);
        transition: all 0.5s;
    }

    .nav-menu .nav-link:hover::before {
        left: 100%;
    }

    .nav-menu .nav-link:hover {
        background: rgba(97, 190, 188, 0.1);
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(97, 190, 188, 0.3);
    }

    .nav-menu .nav-link::after {
        bottom: 50%;
        left: 50%;
        transform: translate(-50%, 50%);
        width: 0;
        height: 2px;
        background: var(--primary-color);
        transition: width 0.3s ease;
    }

    .nav-menu .nav-link:hover::after {
        width: 80%;
    }

    .nav-menu .nav-cta {
        background: linear-gradient(135deg, var(--primary-color), #4fa8a6);
        color: var(--white);
        font-size: 1.5rem;
        padding: 1.2rem 2.5rem;
        border-radius: 50px;
        box-shadow: 0 10px 30px rgba(97, 190, 188, 0.4);
        margin-top: 1rem;
    }

    .nav-menu .nav-cta:hover {
        background: linear-gradient(135deg, #4fa8a6, var(--primary-color));
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(97, 190, 188, 0.6);
    }

    .nav-menu .nav-cta::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .logo-text {
        font-size: 1.2rem;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(9px);
        background: var(--primary-color);
    }

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

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-9px);
        background: var(--primary-color);
    }

    .hamburger.active {
        background: rgba(97, 190, 188, 0.2);
    }

    .hero {
        padding-top: 60px; /* Add padding to account for fixed navbar */
        min-height: calc(100vh - 60px); /* Adjust height to account for navbar */
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-logo {
        max-width: 300px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Centralize contact info on mobile */
    .contact-info {
        text-align: center;
        padding-top: 3rem;
    }

    .info-item {
        justify-content: center;
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        margin-bottom: 2.5rem;
    }

    .info-item i {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .info-item div {
        text-align: center;
    }

    .social-links {
        justify-content: center;
        gap: 1.5rem;
        margin-top: 2.5rem;
    }

    .social-links a {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    /* Centralize send message button on mobile */
    .contact-form {
        text-align: center;
    }

    .contact-form .btn {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 15px 30px;
        font-size: 1.1rem;
        font-weight: 600;
    }

    .portfolio-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 1rem 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    /* Show all portfolio items on mobile */
    .portfolio-grid .portfolio-item.hidden-item {
        display: block !important;
    }

    .portfolio-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

    .portfolio-grid .portfolio-item {
        flex: 0 0 280px;
        scroll-snap-align: start;
    }

    .portfolio-grid .portfolio-item img {
        height: 200px;
    }

    /* Hide load more button on mobile */
    .portfolio-load-more {
        display: none !important;
    }

    /* Enhanced mobile portfolio experience */
    .portfolio-grid .portfolio-item {
        opacity: 1;
        animation: fadeInSlide 0.6s ease-out;
    }

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



    @keyframes pulse {
        0%, 100% { opacity: 0.7; }
        50% { opacity: 1; }
    }

    .testimonials-slider {
        width: 100vw;
        margin-left: -20px;
        margin-right: -20px;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
    }

    .testimonial-track {
        animation: slideInfinite 45.5s linear infinite;
        width: calc(280px * 12 + 22rem);
    }

    .testimonial-card {
        min-width: 280px;
        max-width: 280px;
        padding: 1.5rem;
        scroll-snap-align: start;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .footer-logo img {
        height: 70px;
    }

    .footer-contact p {
        justify-content: center;
    }

    /* Mobile experience badge styling */
    .experience-badge {
        bottom: 15px; /* Closer to edge */
        right: 15px; /* Closer to edge */
        padding: 12px; /* Reduced from 20px */
        border-radius: 8px; /* Smaller radius */
    }

    .experience-badge .years {
        font-size: 1.4rem; /* Reduced from 2rem */
        font-weight: 600; /* Slightly lighter */
    }

    .experience-badge .text {
        font-size: 0.75rem; /* Reduced from 0.9rem */
        margin-top: 2px; /* Add small spacing */
    }
}

/* iPhone SE and similar small screens */
@media (max-width: 375px) and (max-height: 667px) {
    .navbar {
        padding: 0.5rem 0; /* Even smaller padding for iPhone SE */
    }

    .logo-symbol {
        height: 40px; /* Smaller logo symbol */
    }

    .logo-text {
        font-size: 1.1rem; /* Smaller logo text */
    }

    .nav-menu {
        top: 0; /* Full screen overlay */
        padding: 6rem 1.5rem 2rem; /* Adjust padding for smaller screen */
    }

    .nav-menu .nav-link {
        font-size: 1.6rem; /* Slightly smaller for iPhone SE */
        padding: 0.8rem 1.5rem;
        min-width: 180px;
    }

    .nav-menu .nav-cta {
        font-size: 1.3rem;
        padding: 1rem 2rem;
    }

    .hero {
        padding-top: 50px; /* Match navbar height */
        min-height: calc(100vh - 50px);
    }

    .hero-content {
        padding: 1rem 0; /* Add some padding to hero content */
    }

    .hero-logo {
        max-width: 250px; /* Smaller hero logo */
        margin-bottom: 1.5rem;
    }

    .hero-title {
        font-size: 2rem; /* Smaller title for iPhone SE */
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1rem; /* Smaller subtitle */
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 0.75rem; /* Smaller gap between buttons */
    }

    .btn {
        padding: 10px 20px; /* Smaller button padding */
        font-size: 0.9rem;
    }

    .scroll-indicator {
        bottom: 20px; /* Move scroll indicator up */
    }

    /* iPhone SE experience badge - even smaller */
    .experience-badge {
        bottom: 10px; /* Even closer to edge */
        right: 10px; /* Even closer to edge */
        padding: 8px; /* Very compact padding */
        border-radius: 6px; /* Smaller radius */
    }

    .experience-badge .years {
        font-size: 1.2rem; /* Even smaller */
        font-weight: 600;
    }

    .experience-badge .text {
        font-size: 0.65rem; /* Very small text */
        margin-top: 1px;
    }

    /* iPhone SE contact info adjustments */
    .contact-info {
        padding-top: 2rem;
    }

    .info-item {
        margin-bottom: 2rem;
        gap: 0.3rem;
    }

    .info-item i {
        font-size: 1.8rem;
    }

    .info-item h4 {
        font-size: 1rem;
        margin-bottom: 0.2rem;
    }

    .info-item p {
        font-size: 0.9rem;
    }

    .social-links {
        gap: 1.2rem;
        margin-top: 2rem;
    }

    .social-links a {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* iPhone SE send button adjustments */
    .contact-form .btn {
        max-width: 280px;
        padding: 12px 25px;
        font-size: 1rem;
    }
}

/* Tablet and Desktop */
@media (min-width: 769px) {
    .portfolio-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        overflow: visible;
        padding: 0;
    }

    .portfolio-grid .portfolio-item {
        flex: none;
        scroll-snap-align: none;
    }



    .footer-main {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 3rem;
        text-align: left;
    }

    .footer-logo {
        align-items: flex-start;
        text-align: left;
    }

    .footer-logo img {
        height: 100px;
    }

    .footer-logo p {
        max-width: 280px;
    }

    .footer-contact p {
        justify-content: flex-start;
    }

    .footer-social {
        justify-content: flex-start;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary-color);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ensure content is ready when loading screen is removed */
body.loading-active {
    overflow: hidden;
}

body.loading-active .navbar,
body.loading-active .hero,
body.loading-active .services,
body.loading-active .about,
body.loading-active .portfolio,
body.loading-active .testimonials,
body.loading-active .contact,
body.loading-active .footer {
    visibility: hidden;
}

/* Show content when loading is complete */
body:not(.loading-active) .navbar,
body:not(.loading-active) .hero,
body:not(.loading-active) .services,
body:not(.loading-active) .about,
body:not(.loading-active) .portfolio,
body:not(.loading-active) .testimonials,
body:not(.loading-active) .contact,
body:not(.loading-active) .footer {
    visibility: visible;
} 