/* AppWT.cc Main Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --forest: #1B4332;
    --gold: #F4A261;
    --platinum: #F8F9FA;
    --obsidian: #0D2818;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #e0e0e0;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: var(--platinum);
}

.container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    overflow-x: hidden;
}

/* Header */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

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

header nav {
    display: flex;
    gap: 30px;
}

header nav a {
    text-decoration: none;
    color: var(--obsidian);
    font-weight: 500;
    transition: color 0.3s;
}

header nav a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--forest) 0%, var(--obsidian) 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 15px;
}

.hero .tagline {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 10px;
    color: var(--gold);
}

.hero .subtitle {
    font-size: clamp(14px, 2vw, 18px);
    opacity: 0.9;
}

/* Links Section */
.links-section {
    padding: 50px 20px;
    background: var(--white);
}

.links-section:nth-child(even) {
    background: var(--light-gray);
}

.links-section h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 30px;
    color: var(--forest);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.link-card {
    background: var(--white);
    border: 2px solid var(--border-gray);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    border-color: var(--gold);
}

.link-card .icon {
    font-size: 48px;
    display: block;
    margin-bottom: 15px;
}

.link-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--forest);
}

.link-card p {
    font-size: 14px;
    color: #666;
}

/* Contact Section */
.contact-section {
    padding: 50px 20px;
    background: var(--light-gray);
}

.contact-section h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 30px;
    color: var(--forest);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.contact-card .icon {
    font-size: 40px;
    display: block;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--forest);
}

.contact-card p {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}

.contact-card a:hover {
    text-decoration: underline;
}

.contact-card .small {
    font-size: 13px;
    color: #666;
}

/* Social Section */
.social-section {
    padding: 50px 20px;
    background: var(--white);
}

.social-section h2 {
    text-align: center;
    font-size: clamp(24px, 4vw, 32px);
    margin-bottom: 30px;
    color: var(--forest);
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.social-link {
    background: var(--light-gray);
    border: 2px solid var(--border-gray);
    border-radius: 8px;
    padding: 15px 25px;
    text-decoration: none;
    color: var(--forest);
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-link:hover {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.social-link .icon {
    font-weight: bold;
    font-size: 18px;
}

/* Footer */
footer {
    background: var(--obsidian);
    color: var(--platinum);
    padding: 40px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    color: var(--gold);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-section p {
    margin-bottom: 8px;
    font-size: 14px;
}

.footer-section a {
    color: var(--platinum);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--gold);
    text-decoration: underline;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }

    header nav {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        width: 100%;
    }

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

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

    .social-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .hero {
        padding: 40px 15px;
    }

    .links-section {
        padding: 30px 15px;
    }

    .contact-section {
        padding: 30px 15px;
    }

    .social-section {
        padding: 30px 15px;
    }
}

/* Ensure no horizontal scroll */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

pre, code {
    max-width: 100%;
    overflow-x: auto;
    word-wrap: break-word;
}
