/* CSS Variables for theming */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-light: #34d399;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Respect system preference on initial load */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) {
        --bg-primary: #0f172a;
        --bg-secondary: #1e293b;
        --text-primary: #f1f5f9;
        --text-secondary: #cbd5e1;
        --accent-green: #10b981;
        --accent-green-dark: #059669;
        --accent-green-light: #34d399;
        --border-color: #334155;
        --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    }
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --accent-green: #10b981;
    --accent-green-dark: #059669;
    --accent-green-light: #34d399;
    --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    transition: var(--transition);
    min-height: 100vh;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
    box-shadow: var(--shadow);
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-lg);
}

.toggle-icon {
    font-size: 1.2rem;
    transition: var(--transition);
}

/* Header Section */
.header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out;
}

.profile-section {
    max-width: 600px;
    margin: 0 auto;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 4px solid var(--accent-green);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    animation: fadeIn 1s ease-out 0.2s both;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.3);
}

.name {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.intro-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* Section Titles */
.section-title {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-green-light));
    border-radius: 2px;
}

/* Social Links */
.social-links {
    margin-bottom: 4rem;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.links-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    box-shadow: var(--shadow);
    min-width: 140px;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-2px);
    border-color: var(--accent-green);
    box-shadow: var(--shadow-lg);
    color: var(--accent-green);
}

.social-icon {
    width: 24px;
    height: 24px;
    transition: var(--transition);
}

.social-link:hover .social-icon {
    transform: scale(1.1);
}

/* GitHub specific styling */
.social-link.github:hover {
    background: linear-gradient(135deg, #24292e, #1a1e22);
    color: #ffffff;
}

/* LinkedIn specific styling */
.social-link.linkedin:hover {
    background: linear-gradient(135deg, #0077b5, #005885);
    color: #ffffff;
}

/* Projects Placeholder */
.projects-placeholder {
    text-align: center;
    animation: fadeInUp 0.8s ease-out 1s both;
}

.placeholder-text {
    color: var(--text-secondary);
    font-style: italic;
    font-size: 1.1rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .dark-mode-toggle {
        top: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
    
    .links-container {
        gap: 1rem;
    }
    
    .social-link {
        padding: 0.875rem 1.5rem;
        min-width: 120px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 1rem 0.75rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .intro-text {
        font-size: 0.95rem;
    }
    
    .links-container {
        flex-direction: column;
        align-items: center;
    }
    
    .social-link {
        width: 100%;
        max-width: 200px;
    }
}

/* Focus styles for accessibility */
.social-link:focus,
.dark-mode-toggle:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Smooth theme transition */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
