/* CSS Custom Properties for Themes */
/* Default to dark theme for graceful degradation when JS is disabled */
:root {
    --shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    --text: #e6e6e6;
    --background: #000000;
    --primary: #14223e;
    --secondary: #e6e6e6;
    --accent: #fda312;
    --border-color: #333333;
}

:root[data-theme="light"] {
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --text: #1a1a1a;
    --background: #ffffff;
    --primary: #c1cfeb;
    --secondary: #1a1a1a;
    --accent: #ed9302;
    --border-color: #e0e0e0;
}

:root[data-theme="dark"] {
    --shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
    --text: #e6e6e6;
    --background: #000000;
    --primary: #14223e;
    --secondary: #e6e6e6;
    --accent: #fda312;
    --border-color: #333333;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    height: 70px;
}

/* Home Button with Profile Picture */
.nav-home {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.nav-home:hover {
    transform: scale(1.05);
}

.nav-profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.nav-home:hover .nav-profile-pic {
    box-shadow: var(--shadow);
    transform: scale(1.1);
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
}

/* Theme Toggle Button in Navbar */
.theme-toggle {
    color: var(--text);
    background: transparent;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--background);
    background: var(--text);
    box-shadow: var(--shadow);
    border: none;
}

.theme-toggle svg {
    transition: opacity 0.3s ease;
    width: 18px;
    height: 18px;
}

/* Hide theme toggle when JavaScript is disabled */
.no-js .theme-toggle {
    display: none;
}

/* Show sun icon by default (for dark theme default) */
.theme-toggle .sun-icon {
    display: block;
}

.theme-toggle .moon-icon {
    display: none;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 40px; /* Increased top padding for navbar */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Profile Section */
.profile-section {
    animation: fadeInUp 0.8s ease;
}

.profile-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.profile-image:hover img {
    transform: scale(1.1);
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease 0.2s both;
}

/* Tagline */
.tagline {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--secondary);
    margin-bottom: 35px;
    line-height: 1.4;
    max-width: 500px;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.tagline p {
    margin: 0;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 25px;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.social-links a {
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow);
    background: var(--accent);
    border: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 12px 15px;
        height: 60px;
    }
    
    .nav-profile-pic {
        width: 35px;
        height: 35px;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
    }
    
    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
    
    .container {
        padding: 100px 20px 20px; /* Adjusted for smaller navbar */
    }
    
    .profile-image {
        width: 150px;
        height: 150px;
        margin-bottom: 25px;
    }
    
    .name {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .social-links {
        gap: 20px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 10px 12px;
        height: 55px;
    }
    
    .nav-profile-pic {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }
    
    .container {
        padding: 85px 15px 15px; /* Adjusted for smallest navbar */
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .name {
        font-size: 1.75rem;
        margin-bottom: 20px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
    }
    
    .social-links svg {
        width: 20px;
        height: 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .profile-image {
        border-width: 3px;
    }
    
    .social-links a {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
