:root {
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --accent-color: #4f8cff;
    --accent-hover: #3a78e7;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    --skill-bar-bg: #2d2d2d;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header Styles */
header {
    margin-bottom: 2rem;
    text-align: center;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

/* Logo Styles */
.logo {
    margin-bottom: 1.5rem;
}

.logo-dp {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--accent-color); /* Simplified background */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Subtler shadow */
    position: relative;
    overflow: hidden; /* Keep for rounded corners if any content tries to escape */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Removed ::before and ::after pseudo-elements for a cleaner look */

.logo-dp span {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--card-bg); /* Text color for contrast with accent background */
    /* text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3); Removed text shadow */
    z-index: 1;
    font-family: 'Source Code Pro', monospace;
    letter-spacing: -2px;
}

.profile-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--accent-color), #6a5acd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(79, 140, 255, 0.3);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 300;
}

/* Card Styles */
.card {
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.45); /* Slightly deeper shadow */
}

.card h2 {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--accent-color);
}

.card h2 i {
    margin-right: 0.5rem;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.skill-item {
    margin-bottom: 1rem;
}

.skill-item span {
    display: block;
    margin-bottom: 0.5rem;
}

.skill-bar {
    height: 8px;
    background-color: var(--skill-bar-bg);
    border-radius: 4px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-color), #6a5acd);
    border-radius: 4px;
}

/* Hobbies Section */
.hobby-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.hobby-item {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.hobby-item:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.08);
}

.hobby-item i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.hobby-item h3 {
    margin-bottom: 0.5rem;
}

.hobby-item p {
    color: var(--text-secondary);
}

/* Footer Styles */
footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--text-secondary);
}

.social-links {
    margin-bottom: 1rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    margin: 0 0.5rem;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--card-bg);
    border: 1px solid var(--accent-color);
    border-radius: 50%; /* Circular button */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
}

.theme-toggle:hover {
    background-color: var(--accent-color);
    transform: scale(1.1) rotate(5deg); /* More subtle rotation, added scale */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Enhanced shadow on hover */
}

.theme-toggle:hover i {
    color: var(--card-bg); /* Icon color changes on hover */
}

.theme-toggle i {
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: color 0.3s ease; /* Smooth color transition for icon */
}

/* Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .profile-content h1 {
        font-size: 2rem;
    }

    .skills-container,
    .hobby-container {
        grid-template-columns: 1fr;
    }
}

/* Light Theme Variables (will be applied via JS) */
body.light-theme {
    --bg-color: #f5f5f5;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #666666;
    --card-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --skill-bar-bg: #e0e0e0;
}

/* Animation for page load */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
}

.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.3s; }
.card:nth-child(3) { animation-delay: 0.5s; }