:root {
  /* Light mode colors (default) - Enhanced contrast */
  --bg-primary: #f8f9fa;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-header: #ffffff;
  --bg-footer: #2d3748;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  --accent-color: #d53f8c;
  --accent-hover: #b83280;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e0;
  --shadow-color: rgba(0, 0, 0, 0.08);
  --shadow-strong: rgba(0, 0, 0, 0.15);
  --overlay-bg: rgba(0, 0, 0, 0.7);
  --modal-bg: #ffffff;
  --input-bg: #ffffff;
  --hover-lightness: 0.98;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark mode colors */
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-card: #222222;
    --bg-header: #1a1a1a;
    --bg-footer: #1a1a1a;
    --text-primary: #f2f2f2;
    --text-secondary: #cccccc;
    --text-muted: #aaaaaa;
    --accent-color: #ff69b4;
    --accent-hover: #ff85c2;
    --border-color: #333333;
    --border-strong: #444444;
    --shadow-color: rgba(0, 0, 0, 0.4);
    --shadow-strong: rgba(0, 0, 0, 0.6);
    --overlay-bg: rgba(0, 0, 0, 0.8);
    --modal-bg: #222222;
    --input-bg: #1a1a1a;
    --hover-lightness: 1.1;
  }
}

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

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

/* Gradient background only for dark mode */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #111 0%, #1a1a1a 50%, #111 100%);
        background-size: 400% 400%;
        animation: gradientShift 20s ease infinite;
    }
    
    @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
    }
}

/* Light mode specific background with subtle texture */
@media (prefers-color-scheme: light) {
    body {
        background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
        background-attachment: fixed;
    }
}

/* Header styles */
header {
    text-align: center;
    padding: 25px 20px;
    background: var(--bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 3px solid var(--border-strong);
    box-shadow: 0 4px 20px var(--shadow-color);
}

header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px var(--shadow-color);
}

header a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

header a:hover {
    color: var(--accent-hover);
}

/* Main content */
main {
    flex: 1;
    padding: 40px 30px;
}

/* Home page specific */
.page-header {
    width: 100%;
    background-color: var(--bg-header);
    text-align: center;
    padding: 60px 20px;
    box-sizing: border-box;
    border-bottom: 3px solid var(--border-strong);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.page-header .main-header {
    font-size: 3.5rem;
    margin: 0;
    letter-spacing: 1px;
    text-shadow: 0 4px 15px var(--shadow-color);
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeSlideIn 1s forwards;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .sub-header {
    font-size: 1.3rem;
    margin-top: 20px;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeSlideIn 1s forwards 0.5s;
    font-weight: 500;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.about-section {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 2px solid var(--border-strong);
    box-shadow: 0 8px 30px var(--shadow-color);
}

.about-section h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-weight: 700;
}

.about-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.1rem;
}

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

.buttons {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 60px 0;
}

.button {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    border: 3px solid var(--border-strong);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.button:hover {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 20px 50px var(--shadow-strong);
    border-color: var(--accent-color);
}

.button::before {
    content: "";
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center; 
    filter: blur(12px) brightness(0.7);
    z-index: 0;
    transition: all 0.4s ease;
    background-image: var(--bg-img);
}

.button:hover::before {
    filter: blur(8px) brightness(0.8);
    transform: scale(1.1);
}

.button span {
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--bg-footer) 0%, #4a5568 100%);
    text-align: center;
    font-size: 1rem;
    padding: 40px 20px;
    color: white;
    line-height: 1.7;
    border-top: 3px solid var(--accent-color);
}

footer a {
    color: #ffa7c4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

footer p {
    margin: 10px 0;
}

/* Dark mode footer adjustment */
@media (prefers-color-scheme: dark) {
    footer {
        background: var(--bg-footer);
        border-top: 3px solid var(--accent-color);
    }
    
    footer a {
        color: var(--accent-color);
    }
    
    footer a:hover {
        color: #ff85c2;
    }
}