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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(20, 43, 68, 0.78) 0%, rgba(11, 30, 51, 0.78) 100%),
        url('../images/background-banner.png') center/cover no-repeat fixed;
}

/* About page specific background */
body.about-page {
    background:
        linear-gradient(135deg, rgba(20, 43, 68, 0.78) 0%, rgba(11, 30, 51, 0.78) 100%),
        url('../images/flume.png') center/cover no-repeat fixed;
}

/* Services page specific background */
body.services-page {
    background:
        linear-gradient(135deg, rgba(20, 43, 68, 0.78) 0%, rgba(11, 30, 51, 0.78) 100%),
        url('../images/global-reach.png') center/cover no-repeat fixed;
}

/* Portfolio page specific background */
body.portfolio-page {
    background:
        linear-gradient(135deg, rgba(20, 43, 68, 0.78) 0%, rgba(11, 30, 51, 0.78) 100%),
        url('../images/diffeq.png') center/cover no-repeat fixed;
}

/* Team page specific background */
body.team-page {
    background:
        linear-gradient(135deg, rgba(20, 43, 68, 0.78) 0%, rgba(11, 30, 51, 0.78) 100%),
        url('../images/team.png') center/cover no-repeat fixed;
}

/* Contact page specific background */
body.contact-page {
    background:
        linear-gradient(135deg, rgba(20, 43, 68, 0.78) 0%, rgba(11, 30, 51, 0.78) 100%),
        url('../images/contact.png') center/cover no-repeat fixed;
}

/* Header and Navigation */
header {
    background-color: rgba(11, 30, 51, 0.95);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

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

.logo img {
    height: 40px;
    width: auto;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #FF8C32;
    transition: color 0.3s ease;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 4rem 0;
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    color: white;
    margin: 0 -2rem 3rem -2rem;
    border-bottom: 3px solid #00B1A8;
    position: relative;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: #FF8C32;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #FF8C32;
}

.cta-button:hover {
    background-color: #00B1A8;
    border-color: #00B1A8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 177, 168, 0.3);
}

/* Page hero */
.page-hero {
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    color: white;
    margin: 0 -2rem 3rem -2rem;
    border-bottom: 3px solid #FF8C32;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-hero p {
    font-size: 1.1rem;
}

/* Services */
.services-overview {
    padding: 3rem 0;
}

.services-overview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #ffffff;
}

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

.service-item {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 2px solid #00B1A8;
    transition: all 0.3s ease;
}

.service-item:hover {
    border-color: #FF8C32;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 140, 50, 0.2);
}

.service-item h3 {
    color: #00B1A8;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.service-item:hover h3 {
    color: #FF8C32;
}

.service-item p {
    color: #ffffff;
}

/* Services detailed page */
.services-detailed {
    display: grid;
    gap: 2rem;
}

.service {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #00B1A8;
    transition: all 0.3s ease;
    margin-bottom: 2rem;
}

.service:hover {
    border-color: #FF8C32;
    box-shadow: 0 8px 16px rgba(255, 140, 50, 0.2);
}

.service h2 {
    color: #FF8C32;
    margin-bottom: 1rem;
}

.service ul {
    list-style-type: none;
    padding-left: 0;
}

.service li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #ecf0f1;
}

.service li:before {
    content: "✓ ";
    color: #00B1A8;
    font-weight: bold;
}

.service li {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.1);
}

/* Company overview and team */
.company-overview {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    border: 2px solid #00B1A8;
}

.company-overview h2 {
    color: #FF8C32;
}

.company-overview p {
    color: #ffffff;
}

.team {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #00B1A8;
}

.team h2 {
    color: #FF8C32;
}

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

.team-member {
    text-align: center;
    padding: 1rem;
}

.team-member h3 {
    color: #00B1A8;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: #ffffff;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.project {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 2px solid #00B1A8;
    transition: all 0.3s ease;
}

.project:hover {
    border-color: #FF8C32;
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(255, 140, 50, 0.2);
}

.project img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ecf0f1;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    color: #FF8C32;
    margin-bottom: 1rem;
}

.project-info p {
    color: #ffffff;
}

.tech-stack {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tech-stack span,
.tech-stack a {
    background-color: #00B1A8;
    color: #0B1E33;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.tech-stack span:hover,
.tech-stack a:hover {
    background-color: #FF8C32;
    color: white;
    transform: scale(1.05);
}

/* Contact */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 2rem 0;
}

.contact-info {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #00B1A8;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-item h3 {
    color: #FF8C32;
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: #ffffff;
}

.contact-form {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #00B1A8;
}

.contact-form h2 {
    color: #FF8C32;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #00B1A8;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #00B1A8;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #142B44;
    color: #ffffff;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FF8C32;
    box-shadow: 0 0 5px rgba(255, 140, 50, 0.3);
}

.submit-button {
    background-color: #FF8C32;
    color: white;
    padding: 0.75rem 2rem;
    border: 2px solid #FF8C32;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background-color: #00B1A8;
    border-color: #00B1A8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 177, 168, 0.3);
}

/* Team Profiles */
.team-profiles {
    padding: 2rem 0;
}

.team-section-header {
    text-align: center;
    margin: 3rem 0 2rem 0;
}

.team-section-header h2 {
    color: #FF8C32;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.team-section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 3px;
    background: linear-gradient(90deg, #00B1A8 0%, #FF8C32 100%);
    border-radius: 2px;
}

.team-member-profile {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    margin-bottom: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    border: 2px solid #00B1A8;
    overflow: hidden;
    transition: all 0.3s ease;
}

.team-member-profile:hover {
    border-color: #FF8C32;
    box-shadow: 0 8px 16px rgba(255, 140, 50, 0.2);
}

.member-info {
    padding: 2rem;
}

.member-info h2 {
    color: #FF8C32;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.member-info h3 {
    color: #00B1A8;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.member-bio {
    margin-bottom: 2rem;
}

.member-bio p {
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.member-bio strong {
    color: #00B1A8;
}

.member-actions {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

.resume-link {
    display: inline-block;
    background-color: #FF8C32;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid #FF8C32;
}

.resume-link:hover {
    background-color: #00B1A8;
    border-color: #00B1A8;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 177, 168, 0.3);
}

/* Footer */
footer {
    background: linear-gradient(135deg, rgba(11, 30, 51, 0.5) 0%, rgba(20, 43, 68, 0.5) 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 3px solid #00B1A8;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
    }

    .services-grid,
    .team-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }
}