@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    --primary-color: #2c3e50;
    --secondary-color: #e74c3c;
    --accent-color: #3498db;
    --light-color: #f9f9f9;
    --dark-color: #333;
    --text-color: #444;
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-color);
}

h1, h2, h3, h4 {
    font-family: var(--heading-font);
    line-height: 1.3;
    color: var(--dark-color);
}

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

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

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    transition: var(--transition);
    cursor: pointer;
}

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

.primary-btn:hover {
    background-color: var(--dark-color);
    transform: translateY(-3px);
}

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

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Navbar Styles */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
}

.logo {
    font-family: var(--heading-font);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--secondary-color);
}

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

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

.hamburger span {
    width: 30px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(255,255,255,0.7)), 
                url('https://i.pinimg.com/originals/a2/9d/cb/a29dcb840b9ee57ccb92b0acd0e6949c.jpg   ') no-repeat center/cover;
}

.hero-content {
    flex: 1;
    padding-right: 50px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Section Styles */
section {
    padding: 100px 5%;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    position: relative;
    display: inline-block;
    margin-bottom: 15px;
}

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

.section-header p {
    color: var(--text-color);
    font-size: 18px;
}

/* Portfolio Section */
.portfolio-section {
    background-color: white;
}

.portfolio-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 16px;
    transition: var(--transition);
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-color);
    color: white;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
}

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

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    color: white;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay h3 {
    color: white;
    margin-bottom: 10px;
}

/* Services Section */
.services-section {
    background-color: #f5f5f5;
}

.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Updated styling for anchor tags in services-container */
.services-container a {
    display: block;
    text-decoration: none;
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
}

.services-container a:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    color: var(--secondary-color);
}

.services-container a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(231, 76, 60, 0.1), transparent);
    transition: var(--transition);
    z-index: 1;
}

.services-container a:hover::before {
    height: 100%;
}

.services-container a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.services-container a:hover::after {
    width: 80%;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

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

.icon {
    font-size: 40px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

/* Testimonials Section */
.testimonials-section {
    background-color: white;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding: 20px 0;
}

.testimonial {
    min-width: 100%;
    scroll-snap-align: start;
    background-color: #f5f5f5;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    text-align: center;
}

/* New styling for anchor tags in testimonial slider */
.testimonial-slider a {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 500;
    position: relative;
    padding: 2px 4px;
    transition: var(--transition);
    text-decoration: none;
    border-bottom: 1px dashed var(--secondary-color);
}

.testimonial-slider a:hover {
    color: var(--secondary-color);
    background-color: rgba(231, 76, 60, 0.05);
    border-bottom: 1px solid var(--secondary-color);
}

.testimonial-slider a::after {
    content: '→';
    position: absolute;
    opacity: 0;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    transition: var(--transition);
}

.testimonial-slider a:hover::after {
    opacity: 1;
    right: -20px;
}

.quote {
    font-size: 18px;
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
}

.quote:before, .quote:after {
    content: '"';
    font-size: 50px;
    color: var(--secondary-color);
    opacity: 0.2;
    position: absolute;
}

.quote:before {
    top: -20px;
    left: -15px;
}

.quote:after {
    bottom: -40px;
    right: -15px;
}

.client {
    font-weight: 500;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--primary-color);
    color: white;
    padding: 80px 5% 40px;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.contact-info h2, .contact-form h2 {
    color: white;
    margin-bottom: 30px;
    font-size: 28px;
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.info-item i {
    font-size: 24px;
    margin-right: 15px;
    color: var(--secondary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: var(--body-font);
}

.form-group input::placeholder, .form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

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

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

.social-links i {
    font-size: 20px;
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: 50px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        padding: 20px 0;
        gap: 15px;
        text-align: center;
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    
    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    section {
        padding: 70px 5%;
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
    
    .section-header h2 {
        font-size: 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .services-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        display: block;
        width: 100%;
    }
    
    .portfolio-filter {
        flex-wrap: wrap;
    }
    
    .services-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}