/* Custom Design Tokens - Updated for a Vivid, Vibrant Theme */
:root {
    --primary-gradient: linear-gradient(135deg, #00b4db, #0083b0); /* Electric Teal/Blue */
    --accent-color: #ff5722; /* Vivid Coral */
    --text-color: #1a202c; /* Deep Charcoal for readability */
    --text-light: #718096;
    --bg-main: #f0f7f9; /* Soft tint of cyan for the overall page background */
    --card-bg: #ffffff;
    --header-bg: rgba(255, 255, 255, 0.92);
    --border-color: #e2f0f5;
    --transition-speed: 0.25s;
}

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

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-main);
    /* Subtle background glow effect */
    background-image: radial-gradient(circle at 80% 20%, rgba(0, 180, 219, 0.15) 0%, transparent 40%),
                      radial-gradient(circle at 10% 70%, rgba(255, 87, 34, 0.1) 0%, transparent 50%);
    line-height: 1.6;
    padding-top: 70px; 
    overflow-x: hidden; 
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 20px rgba(0, 131, 176, 0.08); /* Colored shadow hint */
    border-bottom: 2px solid #00b4db; /* Vivid top accent line */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    z-index: 1000;
}

/* Header Profile Image - Keeps the previous fix */
header .profile-img {
    height: 44px;
    width: auto;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #00b4db; /* Pops the image out from the header */
    transition: transform var(--transition-speed) ease;
}

header .profile-img:hover {
    transform: scale(1.1) rotate(5deg); /* Fun hover interaction */
}

header ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

header a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600; /* Bold links for higher contrast */
    font-size: 1rem;
    position: relative;
    transition: color var(--transition-speed) ease;
}

/* Dynamic Animated Border on Link Hover */
header a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

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

header a:hover::after {
    width: 100%;
}

/* Tighter Sections with Vivid Pop */
section {
    padding: 60px 10%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

/* Alternate section backgrounds to give structure and color depth */
section:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.6);
    box-shadow: inset 0 10px 20px rgba(0, 0, 0, 0.02), inset 0 -10px 20px rgba(0, 0, 0, 0.02);
}

/* Styling for titles to automatically make them pop */
section h1, section h2 {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent; /* Gradient text effect */
    margin-bottom: 15px;
}

/* Large Main Section Image */
#home .profile-img {
    max-width: 100%;
    width: 450px;
    height: auto;
    border-radius: 20px;
    border: 4px solid #ffffff;
    box-shadow: 0 15px 35px rgba(0, 131, 176, 0.2); /* Strong, colorful drop shadow */
}

/* Vibrant Footer */
footer {
    text-align: center;
    padding: 40px 10%;
    background: linear-gradient(to right, #1a202c, #2d3748); /* Sleek dark footer for contrast */
    color: #e2e8f0;
    font-size: 0.9rem;
}

/* --- MOBILE & TABLET OPTIMIZATIONS (Maintains all functional updates) --- */
@media (max-width: 768px) {
    body {
        padding-top: 120px; 
    }

    header {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
        gap: 12px;
    }

    header ul {
        gap: 20px; 
    }

    header a {
        font-size: 0.95rem; 
    }

    section {
        flex-direction: column-reverse; 
        text-align: center;
        padding: 40px 6%;
        gap: 30px;
    }

    #home .profile-img {
        width: 80%; 
        max-width: 320px;
    }
}
