/* Messy vs Clean Theme Stylesheet */

:root {
    /* Messy Theme Variables */
    --bg-messy: #f4f1ea;
    --text-messy: #2c2c2c;
    --accent-messy: #d94f30;
    
    /* Professional Blueprint Variables */
    --bg-clean: #fcfbf8;
    --text-clean: #1a1a1a;
    --accent-clean: #000000;
    --surface-clean: #ffffff;
}

body {
    transition: background-color 1s cubic-bezier(0.4, 0, 0.2, 1), color 1s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
    font-family: 'Caveat', cursive;
    background-color: var(--bg-messy);
    color: var(--text-messy);
    background-image: 
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.2em;
}

body.modern-mode {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-clean);
    color: var(--text-clean);
    background-image: 
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* View State Toggles */
.messy-container, .clean-container {
    width: 100%;
}

/* --- INACTIVE STATES --- */
/* Clean container is inactive by default (when sketch mode is active) */
.clean-container {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    visibility: hidden;
    position: absolute !important;
    top: 0;
    left: 0;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s, height 0s linear 0.8s;
}

/* Messy container is inactive when modern mode is active */
body.modern-mode .messy-container {
    opacity: 0;
    transform: translateY(-20px) scale(0.98);
    visibility: hidden;
    position: absolute !important;
    top: 0;
    left: 0;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    pointer-events: none;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s, height 0s linear 0.8s;
}

/* --- ACTIVE STATES --- */
/* Messy container is active by default (when modern mode is not active) */
.messy-container {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    pointer-events: auto;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s, height 0s linear 0s;
}

/* Clean container is active when modern mode is active */
body.modern-mode .clean-container {
    opacity: 1;
    transform: translateY(0) scale(1);
    visibility: visible;
    position: relative !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow: visible !important;
    pointer-events: auto;
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s, height 0s linear 0s;
}

.sketch-border {
    border: 2px solid var(--text-messy);
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    background: white;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.1);
    transition: margin 0.1s ease-out;
}

.post-it {
    background: #fef08a;
    padding: 1.5rem;
    box-shadow: 2px 4px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: margin 0.1s ease-out, transform 0.3s;
}

.tape {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%) rotate(-2deg);
    width: 80px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    z-index: 10;
    border-left: 1px dashed rgba(0,0,0,0.1);
    border-right: 1px dashed rgba(0,0,0,0.1);
}

.polaroid {
    background: white;
    padding: 10px 10px 40px 10px;
    box-shadow: 3px 5px 10px rgba(0,0,0,0.2);
    position: relative;
    transition: margin 0.1s ease-out;
}

/* Magic Buttons */
.magic-btn-messy {
    background-color: transparent;
    border: 3px solid var(--accent-messy);
    color: var(--accent-messy);
    font-family: 'Caveat', cursive;
    font-size: 1.8rem;
    font-weight: bold;
    padding: 0.5rem 2rem;
    cursor: pointer;
    border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
    transition: all 0.3s;
    display: inline-block;
}
.magic-btn-messy:hover {
    background-color: var(--accent-messy);
    color: white;
    transform: scale(1.05) rotate(-2deg);
}

.blueprint-card {
    background: var(--surface-clean);
    border: 1px solid var(--text-clean);
    position: relative;
}

/* Crosshairs for blueprint look */
.blueprint-card::before, .blueprint-card::after {
    content: ''; position: absolute; background: black;
}

.bp-crosshair {
    position: absolute; width: 9px; height: 9px; pointer-events: none;
}
.bp-crosshair::before { content: ''; position: absolute; top: 4px; left: 0; width: 9px; height: 1px; background: black; }
.bp-crosshair::after { content: ''; position: absolute; top: 0; left: 4px; width: 1px; height: 9px; background: black; }
.bp-tl { top: -5px; left: -5px; }
.bp-tr { top: -5px; right: -5px; }
.bp-bl { bottom: -5px; left: -5px; }
.bp-br { bottom: -5px; right: -5px; }

.blueprint-line-h { height: 1px; background: black; width: 100%; }
.blueprint-line-v { width: 1px; background: black; height: 100%; }
.blueprint-dashed-v { width: 1px; border-left: 1px dashed #666; height: 100%; }

.magic-btn-clean {
    background-color: var(--accent-clean);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-clean);
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.magic-btn-clean:hover {
    background-color: white;
    color: var(--accent-clean);
}

/* Doodle Elements */
.scribble {
    position: absolute;
    pointer-events: none;
    opacity: 0.6;
}

/* ================= LOGO DESIGN (CHAOS/MESSY SIDE) ================= */
.logo-container {
    display: inline-flex;
    align-items: center;
    transform: rotate(-3deg);
    margin-left: 1rem;
    user-select: none;
}

.logo-icon {
    width: 115px;
    height: 115px;
    margin-right: 18px;
    margin-top: -12px; 
}

.logo-text-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hamood-text {
    font-family: 'Aref Ruqaa', serif;
    font-size: 74px;
    font-weight: 700;
    line-height: 0.8;
    margin-bottom: 6px;
    background: linear-gradient(to bottom, #ff6b6b 0%, #f03e3e 50%, #ba2525 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(1px 2px 1px rgba(0,0,0,0.2));
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ba2525 100%);
    transform: rotate(45deg);
    box-shadow: 1px 1px 1px rgba(0,0,0,0.2);
}
.dot-1 { top: -4px; left: 82px; }
.dot-2 { top: 48px; left: 145px; }
.dot-3 { top: 57px; left: 222px; }

.tech-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #333333;
    letter-spacing: 20px;
    text-transform: lowercase;
    margin-left: 10px; 
}

/* ================= RESPONSIVE MOBILE NAVIGATION ================= */

/* Messy Mobile Overlay Menu */
#messy-mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--bg-messy);
    background-image: 
        linear-gradient(90deg, transparent 79px, #abced4 79px, #abced4 81px, transparent 81px),
        linear-gradient(#eee .1em, transparent .1em);
    background-size: 100% 1.2em;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 2rem;
    overflow-y: auto;
}

#messy-mobile-menu.active {
    display: flex;
}

.messy-close-btn {
    font-family: 'Caveat', cursive;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-messy);
    cursor: pointer;
    align-self: flex-end;
    border: 2px dashed var(--accent-messy);
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    background: white;
}

.messy-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.messy-mobile-links a {
    font-family: 'Caveat', cursive;
    font-size: 3rem;
    font-weight: bold;
    color: var(--text-messy);
    text-decoration: none;
}

.messy-mobile-links a:hover {
    color: var(--accent-messy);
    text-decoration: line-through;
}

/* Clean Mobile Overlay Menu */
#clean-mobile-menu {
    position: fixed;
    inset: 0;
    background-color: var(--bg-clean);
    background-image: 
        linear-gradient(rgba(0,0,0,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.04) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 100;
    display: none;
    flex-direction: column;
    padding: 2rem;
    border: 1px solid var(--text-clean);
    overflow-y: auto;
}

#clean-mobile-menu.active {
    display: flex;
}

.clean-close-btn {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-clean);
    cursor: pointer;
    align-self: flex-end;
    border: 1px solid var(--text-clean);
    padding: 0.5rem 1rem;
    margin-bottom: 3rem;
    background: var(--surface-clean);
}

.clean-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.clean-mobile-links a {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-clean);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.2s;
}

.clean-mobile-links a:hover {
    border-bottom: 1px solid var(--text-clean);
}

/* Hamburger button styling */
.sketch-hamburger {
    font-family: 'Caveat', cursive;
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    border: 2px dashed var(--text-messy);
    padding: 0.25rem 0.75rem;
    border-radius: 10px;
    background: white;
    user-select: none;
}

.clean-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    border: 1px solid var(--text-clean);
    padding: 0.75rem;
    background: var(--surface-clean);
    user-select: none;
}
.clean-hamburger span {
    width: 20px;
    height: 2px;
    background-color: var(--text-clean);
}


