/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation Menu */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background-color: #1a1a1a;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo-img {
    height: 70px;
    transition: transform 0.3s ease;
}

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

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

.nav-links li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled .nav-links li a {
    color: #ffffff;
}

.nav-links li a:hover {
    color: #007bff;
    transform: scale(1.1);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background-color: #ffffff;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, #007bff, #00ddeb);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: #ffffff;
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5);
}

/* About Section */
.about {
    padding: 100px 50px;
    background-color: #f9f9f9;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.about-content {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-img {
    flex: 1;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

/* Services Section */
.services {
    padding: 100px 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 60px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(360deg);
}

/* Portfolio Section */
.portfolio {
    padding: 100px 50px;
    background-color: #f9f9f9;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.5s ease;
}

.portfolio-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

/* Testimonials Section */
.testimonials {
    padding: 100px 50px;
}

.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial {
    text-align: center;
    padding: 20px;
    display: none;
    transform: translateX(100%);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.testimonial.active {
    display: block;
    transform: translateX(0);
    opacity: 1;
}

.testimonial-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 20px;
    transition: transform 0.5s ease;
}

.testimonial.active .testimonial-img {
    transform: scale(1.1);
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial h4 {
    font-size: 18px;
    color: #007bff;
}

.slider-controls {
    text-align: center;
    margin-top: 20px;
}

.slider-controls button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin: 0 10px;
    color: #007bff;
    transition: transform 0.3s ease;
}

.slider-controls button:hover {
    transform: scale(1.2);
}

/* Contact Section */
.contact {
    padding: 100px 50px;
    background-color: #f9f9f9;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
    outline: none;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .cta-button {
    align-self: center;
    animation: pulse 2s infinite;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 30px 50px;
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    color: #ffffff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 16px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
    transform: translateY(-3px);
}

/* Animation Keyframes */
@keyframes fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slide-left {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-right {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes reveal-up {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes zoom-in {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 123, 255, 0.5); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 123, 255, 0.5); }
}

/* Animation Classes */
[data-animate="fade-in"] {
    opacity: 0;
    animation: fade-in 0.8s ease-out forwards;
}

[data-animate="slide-left"] {
    opacity: 0;
    animation: slide-left 0.8s ease-out forwards;
}

[data-animate="slide-right"] {
    opacity: 0;
    animation: slide-right 0.8s ease-out forwards;
}

[data-animate="reveal-up"] {
    opacity: 0;
    animation: reveal-up 0.8s ease-out forwards;
}

[data-animate="zoom-in"] {
    opacity: 0;
    animation: zoom-in 0.8s ease-out forwards;
}

[data-animate][data-delay] {
    animation-delay: var(--delay);
}

[data-animate] {
    --delay: 0s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: inherit;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
    }

    .about-content {
        flex-direction: column;
    }

    .about-img {
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 16px;
    }
}