@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@400;700&display=swap');

/* CSS Variables with Fallbacks */
:root {
    --primary-color: #2c5282;
    --secondary-color: #e2e8f0;
    --accent-color: color-mix(in srgb, white, lightblue 40%);
    --text-color: #2d3748;
    --font-main: 'Roboto', 'Arial', sans-serif; 
    --font-heading: 'Poppins', 'Verdana', sans-serif; 
}

body {
    font-family: var(--font-main, 'Arial', sans-serif);
    margin: 0;
    padding: 0;
    background-color: var(--secondary-color, #f0f4f8);
    color: var(--text-color, #2d3748);
}

header {
    background-color: var(--primary-color, #2c5282);
    color: white;
    padding: 2rem;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 2.5em); 
    font-family: var(--font-heading, 'Verdana', sans-serif); 
}

/* Responsive Navigation */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 10px 0 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-family: var(--font-heading, 'Verdana', sans-serif); 
    font-weight: bold;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

nav ul li a:hover {
    color: var(--accent-color, lightblue);
    transform: scale(1.1);
}

main {
    padding: 2rem;
    max-width: 80%;
    margin: 0 auto;
}

h1, h2 {
    color: color-mix(in srgb, plum, #f00, 10%);
    font-family: var(--font-heading, 'Verdana', sans-serif);
}

#position {
    display: flex;
    align-items: center;
    margin-top: 2rem;
}

#profilepic {
    border-radius: 50%;
    margin-right: 20px;
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 3px solid #2c5282;
}

pre {
    font-size: 1.2em;
    line-height: 1.6;
    background-color: var(--secondary-color, #e2e8f0);
    padding: 1rem;
    border-radius: 5px;
    flex: 1;
    color: #4a5568;
    font-family: var(--font-main, 'Arial', sans-serif); 
}


blockquote {
    font-style: italic;
    text-align: center;
    margin: 2rem 0;
    padding: 1rem;
    background-color: var(--secondary-color, #e2e8f0);
    border-left: 5px solid var(--primary-color, #2c5282);
    font-family: var(--font-main, 'Arial', sans-serif); 
    color: #4a5568;
}


footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--primary-color, #2c5282);
    color: white;
    margin-top: 2rem;
    font-family: var(--font-main, 'Arial', sans-serif); 
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

header, main, footer {
    animation: fadeIn 1s ease-in-out;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
        text-align: center;
    }
    
    #position {
        flex-direction: column;
        text-align: center;
    }

    #profilepic {
        width: 20dvw;
        height: 20dvh;
        margin: 1rem auto;
    }

    main {
        max-width: 90%;
    }
    
}

/* Small Screens */
@media (max-width: 480px) {
    header h1 {
        font-size: 2rem;
    }

    nav ul {
        flex-direction: column;
    }

    main {
        padding: 1rem;
    }

    pre {
        font-size: 14px; 
        padding: 10px;
        white-space: pre-wrap; 
        word-wrap: break-word; 
    }
    
}


[data-theme="dark"] {
    --bg-color: #121212;
    --text-color: #e0e0e0;
    --input-border: #444;
    --button-bg: #1E90FF;
    --button-text: #ffffff;
    --font-family: Arial, sans-serif;
  }
  
body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    margin: 0;
    transition: background-color 0.3s, color 0.3s, font-family 0.3s;
  }
  
form {
    width: 300px;
    display: flex;
    flex-direction: column;
  }
  
input, textarea {
    padding: 8px;
    margin-bottom: 16px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    background-color: var(--bg-color);
    color: var(--text-color);
  }
  
button {
    background-color: var(--button-bg);
    color: var(--button-text);
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
#theme-toggle {
    color: #007BFF;
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    border: 4px black;
  }
  
  #theme-customizer {
    position: fixed; 
    top: 80px; 
    right: 10px;
    background: var(--bg-color);
    padding: 10px;
    border: 1px solid var(--input-border);
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000; 
    max-width: 250px;
}

#theme-customizer label {
    display: block;
    margin-bottom: 5px;
}

#theme-customizer input, #theme-customizer select {
    margin-bottom: 10px;
    width: 100%;
}

#reset-theme {
    background-color: #ff4444;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    width: 100%; 
}

#reset-theme:hover {
    background-color: #cc0000;
}
  