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

body, html {
    font-family: 'Poppins', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    scroll-behavior: smooth;
}

/* Header */
.header {
    background-color: transparent;
    position: fixed;
    width: 100%;
    padding: 20px 0;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header .logo {
    color: #fff;
    font-size: 30px;
    font-weight: bold;
}

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

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #ff6f91;
}

/* Hero Section */
/* General Styles (unchanged) */

/* Hero Section */
/* General Styles (unchanged) */

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(45deg, #ff6f91, #ff9671, #ffc75f, #f9f871);
    background-size: 400% 400%;
    animation: gradientMove 10s ease infinite;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
}

.hero-title {
    font-size: 60px;
    font-weight: bold;
    margin-bottom: 20px;
}

.hero-title span {
    color: #fff176;
}

.hero-text {
    font-size: 22px;
    margin-bottom: 30px;
}

.btn {
    background-color: #ff6f91;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    text-transform: uppercase;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #ff9671;
}

/* 3D Cube Styling */
.cube-container {
    perspective: 1000px;
    width: 200px;
    height: 200px;
    margin-top: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube {
    position: relative;
    width: 100px;
    height: 100px;
    transform-style: preserve-3d;
    transform: rotateX(30deg) rotateY(30deg);
    animation: rotateCube 10s infinite linear;
}

.cube .face {
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
    color: #fff;
}

.cube .front { transform: rotateY(0deg) translateZ(50px); }
.cube .back { transform: rotateY(180deg) translateZ(50px); }
.cube .left { transform: rotateY(-90deg) translateZ(50px); }
.cube .right { transform: rotateY(90deg) translateZ(50px); }
.cube .top { transform: rotateX(90deg) translateZ(50px); }
.cube .bottom { transform: rotateX(-90deg) translateZ(50px); }

@keyframes rotateCube {
    0% {
        transform: rotateX(30deg) rotateY(30deg);
    }
    100% {
        transform: rotateX(390deg) rotateY(390deg);
    }
}

/* Features Section, Portfolio Teaser, and CTA styling (unchanged) */

/* Features Section */
.features {
    background-color: #fafafa;
    padding: 80px 0;
    text-align: center;
}

.features h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.feature-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feature-item {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Portfolio Teaser Section */
.portfolio-teaser {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.portfolio-teaser h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.portfolio-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

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

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

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

.portfolio-item h3 {
    font-size: 24px;
    font-weight: bold;
}

/* Call to Action */
.cta {
    padding: 80px 0;
    background-color: #ff6f91;
    color: white;
    text-align: center;
}

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

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #ff6f91;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ============================== */
/* New Styles for About, Portfolio, and Contact Pages */
/* ============================== */

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: #fff;
    text-align: center;
}

.about-section h1 {
    font-size: 42px;
    margin-bottom: 40px;
}

.about-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 40px;
}

.about-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.about-item {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 30%;
    transition: transform 0.3s ease;
}

.about-item:hover {
    transform: translateY(-10px);
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: #fafafa;
    text-align: center;
}

.portfolio-section h1 {
    font-size: 42px;
    margin-bottom: 40px;
}

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

/* Contact Section */
.contact-section {
    padding: 100px 0; /* Increased padding for better spacing */
    background-color: #fff;
    text-align: center;
}

.contact-section h1 {
    font-size: 42px;
    color: #ff6f91;
    margin-bottom: 40px;
}

.contact-section p {
    font-size: 18px;
    max-width: 800px; /* Control width for better text flow */
    margin: 0 auto 40px;
    line-height: 1.6;
}

.contact-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* Contact Form */
.contact-section form {
    background-color: white;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    max-width: 600px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-section form:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.form-group label {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #ff6f91;
    outline: none;
    background-color: #fff; /* Highlight the field on focus */
}

/* Button */
.btn {
    background-color: #ff6f91;
    color: white;
    padding: 12px 30px;
    text-transform: uppercase;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background-color: #ff9671;
    transform: translateY(-5px);
}

/* Google Map */
.map {
    max-width: 600px;
    width: 100%;
    margin-top: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.map iframe {
    width: 100%;
    height: 450px;
    border: none;
    border-radius: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-content {
        flex-direction: column;
        align-items: center;
    }

    form, .map {
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea {
        font-size: 14px;
    }
}
/* General Styles (unchanged) */

/* Portfolio Section */
.portfolio-section {
    padding: 100px 0; /* Increased padding for better spacing */
    background-color: #f4f4f4; /* Light background for contrast */
    text-align: center;
}

.portfolio-section h1 {
    font-size: 42px;
    color: #ff6f91; /* Use the main theme color for headings */
    margin-bottom: 40px;
}

.portfolio-section p {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #555;
    line-height: 1.6;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    justify-items: center; /* Center the portfolio items */
}

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

.portfolio-item img {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

.portfolio-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Overlay effect */
.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

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

.portfolio-item h3 {
    font-size: 24px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
}
