/* ===================================
   Grinalds Solutions - Main Stylesheet
   =================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-size: 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #000000;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    font-weight: 600;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: #333333;
}

a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #666666;
}

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

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Divider */
.section-divider {
    width: 100%;
    height: 1px;
    background-color: #000000;
    margin: 0;
}

/* Navigation */
.navbar {
    background-color: #ffffff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: -0.02em;
}

.logo:hover .logo-text {
    color: #333333;
}

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

.nav-menu a {
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: #4a4a4a;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #000000;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
}

.hero-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    flex: 1;
    text-align: left;
}

.hero-text h1 {
    text-align: left;
    margin-bottom: 1.5rem;
}

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

.hero-image-container {
    flex: 1;
    max-width: 500px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.hero h1 {
    margin-bottom: 1.5rem;
    font-size: 3.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #333333;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Capabilities Section */
.capabilities-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.capability-card {
    background: #fafafa;
    padding: 2.5rem;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.capability-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border-color: #000000;
}

.capability-icon {
    width: 64px;
    height: 64px;
    background: #000000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.capability-card:hover .capability-icon {
    background: #333333;
}

.capability-icon svg {
    color: #ffffff;
}

.capability-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.capability-description {
    font-size: 1rem;
    color: #666666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.capability-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 0.95rem;
    color: #333333;
}

.capability-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: #000000;
    font-size: 1.2rem;
}

/* Team Section */
.team-section {
    background-color: #fafafa;
}

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

.team-member {
    text-align: center;
}

.team-photo {
    width: 200px;
    height: 200px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.team-member:hover .team-photo img {
    filter: grayscale(0%);
}

.team-name {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.team-role {
    font-size: 1rem;
    color: #666666;
    font-weight: 400;
}

/* Projects Section */
.projects-section {
    background-color: #ffffff;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.015) 1px, transparent 1px);
    background-size: 
        20px 20px,
        20px 20px,
        100px 100px,
        100px 100px;
    background-position: 
        -1px -1px,
        -1px -1px,
        -1px -1px,
        -1px -1px;
    pointer-events: none;
    z-index: 1;
}

.projects-section .container {
    position: relative;
    z-index: 2;
}

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

.project-card {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: #000000;
    font-weight: 600;
}

.project-client {
    font-size: 0.95rem;
    color: #666666;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555555;
}

/* Partners Section */
.partners-section {
    background-color: #fafafa;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    align-items: center;
    margin-top: 3rem;
}

.partner-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 8px;
    min-height: 120px;
}

.partner-logo img {
    max-width: 160px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: transform 0.3s ease;
}

.partner-logo:hover img {
    transform: scale(1.05);
}

/* Testimonials Section */
.testimonials-section {
    background-color: #ffffff;
}

.testimonial {
    max-width: 900px;
    margin: 3rem auto;
    padding: 2.5rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #000000;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.testimonial-photo {
    flex-shrink: 0;
}

.testimonial-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    flex: 1;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    text-align: right;
}

.author-name {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 0.95rem;
    color: #666666;
}

/* About Section */
.about-section {
    background-color: #fafafa;
}

.about-flex {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-top: 3rem;
}

.about-text {
    flex: 1.5;
    text-align: left;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.about-text p {
    font-size: 1.25rem;
    line-height: 1.9;
    color: #333333;
    text-align: left;
}

.about-image-container {
    flex: 1;
    max-width: 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.about-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Footer */
.footer {
    background-color: #000000;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.footer-text {
    color: #ffffff;
    font-size: 0.95rem;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile menu */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background-color: #ffffff;
        padding: 1rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        display: none;
        gap: 0.5rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }

    /* Hero */
    .hero {
        padding: 60px 0;
    }

    .hero-content {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
        text-align: center;
    }

    .hero-text .hero-description {
        font-size: 1.1rem;
        text-align: center;
    }

    .hero-image-container {
        max-width: 100%;
    }

    /* Sections */
    section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Team */
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 2rem;
    }

    .team-photo {
        width: 150px;
        height: 150px;
    }

    /* Capabilities */
    .capabilities-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .capability-card {
        padding: 2rem;
    }

    /* Projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Partners */
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* Testimonial */
    .testimonial {
        padding: 1.5rem;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-photo img {
        width: 100px;
        height: 100px;
    }

    .testimonial-author {
        text-align: center;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* About */
    .about-flex {
        flex-direction: column;
        gap: 2rem;
    }

    .about-text {
        text-align: center;
    }

    .about-text h3 {
        text-align: center;
        font-size: 1.75rem;
    }

    .about-text p {
        text-align: center;
        font-size: 1.1rem;
    }

    .about-image-container {
        max-width: 100%;
    }

    /* About */
    .about-flex {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

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

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

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}
