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

:root {
    /* Define color variables for easy theme changes */
    --primary-color: #f69eca; /* Pink/Purple */
    --secondary-color: #a5d5f3; /* Sky Blue */
    --text-color: #333;
    --heading-color: #111;
    --background-light: rgba(255, 255, 255, 0.95); /* Nearly white background */
    --background-container: rgba(255, 255, 255, 0.90); /* White background for container */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background-image: url('assets/background.PNG');
    background-attachment: fixed; /* Keep background fixed for better dynamic feel */
    background-size: cover;
    color: var(--text-color);
    line-height: 1.6;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease; /* Transition for dynamics */
}

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

.container {
    max-width: 960px;
    width: 90%;
    margin: auto;
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--background-container); /* Use variable */
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Stronger shadow for depth */
    margin-top: clamp(2rem, 5vh, 5rem);
    margin-bottom: clamp(2rem, 5vh, 5rem);
}

/* --- Navigation --- */
nav {
    background-color: var(--primary-color); /* Use variable */
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 2rem;
}

nav ul {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style-type: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    position: relative;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    padding: 0.5rem 1rem;
    display: block;
    border-radius: 6px;
    transition: background-color 0.3s ease; /* Transition for dynamics */
}

nav ul li a:hover {
    background-color: #d15fa3; /* Darker pink on hover */
    text-decoration: none;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--primary-color);
    padding: 0.5rem 0;
    border-radius: 10px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    z-index: 100; /* Increased z-index */
    list-style: none; /* Ensure no list bullets */
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    font-weight: 500;
}

.dropdown-menu li a:hover {
    color: white;
    background-color: #d15fa3;
}

/* --- Header and Profile --- */
header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.profile-photo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.profile-photo img {
    width: clamp(120px, 20vw, 180px); /* Slightly larger */
    height: clamp(120px, 20vw, 180px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-color); /* Add a border for flair */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease; /* Dynamics: Subtle hover effect */
}

.profile-photo img:hover {
    transform: scale(1.05);
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--heading-color);
    margin-bottom: 0.5rem;
}

header p {
    font-size: clamp(1.1rem, 2.2vw, 1.4rem);
    color: #555;
    font-style: italic;
}

/* --- Section Styling (Card-like) --- */
section {
    padding: 1.5rem 0;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 1rem;
    color: var(--primary-color); /* Use primary color for section headings */
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.about p, .contact p {
    padding: 0.5rem 0;
}

/* General box styles for projects/courses/awards (applied to other pages too) */
.project-box, .course-box, .award-entry, .link-entry {
    background-color: var(--background-light);
    border-left: 5px solid var(--secondary-color); /* Highlight with blue line */
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease; /* Dynamics: Subtle hover effect */
}

.project-box:hover, .course-box:hover, .award-entry:hover, .link-entry:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* --- Button Styling --- */
button {
    padding: 0.75rem 1.5rem;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    background-color: var(--secondary-color); /* Use variable */
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Changed font */
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.1s ease; /* Dynamics */
    letter-spacing: 0.5px;
}

button:hover {
    background-color: #56acf6;
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

.icon {
    width: 24px; /* Slightly larger icons */
    vertical-align: middle;
    margin-right: 8px;
}

/* --- Mobile Responsiveness (Phone Display) --- */
@media (max-width: 768px) {
    /* Adjusted breakpoint to 768px for broader tablet/mobile coverage */
    .container {
        width: 95%; /* More width utilization on smaller screens */
    }

    /* Mobile Navigation (Hamburger-style setup for dropdown) */
    nav ul {
        flex-direction: column; /* Stack menu items vertically on mobile */
        gap: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
    }
    
    .dropdown {
        background-color: #d15fa3; /* Darker background for the 'More' button */
        border-radius: 10px;
    }

    .dropdown-menu {
        position: relative;
        top: 0;
        left: 0;
        box-shadow: none;
        background-color: #d15fa3; /* Use a slightly darker shade for sub-menu */
        padding: 0.5rem 0;
        min-width: unset;
        border-radius: 0 0 10px 10px;
        margin-top: -1px; /* Overlap with the 'More' button background */
    }

    .dropdown-menu li a {
        padding: 0.5rem 0;
        text-align: center;
        font-weight: 400;
    }

    /* Contact Section Mobile Fix */
    .contact p {
        text-align: left;
    }

    button {
        width: 100%;
        margin-top: 0.5rem;
    }

    /* Ensure text is readable */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.4rem; }
    header p { font-size: 1rem; }
    p { font-size: 0.95rem; }
}