/* ===== HERO SECTION ===== */
/* Center the entire hero section content */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px; /* Optional: limit the width of the text for better readability */
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2d3748;
}

.hero-tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #718096;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

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

.hero-image img {
    max-width: 500px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

/* Features Section */
.features-section {
    padding: 5rem 2rem;
    background-color: #f7fafc;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.2rem;
    color: #718096;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.feature-card p {
    color: #718096;
    line-height: 1.6;
}

/* ===== PORTFOLIO PREVIEW SECTION ===== */
/* Main portfolio section styling */
.portfolio-preview {
    padding: 5rem 2rem;
    text-align: center; /* Center all text in the section */
}

/* Portfolio grid container - centers the grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 3rem; /* Auto margins center the grid */
    justify-items: center; /* Center items within grid cells */
}

/* Individual portfolio item styling */
.portfolio-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    max-width: 400px; /* Limit maximum width */
    width: 100%; /* Take full width of grid cell */
}

/* Hover effect for portfolio items */
.portfolio-item:hover {
    transform: translateY(-5px);
}

/* Portfolio image styling */
.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* Overlay that slides up on hover */
.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 3rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center content horizontally */
    justify-content: flex-end; /* Align content to bottom */
    text-align: center; /* Center text */
    min-height: 100%; /* Cover entire item */
}

/* Show overlay on hover */
.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
}

/* Portfolio item title */
.portfolio-overlay h4 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    width: 100%; /* Take full width for proper centering */
}

/* Portfolio item description */
.portfolio-overlay p {
    margin-bottom: 1.75rem;
    opacity: 0.9;
    width: 100%; /* Take full width for proper centering */
}

/* Small button style for portfolio items */
.btn-small {
    padding: 0.75rem 1.5rem; /* Slightly larger for better touch */
    font-size: 1.1rem;
    text-decoration: none;
    color: white;
    background: #4299e1; /* Add background color */
    border: 2px solid #4299e1;
    border-radius: 5px;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: 600;
}

/* Hover effect for small button */
.btn-small:hover {
    background: #3182ce;
    border-color: #3182ce;
    transform: translateY(-2px);
}

/* Portfolio call-to-action section */
.portfolio-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Process Section */
.process-section {
    padding: 5rem 2rem;
    background-color: #f7fafc;
}

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

.process-step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #4299e1;
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.process-step h3 {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 1rem;
}

.process-step p {
    color: #718096;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 5rem 2rem;
}

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

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-left: 4px solid #4299e1;
}

.testimonial-content p {
    font-style: italic;
    color: #4a5568;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.testimonial-author strong {
    display: block;
    color: #2d3748;
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    color: #718096;
    font-size: 0.875rem;
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content > p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.cta-note {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background: #4299e1;
    color: white;
}

.btn-primary:hover {
    background: #3182ce;
}

.btn-secondary {
    background: transparent;
    color: #4299e1;
    border-color: #4299e1;
}

.btn-secondary:hover {
    background: #4299e1;
    color: white;
}

.btn-outline {
    background: transparent;
    color: #4299e1;
    border-color: #4299e1;
}

.btn-outline:hover {
    background: #4299e1;
    color: white;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .features-container,
    .portfolio-grid,
    .process-steps,
    .testimonials-container {
        grid-template-columns: 1fr;
    }

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

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Project Highlights Section */
.highlights-section {
    padding: 4rem 0;
    background: #f8f9fa;
}

.highlights-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem auto; /* Centers the container */
    max-width: 1200px; /* Limits the maximum width */
    padding: 0 20px; /* Adds internal padding */
}

.highlight-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.highlight-badge {
    background: #007acc;
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.highlight-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.highlight-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #007acc;
}

.stat-label {
    font-size: 0.8rem;
    color: #6c757d;
}

.highlight-link {
    margin-top: 1.5rem;
    text-align: center;
}

.highlights-cta {
    text-align: center;
    font-size: 20px;
    font-size: 20px;
    margin-top: 5rem;
    margin-bottom: 2rem;
    padding-top: 5rem;
    border-top: 1px solid #dee2e6;
}

.highlights-cta p {
    margin-bottom: 1.5rem; /* Adds space below the paragraph */
}
