
/* ==========================================
   KHIM GRAPHICS - COMPLETE WEBSITE STYLES
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* 1. VARIABLES */

:root {
    --gold: #d4af37;
    --light-gold: #f5d778;
    --dark-gold: #a67c00;

    --background: #080808;
    --surface: #121212;
    --card: #181818;
    --text: #ffffff;
    --muted: #b8b8b8;
    --border: rgba(212,175,55,0.22);

    --shadow: 0 10px 35px rgba(0,0,0,0.4);
}

body.light-mode {
    --background: #f5f5f5;
    --surface: #ffffff;
    --card: #ffffff;
    --text: #171717;
    --muted: #555555;
    --border: rgba(166,124,0,0.25);
    --shadow: 0 10px 35px rgba(0,0,0,0.08);
}

/* 2. GLOBAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.7;
    min-height: 100vh;
    transition: background 0.3s, color 0.3s;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

img {
    max-width: 100%;
    display: block;
}

main {
    min-height: 70vh;
}

/* 3. HEADER & NAVIGATION */

.main-header {
    width: 100%;
    min-height: 85px;
    padding: 15px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--gold);
    white-space: nowrap;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 13px;
    font-weight: 500;
    color: var(--muted);
    transition: 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--gold);
}

#theme-toggle {
    background: transparent;
    color: var(--gold);
    border: 1px solid var(--gold);
    border-radius: 25px;
    padding: 9px 15px;
    transition: 0.3s;
}

#theme-toggle:hover {
    background: var(--gold);
    color: #080808;
}

/* 4. BUTTONS */

.login-button {
    display: inline-block;
    padding: 12px 25px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold), var(--dark-gold));
    color: #080808;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    transition: 0.3s;
}

.login-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212,175,55,0.25);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 5. HERO SECTIONS */

.hero-section,
.page-hero {
    padding: 110px 8%;
    text-align: center;
    background:
        radial-gradient(ellipse at top, rgba(212,175,55,0.15), transparent 60%),
        var(--background);
}

.hero-content {
    max-width: 850px;
    margin: auto;
}

.hero-subtitle,
.page-hero > p:first-child {
    color: var(--gold);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero-section h1,
.page-hero h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.2;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-section h1 span,
.page-hero h1 span {
    color: var(--gold);
}

.hero-section p,
.page-hero p {
    color: var(--muted);
    max-width: 700px;
    margin: 0 auto 20px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* 6. SECTION HEADINGS */

.section-heading {
    text-align: center;
    margin-bottom: 45px;
}

.section-heading h2 {
    font-size: 32px;
    color: var(--gold);
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--muted);
}

/* 7. SERVICES */

.services-section,
.portfolio-section,
.about-section,
.order-section,
.contact-section,
.tracking-section,
.dashboard-section {
    padding: 75px 7%;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.service-card {
    padding: 30px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.3s;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.service-card h2,
.service-card h3 {
    color: var(--gold);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

/* 8. ABOUT */

.about-section {
    max-width: 1100px;
    margin: auto;
}

.about-content {
    padding: 30px;
    margin-bottom: 25px;
    background: var(--card);
    border-left: 3px solid var(--gold);
    border-radius: 8px;
}

.about-content h2 {
    color: var(--gold);
    margin-bottom: 15px;
}

.about-content p {
    color: var(--muted);
    margin-bottom: 12px;
}

/* 9. PORTFOLIO */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.portfolio-item {
    overflow: hidden;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--border);
    transition: 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-6px);
    border-color: var(--gold);
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-item h3 {
    color: var(--gold);
    padding: 16px;
    font-size: 15px;
}

/* 10. FORMS */

.form-container {
    width: 100%;
    max-width: 650px;
    margin: auto;
    padding: 35px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.form-container form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-container label {
    color: var(--gold);
    font-size: 14px;
    font-weight: 600;
}

.form-container input,
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 13px 15px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    outline: none;
    margin-bottom: 12px;
}

.form-container input:focus,
.form-container textarea:focus,
.form-container select:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(212,175,55,0.1);
}

.form-container textarea {
    resize: vertical;
}

.form-container select option {
    background: var(--surface);
    color: var(--text);
}

/* 11. LOGIN */

.login-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.login-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.login-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.78);
    z-index: 1;
}

.login-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.login-card {
    width: 100%;
    padding: 40px;
    border-radius: 14px;
    background: rgba(18,18,18,0.94);
    border: 1px solid rgba(212,175,55,0.45);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6);
    color: #ffffff;
}

.login-logo {
    text-align: center;
    color: var(--gold);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
}

.login-card h2 {
    text-align: center;
    margin-bottom: 25px;
}

.login-label {
    display: block;
    color: var(--gold);
    margin-bottom: 7px;
    font-size: 13px;
}

.login-card input {
    width: 100%;
    padding: 13px;
    background: #080808;
    color: #ffffff;
    border: 1px solid rgba(212,175,55,0.3);
    border-radius: 6px;
    margin-bottom: 18px;
    outline: none;
}

.login-card input:focus {
    border-color: var(--gold);
}

.login-card .login-button {
    width: 100%;
}

.register-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: var(--gold);
    font-size: 13px;
}

.password-wrapper {
    position: relative;
}

/* 12. DASHBOARD */

.dashboard-section {
    max-width: 1400px;
    margin: auto;
}

.dashboard-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 25px;
    overflow: hidden;
}

.dashboard-card h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

.dashboard-card p {
    color: var(--muted);
    margin-bottom: 10px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-stats .dashboard-card {
    text-align: center;
}

.dashboard-stats h3 {
    color: var(--muted);
    font-size: 14px;
}

.dashboard-stats p {
    color: var(--gold);
    font-size: 30px;
    font-weight: 800;
    margin-top: 10px;
}

.dashboard-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* 13. TABLES */

.table-container {
    width: 100%;
    overflow-x: auto;
}

table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
}

th,
td {
    text-align: left;
    padding: 14px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

th {
    color: var(--gold);
    background: var(--surface);
}

td {
    color: var(--muted);
}

/* 14. TRACKING */

#tracking-result {
    margin-top: 30px;
    padding: 25px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
}

#tracking-result h2 {
    color: var(--gold);
    margin-bottom: 20px;
}

#tracking-result p {
    margin-bottom: 12px;
}

/* 15. CALL TO ACTION */

.cta-section {
    text-align: center;
    padding: 75px 20px;
    background: linear-gradient(
        135deg,
        rgba(212,175,55,0.12),
        transparent
    );
}

.cta-section h2 {
    color: var(--gold);
    font-size: 30px;
    margin-bottom: 15px;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 25px;
}

/* 16. FOOTER */

.main-footer {
    text-align: center;
    padding: 25px 15px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
}

/* 17. PAGE TRANSITIONS */

body.page-entering {
    animation: khimPageEnter 0.65s ease both;
}

@keyframes khimPageEnter {
    from {
        opacity: 0;
        transform: translateX(35px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.page-leaving {
    animation: khimPageExit 0.65s ease both;
    pointer-events: none;
}

@keyframes khimPageExit {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(-35px);
    }
}

.login-card {
    animation: khimLoginEntrance 0.9s ease both;
}

@keyframes khimLoginEntrance {
    from {
        opacity: 0;
        transform: translateX(-90px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

body.page-leaving::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent,
        #d4af37,
        #f5d778,
        #d4af37,
        transparent
    );
    box-shadow: 0 0 20px #d4af37;
    z-index: 99999;
    pointer-events: none;
}

/* 18. RESPONSIVE DESIGN */

@media (max-width: 1000px) {

    .main-header {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-nav {
        order: 3;
        width: 100%;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .main-header {
        padding: 15px;
    }

    .logo {
        font-size: 20px;
    }

    .main-nav {
        gap: 12px;
    }

    .main-nav a {
        font-size: 11px;
    }

    .hero-section,
    .page-hero {
        padding: 75px 20px;
    }

    .services-section,
    .portfolio-section,
    .about-section,
    .order-section,
    .contact-section,
    .tracking-section,
    .dashboard-section {
        padding: 45px 18px;
    }

    .services-grid,
    .portfolio-grid,
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 22px;
    }

    .login-card {
        padding: 25px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .login-button {
        width: 100%;
    }

    .dashboard-actions {
        flex-direction: column;
    }

    .dashboard-actions .login-button {
        width: 100%;
    }

    .cta-section h2 {
        font-size: 23px;
    }
}

/* 19. ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* KHIM GRAPHICS LOGO */

.main-header .logo {
    display: flex;
    align-items: center;
}

.main-header .logo img {
    width: 160px;
    height: 60px;
    object-fit: contain;
    display: block;
}
