/* Reset and base styles */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap');
/* Metropolis font from https://github.com/dw5/Metropolis/tree/master/Fonts */

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis';
    src: url('fonts/Metropolis-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

html {
    scroll-behavior: smooth;
}

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

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

p {
    margin-bottom: 1.2rem;
}

/* Update heading styles */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Metropolis', sans-serif;
    text-transform: capitalize;
}

/* Navigation */
header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
    font-family: 'Metropolis', sans-serif;
    text-transform: uppercase;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    text-decoration: none;
    color: #2c3e50;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
    font-family: 'Metropolis', sans-serif;
    position: relative;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #4F69E8;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Hero Section */
#hero {
    height: 100vh;
    background: url('hero-bg3.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 80px 1rem 0;
    position: relative;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0) 100%
    );
    z-index: 1;  /* Places the overlay above the background but below the content */
}

.hero-content {
    position: relative;
    z-index: 2;  /* Ensures content stays above the gradient overlay */
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

/* Services Section */
#services {
    padding: 5rem 1rem;
    background: #f9f9f9;
}

#services h2 {
    font-size: 2.5rem;  /* Increased from default */
    margin-bottom: 2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* Creates 2 columns */
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.service-card i {
    background: linear-gradient(45deg, #2A3B8F, #AA2E81);  /* Adjust these hex colors to match your hero-bg.png */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;  /* Increased icon size */
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;  /* Increased from default */
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 1.1rem;  /* Increased from default */
    line-height: 1.6;
}

/* About Section */
#about {
    padding: 5rem 3rem;
    background: white;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: #3498db;
}

.text-left {
    text-align: left;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start; /* This ensures top alignment */
}

.about-image {
    display: flex;
    justify-content: center;
    margin-top: 0.8em;
}

.image-wrapper {
    display: flex;
    justify-content: center;
    aspect-ratio: 1 / 1; /* This ensures a perfect circle */
}

.round-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Contact Section */
#contact {
    padding-top: 2rem;
    background: var(--dark-gradient);
    color: white;
}

.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.contact-content h2 {
    font-family: 'Metropolis', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Consolidate placeholder styles */
::placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder {
    font-family: 'Lora', serif;
    opacity: 0.7;
}

/* Remove duplicate textarea/input styles and consolidate */
input, 
textarea {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    font-family: 'Lora', serif;
    width: 100%;  /* Added to ensure full width */
}

textarea {
    height: 150px;
}

/* Move placeholder color here since it's related */
textarea::placeholder,
input::placeholder {
    color: #757575;
}

/* Footer */
footer {
    background: var(--dark-gradient);
    border-top: 1px solid rgba(151, 71, 255, 0.5);  /* Made purple semi-transparent */
    padding-top: 1.5rem;
    font-family: 'Metropolis', sans-serif;
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

footer a {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
    }

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

    .services-grid {
        grid-template-columns: 1fr;  /* Single column on mobile */
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        width: 100%;
        margin: 0 auto;
    }
    
    .image-wrapper {
        width: 100%;
        max-width: 300px;
    }
}

.submit-button {
    font-family: 'Metropolis', sans-serif;
    background-color: #3F59D8;
    color: white;
    padding: 1.2rem 2rem 1rem 2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 700;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.submit-button:hover {
    background-color: #4F69E8;
}

a.submit-button:hover {
    color: white;
    text-decoration: none;
}

.text-left h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 1rem;
}

.text-left p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.text-left p:last-child {
    margin-bottom: 0;
}

.footer-content p a {
    color: white;
    text-decoration: underline;
}

.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-family: 'Lora', serif;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-form input:invalid,
.contact-form textarea:invalid {
    border-color: #9747FF;
    border-width: 2px;
    transition: all 0.3s ease;
}

.contact-form input:focus:invalid,
.contact-form textarea:focus:invalid {
    box-shadow: 0 0 0 2px rgba(151, 71, 255, 0.15);
}

.error-message {
    font-family: 'Metropolis', sans-serif;
    color: #9747FF;
    font-size: 1rem;
    position: relative;
    left: 0;
    top: 0.5rem;
    bottom: -1.25rem;
    transition: all 0.3s ease;
}

.button {
    background-color: #1E31A0;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #162578;  /* Darker shade for hover effect */
}

.gradient-icon {
    background: linear-gradient(45deg, #1E31A0, #FF8C42);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

#portfolio {
    background: var(--dark-gradient);
}

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

.portfolio-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.portfolio-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #2A3B8F 0%, #AA2E81 100%);  /* Updated to match your brand colors */
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.with-margin img {
    margin: 0 0.5rem;
    width: calc(100% - 1rem);
    object-fit: contain;
}

.portfolio-card h3 {
    padding: 1rem 1rem 0.5rem;
    margin: 0;
}

.portfolio-card p {
    padding: 0 1rem 1rem;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.feature-quote {
    position: relative;
    height: 600px;
    background-image: url('feature-bg.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin: 4rem 0; */
}

.feature-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.parallax-content {
    position: relative;
    max-width: 800px;
    padding: 2rem;
    text-align: center;
}

.feature-quote blockquote,
.feature-quote p,
.feature-quote blockquote footer,
.feature-quote .attribution {
    background: none !important;  /* Force remove any background */
    padding: 0;
    box-shadow: none;  /* Remove any potential box-shadow */
    background-color: transparent !important;  /* Extra specificity */
}

.feature-quote blockquote {
    color: white;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.4;
    margin: 0;
}

.feature-quote blockquote footer,
.feature-quote .attribution {
    font-size: 1rem;  /* Made slightly smaller */
    font-style: italic;
    margin-top: 1rem;
    border: none;
}

#testimonials {
    padding: 4rem 0;
    background: #f8f9fa;
    overflow: hidden;
}

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

.testimonial-container h2 {
    font-family: 'Metropolis', sans-serif;
    font-size: 2.5rem;
    text-align: center;
}

.testimonial-track {
    display: flex;
    animation: scroll 45s linear infinite;
}

.testimonial-card {
    flex: 0 0 100%;
    padding: 1.5rem 3rem 3rem 3rem;
    box-sizing: border-box;
    text-align: center;
}

.testimonial-card p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
    font-style: italic;
}

.testimonial-card cite {
    font-size: 1rem;
    color: #666;
    font-style: normal;
    display: block;
    margin-top: 1rem;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    22% {
        transform: translateX(0);
        opacity: 1;
    }
    25% {
        transform: translateX(-100%);
        opacity: 1;
    }
    47% {
        transform: translateX(-100%);
        opacity: 1;
    }
    50% {
        transform: translateX(-200%);
        opacity: 1;
    }
    72% {
        transform: translateX(-200%);
        opacity: 1;
    }
    75% {
        transform: translateX(-300%);
        opacity: 1;
    }
    95% {
        transform: translateX(-300%);
        opacity: 1;
    }
    96% {
        transform: translateX(-300%);
        opacity: 0;
    }
    98% {
        transform: translateX(0);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Pause animation on hover */
.testimonial-container:hover .testimonial-track {
    animation-play-state: paused;
}

@media screen and (min-width: 768px) {
    .portfolio-section {
        background-color: #01071C;
        color: white;
        padding: 6rem 0;  /* Same padding for larger screens */
    }

    .portfolio-section h2,
    .portfolio-section h3,
    .portfolio-section p {
        color: white;  /* Ensuring all text elements are white */
    }

    .portfolio-section a {
        color: white;  /* Making links white */
    }

    .portfolio-section a:hover {
        color: #ccc;  /* Slight grey on hover */
    }
}

/* Consolidate portfolio section styles */
.portfolio-section {
    background: var(--dark-gradient);
    color: white;
    padding: 6rem 0;
}

/* Remove duplicate media query for portfolio-section */
.portfolio-section h2,
.portfolio-section h3,
.portfolio-section p,
.portfolio-section a {
    color: white;
}

.portfolio-section a:hover {
    color: #ccc;
}

/* Move --dark-gradient to top of file with other root variables */
:root {
    --dark-gradient: linear-gradient(45deg, #01071C, #100730);
}

/* Remove redundant classes */
/* Remove .text-dark and .dark-bg as they appear unused */
/* Remove .bg-dark as it's redundant with --dark-gradient usage */

.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    width: 100%;  /* Added to ensure full width */
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-row .form-group:last-child {
        margin-bottom: 0;
    }
}