/* main.css - Your main stylesheet to import others */

@import url('base.css');
@import url('layout.css');
@import url('components.css');

/* Any other specific styles for the core app that don't fit into the above categories */

/* REMOVE OR COMMENT OUT THESE STYLES FROM #about-me */
#about-me {
    margin-bottom: var(--spacing-xl); /* Keep margin-bottom if desired */
    margin-top: 1em;
}

/* Ensure image within the about me content is not centered by default */
#about-me .content-split-main img { /* Targeting the image inside the content block */
    border-radius: 50%; /* Make profile picture round */
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: var(--spacing-md);
    border: 3px solid var(--primary-color);
    /* Remove 'margin: 0 auto;' if it was explicitly added for centering */
}

/* Ensure content within about me block is left-aligned */
#about-me .content-split-main {
    text-align: left; /* Explicitly align text left for the content block */
    padding: var(--spacing-lg); /* Add back the padding for the content area */
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: var(--spacing-md);
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
}

/* Adjust heading within about me block */
#about-me .content-split-main h3 {
    text-align: center; /* You had this centered in your screenshot, so let's keep it if that's desired for the name */
    margin-top: 0;
}

/* Center social links if you want them centered below the name */
#about-me .content-split-main .social-links {
    display: flex;
    justify-content: center; /* Center the buttons */
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
    flex-wrap: wrap;
}

/* ---------- 1. Design tokens ---------- */
:root {
    --bg:             #ffffff;
    --fg:             #1a1a1a;
    --accent:         #2979ff;
    --card-background:#f5fcff;
    --border-color:   #e0e0e0;
    --text-color:     #111111;
    --separator-color: rgba(0,0,0,.20); 
    --footer:     #1b1b1b;
    --footer-text-color:     #e8e8e8;
}


[data-theme="dark"] {
    --bg:             #1a1a1a;
    --fg:             #e8e8e8;
    --accent:         #82b1ff;
    --card-background:#1a2026;
    --border-color:   #444444;
    --text-color:     #e8e8e8;
    --separator-color: rgba(255,255,255,.25);
    --footer:     #f2f2f2;
    --footer-text-color:     #111111;
}

.group-separator{
    border:0;
    height:1px;
    background-image:linear-gradient(to right,
                     transparent,
                     var(--separator-color),
                     transparent);
     margin:var(--spacing-xl) 0;
 }
/* apply the variables */
body {
    background: var(--bg);
    color: var(--fg);
    transition: background .3s ease, color .3s ease;
}

/* links, buttons, etc. */
a { color: var(--accent); }
.btn-primary { color: white; }

/* ---------- 2. Header layout ---------- */
header nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
header nav ul { margin: 0; display: flex; gap: 1rem; }

/* ---------- 3. Toggle switch ---------- */
.theme-toggle{
    position: fixed;                /* leave the normal flow */
    top:   0.75rem;                 /* distance from top edge */
    right: 1rem;                    /* distance from right edge */
    width: 46px;                    /* same size as before    */
    height: 24px;
    z-index: 9999;                  /* higher than header/nav */
}

.theme-toggle input {
    position: absolute;
    opacity: 0;            /* hide the real checkbox */
    pointer-events: none;
}
.theme-toggle .slider {
    position: absolute;
    inset: 0;
    background: var(--accent);
    border-radius: 999px;
    transition: background .3s ease;
}
.theme-toggle .slider::before {
    content: "";
    position: absolute;
    height: 18px; width: 18px;
    top: 3px; left: 3px;
    border-radius: 50%;
    background: var(--bg);
    transition: transform .25s ease;
}

/* knob slides right when checked */
.theme-toggle input:checked + .slider::before {
    transform: translateX(22px);
}

/* optional subtle sun / moon colour hint */
[data-theme="dark"] .theme-toggle .slider::before { background:#f5dc00; }


footer {
    background-color: var(--footer);
    color: var(--footer-text-color);
    text-align: center;
    padding: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

