/* ==========================
   CreateLK Professional Style (Improved)
   ========================== */

:root {
    /* Brand Colors */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary: #111827;
    --accent: #ff5e62; /* Vibrant accent for highlights */
    
    /* Backgrounds & Text */
    --bg-main: #f7f8fc;
    --bg-card: #ffffff;
    --text-main: #222222;
    --text-muted: #4b5563;
    --text-light: #ffffff;
    
    /* Layout & Shadows */
    --radius-md: 8px;
    --radius-lg: 15px;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(37, 99, 235, 0.15);
    --transition: all 0.3s ease;
}

/* =========================
   Reset & Base Styles
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    background: var(--bg-main);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* =========================
   Header & Navigation
========================= */

header {
    background: var(--secondary);
    color: var(--text-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

header h1 {
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 0.5px;
}

header p {
    font-size: 14px;
    color: #9ca3af;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

nav a {
    color: var(--text-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: var(--transition);
    font-size: 15px;
}

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

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================
   Hero Section
========================= */

.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--text-light);
    padding: clamp(60px, 8vw, 100px) 0;
    text-align: center;
}

.hero h2 {
    color: #ffffff; /* Ensures strong contrast on dark backgrounds */
    font-size: clamp(32px, 5vw, 48px);
    margin: 20px 0;
    line-height: 1.2;
}

.hero p {
    font-size: clamp(16px, 3vw, 20px);
    max-width: 800px;
    margin: 0 auto 30px auto;
    opacity: 0.9;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

/* =========================
   Buttons
========================= */

.button {
    display: inline-block;
    margin: 10px 5px;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.button.secondary {
    background: transparent;
    border-color: var(--text-light);
    color: var(--text-light);
}

.button.secondary:hover {
    background: var(--text-light);
    color: var(--secondary);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* =========================
   Sections & Layout
========================= */

section {
    padding: 70px 0;
}

section h2 {
    text-align: center;
    margin-bottom: 45px;
    font-size: clamp(28px, 4vw, 36px);
    color: var(--secondary);
}

/* =========================
   Cards
========================= */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.card {
    background: var(--bg-card);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    border-top: 4px solid var(--primary);
}

.card:nth-child(even) {
    border-top: 4px solid var(--accent);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card h2 {
    color: var(--primary);
    font-size: 36px;
    margin-bottom: 10px;
}

.card h3 {
    color: var(--secondary);
    margin-bottom: 15px;
    font-size: 22px;
}

.card h4 {
    margin-top: 20px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-weight: 500;
}

/* =========================
   Lists
========================= */

ul {
    background: var(--bg-card);
    padding: 30px 40px;
    border-radius: var(--radius-lg);
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-sm);
    list-style: none;
}

li {
    margin: 15px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 12px;
    font-size: 18px;
}

/* =========================
   Portfolio Gallery
========================= */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* =========================
   Payment Box
========================= */

.payment {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    max-width: 600px;
    margin: 0 auto;
    border-left: 5px solid var(--primary);
}

.payment h3 {
    margin-bottom: 20px;
    color: var(--primary);
}

.payment p {
    margin-bottom: 15px;
}

/* =========================
   Footer
========================= */

footer {
    background: var(--secondary);
    color: var(--text-light);
    text-align: center;
    padding: 50px 20px 80px 20px; /* Generous bottom padding to clear floating elements */
    margin-top: 40px;
}

footer p {
    margin-bottom: 15px;
}

footer a {
    color: #60a5fa;
    text-decoration: none;
    transition: var(--transition);
    margin: 0 5px;
}

footer a:hover {
    color: var(--text-light);
    text-decoration: underline;
}

/* =========================
   WhatsApp Floating Button
========================= */

.whatsapp {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

.whatsapp:hover {
    background: #1ebc59;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
    animation: none;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================
   Mobile Responsiveness
========================= */

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        text-align: center;
    }

    .brand p {
        display: none; /* Hides subtitle to save space on small screens */
    }

    .mobile-menu-toggle {
        display: inline-block;
        margin-top: 15px;
    }

    /* Hides navigation items by default until toggled */
    #mainNav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding-top: 15px;
    }

    /* Class triggered by JavaScript */
    #mainNav.active {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: center;
    }

    .hero {
        padding: 50px 0;
    }

    .button {
        width: 100%;
        margin: 10px 0;
        display: block;
    }

    .button-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }
    
    .whatsapp {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 14px;
    }
}
