/* Portfolio Page Specific Styles */

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Navigation Updates */
.nav-links a.active {
    color: var(--secondary-color);
}

.nav-links a.active::after {
    width: 100%;
}

.logo a {
    color: inherit;
    text-decoration: none;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Portfolio Hero Section */
.portfolio-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease;
}

.portfolio-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color), var(--primary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 300;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.hero-stat {
    text-align: center;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 150px;
}

.hero-stat:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Portfolio Filter */
.portfolio-filter {
    padding: 60px 0 40px;
    background: rgba(255, 255, 255, 0.02);
}

.filter-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-family: inherit;
    font-size: 0.95rem;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--text-color);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--secondary-color);
    color: white;
}

.sort-controls {
    display: flex;
    justify-content: center;
}

.sort-select {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.sort-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
}

/* Featured Case Study */
.featured-case-study {
    padding: 80px 0;
}

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

.featured-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    animation: pulse 2s ease-in-out infinite;
}

.featured-header h2 {
    font-size: 2.8rem;
    color: var(--text-color);
    font-weight: 800;
    line-height: 1.2;
}

.featured-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.featured-visual {
    position: relative;
}

.case-study-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1), rgba(255, 107, 107, 0.1));
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.7;
}

.placeholder-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.case-study-image:hover .image-overlay {
    opacity: 1;
}

.view-case-study {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.view-case-study:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

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

.case-overview h3,
.case-results h3,
.case-services h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.case-overview p {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1.05rem;
}

.results-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

.result-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.result-item:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.result-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    line-height: 1;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.service-tag {
    background: rgba(78, 205, 196, 0.2);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

/* Portfolio Grid */
.portfolio-grid-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.portfolio-item {
    opacity: 1;
    transition: all 0.5s ease;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
    left: -9999px;
}

.portfolio-card {
    background: var(--glass-bg);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: rgba(78, 205, 196, 0.4);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.05), transparent);
    transition: left 0.5s;
    z-index: 1;
}

.portfolio-card:hover::before {
    left: 100%;
}

.card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.card-image:hover .card-overlay {
    opacity: 1;
}

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

.overlay-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.overlay-content p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.view-project {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    font-weight: 700;
    flex: 1;
}

.project-category {
    background: rgba(78, 205, 196, 0.2);
    color: var(--secondary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(78, 205, 196, 0.3);
}

.project-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    flex: 1;
}

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

.metric {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 900;
    color: var(--secondary-color);
    margin-bottom: 0.3rem;
    line-height: 1;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

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

.tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.tag:hover {
    background: rgba(78, 205, 196, 0.2);
    color: var(--secondary-color);
    border-color: rgba(78, 205, 196, 0.3);
}

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

.load-more-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
}

.testimonials-slider {
    max-width: 800px;
    margin: 3rem auto 0;
    position: relative;
}

.testimonial-track {
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}

.testimonial-slide {
    display: none;
    padding: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(15px);
    border-radius: 25px;
    text-align: center;
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

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

.testimonial-content {
    max-width: 600px;
    margin: 0 auto;
}

.testimonial-text {
    margin-bottom: 2rem;
}

.testimonial-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    position: relative;
}

.testimonial-text p::before {
    content: '"';
    font-size: 4rem;
    color: var(--secondary-color);
    position: absolute;
    left: -2rem;
    top: -1rem;
    font-family: serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.author-info {
    text-align: left;
}

.author-info h4 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.author-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-rating {
    font-size: 1.2rem;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-prev,
.testimonial-next {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    font-family: inherit;
}

.testimonial-prev:hover,
.testimonial-next:hover {
    border-color: var(--secondary-color);
    background: rgba(78, 205, 196, 0.1);
    transform: scale(1.1);
}

.testimonial-dots {
    display: flex;
    gap: 0.8rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--secondary-color);
    transform: scale(1.2);
}

/* Industries Section */
.industries-section {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
}

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

.industry-card {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--glass-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(78, 205, 196, 0.1), transparent);
    transition: left 0.5s;
}

.industry-card:hover::before {
    left: 100%;
}

.industry-card:hover {
    transform: translateY(-10px);
    border-color: rgba(78, 205, 196, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.industry-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: block;
    filter: drop-shadow(0 5px 15px rgba(78, 205, 196, 0.3));
}

.industry-card h3 {
    font-size: 1.4rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.industry-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.industry-stats span {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Portfolio CTA */
.portfolio-cta {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
    position: relative;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.portfolio-cta h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.portfolio-cta p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

/* Project Detail Modal */
.project-modal {
    max-width: 900px;
    max-height: 90vh;
}

.project-detail-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.project-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.project-image {
    aspect-ratio: 16/10;
    border-radius: 15px;
    overflow: hidden;
}

.project-summary h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.project-summary p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-details-grid {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.detail-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.detail-value {
    color: var(--text-color);
    font-weight: 600;
}

.project-results-detail h4,
.project-services-detail h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.results-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

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

.service-detail-item {
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
}

.service-detail-item h5 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-detail-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
}

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

.modal-content {
    background: var(--glass-bg);
    border-radius: 25px;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
}

/* Case Study Download Form */
.download-form {
    text-align: center;
}

.download-form p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.case-study-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    text-align: left;
}

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(78, 205, 196, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.case-study-form .btn {
    margin-top: 1rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .featured-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .project-hero {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .industries-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem 0;
        border-top: 1px solid var(--border-color);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 0.5rem 0;
    }

    .portfolio-hero {
        padding: 100px 0 60px;
        min-height: 60vh;
    }

    .portfolio-hero h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .hero-stat {
        width: 100%;
        max-width: 200px;
    }

    .filter-controls {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .featured-header h2 {
        font-size: 2.2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .project-metrics {
        grid-template-columns: 1fr;
    }

    .testimonial-slide {
        padding: 2rem;
    }

    .testimonial-text p {
        font-size: 1.1rem;
    }

    .testimonial-text p::before {
        font-size: 3rem;
        left: -1rem;
        top: -0.5rem;
    }

    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }

    .author-info {
        text-align: center;
    }

    .industries-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-cta h2 {
        font-size: 2.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-header,
    .modal-body {
        padding: 1.5rem;
    }

    .project-modal {
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 3%;
    }

    .portfolio-hero {
        padding: 80px 0 40px;
    }

    .portfolio-filter,
    .featured-case-study,
    .portfolio-grid-section,
    .testimonials-section,
    .industries-section,
    .portfolio-cta {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .featured-header h2 {
        font-size: 1.8rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .industry-card {
        padding: 2rem 1.5rem;
    }

    .industries-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-cta h2 {
        font-size: 1.8rem;
    }

    .filter-controls {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .services-tags {
        justify-content: center;
    }

    .project-tags {
        justify-content: center;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Loading Animation */
.loading {
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

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

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .featured-badge {
        animation: none;
    }
}

/* Focus styles for better accessibility */
.nav-links a:focus,
.btn:focus,
.filter-btn:focus,
.modal-close:focus,
.view-project:focus,
.view-case-study:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .portfolio-card,
    .hero-stat,
    .industry-card,
    .testimonial-slide {
        border-width: 2px;
    }
    
    .btn {
        border: 2px solid;
    }
}

/* Print styles */
@media print {
    .mobile-menu-toggle,
    .filter-controls,
    .sort-controls,
    .testimonial-controls,
    .cta-buttons,
    .modal-overlay {
        display: none;
    }
    
    .portfolio-card,
    .hero-stat,
    .industry-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}