@import url("_geteilt/css/style.css");

:root {
    /* Landing Page Specific Variables (overriding shared if needed or adding new) */
    --primary-hue: 220;
    /* Shared CSS uses --primary-hue, so this sets the default for Landing Page */

    --primary: hsl(var(--primary-hue), 80%, 55%);
    --accent: hsl(200, 80%, 50%);

    /* --- Landing Page Light Mode Colors --- */
    --landing-bg-color: hsl(var(--primary-hue), 20%, 97%);
    --landing-grid-color: hsla(var(--primary-hue), 80%, 60%, 0.1);
    --landing-radial-fade: radial-gradient(circle, transparent 40%, rgba(255, 255, 255, 0.8) 90%);
    --landing-ambient-alpha: 0.15;

    --landing-card-bg: rgba(255, 255, 255, 0.7);
    --landing-card-border: rgba(0, 0, 0, 0.08);
    --landing-card-hover-bg: rgba(255, 255, 255, 0.95);
    --landing-card-hover-border: rgba(0, 0, 0, 0.15);
}

body.dark-mode {
    /* --- Landing Page Dark Mode Colors --- */
    --landing-bg-color: hsl(var(--primary-hue), 30%, 5%);
    --landing-grid-color: hsla(var(--primary-hue), 80%, 60%, 0.05);
    --landing-radial-fade: radial-gradient(circle, transparent 40%, #050510 90%);
    --landing-ambient-alpha: 0.15;

    --landing-card-bg: rgba(30, 41, 59, 0.7);
    --landing-card-border: rgba(255, 255, 255, 0.1);
    --landing-card-hover-bg: rgba(30, 41, 59, 0.8);
    --landing-card-hover-border: rgba(255, 255, 255, 0.2);
}

/* Override App Container for Landing Page (No Sidebar Grid) */
.app-container {
    display: block !important;
    /* Disable grid */
    min-height: 100vh;
}

/* Landing Page Body Overrides */
body {
    /* Dynamic Background based on Hue */
    background-color: var(--landing-bg-color);
    background-image:
        linear-gradient(var(--landing-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--landing-grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    /* transition: background-color 0.4s ease; */
    /* transition: background-color 0.5s ease; */
    /* Shared has transitions? */
}

/* Moving Grid Animation */
@keyframes scrollGrid {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 50px 50px;
    }
}

body::after {
    content: "";
    position: fixed;
    /* Fixed to cover screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--landing-radial-fade);
    pointer-events: none;
    z-index: -1;
    /* Behind content */
}

/* Ambient Glow Blobs */
.ambient-light {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, hsla(var(--primary-hue), 80%, 60%, var(--landing-ambient-alpha)) 0%, rgba(0, 0, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite alternate;
}

.light-1 {
    top: 10%;
    left: 10%;
    background: radial-gradient(circle, hsla(var(--primary-hue), 90%, 60%, var(--landing-ambient-alpha)) 0%, rgba(0, 0, 0, 0) 70%);
}

.light-2 {
    bottom: 10%;
    right: 10%;
    animation-delay: -2s;
    background: radial-gradient(circle, hsla(calc(var(--primary-hue) + 40), 90%, 60%, var(--landing-ambient-alpha)) 0%, rgba(0, 0, 0, 0) 70%);
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Container for Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 80px);
    /* Adjust for navbar height */
}

/* Hero Section */
header.hero-header {
    /* Renamed to avoid conflict with shared header tag if any */
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease-out;
    margin-top: 1rem;
}

h1.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

p.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.1;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    /* Forces 3 columns on large screens to match the reference image */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 900px;
    padding: 1rem;
}

/* Make the 4th card (Java) left-aligned in the second row */
.dashboard-grid .card:nth-child(4) {
    grid-column: 1 / 2;
}

/* Glassmorphism Cards */
.card {
    background: var(--landing-card-bg);

    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid var(--landing-card-border);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out backwards;
}

.card:nth-child(2) {
    animation-delay: 0.2s;
}

.card:nth-child(3) {
    animation-delay: 0.4s;
}

.card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Card Hover Effects */
.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.2);
    /* Adapted shadow opacity for better light mode view */
    border-color: var(--landing-card-hover-border);
    background: var(--landing-card-hover-bg);
    text-decoration: none;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

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

/* Card Content */
.card-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.1));
    transition: transform 0.4s ease;
}

.card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Specific Colors & Glows */
.card.html:hover {
    border-color: hsla(240, 80%, 60%, 0.4);
}

.card.html .card-icon {
    color: #6347eb;
}

.card.html:hover .card-icon {
    filter: drop-shadow(0 0 20px hsla(240, 80%, 60%, 0.5));
}

.card.css:hover {
    border-color: hsla(210, 80%, 55%, 0.4);
}

.card.css .card-icon {
    color: #264de4;
}

.card.css:hover .card-icon {
    filter: drop-shadow(0 0 20px hsla(210, 80%, 55%, 0.5));
}

.card.js:hover {
    border-color: hsla(50, 100%, 50%, 0.4);
}

.card.js .card-icon {
    color: #d4ac0d;
}

/* Slightly darker yellow for better visibility */
.card.js:hover .card-icon {
    filter: drop-shadow(0 0 20px hsla(50, 100%, 50%, 0.5));
}

.card.java:hover {
    border-color: hsla(0, 80%, 55%, 0.4);
}

.card.java .card-icon {
    color: #e74c3c;
}

.card.java:hover .card-icon {
    filter: drop-shadow(0 0 20px hsla(0, 80%, 55%, 0.5));
}

/* Card title colors on hover */
.card.html:hover h2 {
    color: #6347eb;
}

.card.css:hover h2 {
    color: #264de4;
}

.card.js:hover h2 {
    color: #d4ac0d;
}

.card.java:hover h2 {
    color: #e74c3c;
}

/* Tools Section */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tool-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--landing-card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--landing-card-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

.tool-card:hover {
    background: var(--landing-card-hover-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    text-decoration: none;
}

.tool-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: color-mix(in srgb, var(--primary) 15%, transparent);
    border-radius: 10px;
    color: var(--primary);
}

.tool-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.tool-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 700px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer */
footer {
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .dashboard-grid .card:nth-child(4) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    h1.hero-title {
        font-size: 2.5rem;
    }

    .main-content {
        padding: 1rem;
    }

    .card {
        padding: 2rem;
    }
}

/* legal.html */
.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.legal-section {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.legal-section h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.legal-section h3 {
    color: var(--text-main);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.3rem;
}

.legal-section ul {
    margin-left: 1.5rem;
    line-height: 1.8;
}

.legal-section li {
    margin-bottom: 0.5rem;
}

.license-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: bold;
    margin: 1rem 0;
}

.highlight-box {
    background: hsla(var(--primary-hue), 80%, 50%, 0.1);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--radius-sm);
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-size: 0.9rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Legal Page specific tweaks */
.legal-header {
    text-align: center;
    margin: 3rem 0;
}

.legal-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
}

.glass-effect {
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
}

.glass-effect:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.text-success {
    color: #2ecc71 !important;
}

.text-danger {
    color: #e74c3c !important;
}

.custom-list {
    list-style-type: none;
    margin-left: 0 !important;
    padding-left: 5px;
}

.custom-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 0.8rem !important;
}

.custom-list li::before {
    content: "•";
    color: var(--primary);
    font-size: 1.5rem;
    position: absolute;
    left: 0;
    top: -5px;
}

.footer-link {
    margin-top: 0.5rem;
}

.legal-highlight-list {
    margin-top: 0.5rem;
}

a:hover {
    text-decoration: underline;
}

/* --- SPLIT-VIEW DASHBOARD LAYOUT --- */
.legal-split-view {
    display: grid;
    grid-template-columns: 35% 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 4rem;
    min-height: calc(100vh - 80px);
    align-items: start;
}

/* Sticky Left Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
    /* Offset from fixed navbar */
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.legal-header-split {
    margin-bottom: 2rem;
    animation: fadeInDown 0.8s ease-out;
}

.legal-icon-hero {
    margin-bottom: 1.5rem;
    color: var(--primary);
    filter: drop-shadow(0 0 20px hsla(var(--primary-hue), 80%, 50%, 0.4));
}

.gradient-stroke {
    stroke: var(--primary);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    background: linear-gradient(to right, #60a5fa, #c084fc, #f472b6);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-info-split {
    margin-top: auto;
    /* Pushes to bottom of sticky area */
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-top: 1rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: hsla(var(--primary-hue), 50%, 50%, 0.1);
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.back-link:hover {
    background: hsla(var(--primary-hue), 80%, 50%, 0.2);
    border-color: hsla(var(--primary-hue), 80%, 50%, 0.5);
    text-decoration: none;
    transform: translateX(-5px);
}

.back-icon {
    margin-right: 5px;
    vertical-align: text-bottom;
}

/* Right Scrollable Content */
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
    padding-top: 2rem;
    /* visually align with sidebar center */
}

/* Enhance existing glass-effect for glow borders */
.glow-border {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* very subtle default */
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent 40%, hsla(var(--primary-hue), 100%, 60%, 0.4), hsla(300, 100%, 60%, 0.4));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.glow-border:hover {
    border-color: transparent;
}

.glow-border:hover::after {
    opacity: 1;
}

/* Staggered Animations */
.stagger-1 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.stagger-2 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.stagger-3 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.stagger-4 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.stagger-5 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}

.stagger-6 {
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

/* Responsive adjustments for legal-split-view */
@media (max-width: 1024px) {
    .legal-split-view {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .legal-sidebar {
        position: relative;
        top: 0;
        height: auto;
        justify-content: flex-start;
        text-align: center;
        border-bottom: 1px solid var(--border);
        padding-bottom: 2rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hidden-mobile {
        display: none;
        /* Hide footer info on top in mobile to avoid repetition */
    }
}

/* --- NAVBAR INDEX.HTML SPECIFIC --- */
.brand-area {
    transition: transform 0.3s ease, filter 0.3s ease;
}

/* --- SRS Notification Styles --- */
.srs-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(13, 17, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.6);
    z-index: 10000;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.srs-notification.visible {
    transform: translateX(-50%) translateY(0);
}

.srs-notification .icon-glow {
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px var(--primary);
    animation: srs-pulse 2s infinite;
}

@keyframes srs-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 5px var(--primary); }
    50% { transform: scale(1.05); box-shadow: 0 0 20px var(--primary); }
    100% { transform: scale(0.95); box-shadow: 0 0 5px var(--primary); }
}

.srs-notification .text {
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}

.srs-notification .action-btn {
    background: var(--primary);
    color: white;
    padding: 8px 18px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.srs-notification .action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px var(--primary);
}

/* Badge for the Dashboard Tool Card */
.tool-card { position: relative !important; }

.due-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 50px;
    box-shadow: 0 5px 15px var(--primary);
    animation: badge-bounce 2s infinite;
    z-index: 10;
}

@keyframes badge-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.brand-area:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 0 8px hsla(var(--primary-hue), 80%, 60%, 0.5));
}