/* =========================
   Global Styles & Variables
   ========================= */

:root {
    --color-primary: #1E293B;
    --color-accent: #4F46E5;
    --color-accent-hover: #4338CA;
    --color-bg: #F5F7FA;
    --color-bg-alt: #EDF0F5;
    --color-text-muted: #64748B;
    --color-card: #FFFFFF;
    --color-border: #E8EBF0;
    --color-border-subtle: #E0E5EB;
    
    --color-surface: var(--color-card);
    --color-text-main: var(--color-primary);
    --color-primary-soft: #EEF2FF;
    --color-danger: #DC2626;
    
    --shadow-soft: 0 1px 3px 0 rgba(30, 41, 59, 0.07), 0 1px 2px 0 rgba(30, 41, 59, 0.04);
    --shadow-medium: 0 4px 8px -2px rgba(30, 41, 59, 0.1), 0 2px 4px -1px rgba(30, 41, 59, 0.05);
    --shadow-large: 0 12px 20px -4px rgba(30, 41, 59, 0.12), 0 4px 8px -2px rgba(30, 41, 59, 0.07);
    --shadow-xl: 0 24px 32px -6px rgba(30, 41, 59, 0.14), 0 10px 14px -4px rgba(30, 41, 59, 0.09);
    
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 999px;
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-bg);
    color: var(--color-text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

img:not(.brand-logo):not(.brand-logo-small) {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

a {
    color: inherit;
    text-decoration: none;
}

p {
    margin: 0 0 1.25rem;
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.65;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.75rem, 5vw, 4rem);
    letter-spacing: -0.035em;
    font-weight: 800;
    line-height: 1.08;
}

h2 {
    font-size: clamp(2.125rem, 3vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: clamp(1.25rem, 1.75vw, 1.625rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    letter-spacing: -0.015em;
}

main {
    padding-top: 84px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    background: var(--color-bg);
}

.section-light {
    background: var(--color-bg-alt);
    position: relative;
    overflow: hidden;
}

.section-light::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    opacity: 0.5;
    z-index: 1;
}

.section-light::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle at 40% 40%, rgba(79, 70, 229, 0.03) 0%, rgba(139, 92, 246, 0.02) 40%, transparent 65%);
    pointer-events: none;
    animation: section-ambient 40s ease-in-out infinite;
    z-index: 0;
}

.hero.pre-animate,
.page-hero.pre-animate,
.section.pre-animate {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero.in-view,
.page-hero.in-view,
.section.in-view {
    opacity: 1;
    transform: translateY(0);
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-heading h2 {
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.section-heading p {
    margin: 0;
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.75;
}

.center {
    text-align: center;
}

.small-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}


/* ==========
   Header
   ========== */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(180%);
    background: rgba(254, 254, 254, 0.92);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-soft);
    transition: background var(--transition-fast), box-shadow var(--transition-fast);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    gap: 2rem;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.brand-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
    background: #ffffff;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

.brand-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 400;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-sm);
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-normal);
    letter-spacing: -0.01em;
}

.main-nav li.active a {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-card);
    font-weight: 600;
    box-shadow: var(--shadow-soft), 0 4px 12px rgba(79, 70, 229, 0.25);
}

.main-nav a:hover:not(.active a) {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.admin-link a {
    font-size: 0.82rem;
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-card);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 999px;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(3px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-3px) rotate(-45deg);
}


/* ==========
   Buttons
   ========== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 0.975rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-normal);
    min-height: 48px;
    letter-spacing: -0.01em;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-card);
    border-color: var(--color-accent);
    box-shadow: var(--shadow-medium), 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--color-accent-hover) 0%, #3730A3 100%);
    border-color: var(--color-accent-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-large), 0 8px 20px rgba(79, 70, 229, 0.4);
}

.btn-outline {
    background: var(--color-card);
    border-color: var(--color-border);
    color: var(--color-primary);
    box-shadow: var(--shadow-soft);
}

.btn-outline:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-card);
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}


/* ==========
   Hero
   ========== */

.hero {
    padding: 7rem 0 6rem;
    background-image: url("/static/images/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.92) 0%, rgba(79, 70, 229, 0.88) 100%);
    pointer-events: none;
    z-index: 0;
}

@keyframes hero-ambient {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    33% { 
        transform: translate(-30px, 25px) scale(1.05);
        opacity: 0.9;
    }
    66% { 
        transform: translate(25px, -20px) scale(0.98);
        opacity: 0.95;
    }
}

@keyframes hero-ambient-alt {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    40% { 
        transform: translate(20px, -30px) scale(1.03);
        opacity: 0.85;
    }
    75% { 
        transform: translate(-25px, 15px) scale(0.97);
        opacity: 0.95;
    }
}

@keyframes section-ambient {
    0%, 100% { 
        transform: translate(0, 0) scale(1) rotate(0deg);
        opacity: 0.8;
    }
    35% { 
        transform: translate(-40px, 30px) scale(1.08) rotate(2deg);
        opacity: 0.6;
    }
    70% { 
        transform: translate(30px, -25px) scale(0.95) rotate(-1deg);
        opacity: 0.75;
    }
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 5rem;
    position: relative;
    z-index: 1;
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero-text h1 {
    margin-bottom: 0;
    line-height: 1.08;
    color: #FFFFFF;
    animation: fade-in-up 0.6s ease-out;
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text p {
    font-size: 1.175rem;
    line-height: 1.7;
    color: rgba(249, 250, 251, 0.95);
    max-width: 560px;
    margin: 0;
    font-weight: 400;
    animation: fade-in-up 0.6s ease-out 0.15s backwards;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    margin: 0;
    animation: fade-in-up 0.6s ease-out 0.3s backwards;
}

.hero-meta {
    font-size: 0.9rem;
    color: rgba(249, 250, 251, 0.85);
    margin-top: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.9;
    animation: fade-in-up 0.6s ease-out 0.45s backwards;
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-image-stack {
    position: relative;
    width: 100%;
    height: 560px;
}

.hero-image-primary {
    position: absolute;
    top: 0;
    right: 0;
    width: 85%;
    height: 75%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--color-surface);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    animation: fade-in-right 0.7s ease-out 0.2s backwards;
}

@keyframes fade-in-right {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 55%;
    height: 52%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    background: var(--color-surface);
    border: 4px solid var(--color-card);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    z-index: 2;
    animation: fade-in-left 0.7s ease-out 0.4s backwards;
}

@keyframes fade-in-left {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image-primary img,
.hero-image-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-image-primary:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl), 0 32px 48px -8px rgba(26, 32, 44, 0.18);
}

.hero-image-secondary:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 24px 40px -6px rgba(26, 32, 44, 0.16);
}

.hero-card {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--color-surface);
    transform: translateY(0);
    transition: transform var(--transition-smooth);
}

.hero-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.hero-card img {
    width: 100%;
    height: auto;
    min-height: 520px;
    object-fit: cover;
    display: block;
}

.hero-card-overlay {
    position: absolute;
    inset: auto 16px 16px;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: linear-gradient(to top right, rgba(26, 32, 44, 0.98), rgba(26, 32, 44, 0.75));
    border: 1px solid rgba(156, 163, 175, 0.4);
    color: #F3F4F6;
}

.hero-card-overlay h3 {
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    color: #F9FAFB;
}

.hero-card-overlay p {
    margin: 0;
    font-size: 0.8rem;
    color: #E5E7EB;
}


/* ==========
   Page Hero
   ========== */

.page-hero {
    padding: 6rem 0 5rem;
    background-image: url("/static/images/background_image.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.90) 0%, rgba(79, 70, 229, 0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.page-hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 4.5rem;
    position: relative;
    z-index: 1;
}

.page-hero-inner > div:first-child p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: rgba(249, 250, 251, 0.95);
    max-width: 600px;
}

.page-hero h1,
.page-hero h2 {
    color: #FFFFFF;
}

.page-hero-media {
    position: relative;
}

.page-hero-media img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    object-fit: cover;
    width: 100%;
    display: block;
}

.page-hero-media img:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}


/* ==========
   Layout Helpers
   ========== */

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.column-text {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 3rem;
    border: none;
    box-shadow: 0 6px 16px -4px rgba(30, 41, 59, 0.14), 0 3px 8px -2px rgba(30, 41, 59, 0.08);
}

.column-text h2 {
    margin-bottom: 1.75rem;
    color: var(--color-primary);
}

.column-text p {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
}

.feature-list {
    margin-top: 2rem;
}

.feature-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-border-subtle);
}

.feature-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.feature-item h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.feature-item p {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.grid-media {
    position: relative;
    width: 100%;
    min-height: 520px;
    padding: 0;
}

.grid-media img {
    position: absolute;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: var(--shadow-large);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    background: var(--color-card);
}

.grid-media img:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 62%;
    z-index: 1;
}

.grid-media img:nth-child(2) {
    bottom: 0;
    right: 0;
    width: 75%;
    height: 50%;
    z-index: 2;
    border: 4px solid var(--color-card);
}

.grid-media img:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: var(--shadow-xl);
    z-index: 3;
}


/* ==========
   Cards & Grids
   ========== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.card-grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card {
    background: var(--color-card);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    border: none;
    box-shadow: 0 4px 12px -2px rgba(30, 41, 59, 0.12), 0 2px 6px -1px rgba(30, 41, 59, 0.08);
    transition: all var(--transition-smooth);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -8px rgba(30, 41, 59, 0.18), 0 12px 24px -6px rgba(79, 70, 229, 0.15);
    border-color: rgba(79, 70, 229, 0.3);
}

.card h3 {
    color: var(--color-primary);
    margin-bottom: 0.875rem;
}

.card p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.975rem;
    line-height: 1.65;
}

.service-card {
    position: relative;
    overflow: hidden;
}

.service-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: linear-gradient(135deg, #F0F4FF, #F5F7FA);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1.5rem;
    transform-origin: center;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.service-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.service-card:hover .service-card-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-large);
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
    box-shadow: var(--shadow-medium);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-ai {
    background: linear-gradient(135deg, #8B5CF6, #6366F1);
}

.card-icon-robotics {
    background: linear-gradient(135deg, #F59E0B, #EC4899);
}

.card-icon-code {
    background: linear-gradient(135deg, #10B981, #06B6D4);
}

.card-icon-electronics {
    background: linear-gradient(135deg, #F97316, #EF4444);
}

.card-icon-drone {
    background: linear-gradient(135deg, #3B82F6, #6366F1);
}

.card-icon-web {
    background: linear-gradient(135deg, #8B5CF6, #EC4899);
}

.card-icon-lab {
    background: linear-gradient(135deg, #F59E0B, #F97316);
}

.card-icon-workshop {
    background: linear-gradient(135deg, #EC4899, #8B5CF6);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    font-size: 0.975rem;
    color: var(--color-accent);
    font-weight: 600;
    transition: all var(--transition-normal);
    letter-spacing: -0.01em;
}

.card-link:hover {
    color: var(--color-accent-hover);
    gap: 0.65rem;
}

.service-card:hover .card-link {
    color: var(--color-accent-hover);
}

.card-link span {
    transition: transform var(--transition-normal);
    display: inline-block;
}

.card-link:hover span,
.service-card:hover .card-link span {
    transform: translateX(5px);
}


/* ==========
   Checklists & Alerts
   ========== */

.checklist {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.checklist li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, #10B981, #3B82F6);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    box-shadow: var(--shadow-soft);
}

.alert-error {
    border-left-color: #DC2626;
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-left: 4px solid #DC2626;
    background: #FEF2F2;
    color: #991B1B;
}

.alert-success {
    border-left-color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-left: 4px solid #10B981;
    background: #ECFDF5;
    color: #047857;
}

.required {
    color: var(--color-danger);
    margin-left: 0.15rem;
}


/* ==========
   Highlight Strip
   ========== */

.highlight-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3.5rem;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
    color: var(--color-card);
    padding: 4rem 4.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl), 0 32px 48px -8px rgba(79, 70, 229, 0.35);
    position: relative;
    overflow: hidden;
}

.highlight-strip::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    animation: subtle-pulse 6s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.highlight-text {
    position: relative;
    z-index: 1;
    flex: 1;
}

.highlight-strip h2 {
    color: var(--color-card);
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.highlight-strip p {
    color: rgba(249, 250, 251, 0.95);
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.75;
}

.highlight-action {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.highlight-action .btn-primary {
    background: var(--color-card);
    color: var(--color-accent);
    border-color: var(--color-card);
    box-shadow: var(--shadow-large);
    font-weight: 600;
}

.highlight-action .btn-primary:hover {
    background: var(--color-card);
    color: var(--color-accent-hover);
    border-color: var(--color-card);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}


/* ==========
   Contact
   ========== */

.contact-layout {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 3rem;
    align-items: flex-start;
}

.contact-form-wrapper {
    background: var(--color-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    border: none;
    box-shadow: 0 8px 20px -4px rgba(30, 41, 59, 0.16), 0 4px 12px -2px rgba(30, 41, 59, 0.1);
}

.contact-form-wrapper h2 {
    margin-bottom: 2rem;
    color: var(--color-primary);
}

.contact-aside {
    background: linear-gradient(135deg, var(--color-primary) 0%, #111827 100%);
    color: var(--color-card);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-large);
    position: sticky;
    top: 100px;
}

.contact-aside h2 {
    color: var(--color-card);
    margin-bottom: 1.25rem;
}

.contact-aside p {
    color: rgba(249, 250, 251, 0.92);
    margin-bottom: 1.5rem;
    line-height: 1.75;
}

.contact-aside .checklist {
    margin-bottom: 1.5rem;
}

.contact-aside .checklist li {
    color: rgba(249, 250, 251, 0.95);
    margin-bottom: 0.75rem;
}

.contact-aside .checklist li::before {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.86rem;
}

.form-field label {
    font-weight: 500;
    color: var(--color-primary);
}

.form-field input,
.form-field textarea {
    border-radius: var(--radius-md);
    border: 2px solid var(--color-border);
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    background: var(--color-card);
    transition: all var(--transition-normal);
    color: var(--color-primary);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.55;
}

.form-field textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.65;
}

.form-field input:hover,
.form-field textarea:hover {
    border-color: var(--color-border-subtle);
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1), var(--shadow-soft);
    background-color: var(--color-card);
    outline: none;
    transform: translateY(-1px);
}

.form-actions {
    margin-top: 0.4rem;
}


/* ==========
   Admin Table
   ========== */

.table-wrapper {
    border-radius: var(--radius-lg);
    border: none;
    background: var(--color-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.data-table th,
.data-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: top;
    text-align: left;
}

.data-table thead th {
    background: linear-gradient(135deg, var(--color-primary) 0%, #111827 100%);
    color: var(--color-card);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 1.25rem 1.25rem;
}

.data-table tbody tr {
    transition: background-color var(--transition-fast);
}

.data-table tbody tr:nth-child(even) {
    background: var(--color-bg);
}

.data-table tbody tr:hover {
    background: var(--color-primary-soft);
}

.data-table tbody td {
    color: var(--color-text-main);
    font-size: 0.9rem;
}

.cell-message {
    max-width: 300px;
    word-wrap: break-word;
    line-height: 1.6;
}

.data-table a {
    color: var(--color-accent);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.data-table a:hover {
    color: var(--color-accent-hover);
}


/* ==========
   Footer
   ========== */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 2rem 0;
    background: var(--color-bg);
}

.footer-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem 1.3rem;
    justify-content: space-between;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-logo-small {
    width: 32px;
    height: 32px;
    box-shadow: none;
}

.footer-text {
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.footer-meta {
    font-size: 0.84rem;
    color: var(--color-text-muted);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.social-icon {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-primary);
    background: var(--color-card);
    transition: background-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-primary);
    color: var(--color-card);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-large);
    transform: translateY(-2px);
}


/* ==========
   Responsive
   ========== */

@media (max-width: 960px) {
    main {
        padding-top: 80px;
    }

    .section {
        padding: 4rem 0;
    }

    .hero {
        padding: 4rem 0;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-text {
        text-align: center;
        align-items: center;
    }

    .hero-text p {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-card img {
        min-height: 400px;
    }

    .hero-image-stack {
        height: 480px;
    }

    .hero-image-primary {
        width: 80%;
        height: 70%;
    }

    .hero-image-secondary {
        width: 60%;
        height: 50%;
    }

    .page-hero {
        padding: 4rem 0 3rem;
    }

    .page-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .two-column {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .grid-media {
        min-height: 440px;
    }

    .grid-media img:nth-child(1) {
        width: 95%;
        height: 58%;
    }

    .grid-media img:nth-child(2) {
        width: 70%;
        height: 48%;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-aside {
        position: static;
    }

    .hero-media {
        order: -1;
    }

    .column-text,
    .contact-form-wrapper,
    .contact-aside {
        padding: 2rem;
    }

    .card-grid,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .highlight-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: 2.5rem;
        gap: 2rem;
    }

    .highlight-strip h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .header-inner {
        padding: 0.875rem 1.25rem;
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-inner {
        gap: 2.5rem;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 6vw, 2.75rem);
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-card img {
        min-height: 320px;
    }

    .hero-image-stack {
        height: 420px;
    }

    .hero-image-primary,
    .hero-image-secondary {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }

    .hero-image-primary {
        height: 240px;
    }

    .hero-image-secondary {
        height: 180px;
    }

    .page-hero {
        padding: 3rem 0 2.5rem;
    }

    .main-nav {
        position: absolute;
        inset: 70px 1rem auto;
        background: var(--color-card);
        border-radius: var(--radius-lg);
        border: none;
        box-shadow: var(--shadow-large);
        padding: 0.75rem;
        transform-origin: top right;
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity var(--transition-fast), transform var(--transition-fast);
    }

    .main-nav.open {
        opacity: 1;
        transform: scale(1);
        pointer-events: auto;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }

    .main-nav a {
        padding: 0.75rem 1rem;
        justify-content: space-between;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .card-grid,
    .card-grid-3,
    .card-grid-4 {
        grid-template-columns: minmax(0, 1fr);
    }

    .page-hero {
        padding: 2rem 0;
    }

    .grid-media {
        min-height: 380px;
    }

    .grid-media img:nth-child(1) {
        position: static;
        width: 100%;
        height: auto;
        min-height: 220px;
        margin-bottom: 1rem;
    }

    .grid-media img:nth-child(2) {
        position: static;
        width: 100%;
        height: auto;
        min-height: 180px;
        border: none;
    }

    .highlight-strip {
        padding: 1.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .section {
        padding: 3rem 0;
    }

    .header-inner {
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }

    .brand-title {
        font-size: 0.95rem;
    }

    .brand-subtitle {
        display: none;
    }

    .hero {
        padding: 2.5rem 0;
    }

    .hero-text {
        gap: 1.25rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
    }

    .hero-card img {
        min-height: 280px;
    }

    .hero-image-stack {
        height: auto;
    }

    .hero-image-primary {
        height: 220px;
    }

    .hero-image-secondary {
        height: 160px;
    }

    .column-text,
    .contact-form-wrapper,
    .contact-aside {
        padding: 1.75rem;
    }

    .grid-media {
        min-height: auto;
    }

    .highlight-strip {
        padding: 2rem;
    }

    .highlight-strip h2 {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }
}


