:root {
    --primary: #0d1b2a;
    --secondary: #1b263b;
    --accent: #415a77;
    --light: #e0e1dd;
    --dark: #0d1b2a;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(13, 27, 42, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--dark) !important;
    margin: 0 10px;
    position: relative;
    transition: var(--transition);
}

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

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

.btn-primary {
    background-color: var(--accent);
    border-color: var(--accent);
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: var(--secondary);
    border-color: var(--secondary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(13, 27, 42, 0.2);
}

/* Hero Section */
.work-hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, rgba(224, 225, 221, 0.9) 0%, rgba(224, 225, 221, 0.7) 100%), url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    position: relative;
}

.work-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--primary);
}

.work-hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--secondary);
}

/* Section Styles */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: var(--accent);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
}

/* Portfolio Filters */
.portfolio-filters {
    margin-bottom: 40px;
    text-align: center;
}

.portfolio-filters .btn {
    margin: 5px;
    border-radius: 30px;
    padding: 8px 20px;
    background: transparent;
    color: var(--dark);
    border: 1px solid var(--accent);
    transition: var(--transition);
}

.portfolio-filters .btn:hover,
.portfolio-filters .btn.active {
    background: var(--accent);
    color: white;
}

/* Portfolio Items */
.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(13, 27, 42, 0.1);
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 27, 42, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    padding: 20px;
    text-align: center;
    color: white;
}

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

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

.portfolio-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    transform: translateY(-20px);
    transition: var(--transition);
}

.portfolio-desc {
    transform: translateY(20px);
    transition: var(--transition);
    opacity: 0;
}

.portfolio-item:hover .portfolio-title,
.portfolio-item:hover .portfolio-desc {
    transform: translateY(0);
    opacity: 1;
}

/* Case Study Section */
.case-study {
    background-color: #f8f9fa;
}

.case-study-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(13, 27, 42, 0.1);
    margin-bottom: 30px;
}

.case-study-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.case-study-content {
    padding: 30px;
}

.case-study-stats {
    display: flex;
    justify-content: space-around;
    background: var(--light);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

/* Testimonials */
.testimonial-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(13, 27, 42, 0.08);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-text:before {
    content: " ";
     font-size: 3rem;
    color: var(--accent);
    position: absolute;
    left: 0;
    top: -15px;
    font-family: 'Playfair Display', serif;
}

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

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta .btn-light {
    background: white;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    margin-top: 20px;
    transition: var(--transition);
}

.cta .btn-light:hover {
    background: var(--light);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 30px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    transition: var(--transition);
}

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

/* Modal Styles */
.modal-content {
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: var(--primary);
    color: white;
    border-bottom: none;
}

.modal-body {
    padding: 30px;
}

.modal-project-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.project-details {
    margin-bottom: 20px;
}

.project-detail-item {
    display: flex;
    margin-bottom: 10px;
}

.project-detail-item strong {
    min-width: 120px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .work-hero h1 {
        font-size: 2.5rem;
    }

    section {
        padding: 60px 0;
    }

    .portfolio-filters .btn {
        margin: 3px;
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-in;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}