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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

/* CSS Variables for Light/Dark Mode */
:root {
    --bg-color: #f8f9fa;
    --text-color: #434343;
    --card-bg: #ffffff;
    --card-border: rgba(0, 0, 0, 0.05);
    --card-shadow: rgba(0, 0, 0, 0.08);
    --heading-color: #49515a;
    --subtext-color: #778492;
    --link-color: #3aaa64;
    --link-hover: #2d844e;
    --social-bg: #b0b7bf;
    --social-hover: #778492;
    --pattern-color: rgba(0, 0, 0, 0.02);
    --pattern-accent: rgba(0, 0, 0, 0.04);
    --toggle-bg: rgba(255, 255, 255, 0.9);
    --toggle-border: rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #e0e0e0;
    --card-bg: #2d2d2d;
    --card-border: rgba(255, 255, 255, 0.01);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --heading-color: #ffffff;
    --subtext-color: #b0b7bf;
    --link-color: #3aaa64;
    --link-hover: #2d844e;
    --social-bg: #404040;
    --social-hover: #565656;
    --pattern-color: rgba(255, 255, 255, 0.007);
    --pattern-accent: rgba(255, 255, 255, 0.06);
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-border: rgba(255, 255, 255, 0.2);
}

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--toggle-bg);
    border: 0px solid var(--toggle-border);
    color: var(--text-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px var(--card-shadow);
}

.theme-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--card-shadow);
}

/* Large subtle checker pattern background with parallax */
.bg-animation {
    position: fixed;
    top: -20px;
    left: -20px;
    width: calc(100% + 40px);
    height: calc(100% + 40px);
    pointer-events: none;
    z-index: -1;
    background: 
        linear-gradient(45deg, var(--pattern-color) 25%, transparent 25%), 
        linear-gradient(-45deg, var(--pattern-color) 25%, transparent 25%), 
        linear-gradient(45deg, transparent 75%, var(--pattern-color) 75%), 
        linear-gradient(-45deg, transparent 75%, var(--pattern-color) 75%);
    background-size: 120px 120px;
    background-position: 0 0, 0 60px, 60px -60px, -60px 0px;
    transition: transform 0.1s ease-out, all 0.3s ease;
    will-change: transform;
}

/* Main Container */
.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 100px 1rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 3rem;
    padding: 40px 30px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 5px 15px var(--card-shadow);
    animation: fadeInUp 0.8s ease-out;
    border: 1px solid var(--card-border);
    width: 100%;
    max-width: 540px;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.profile-image-container {
    position: relative;
    margin-bottom: 1.5rem;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--card-bg);
    box-shadow: 0 8px 25px var(--card-shadow);
    transition: all 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}


.name {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--heading-color);
    margin: 30px 0 5px 0;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.tagline {
    font-size: 1.3rem;
    color: var(--subtext-color);
    font-weight: 400;
    margin: 18px 0 15px 0;
    transition: color 0.3s ease;
}

.tagline a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 700;
}

.tagline a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--subtext-color);
    font-weight: 400;
    margin: 20px 0;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.subtitle a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.subtitle a:hover {
    color: var(--link-hover);
    text-decoration: underline;
}

/* Social Links Section */
.social-links-section {
    width: 100%;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.social-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--social-bg);
    border-radius: 50%;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
}


.social-link:hover {
    background: var(--social-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--card-shadow);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-icon i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}


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

.social-info {
    display: none;
}



/* Platform-specific colors on hover */
.instagram:hover {
    background: #E4405F;
}

.linkedin:hover {
    background: #0077B5;
}

.threads:hover {
    background: #000000;
}

.youtube:hover {
    background: #FF0000;
}

.tiktok:hover {
    background: #000000;
}

.twitter:hover {
    background: #000000;
}

/* Footer */
.footer {
    margin-top: 2rem;
    text-align: center;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.footer p {
    color: var(--subtext-color);
    font-size: 0.85rem;
    font-weight: 400;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 60px 1rem 2rem;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .tagline {
        font-size: 1.1rem;
    }
    
    .subtitle {
        font-size: 1.0rem;
    }
    
    .profile-image {
        width: 130px;
        height: 130px;
    }
    
    .social-grid {
        gap: 12px;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
    }
    
    .social-icon i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px 0.75rem 2rem;
    }
    
    .name {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
    }
    
    .social-icon i {
        font-size: 1rem;
    }
    
    .profile-section {
        padding: 30px 20px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .social-link {
        border: 2px solid rgba(255, 255, 255, 0.8);
    }
    
    .social-link:hover {
        border-color: white;
    }
}

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

/* Print styles */
@media print {
    .bg-animation {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .social-link {
        background: white;
        border: 1px solid black;
        color: black;
    }
}
