/* ==========================================================================
   CSS Variables & Ultra-Minimal Modern Design System (Slate & Azure)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* New Modern Palette: Slate & Azure Blue */
    --primary-dark: #0F172A;     /* Slate 900 */
    --primary-main: #1E293B;     /* Slate 800 */
    --accent-blue: #2563EB;      /* Blue 600 */
    --accent-light: #EFF6FF;     /* Blue 50 */
    --accent-hover: #1D4ED8;     /* Blue 700 */
    
    --bg-white: #FFFFFF;
    --bg-light-grey: #F8FAFC;    /* Slate 50 */
    --border-color: #E2E8F0;     /* Slate 200 */
    
    --text-main: #334155;        /* Slate 700 */
    --text-muted: #64748B;       /* Slate 500 */
    
    /* Typography */
    --font-sans: 'Outfit', 'Inter', sans-serif;
    
    /* UI Variables */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --transition-fast: 0.2s ease-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* Crisp, Modern Shadows (Apple-esque) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-float: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-dark);
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: -0.03em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

.bg-grey { background-color: var(--bg-light-grey); }
.bg-dark { background-color: var(--primary-dark); color: var(--bg-white); }
.bg-dark h2 { color: var(--bg-white); }
.bg-dark p { color: #94A3B8; }

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.section-title span {
    color: var(--accent-blue);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 400;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent-blue);
    color: var(--bg-white) !important;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1.05rem;
    transition: var(--transition-fast);
    border: 1px solid transparent;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}
.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.23);
    text-decoration: none;
    color: var(--bg-white);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-white);
    color: var(--primary-dark) !important;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 1.05rem;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
    text-decoration: none;
}

/* ==========================================================================
   Navigation (Minimal Glass)
   ========================================================================== */
.custom-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
    padding: 1rem 0;
}
.custom-navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    padding: 0.5rem 0;
}
.logo-sg {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.02em;
}
.logo-assoc {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-left: 1px solid var(--border-color);
    padding-left: 8px;
    margin-left: 8px;
}
.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-muted);
}
.nav-link:hover,
.nav-link.active {
    color: var(--primary-dark);
}

/* ==========================================================================
   Hero Section (Ultra Clean & Minimal)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-light-grey);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
/* Subtle geometric accent */
.hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-light) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero h1 span {
    color: var(--accent-blue);
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s backwards;
}
.hero-image-wrapper {
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s backwards;
}
.hero-image-wrapper img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-float);
    border: 1px solid rgba(255,255,255,0.5);
}

/* ==========================================================================
   Custom Components (Cards, Tags, Forms)
   ========================================================================== */
.service-card {
    background: var(--bg-white);
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}
.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(37, 99, 235, 0.3);
    color: inherit;
}
.service-icon {
    font-size: 2rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
    background: var(--accent-light);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}
.service-card h3 {
    margin-bottom: 12px;
    font-size: 1.3rem;
}
.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 24px;
    flex-grow: 1;
}
.read-more {
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    transition: var(--transition-fast);
}
.service-card:hover .read-more {
    color: var(--accent-blue);
}

.feature-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-blue);
    flex-shrink: 0;
}

.prof-card {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}
.prof-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.prof-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background-color: var(--bg-light-grey);
}

.industry-tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin: 8px;
    font-weight: 500;
    font-size: 1rem;
    color: var(--text-main);
    transition: var(--transition-fast);
    text-decoration: none;
}
.industry-tag:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.industry-tag i {
    margin-right: 10px;
    color: var(--text-muted);
}
.industry-tag:hover i {
    color: var(--accent-blue);
}

.service-detail-list {
    list-style: none;
    padding-left: 0;
}
.service-detail-list li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 28px;
    font-size: 1rem;
    color: var(--text-main);
}
.service-detail-list li::before {
    content: '\f0da';
    font-family: 'FontAwesome';
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.contact-form {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}
.form-control {
    border: 1px solid var(--border-color);
    background-color: var(--bg-white);
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==========================================================================
   Internal Pages
   ========================================================================== */
.page-header {
    background-color: var(--bg-light-grey);
    padding: 160px 0 80px 0;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-header h1 {
    font-size: 3.5rem;
    margin-bottom: 16px;
    animation: fadeUp 0.6s ease;
}
.page-header p {
    color: var(--accent-blue);
    font-size: 1.2rem;
    font-weight: 500;
    animation: fadeUp 0.6s ease 0.1s backwards;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--primary-dark);
    color: #94A3B8;
    border-top: 1px solid var(--border-color);
}
.footer h3 {
    color: var(--bg-white);
    font-size: 1.4rem;
}
.footer h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
}
.footer ul {
    padding-left: 0;
}
.footer ul li a {
    transition: color 0.2s ease;
    text-decoration: none;
}
.footer ul li a:hover {
    color: var(--bg-white);
}
.footer-social-icon {
    transition: color 0.2s ease, transform 0.2s ease;
}
.footer-social-icon:hover {
    color: var(--bg-white) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */
@media (max-width: 1024px) {
    .hero::after { display: none; }
    .hero h1 { font-size: 3rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .section-title { font-size: 2.2rem; }
}
