/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2C5F7C;
    --secondary-color: #3A8BA8;
    --accent-color: #4CAF93;
    --text-dark: #333333;
    --text-light: #666666;
    --background-light: #F8F9FA;
    --white: #FFFFFF;
    --border-color: #E0E0E0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    color: var(--primary-color);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-light);
}

img {
    max-width: 100%;
    height: auto;
}

/* Header and Navigation */
header {
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

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

.logo {
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo-text span {
    color: var(--accent-color);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

/* Main Content Container */
main {
    margin-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

section {
    margin-bottom: 4rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 8rem 2rem 6rem;
    margin-top: -70px;
    padding-top: 140px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    color: var(--white);
}

.hero .tagline {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero .subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    border: 2px solid var(--accent-color);
}

.cta-button:hover {
    background: transparent;
    border-color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    text-align: center;
    padding: 6rem 2rem 4rem;
    margin-top: -70px;
    padding-top: 120px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--white);
}

.page-header p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.95);
}

/* About Section */
.about-intro {
    background: var(--background-light);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* About with Image Layout */
.about-with-image {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.about-text {
    padding: 1rem 0;
}

/* Mission Vision Values */
.mvv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.mvv-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-color);
}

.mvv-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Services Section */
.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 3px solid var(--accent-color);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Value Proposition Section */
.value-section {
    background: var(--background-light);
}

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

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.value-icon {
    background: var(--accent-color);
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.value-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.value-content p {
    font-size: 0.95rem;
}

/* Team Section */
.team-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

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

.team-member {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.team-member-image {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 3rem;
    font-weight: 700;
    overflow: hidden;
}

.team-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.team-member-content {
    padding: 1.5rem;
}

.team-member h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.team-member p {
    font-size: 0.9rem;
    text-align: left;
}

/* Collaboration Section */
.collaboration-content {
    max-width: 900px;
    margin: 0 auto;
}

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

.feature-item {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h3 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.contact-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-form {
    background: var(--background-light);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.submit-button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.submit-button:disabled:hover {
    background: var(--text-light);
    transform: none;
    box-shadow: none;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
}

footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */

/* Tablets and Small Laptops (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        padding: 3.5rem 2rem;
    }

    .services-grid,
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .value-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets (768px and below) */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0.875rem 1.5rem;
    }

    .logo img {
        height: 35px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 62px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 62px);
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transition: left 0.3s ease;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        z-index: 999;
    }

    .nav-links.active {
        left: 0;
    }

    /* Hero Section */
    .hero {
        padding: 7rem 1.5rem 5rem;
        padding-top: 110px;
    }

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

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

    .hero .subtitle {
        font-size: 1rem;
    }

    /* Page Header */
    .page-header {
        padding: 5.5rem 1.5rem 3.5rem;
        padding-top: 100px;
    }

    .page-header h1 {
        font-size: 2rem;
    }

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

    /* Typography */
    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    /* Container */
    .container {
        padding: 3rem 1.5rem;
    }

    /* Grids */
    .services-grid,
    .team-grid,
    .value-grid,
    .mvv-grid,
    .collaboration-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* About with Image */
    .about-with-image {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        height: 300px;
        order: -1;
    }

    /* Team Member Images */
    .team-member-image {
        height: 320px;
    }

    /* Buttons */
    .cta-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        display: inline-block;
        width: auto;
    }

    /* Service Cards */
    .service-card,
    .mvv-card,
    .feature-item {
        padding: 1.5rem;
    }

    /* Value Items */
    .value-item {
        flex-direction: row;
        gap: 1rem;
    }

    .value-icon {
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

/* Mobile Phones (480px and below) */
@media (max-width: 480px) {
    /* Navigation */
    nav {
        padding: 0.75rem 1rem;
    }

    .logo img {
        height: 30px;
    }

    .nav-links {
        top: 58px;
        height: calc(100vh - 58px);
        padding: 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 6rem 1rem 4rem;
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 1.5rem;
        line-height: 1.2;
    }

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

    .hero .subtitle {
        font-size: 0.95rem;
    }

    /* Page Header */
    .page-header {
        padding: 5rem 1rem 3rem;
        padding-top: 90px;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .page-header p {
        font-size: 1rem;
    }

    /* Typography */
    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    p {
        font-size: 0.95rem;
    }

    /* Container */
    .container {
        padding: 2.5rem 1rem;
    }

    /* Buttons */
    .cta-button {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }

    .submit-button {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    /* About Images */
    .about-image {
        height: 250px;
    }

    /* Team Member Images */
    .team-member-image {
        height: 280px;
    }

    .team-member-content {
        padding: 1.25rem;
    }

    .team-member .role {
        font-size: 0.85rem;
    }

    .team-member p {
        font-size: 0.9rem;
    }

    /* Service Cards */
    .service-card,
    .mvv-card,
    .feature-item {
        padding: 1.25rem;
    }

    .service-card h3,
    .mvv-card h3,
    .feature-item h4 {
        font-size: 1.1rem;
    }

    /* Value Items */
    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    /* Contact Form */
    .contact-info,
    .contact-form {
        padding: 1.25rem;
    }

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

    /* Collaboration Features */
    .collaboration-features {
        gap: 1.25rem;
    }
}

/* Very Small Phones (360px and below) */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 1.35rem;
    }

    .page-header h1 {
        font-size: 1.35rem;
    }

    h2 {
        font-size: 1.35rem;
    }

    .container {
        padding: 2rem 0.875rem;
    }

    .logo img {
        height: 28px;
    }

    .team-member-image {
        height: 250px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets for touch devices */
    .nav-links a {
        padding: 0.75rem 0;
        display: block;
    }

    .menu-toggle {
        padding: 0.5rem;
        min-width: 44px;
        min-height: 44px;
    }

    /* Better button touch targets */
    .cta-button,
    .submit-button {
        min-height: 48px;
    }

    /* Prevent text selection on interactive elements */
    .cta-button,
    .submit-button,
    .menu-toggle,
    .nav-links a {
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        -webkit-touch-callout: none;
        user-select: none;
    }
}

/* Print Styles */
@media print {
    header {
        position: relative;
        box-shadow: none;
    }

    .menu-toggle,
    .cta-button {
        display: none;
    }

    .hero,
    .page-header {
        padding: 2rem 0;
        margin-top: 0;
    }

    .container {
        padding: 1.5rem 0;
    }
}
