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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.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;
    gap: 0.75rem;
}

.logo-img {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nav-logo h2 {
    color: #059669;
    font-weight: 700;
}

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

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #059669;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #065f46 0%, #047857 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    justify-content: center;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-align: center !important;
    width: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-align: center;
}

.cta-button {
    display: block;
    background: #007AFF;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
    margin: 0 auto;
    width: fit-content;
}

.cta-button:hover {
    background: #0056CC;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.hero-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8fafc;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 3rem;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon i {
    font-size: 1.5rem;
    color: white;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.service-card p {
    color: #6b7280;
    line-height: 1.6;
}

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

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: #4b5563;
    font-size: 1.125rem;
}

.about-text ul {
    list-style: none;
    margin-top: 1rem;
}

.about-text li {
    padding: 0.5rem 0;
    color: #4b5563;
    position: relative;
    padding-left: 1.5rem;
}

.about-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #059669;
    font-weight: bold;
}

.about-graphic {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 6rem;
    color: #e5e7eb;
}

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

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

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

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: #4b5563;
}

    .contact-item i {
    width: 20px;
    margin-right: 1rem;
    color: #059669;
}

    #protected-email,
    #header-email {
        cursor: pointer;
        color: #059669;
        text-decoration: underline;
        font-weight: 600;
        background: rgba(5, 150, 105, 0.1);
        padding: 2px 6px;
        border-radius: 4px;
        border: 1px solid rgba(5, 150, 105, 0.3);
        transition: all 0.3s ease;
        display: inline-block;
    }

    #protected-email:hover,
    #header-email:hover {
        color: #047857;
        background: rgba(5, 150, 105, 0.2);
        border-color: rgba(5, 150, 105, 0.5);
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(5, 150, 105, 0.2);
    }

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2563eb;
}

.submit-button {
    background: linear-gradient(135deg, #007AFF, #0056CC);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .submit-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 122, 255, 0.3);
    }

/* Featured Project Section */
.featured-project {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.featured-project h2 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.featured-project .section-subtitle {
    text-align: center;
    color: #6b7280;
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.project-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
    /* Safari iOS grid fixes */
    -webkit-display: grid;
    -webkit-grid-template-columns: 1fr 1fr;
    width: 100%;
}

.project-description h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.project-description p {
    color: #4b5563;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-description ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.project-description li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.project-images {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-comparison {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.image-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    /* Safari iOS grid fixes */
    -webkit-display: grid;
    -webkit-grid-template-columns: 1fr 1fr;
}

.image-container {
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-container h4 {
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.project-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    /* Safari iOS specific fixes */
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    /* Force hardware acceleration */
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    /* Prevent Safari from stretching images */
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

.project-image:hover {
    transform: scale(1.02);
    -webkit-transform: scale(1.02);
}

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

.detail-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.detail-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.15);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.detail-icon i {
    font-size: 1.5rem;
    color: white;
}

.detail-card h4 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.125rem;
    font-weight: 600;
}

.detail-card p {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Responsive Design for Featured Project */
@media (max-width: 768px) {
    .project-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .image-pair {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .project-details {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1.5rem;
    }
    
    .project-image {
        max-height: 250px;
        object-fit: contain;
        /* Mobile Safari fixes */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    }
}

/* iOS Safari specific fixes - more aggressive */
@supports (-webkit-touch-callout: none) {
    .project-image {
        /* Force proper sizing on iOS Safari */
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        /* Prevent Safari from stretching */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
        /* Force hardware acceleration */
        -webkit-transform-style: preserve-3d !important;
        transform-style: preserve-3d !important;
        /* Prevent inline display */
        display: block !important;
        float: none !important;
        clear: both !important;
    }
    
    .image-container {
        /* Force container constraints */
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        /* Prevent Safari layout issues */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
    
    .image-pair {
        gap: 0.75rem !important;
        width: 100% !important;
    }
    
    .image-container h4 {
        font-size: 0.75rem !important;
        margin-bottom: 0.25rem !important;
    }
}

/* Additional iOS Safari fixes */
@media only screen and (max-device-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    .project-image {
        /* iPhone specific fixes */
        max-height: 180px !important;
        object-fit: contain !important;
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
    }
}

/* Privacy Policy Page Styles */
.privacy-content {
    padding: 120px 0 5rem;
    background: #f8fafc;
    min-height: 100vh;
}

.privacy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.privacy-header h1 {
    color: #1f2937;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.last-updated {
    color: #6b7280;
    font-size: 1rem;
    font-style: italic;
}

.privacy-body {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.policy-section {
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: #1f2937;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.policy-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
}

.policy-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.policy-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.policy-section li {
    color: #4b5563;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.policy-section a {
    color: #059669;
    text-decoration: none;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: #047857;
    text-decoration: underline;
}

.contact-info {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.5rem;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

/* Responsive Privacy Policy */
@media (max-width: 768px) {
    .privacy-content {
        padding: 100px 0 3rem;
    }
    
    .privacy-header h1 {
        font-size: 2rem;
    }
    
    .privacy-body {
        padding: 1.5rem;
    }
    
    .policy-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .policy-section h2 {
        font-size: 1.25rem;
    }
    
    .policy-section h3 {
        font-size: 1.125rem;
    }
}

/* Nuclear option for Safari iOS - force everything */
@supports (-webkit-touch-callout: none) and (max-width: 768px) {
    .project-overview {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .image-pair {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    .image-container {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 !important;
    }
    
    .project-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
        object-fit: contain !important;
        display: block !important;
        float: none !important;
        clear: both !important;
        /* Force Safari to respect dimensions */
        -webkit-transform: translate3d(0, 0, 0) !important;
        transform: translate3d(0, 0, 0) !important;
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
    }
}

/* Image Modal Styles */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-modal.active .modal-content {
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-close i {
    font-size: 1.2rem;
    color: #374151;
}

.modal-image-container {
    width: 100%;
    max-height: 70vh;
    overflow: hidden;
    position: relative;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.modal-caption {
    padding: 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.modal-caption h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.modal-caption p {
    color: #4b5563;
    line-height: 1.6;
    font-size: 1rem;
}

/* Clickable Image Styles */
.clickable-image {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Modal Animation Keyframes */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-caption {
        padding: 1.5rem;
    }
    
    .modal-caption h3 {
        font-size: 1.25rem;
    }
    
    .modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
}

/* Safari Modal Fixes */
@supports (-webkit-touch-callout: none) {
    .modal-content {
        -webkit-transform: translate3d(-50%, -50%, 0);
        transform: translate3d(-50%, -50%, 0);
    }
    
    .image-modal.active .modal-content {
        -webkit-transform: translate3d(-50%, -50%, 0) scale(1);
        transform: translate3d(-50%, -50%, 0) scale(1);
    }
}

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

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

.portfolio-item {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e5e7eb;
}

.portfolio-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.portfolio-icon i {
    font-size: 1.5rem;
    color: white;
}

.portfolio-item h3 {
    color: #1f2937;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.portfolio-item p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: #d1fae5;
    color: #065f46;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Testimonials Section */
.testimonials {
    padding: 5rem 0;
    background: white;
}

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

.testimonial {
    background: #f8fafc;
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid #059669;
    transition: all 0.3s ease;
}

.testimonial-content p {
    color: #374151;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    color: #1f2937;
    margin: 0 0 0.25rem 0;
    font-size: 1.1rem;
}

.author-info span {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Prevent text selection on main content areas */
.hero,
.services,
.featured-project,
.about,
.contact,
.portfolio,
.testimonials,
.navbar,
.footer,
.service-card,
.portfolio-item,
.testimonial,
.detail-card,
.project-description,
.project-images,
.project-details,
h1, h2, h3, h4, h5, h6,
p, li, span, div {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection for form elements and contact info */
.form-group input,
.form-group textarea,
.form-group select,
.contact-info,
.contact-item,
#protected-email,
#header-email {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Image protection - prevent downloading and right-click */
img, .project-image, .modal-image, .logo-img, .hero-logo-img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto; /* Allow modal functionality */
}

/* Additional image protection */
.project-image, .modal-image {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Enhanced image protection with subtle overlay */
.project-image, .modal-image {
    position: relative;
}

.project-image::before, .modal-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: none;
    z-index: 1;
}

/* Loading states and form feedback */
.loading-spinner {
    margin-left: 0.5rem;
}

.submit-button.loading .button-text {
    opacity: 0.7;
}

.submit-button.loading .loading-spinner {
    display: inline-block !important;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 500;
}

.form-message.success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.form-message.error {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fca5a5;
}

/* Performance optimizations */
.project-image, .modal-image {
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* Critical CSS for above-the-fold content */
.hero, .navbar, .hero-content h1, .hero-content p {
    contain: layout style paint;
}

/* Breadcrumb Navigation */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0;
    margin: 0;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

.breadcrumb-item:not(:last-child)::after {
    content: '>';
    margin-left: 0.5rem;
    color: #9ca3af;
    font-weight: 600;
}

/* Safari-specific flexbox fixes */
@supports (-webkit-appearance: none) {
    .breadcrumb-list {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-direction: row;
        -webkit-flex-wrap: nowrap;
        -webkit-justify-content: flex-start;
        -webkit-align-items: center;
    }
    
    .breadcrumb-item {
        -webkit-box-flex: 0;
        -webkit-flex-shrink: 0;
        -webkit-flex-grow: 0;
    }
}

.breadcrumb a {
    color: #059669;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #047857;
    text-decoration: underline;
}

.breadcrumb li[aria-current="page"] {
    color: #6b7280;
    font-weight: 500;
}

/* Prevent image saving */
.project-image, .modal-image {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Footer */
.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

.legal-notice {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.5rem;
    font-style: italic;
}



/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .service-card,
    .contact-form {
        padding: 1.5rem;
    }
}

/* Loading Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for grid items */
.services-grid .service-card:nth-child(1) { transition-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { transition-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { transition-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { transition-delay: 0.4s; }

.portfolio-grid .portfolio-item:nth-child(1) { transition-delay: 0.1s; }
.portfolio-grid .portfolio-item:nth-child(2) { transition-delay: 0.2s; }
.portfolio-grid .portfolio-item:nth-child(3) { transition-delay: 0.3s; }

.testimonial-grid .testimonial:nth-child(1) { transition-delay: 0.1s; }
.testimonial-grid .testimonial:nth-child(2) { transition-delay: 0.2s; }
.testimonial-grid .testimonial:nth-child(3) { transition-delay: 0.3s; }
