/* Advanced UI Design System for SMEC */
:root {
    /* SMEC Premium Brand Colors - Logo Inspired */
    --primary: #4f46e5;      /* Deep Blue from SMEC logo */
    --primary-light: #6366f1; /* Lighter blue */
    --primary-dark: #3730a3;  /* Dark blue */
    --secondary: #8b5cf6;     /* Purple from logo */
    --accent: #06b6d4;        /* Cyan from logo gradient */
    --accent-light: #22d3ee;  /* Light cyan */
    
    /* Extended Color Palette */
    --gradient-primary: linear-gradient(135deg, #4f46e5 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    --gradient-dark: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    --gradient-light: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    
    /* Text Colors */
    --text-dark: #111827;
    --text-body: #374151;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    
    /* Background Colors - Minimal Light Theme */
    --bg-white: #ffffff;
    --bg-light: #fafbfc;
    --bg-minimal: #f6f8fa;
    --bg-section: #f1f3f5;
    --bg-gray: #f1f5f9;
    --bg-neutral: #e2e8f0;
    
    /* Utility Colors */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --shadow-light: rgba(0, 0, 0, 0.05);
    
    /* Status Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #3b82f6;
    
    /* Advanced Spacing System */
    --section-spacing: 6rem;
    --card-spacing: 2.5rem;
    --element-spacing: 2rem;
    
    /* Modern Border Radius System */
    --border-radius: 1.25rem;
    --border-radius-sm: 0.75rem;
    --border-radius-lg: 2rem;
    --border-radius-xl: 2.5rem;
    
    /* Advanced Shadow System */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 30px 60px rgba(0, 0, 0, 0.2);
    --shadow-colored: 0 8px 25px rgba(79, 70, 229, 0.15);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-backdrop: blur(10px);
}

/* Premium Typography System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-minimal);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', 'Inter', serif;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-dark);
}

/* Gradient text only for specific elements */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h1 { font-size: 4rem; font-weight: 800; line-height: 0.95; }
h2 { font-size: 3rem; font-weight: 700; line-height: 1; }
h3 { font-size: 2.25rem; font-weight: 600; line-height: 1.1; }
h4 { font-size: 1.875rem; font-weight: 600; line-height: 1.2; }
h5 { font-size: 1.5rem; font-weight: 600; line-height: 1.3; }
h6 { font-size: 1.25rem; font-weight: 600; line-height: 1.4; }

.display-1 {
    font-size: 5.5rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
}

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.lead {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-light);
}

.section-header {
    margin-bottom: 4rem;
    text-align: center;
}

.section-subtitle {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
    position: relative;
}

.section-subtitle::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 0.75rem 0;
    box-shadow: 0 2px 10px var(--shadow-color);
}

/* Logo sizing moved to style.css for consistency */

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 1rem 1.25rem !important;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 1.25rem;
    right: 1.25rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

/* Page Headers */
.page-header {
    background: var(--primary);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(26, 35, 126, 0.95), rgba(2, 119, 189, 0.85));
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4rem;
    background: var(--bg-white);
    clip-path: polygon(0 100%, 100% 100%, 100% 0);
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bg-white);
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--bg-white);
}

/* Premium Card System */
.card {
    background: var(--bg-white);
    border-radius: var(--border-radius-lg);
    padding: var(--card-spacing);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.5s ease;
}

.card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-2xl);
    border-color: transparent;
}

.card:hover::before {
    transform: scaleX(1);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-xl);
}

.card-premium {
    background: var(--gradient-light);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.card-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

/* Buttons */
.btn {
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--shadow-colored);
    color: white;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-secondary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary {
    background: var(--gradient-secondary);
    color: white;
    font-weight: 600;
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.15);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), 0 8px 25px rgba(6, 182, 212, 0.25);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.btn-outline::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: var(--gradient-primary);
    border-radius: inherit;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--bg-white);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-outline-light {
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    background: transparent;
}

.btn-outline-light:hover {
    background: var(--bg-white);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--bg-white);
    padding: 5rem 0 0;
}

.footer-title {
    color: var(--bg-white);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--bg-white);
    padding-left: 5px;
}

.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem 0;
    margin-top: 4rem;
}

/* Image Utilities */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.img-cover {
    object-fit: cover;
    object-position: center;
}

.img-contain {
    object-fit: contain;
    object-position: center;
}

.img-center {
    margin-left: auto;
    margin-right: auto;
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Ultra-wide and 4K Display Optimization */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .page-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-description {
        font-size: 1.25rem;
        max-width: 900px;
    }
}

@media (min-width: 2560px) {
    .container {
        max-width: 1600px;
    }
    
    .page-title {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 4rem;
    }
    
    .section-description {
        font-size: 1.5rem;
        max-width: 1000px;
    }
    
    .card {
        padding: 3rem;
    }
}

/* Large Desktop Optimization */
@media (min-width: 1400px) and (max-width: 1919px) {
    .container {
        max-width: 1320px;
    }
    
    .page-title {
        font-size: 3.5rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

/* Responsive Design */
@media (max-width: 1199.98px) {
    .section-title {
        font-size: 2.25rem;
    }
    
    h1 { font-size: 2.75rem; }
    h2 { font-size: 2rem; }
}

@media (max-width: 991.98px) {
    :root {
        --section-spacing: 4rem;
        --card-spacing: 1.5rem;
    }

    .navbar-collapse {
        background: var(--bg-white);
        padding: 1rem;
        margin-top: 1rem;
        border-radius: var(--border-radius);
        border: 1px solid var(--border-color);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

    .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .nav-link::after {
        display: none;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }
    
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
    h3 { font-size: 1.5rem; }
}

@media (max-width: 767.98px) {
    :root {
        --section-spacing: 3rem;
        --card-spacing: 1.25rem;
    }

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

    .section-title {
        font-size: 1.75rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .section-description {
        font-size: 1rem;
    }
    
    .lead {
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-spacing: 2.5rem;
        --card-spacing: 1rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .section-subtitle::after {
        width: 2rem;
    }
}
