/* Import Sinhala Font Support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Sinhala:wght@400;600;700&display=swap');

/* CSS Reset and Variables */
:root {
    --bg-color: #ffffff;
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --hover-color: #4f46e5;
    --max-width: 800px;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
}

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

/* Base Styles */
html {
    font-size: 16px;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, "Noto Sans Sinhala", sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md) 4rem;
    flex: 1;
}

/* Logo Section */
.logo {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    padding-top: clamp(2rem, 4vw, 3rem);
}

.logo-image {
    width: clamp(200px, 13vw, 250px);
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo-text {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.15em;
    margin-top: 1rem;
    color: var(--text-color);
    text-transform: uppercase;
}

/* Content Sections */
.content-section {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.content-section p {
    font-size: 1.125rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.content-section:first-of-type p {
    font-size: 1.25rem;
    font-weight: 400;
}

/* Left-aligned content sections (for about page) */
.content-section.left-aligned {
    text-align: left;
    max-width: 800px;
}

.content-section.left-aligned h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.content-section.left-aligned h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

/* Clients Grid */
.clients {
    margin: var(--spacing-lg) 0;
    padding: var(--spacing-md) 0;
    border-top: 1px solid var(--border-color);
}

.clients h2 {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-muted);
    font-weight: 400;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
    align-items: center;
    justify-items: center;
}

.client-logo {
    height: 30px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.client-logo:hover {
    opacity: 1;
}

/* Footer Navigation */
.footer {
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-lg) var(--spacing-md);
    margin-top: auto;
}

.nav {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.nav-section {
    font-family: "Courier New", monospace;
}

.nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-list {
    list-style: none;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.nav-list a:hover {
    color: var(--hover-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
    }

    .container {
        padding: var(--spacing-md) var(--spacing-sm);
    }

    .logo-image {
        width: clamp(150px, 50vw, 200px);
        height: auto;
    }

    .logo-text {
        font-size: clamp(1.25rem, 5vw, 1.5rem);
    }

    .content-section p {
        font-size: 1rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .client-logo {
        height: 20px;
    }

    .nav {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

/* Links */
a {
    color: var(--text-color);
}

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

.info-section {
    margin-bottom: var(--spacing-lg);
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.25rem;
    font-weight: 400;}

.info-section a {
    text-decoration: none;
}
