/* ==========================================================================
   SEWASINI.MY - GUEST CORE CSS
   Common styles for all Guest pages
   ========================================================================== */

:root {
    --primary: #DC2626;
    --primary-dark: #B91C1C;
    --primary-light: #FEE2E2;
    --secondary: #0F0F0F;
    --secondary-light: #262626;
    --accent: #EF4444;
    --dark: #0F0F0F;
    --light: #FAFAFA;
    --gray: #737373;
    --gray-light: #E5E5E5;
    --gray-dark: #404040;
    --success: #16A34A;
    --danger: #DC2626;
    --white: #ffffff;
    --black: #000000;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-lg);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.8rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.nav-buttons .btn {
    padding: 0.55rem 1.2rem;
    font-size: 0.875rem;
    letter-spacing: 0.3px;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */
.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-size: 1rem;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    border-color: var(--secondary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--white);
    border: none;
    font-weight: 800;
    box-shadow: var(--shadow);
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
}

/* ==========================================================================
   Section Styles
   ========================================================================== */
.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    color: var(--dark);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title p {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 500;
}

/* ==========================================================================
   Feature Card Styles
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary);
    font-size: 1.75rem;
    transition: all 0.3s;
    border: 2px solid rgba(220,38,38,0.2);
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: all 0.3s;
    border-radius: 50%;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: var(--white);
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-icon i {
    position: relative;
    z-index: 2;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--gray);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.stat-card {
    text-align: center;
    color: var(--white);
    padding: 2rem 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: all 0.3s;
}

.stat-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
    background: linear-gradient(135deg, #FFFFFF 0%, #F0F0F0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 600;
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
footer {
    background: var(--secondary);
    color: var(--white);
    padding: 4rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: white;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 4px;
    background: var(--primary);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1.2rem;
    color: var(--gray-light);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-col ul li i {
    color: var(--primary);
    font-size: 0.9rem;
    width: 16px;
    flex-shrink: 0;
}

.footer-col ul li a {
    color: var(--gray-light);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
    font-size: 1rem;
}

.footer-col ul li a:hover {
    color: var(--primary);
    padding-left: 6px;
}

.footer-col p {
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s;
    font-size: 1.1rem;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 38, 38, 0.35);
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 1rem;
    font-weight: 500;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-20px) translateX(20px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-title {
    animation: fadeInUp 0.6s ease-out;
}

/* ==========================================================================
   Responsive Design - Common
   ========================================================================== */
@media (max-width: 1200px) {
    .section-title h2 {
        font-size: 2rem;
    }
}

/* ==========================================================================
   Active Nav Link
   ========================================================================== */
.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

/* ==========================================================================
   Hamburger Button
   ========================================================================== */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s;
}

.nav-hamburger:hover {
    background: var(--primary-light);
}

.nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Mobile Menu Dropdown — hidden by default on ALL screen sizes
   ========================================================================== */
.mobile-menu {
    display: none;
    flex-direction: column;
    background: white;
    border-top: 1px solid var(--gray-light);
    padding: 1rem 0;
}

.mobile-menu.open {
    display: flex;
    animation: slideDown 0.2s ease-out;
}

.mobile-menu a {
    display: block;
    padding: 0.9rem 0;
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid var(--gray-light);
    transition: color 0.2s;
}

.mobile-menu a:last-of-type {
    border-bottom: none;
}

.mobile-menu a:hover {
    color: var(--primary);
}

.mobile-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-light);
}

.mobile-menu-actions .btn {
    width: 100%;
    text-align: center;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive Design - Common
   ========================================================================== */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-buttons .btn {
        display: none;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .navbar {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .section {
        padding: 3.5rem 0;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }
}
