/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Light Mode Colors */
    --background: #ffffff;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --primary: #1a1a1a;
    --primary-foreground: #ffffff;
    --secondary: #C7AD55;
    --secondary-foreground: #1a1a1a;
    --muted: #f5f5f5;
    --muted-foreground: #666666;
    --accent: #C7AD55;
    --accent-foreground: #ffffff;
    --border: #e5e5e5;
    --input: #f9f9f9;
    --ring: #C7AD55;
    --radius: 0.5rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.7;
    color: var(--foreground);
    background-color: var(--background);
    font-size: 16px;
}

/* Utility Classes */
.min-h-screen {
    min-height: 100vh;
}

.bg-background {
    background-color: var(--background);
}

.bg-background-alt {
    background-color: #fafafa;
}

.text-foreground {
    color: var(--foreground);
}

.text-foreground-muted {
    color: var(--muted-foreground);
}

.text-foreground-light {
    color: rgba(46, 46, 46, 0.6);
}

.text-secondary {
    color: var(--secondary);
}

.bg-secondary-light {
    background-color: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.2);
}

.border-border {
    border-color: var(--border);
}

.border-secondary {
    border-color: var(--secondary);
}

.border-accent {
    border-color: var(--accent);
}

/* Header Styles */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

header.sticky {
    position: sticky;
    top: 0;
    z-index: 50;
}

.top-0 {
    top: 0;
}

.z-50 {
    z-index: 50;
}

.w-full {
    width: 100%;
}

.border-b {
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

.border-y {
    border-top-width: 1px;
    border-bottom-width: 1px;
    border-style: solid;
}

/* Container Utilities */
.max-w-7xl {
    max-width: 80rem;
}

.max-w-6xl {
    max-width: 72rem;
}

.max-w-4xl {
    max-width: 56rem;
}

.max-w-2xl {
    max-width: 42rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Flexbox Utilities */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-8 {
    gap: 2rem;
}

.gap-6 {
    gap: 1.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-3 {
    gap: 0.75rem;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.flex-col {
    flex-direction: column;
}

.h-20 {
    height: 5rem;
}

.h-12 {
    height: 3rem;
}

.h-10 {
    height: 2.5rem;
}

.h-64 {
    height: 16rem;
}

.w-auto {
    width: auto;
}

.w-full {
    width: 100%;
}

/* Grid Utilities */
.grid {
    display: grid;
}

/* Spacing Utilities */
.space-y-8 > * + * {
    margin-top: 2rem;
}

.space-y-6 > * + * {
    margin-top: 1.5rem;
}

.space-y-4 > * + * {
    margin-top: 1rem;
}

.space-y-3 > * + * {
    margin-top: 0.75rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mt-1 {
    margin-top: 0.25rem;
}

.pt-4 {
    padding-top: 1rem;
}

.pt-8 {
    padding-top: 2rem;
}

.pl-4 {
    padding-left: 1rem;
}

.pl-6 {
    padding-left: 1.5rem;
}

.py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/* Typography */
.text-5xl {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-4xl {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.text-3xl {
    font-size: 2rem;
    line-height: 1.3;
    font-weight: 700;
}

.text-2xl {
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 600;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.6;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.7;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.5;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-center {
    text-align: center;
}

.leading-tight {
    line-height: 1.25;
}

.leading-relaxed {
    line-height: 1.75;
}

/* Navigation */
nav a {
    text-decoration: none;
    transition: color 0.3s ease;
}

nav a:hover {
    color: var(--secondary);
}

.hidden {
    display: none;
}

/* Mobile Menu */
.mobile-menu {
    background-color: var(--background);
    border-top: 1px solid var(--border);
}

.mobile-menu.active {
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 1.125rem 2.5rem;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #333333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--secondary);
    color: #ffffff;
    border-color: var(--secondary);
}

.btn-secondary:hover {
    background-color: #C7AD55;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border-color: var(--border);
}

.btn-outline:hover {
    background-color: var(--muted);
    border-color: var(--primary);
}

/* Cards */
.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2.5rem;
}

.gradient-card {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.03) 0%, rgba(255, 163, 102, 0.03) 100%);
    border: 1px solid rgba(255, 140, 66, 0.1);
}

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(255, 140, 66, 0.2);
}

.icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 3.5rem;
    width: 3.5rem;
    border-radius: 10px;
    background-color: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.2);
}

/* Borders */
.border-l-4 {
    border-left-width: 3px;
    border-left-style: solid;
    padding-left: 1.5rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Images */
.object-contain {
    object-fit: contain;
}

/* Inline Block */
.inline-block {
    display: inline-block;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: var(--primary-foreground);
}

.bg-primary {
    background-color: var(--primary);
}

.text-primary-foreground {
    color: var(--primary-foreground);
}

.text-primary-foreground-muted {
    color: rgba(255, 255, 255, 0.7);
}

.border-primary-foreground-border {
    border-color: rgba(255, 255, 255, 0.15);
}

.border-t {
    border-top-width: 1px;
    border-top-style: solid;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid rgba(250, 250, 250, 0.3);
    color: var(--primary-foreground);
    transition: border-color 0.3s ease;
}

.social-icon:hover {
    border-color: rgba(250, 250, 250, 0.6);
}

/* Newsletter Form */
.newsletter-input {
    width: 100%;
    padding: 0.5rem 1rem;
    background-color: rgba(38, 38, 38, 0.2);
    border: 1px solid rgba(250, 250, 250, 0.3);
    border-radius: var(--radius);
    color: var(--primary-foreground);
    font-size: 0.875rem;
}

.newsletter-input::placeholder {
    color: rgba(250, 250, 250, 0.6);
}

.newsletter-input:focus {
    outline: none;
    border-color: rgba(250, 250, 250, 0.5);
}

/* Transitions */
.transition {
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (min-width: 640px) {
    .sm\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .sm\:text-6xl {
        font-size: 4rem;
        line-height: 1.1;
        letter-spacing: -0.02em;
    }
    
    .sm\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 768px) {
    .md\:hidden {
        display: none;
    }
    
    .md\:flex {
        display: flex;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .md\:flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
button:focus,
a:focus,
input:focus {
    outline: 2px solid var(--ring);
    outline-offset: 2px;
}

/* Additional Modern Styling */

/* Hero Section Enhancements */
#home h1 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Section Spacing */
section {
    position: relative;
}

/* Enhanced Card Styling */
.card h3 {
    color: var(--foreground);
}

.card p {
    color: var(--muted-foreground);
}

/* FAQ Section Styling */
.border-l-4.border-secondary {
    background-color: rgba(255, 140, 66, 0.02);
    padding: 1.5rem;
    padding-left: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.border-l-4.border-secondary:hover {
    background-color: rgba(255, 140, 66, 0.05);
    transform: translateX(4px);
}

.border-l-4.border-accent {
    background-color: rgba(255, 163, 102, 0.02);
    padding: 1.5rem;
    padding-left: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.border-l-4.border-accent:hover {
    background-color: rgba(255, 163, 102, 0.05);
    transform: translateX(4px);
}

/* Featured Work Cards */
.border-l-4 h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

/* Newsletter Section */
.newsletter-input {
    transition: all 0.2s ease;
}

.newsletter-input:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Service Cards Grid */
#services .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

#services .card h3 {
    margin-bottom: 1rem;
}

#services .card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

/* CLEWS Framework Cards */
#clews .card {
    background-color: #ffffff;
    border: 1px solid #f0f0f0;
}

#clews .card:hover {
    border-color: rgba(255, 140, 66, 0.3);
}

/* About Section Featured Work */
#about .gradient-card {
    background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
    border: 1px solid #e5e5e5;
}

/* Mission Section */
section:has(h2:contains("The Mission")) {
    background-color: #fafafa;
}

/* CTA Section */
#contact {
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.03) 0%, rgba(255, 163, 102, 0.03) 100%);
}

/* Footer Enhancements */
footer h4 {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

footer ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.2s ease;
}

footer ul li a:hover {
    color: var(--secondary);
}

/* Badge Styling */
.inline-block span {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Improved Link Hover States */
a {
    transition: color 0.2s ease;
}

/* Grid Gap Improvements */
.grid {
    gap: 2rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 2.5rem;
    }
}

/* Section Title Styling */
h2 {
    position: relative;
    padding-bottom: 1rem;
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Menu Improvements */
.mobile-menu {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.mobile-menu a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Focus Improvements */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .text-5xl {
        font-size: 2.5rem;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .text-3xl {
        font-size: 1.75rem;
    }
}
