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

/* CSS Variables for Light and Dark Mode */
:root {
    --bg-gradient-start: #f8fafc;
    --bg-gradient-end: #e2e8f0;
    --text-color: #1e293b;
    --text-secondary: #475569;
    --primary-color: #2563eb;
    --primary-hover: #6366f1;
    --card-bg: #ffffff;
    --card-hover-bg: #e2e8f0;
    --divider-color: #e2e8f0;
    --link-bg: #f1f5f9;
    --link-hover-bg: #e2e8f0;
}

[data-theme="dark"] {
    --bg-gradient-start: #0f172a;
    --bg-gradient-end: #1e293b;
    --text-color: #f1f5f9;
    --text-secondary: #cbd5e1;
    --primary-color: #3b82f6;
    --primary-hover: #818cf8;
    --card-bg: #1e293b;
    --card-hover-bg: #334155;
    --divider-color: #334155;
    --link-bg: #334155;
    --link-hover-bg: #475569;
}

/* Base layout */
body{
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-color);
    min-height:100vh;
    display:flex;
    flex-direction:column;
    align-items:center;
    padding:30px 15px;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Main container */
section{
    width:100%;
    max-width:720px;
    background: var(--card-bg);
    padding:30px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] section{
    box-shadow:0 10px 25px rgba(0,0,0,0.5);
}

/* Header */
.vmnhd h1{
    text-align:center;
    font-size:1.9rem;
    margin-bottom:18px;
    letter-spacing:1px;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

/* Divider */
hr{
    border:none;
    height:1px;
    background: var(--divider-color);
    margin:14px 0;
    transition: background 0.3s ease;
}

/* Link cards */
.vmncnd{
    background: var(--link-bg);
    border-radius:8px;
    margin:10px 0;
    transition:all .25s ease;
}

.vmncnd:hover{
    transform:scale(1.02);
    background: var(--link-hover-bg);
}

/* Links */
.vmncnd a{
    display:block;
    padding:14px 18px;
    text-decoration:none;
    color: var(--text-color);
    font-weight:600;
    position:relative;
    transition: color 0.3s ease;
}

/* Animated underline */
.vmncnd a::after{
    content:"";
    position:absolute;
    left:18px;
    bottom:10px;
    width:0%;
    height:2px;
    background: var(--primary-color);
    transition:width .3s ease;
}

.vmncnd a:hover::after{
    width:60%;
}

/* Note */
p{
    margin-top:18px;
    font-size:0.9rem;
    color: var(--text-secondary);
    text-align:center;
    transition: color 0.3s ease;
}

/* Contact Button */
.submit a{
    margin-top:25px;
    padding:12px 26px;
    border-radius:30px;
    text-decoration:none;
    font-weight:bold;
    background:linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color:white;
    transition:all .25s ease;
}

.submit a:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 18px rgba(0,0,0,0.15);
}

/* Responsive */
@media(max-width:500px){
    section{
        padding:18px;
    }

    .vmnhd h1{
        font-size:1.5rem;
    }
}

/* related section  */
.related-resources{
    margin-top:40px;
    padding:20px;
    background: var(--link-bg);
    border-radius:10px;
    transition: background 0.3s ease;
}

.related-resources h3{
    margin-bottom:12px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.related-resources ul{
    list-style:none;
    padding:0;
}

.related-resources li{
    margin:8px 0;
}

.related-resources a{
    text-decoration:none;
    font-weight:600;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.related-resources a:hover{
    text-decoration:underline;
}

/* ==========================================
   Dark Mode Toggle Button (Floating)
   ========================================== */

.dark-mode-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--divider-color);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
}

.dark-mode-toggle:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(15deg);
}

.dark-mode-toggle:hover svg {
    color: white;
}

.dark-mode-toggle svg {
    width: 24px;
    height: 24px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.dark-mode-toggle .sun-icon,
[data-theme="dark"] .dark-mode-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .dark-mode-toggle .sun-icon {
    display: block;
}

.dark-mode-toggle .moon-icon {
    display: block;
}

/* Mobile responsive for dark mode toggle */
@media (max-width: 500px) {
    .dark-mode-toggle {
        width: 45px;
        height: 45px;
        top: 15px;
        right: 15px;
    }
    
    .dark-mode-toggle svg {
        width: 20px;
        height: 20px;
    }
}
