/* MASTER DESIGN SYSTEM: style.css */
:root {
    --navy: #011C54;
    --orange: #EC771A;
    --white: #FDFDFD;
    --slate: #64748B;
    --card-bg: #FFFFFF;
}

/* 1. RESET & BASICS */
body, html {
    margin: 0;
    padding: 0;
    background-color: var(--white);
    font-family: 'Inter', sans-serif;
    color: var(--navy);
    scroll-behavior: smooth;
    overflow-x: hidden; 
    width: 100%;
}

/* 2. NAVIGATION */
.navbar {
    background: rgba(253, 253, 253, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(1, 28, 84, 0.08);
    height: 80px;
    z-index: 1050;
}

.kth-logo {
    display: flex;
    align-items: center;
    text-decoration: none !important;
    gap: 12px;
    white-space: nowrap;
}

.logo-box {
    background: var(--navy);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 8px;
    border-bottom: 3px solid var(--orange);
    font-weight: 800;
    font-family: 'League Spartan', sans-serif;
}

.logo-text {
    font-weight: 800;
    color: var(--navy);
    font-size: 1.1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* 3. HERO SECTION */
.hero {
    padding-top: 140px; 
    padding-bottom: 80px;
    background-image: radial-gradient(var(--navy) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
    width: 100%;
}

@media (max-width: 768px) {
    .hero { padding-top: 110px; padding-bottom: 40px; }
}

/* 4. SECTIONS & TYPOGRAPHY */
section { padding: 80px 0; margin: 0 !important; width: 100%; }
h1, h2, h3, h4, .fw-800 { font-family: 'League Spartan', sans-serif; font-weight: 800; letter-spacing: -1px; }

/* 5. HYBRID LAYOUT (Scroller on Mobile, Grid on Desktop) */
.work-wrapper {
    display: flex;
    gap: 24px;
    padding: 10px 5px 40px;
}

/* MOBILE BEHAVIOR (Default) */
.work-wrapper {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start; /* Align left for scroll */
}

/* DESKTOP BEHAVIOR (Large Screens) */
@media (min-width: 992px) {
    .work-wrapper {
        overflow-x: hidden; /* Disable scroll */
        justify-content: center; /* Center cards */
        flex-wrap: wrap; /* Allow wrapping if many items */
    }
}

.app-card {
    min-width: 300px;
    max-width: 360px;
    flex: 0 0 320px; /* Default width */
    
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid rgba(1, 28, 84, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02); /* Subtle shadow base */
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(1, 28, 84, 0.1);
}

/* 6. BUTTONS */
.kth-btn {
    background: var(--orange);
    color: var(--white) !important;
    border-radius: 50px;
    padding: 10px 24px;
    font-weight: 700;
    text-decoration: none !important;
    display: inline-block;
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(236, 119, 26, 0.2);
}

/* 7. WATERMARK FIX */
.watermark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85); /* Stronger background */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.watermark-text {
    transform: rotate(-15deg);
    font-size: 1.8rem; /* Smaller font to prevent overflow */
    font-weight: 900;
    color: rgba(1, 28, 84, 0.1); /* Darker for visibility */
    white-space: nowrap;
    border: 3px solid rgba(1, 28, 84, 0.1);
    padding: 10px 20px;
    border-radius: 12px;
}

/* FORCE WHITE PLACEHOLDERS (Cross-Browser Support) */

/* 1. Chrome, Safari, Edge, Opera */
.roadmap-form .form-control::-webkit-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

/* 2. Firefox 19+ */
.roadmap-form .form-control::-moz-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

/* 3. IE 10+ */
.roadmap-form .form-control:-ms-input-placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

/* 4. Standard Syntax */
.roadmap-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
}

/* Focus State (Make it dimmer when typing) */
.roadmap-form .form-control:focus::-webkit-input-placeholder { color: rgba(255, 255, 255, 0.3) !important; }
.roadmap-form .form-control:focus::-moz-placeholder { color: rgba(255, 255, 255, 0.3) !important; }
.roadmap-form .form-control:focus::placeholder { color: rgba(255, 255, 255, 0.3) !important; }