/* BASE & TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700&display=swap');

:root {
    --primary: #000000;
    --primary-hover: #1f2937;
    --accent: #06b6d4; /* Vibrant tech turquoise */
    --text-main: #374151;
    --text-muted: #6b7280;
    --bg-body: #ffffff;
    --bg-surface: #ffffff;
    --border: #eaeaea;
    --border-dark: #cccccc;
    --success: #2d8a56;
    --warning: #d97706;
    --danger: #dc2626;
    --info: #2563eb;
    --radius-sm: 4px;
    --radius-md: 5px;
    --radius-lg: 8px;
    --shadow-sm: 0 4px 15px rgba(0,0,0,0.02);
    --shadow-md: 0 10px 25px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 40px rgba(0,0,0,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
body { background: var(--bg-body); color: var(--primary); overflow-x: hidden; }

/* GLOBAL HEADER & NAV */
.global-header {
    background: transparent;
    border-bottom: 1px solid transparent;
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 200;
    transition: all 0.3s ease;
}

.global-header.scrolled {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.global-header nav {
    width: 90%;
    max-width: 1400px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding: 20px 0;
}

.global-header nav .nav-logo a {
    text-decoration: none;
    color: #000;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.global-header nav .nav-links ul {
    display: flex;
    column-gap: 32px;
    list-style-type: none;
    align-items: center;
}

.global-header nav .nav-links ul li a {
    text-decoration: none;
    color: #5a5444;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.global-header nav .nav-links ul li a:hover,
.global-header nav .nav-links ul li a.active {
    color: #000;
}

.nav-parent-tag {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}
.nav-parent-tag:hover {
    background: #16a34a;
    color: #ffffff !important;
    border-color: #16a34a;
    transform: translateY(-1px);
}

/* PRODUCTION BUTTONS (Nav) */
a.product-link, button.product-link {
    background: #000;
    padding: 12px 24px;
    color: #fff !important;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid #000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
}

a.product-link span { color: #938d8f; transition: color 0.3s ease; }
a.product-link:hover { background: var(--primary-hover); border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(6, 182, 212, 0.15); }
a.product-link:hover span { color: var(--accent); }

/* PREMIUM MEGAMENU */
.megamenu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    border: 1px solid #eaeaea;
    border-top: 3px solid #000;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    z-index: 100;
}

/* Invisible bridge to catch the mouse */
.megamenu::before {
    content: '';
    position: absolute;
    top: -30px;
    left: 0;
    width: 100%;
    height: 30px;
}

.megamenu-column h4 {
    font-size: 13px;
    color: #938d8f;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.megamenu-column ul { display: flex; flex-direction: column; gap: 12px; align-items: flex-start !important; }
.megamenu-column ul li { width: 100%; }
.megamenu-column ul li a {
    color: #000 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    padding: 8px 12px;
    margin-left: -12px;
    border-radius: 5px;
    display: block;
    transition: all 0.2s ease !important;
}
.megamenu-column ul li a:hover { background: #f8f8f8; transform: translateX(4px); }
.megamenu-column ul li p { font-size: 12px; color: #5a5444; margin-top: 2px; font-weight: 400; }

/* High-End Megamenu Featured Card */
.megamenu-featured {
    background: #000;
    border-radius: 8px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.megamenu-featured::after {
    content: ''; position: absolute; top: 0; right: 0; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%; transform: translate(30%, -30%);
}

.megamenu-featured h5 { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.megamenu-featured p { color: #938d8f; font-size: 13px; line-height: 22px; margin-bottom: 24px; }
.megamenu-featured .btn {
    background: #fff; color: #000; padding: 10px 20px; border-radius: 4px; font-size: 13px; font-weight: 600; text-decoration: none; display: inline-block; width: fit-content; transition: transform 0.2s; z-index: 1;
}
.megamenu-featured .btn:hover { transform: translateX(5px); }

.global-header nav .nav-mobile-menu-btn { cursor: pointer; display: none; background: none; border: none; }

/* MOBILE OVERLAY MENU */
nav.mobile-menu {
    width: 280px; position: fixed; height: 100vh; background: white; padding: 25px; display: none; z-index: 1000; box-shadow: 10px 0 30px rgba(0,0,0,0.1);
}
nav.mobile-menu.active { display: block; }
nav.mobile-menu ul { list-style-type: none; display: flex; flex-direction: column; row-gap: 25px; margin-top: 40px; }
nav.mobile-menu ul li a { text-decoration: none; color: #000; font-weight: 500; font-size: 18px; }

/* MAIN LAYOUT */
main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-container {
    width: 90%;
    max-width: 1400px;
    padding: 80px 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* HERO SECTION */
@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-section {
    background: linear-gradient(-45deg, #ffffff, #ecfeff, #cffafe, var(--accent));
    background-size: 400% 400%;
    animation: gradientMove 15s ease infinite;
    border-bottom: 1px solid var(--border);
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 160px 0 100px 0;
    text-align: center;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 60%);
    pointer-events: none;
}

.hero-content {
    width: 90%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--primary);
}

.hero-desc {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-main);
    max-width: 600px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.hero-img {
    margin-top: 50px;
    width: 100%;
    max-width: 550px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(6, 182, 212, 0.15));
    z-index: 1;
}

/* COMPONENT LIBRARY STYLES (Sassy System) */

/* Buttons */
.sassy-btn {
    background: var(--primary); color: #fff !important; padding: 12px 24px; border-radius: var(--radius-md); text-decoration: none; font-size: 15px; font-weight: 500; border: 1px solid var(--primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform;
}
.sassy-btn:hover { background: var(--primary-hover); border-color: var(--accent); color: var(--accent) !important; transform: translateY(-2px); box-shadow: 0 8px 15px rgba(6, 182, 212, 0.15); }
.sassy-btn-outline { background: transparent; color: var(--primary) !important; border-color: var(--primary); }
.sassy-btn-outline:hover { background: var(--primary); color: var(--accent) !important; border-color: var(--accent); }
.sassy-btn-ghost { background: transparent; color: var(--text-main) !important; border-color: transparent; }
.sassy-btn-ghost:hover { background: #f4f4f5; color: var(--primary) !important; transform: none; box-shadow: none; }
.sassy-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* Badges */
.sassy-badge { padding: 4px 10px; border-radius: var(--radius-sm); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; display: inline-flex; }
.badge-default { background: #f4f4f5; color: var(--text-main); }
.badge-primary { background: var(--accent); color: #000; }
.badge-success { background: #dcfce7; color: var(--success); }
.badge-warning { background: #fef3c7; color: var(--warning); }
.badge-danger { background: #fee2e2; color: var(--danger); }

/* Avatars */
.sassy-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-radius: 50%;
}
.avatar-sm {
    width: 28px;
    height: 28px;
    font-size: 12px;
}

/* Forms */
.sassy-form-group { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-bottom: 20px;}
.sassy-label { font-size: 13px; font-weight: 600; color: var(--text-main); }
.sassy-input, .sassy-textarea, .sassy-select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border-dark); border-radius: var(--radius-md); font-family: inherit; font-size: 14px; color: var(--primary); outline: none; transition: border-color 0.2s; background: var(--bg-surface);
}
.sassy-input:focus, .sassy-textarea:focus, .sassy-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.sassy-textarea { resize: vertical; min-height: 120px; }

/* Checkbox & Switch */
.sassy-check-label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-main); cursor: pointer; }
.sassy-checkbox { width: 18px; height: 18px; accent-color: var(--primary); cursor: pointer; }

.sassy-switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.sassy-switch input { opacity: 0; width: 0; height: 0; }
.sassy-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .3s; border-radius: 24px; }
.sassy-slider:before { position: absolute; content: ''; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: .3s; border-radius: 50%; }
.sassy-switch input:checked + .sassy-slider { background-color: var(--primary); }
.sassy-switch input:checked + .sassy-slider:before { transform: translateX(20px); }

/* Alerts */
.sassy-alert { padding: 16px 20px; border-radius: var(--radius-md); border-left: 4px solid; font-size: 14px; display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px;}
.alert-info { background: #eff6ff; border-color: var(--info); color: #1e3a8a; }
.alert-success { background: #f0fdf4; border-color: var(--success); color: #14532d; }

/* Tabs */
.sassy-tabs-header { display: flex; gap: 30px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; white-space: nowrap; padding-bottom: 5px;}
.sassy-tab { padding: 10px 0; font-size: 15px; font-weight: 500; color: var(--text-muted); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s; }
.sassy-tab:hover { color: var(--primary); }
.sassy-tab.active { color: var(--primary); border-color: var(--accent); }
.sassy-tab-content { font-size: 15px; color: var(--text-main); line-height: 26px; }

/* Cards */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    width: 100%;
}

.sassy-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    display: flex;
    flex-direction: column;
    row-gap: 15px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    height: 100%;
}
.sassy-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: #ddd; }
.sassy-card h4 { font-size: 20px; color: var(--primary); font-weight: 600; margin-bottom: 5px; }
.sassy-card p { color: var(--text-main); font-size: 15px; line-height: 24px; flex-grow: 1; margin-bottom: 15px; }
.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.sassy-tag { background: #f4f4f5; color: var(--text-main); padding: 6px 12px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 500; transition: background 0.2s ease; }
.sassy-card:hover .sassy-tag { background: #ebebeb; }

/* Dialog / Modal */
.sassy-dialog-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.sassy-dialog { background: var(--bg-surface); width: 100%; max-width: 500px; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-lg); }
.sassy-dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.sassy-dialog-title { font-size: 20px; font-weight: 600; }
.sassy-dialog-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); }
.sassy-dialog-body { font-size: 14px; color: var(--text-main); margin-bottom: 30px; line-height: 24px; }
.sassy-dialog-footer { display: flex; justify-content: flex-end; gap: 10px; }

/* Progress Bars */
.sassy-progress-track { width: 100%; height: 8px; background: #eaeaea; border-radius: 8px; overflow: hidden; }
.sassy-progress-fill { height: 100%; background: var(--primary); border-radius: 8px; transition: width 0.3s ease; }

.section-header {
    text-align: left;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}
.section-header p {
    font-size: 16px;
    color: var(--text-main);
    max-width: 700px;
}

/* Two Column Layout */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* FOOTER */
footer { width: 100%; display: flex; justify-content: center; border-top: 1px solid var(--border); background: var(--bg-surface); margin-top: 80px;}
footer .footer-main { width: 90%; max-width: 1400px; padding: 60px 0px 30px 0px; display: flex; flex-direction: column; row-gap: 40px; }
footer .footer-content, footer .footer-text { width: 100%; display: flex; justify-content: space-between; }
footer .footer-links ul { display: flex; column-gap: 32px; list-style-type: none; }
footer .footer-logo a { text-decoration: none; color: #000; font-weight: 700; font-size: 24px; letter-spacing: -0.5px;}
footer .footer-links ul li a, footer .footer-text p, footer .footer-text p a { text-decoration: none; color: #938d8f; font-weight: 500; font-size: 15px; transition: color 0.2s ease; }
footer .footer-links ul li a:hover, footer .footer-text p a:hover { color: #000; }
footer .footer-text { justify-content: center; border-top: 1px solid var(--border); padding-top: 30px; margin-top: 20px; }

/* RESPONSIVE */
@media (max-width: 1024px) {
    .two-col-layout { grid-template-columns: 1fr; gap: 40px;}
    .hero-title { font-size: 48px; }
}

@media (max-width: 768px) {
    .global-header nav .nav-mobile-menu-btn { display: block; }
    .global-header nav .nav-links { display: none; }
    .megamenu { display: none !important; }
    footer .footer-content { flex-direction: column; row-gap: 30px; align-items: flex-start; }
    footer .footer-links ul { flex-direction: column; gap: 15px; }
    .hero-title { font-size: 36px; }
    .section-header h2 { font-size: 28px; }
}
