/* 1. Global Reset & Layout */
* {
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

:root {
    --bg-color: #f4f4f4;
    --text-color: #333;
    --card-bg: #ffffff;
    --accent-color: #007bff;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #f4f4f4;
    --card-bg: #2d2d2d;
    --accent-color: #3793ff;
}

/* Language Toggle Logic - FORCED HIDE */
[data-lang="sr"] .lang-en {
    display: none !important;
}

[data-lang="en"] .lang-sr {
    display: none !important;
}

/* Style for the language button */
#lang-toggle {
    position: fixed;
    top: 20px;
    right: 80px; /* Positioned next to your theme toggle */
    padding: 10px;
    cursor: pointer;
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid var(--accent-color);
    font-weight: bold;
}


/* Change this section in your index.css */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    
    /* USE THE VARIABLES HERE */
    background-color: var(--bg-color);
    color: var(--text-color);
    
    display: flex;
    flex-direction: column;
    align-items: center; 
    min-height: 100vh;
    transition: background-color 0.3s, color 0.3s;
}

/* 2. Content Container 
   This keeps your resume from spreading too wide on big screens */
#header, #education, #career-objective, 
#skills-expertise, #relevant-courses, 
#projects-academic-work, #languages, 
#hobbies-interests, #looking-for, hr {
    width: 100%;
    max-width: 800px; /* Standard resume width */
    padding: 0 20px;
    text-align: center; /* Centers text inside divs */
}

/* 3. Typography */
h1 {
    font-size: 2.5em;
    color: #007bff;
    margin: 20px 0 5px 0;
}

h2 {
    font-size: 1.8em;
    color: #555;
    margin: 20px 0 10px 0;
}

h3 {
    margin-bottom: 5px;
}

/* 4. Elements */
img {
    display: block;
    margin: 20px auto;
    border-radius: 50%; /* Circular profile pic often looks better */
    border: 3px solid #007bff;
    object-fit: cover;
}

hr {
    border: 0;
    border-top: 1px solid #ccc;
    margin: 30px auto;
}

/* 5. Lists 
   To keep bullets but center the list itself, we use inline-block */
ul {
    text-align: left; /* Keep text left-aligned for readability */
    display: inline-block; 
    margin: 0 auto;
    padding: 0 20px;
}

li {
    margin-bottom: 10px;
}

/* Nested lists (for projects) */
ul ul {
    display: block;
    margin-top: 5px;
}

/* 6. Links */
a {
    color: #007bff;
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* 7. Footer - Full Width */
footer {
    width: 100%;
    background-color: #333;
    color: #f4f4f4;
    padding: 20px 0;
    margin-top: 50px;
    text-align: center;
}

/* Footer Navigation Styling */
footer ul {
    display: flex;
    justify-content: center;
    gap: 20px; /* Space between the buttons */
    list-style: none;
    padding: 20px 0;
}

footer button {
    background-color: #007bff; /* Matching your primary blue */
    border: none;
    border-radius: 5px;
    padding: 0; /* Remove default padding to let the link fill the space */
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

footer button:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-2px); /* Slight "lift" effect */
}

footer button:active {
    transform: translateY(0); /* Press down effect */
}

/* Make the link fill the entire button area */
footer button li {
    margin: 0;
}

footer button a {
    display: block;
    padding: 12px 25px; /* Control button size here */
    color: white !important; /* Ensure text stays white */
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
}

footer button a:hover {
    text-decoration: none; /* Remove underline for buttons */
}





@media print {
    .no-print, #theme-toggle, footer {
        display: none !important;
    }
    body {
        background: white;
        color: black;
        padding: 0;
    }
    /* Ensures links don't show URLs next to them on paper */
    a { text-decoration: none; color: black; }
}
