:root {
    --bg-color: #111111;
    --text-color: #ffffff;
    --accent-color: #4facfe;
    --header-bg: rgba(17, 17, 17, 0.7);
}

/* Light mode variables */
.light-mode {
    --bg-color: #f5f5f5;
    --text-color: #111111;
    --accent-color: #0078d7;
    --header-bg: rgba(245, 245, 245, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden; /* Prevents all scrolling */
    transition: background-color 0.4s ease, color 0.4s ease;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 15px;
    height: 15px;
    background-color: var(--text-color);
    border-radius: 50%;
    pointer-events: none; /* Lets you click through the ball */
    z-index: 9999;
    mix-blend-mode: difference; /* Creates a cool contrast effect */
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
}

/* Cursor animation when hovering over links */
.cursor.hovered {
    width: 40px;
    height: 40px;
    background-color: var(--accent-color);
    mix-blend-mode: normal;
    opacity: 0.5;
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 50px;
    background-color: var(--header-bg);
    backdrop-filter: blur(12px); /* Glassmorphism effect */
    z-index: 100;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

nav {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:active, .socials a:active, #theme-toggle:active {
    transform: scale(0.9);
    transition: transform 0.1s ease;
}

/* Underline animation for CV and More */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link:hover::after {
    width: 100%;
}

/* Social Media Section */
.socials {
    display: flex;
    gap: 18px;
    border-left: 1px solid gray;
    border-right: 1px solid gray;
    padding: 0 25px;
}

.socials a {
    color: var(--text-color);
    font-size: 1.2rem;
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.socials a:hover {
    transform: translateY(-4px) scale(1.1);
    color: var(--accent-color);
}

/* Light/Dark Mode Button */
#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    outline: none;
}

#theme-toggle:hover {
    transform: rotate(45deg) scale(1.1);
    color: var(--accent-color);
}

#theme-toggle:active {
    transform: scale(0.8);
}

/* Main Content Area */
main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.6;
}

/* --- MOBILE OPTIMIZATIONS --- */

@media (max-width: 768px) {
    /* 1. Hide the custom cursor ball on mobile/tablets */
    .cursor {
        display: none;
    }
    
    /* 2. Reset the default cursor for touch */
    * {
        cursor: auto !important;
    }

    /* 3. Adjust Header Padding */
    header {
        padding: 15px 20px;
        flex-direction: column; /* Stack elements vertically */
        gap: 15px;
        height: auto;
    }

    /* 4. Adjust the main links */
    .nav-left {
        gap: 30px; /* Closer together but still distinct */
    }

    .nav-link {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    /* 5. Adjust the Socials */
    .nav-right {
        gap: 20px;
        width: 100%;
        justify-content: center; /* Center socials on mobile */
    }

    .socials {
        padding: 0 15px;
        gap: 20px;
    }

    /* 6. Adjust Hero Text so it fits the screen */
    .hero h1 {
        font-size: 2.5rem;
        padding: 0 20px;
    }

    .hero p {
        font-size: 1rem;
    }
}