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

/* CSS Variables for theming */
:root {
    --bg-gradient-start: #667eea;
    --bg-gradient-end: #764ba2;
    --hero-bg: rgba(255, 255, 255, 0.95);
    --profile-image-size: 320px;
    --profile-image-size--mobile: 180px;
    --text-primary: #1f2937;
    /* --text-secondary: #6b7280; */
    --text-secondary: #1f2432;
    --text-white: #fff;
    --border-color: rgba(255, 255, 255, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.95);
    --footer-text: rgba(255, 255, 255, 0.8);
    --footer-link: rgba(255, 255, 255, 0.6);
    --footer-link-hover: rgba(255, 255, 255, 0.9);
}

/* Dark mode variables */
[data-theme="dark"] {
    --bg-gradient-start: #1a1a2e;
    --bg-gradient-end: #16213e;
    --hero-bg: rgba(30, 30, 46, 0.95);
    --text-primary: #e5e7eb;
    --text-secondary: #9ca3af;
    --text-white: #fff;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --card-bg: rgba(30, 30, 46, 0.95);
    --footer-text: rgba(255, 255, 255, 0.9);
    --footer-link: rgba(255, 255, 255, 0.7);
    --footer-link-hover: rgba(255, 255, 255, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    transition: all 0.3s ease;
    cursor: auto !important;
}

/* Force default cursor everywhere */
* {
    cursor: default !important;
}

a, button, .social-icon {
    cursor: default !important;
}

.theme-toggle {
    cursor: default !important;
}

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

/* Hero section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
    /* background: var(--hero-bg); */
    /* backdrop-filter: blur(10px); */
    /* border-radius: 20px; */
    padding: 3rem 2rem;
    /* box-shadow: 0 20px 40px var(--shadow-color); */
    /* border: 1px solid var(--border-color); */
    position: relative;
}

.profile-section {
    position: relative;
}

.profile-image {
    width: var(--profile-image-size);
    height: var(--profile-image-size);
    margin: 0 auto 1.5rem;
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    /* background: linear-gradient(135deg, #667eea, #764ba2); */
    /* background: linear-gradient(185deg, #2e4cd4, #42166f); */
    background: linear-gradient(185deg, #d5d5d5, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.name span {
    font-weight: 100;
}

.tagline {
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.bio {
    font-size: 1rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Content sections */
.content {
    margin-bottom: 3rem;
}

.links-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Dark mode toggle button */
.theme-toggle {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    z-index: 10;
    border: none;
    background: none;
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px var(--shadow-color);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: inline;
    color: #fbbf24;
}

.section-title i {
    font-size: 1.2rem;
}

/* Links grid */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

/* Social Icons Grid - New centered icon layout */
.social-icons-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 2rem 0;
}

/* Force default cursor on all social icon elements */
.social-icons-grid a {
    cursor: default !important;
}

.social-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    cursor: default !important;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.social-icon:hover::before {
    opacity: 1;
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

/* Social media platform colors for icons */
.social-icon[data-platform="github"] {
    background: linear-gradient(135deg, #333, #24292e);
}

.social-icon[data-platform="linkedin"] {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-icon[data-platform="twitter"] {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-icon[data-platform="instagram"] {
    background: linear-gradient(135deg, #e4405f, #833ab4, #fcb045);
}

.social-icon[data-platform="youtube"] {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-icon[data-platform="discord"] {
    background: linear-gradient(135deg, #7289da, #5b6eae);
}

.social-icon[data-platform="facebook"] {
    background: linear-gradient(135deg, #1877f2, #0d5dbf) !important;
}

.social-icon[data-platform="website"] {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
}

.social-icon[data-platform="messenger"] {
    background: linear-gradient(135deg, #00b2ff, #0084cc) !important;
}

.social-icon[data-platform="whatsapp"] {
    background: linear-gradient(135deg, #25d366, #1da851) !important;
}

.social-icon[data-platform="telegram"] {
    background: linear-gradient(135deg, #0088cc, #006699) !important;
}

/* BG Logo styling */
.social-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 14px;
    cursor: default !important;
}

.social-icon i {
    cursor: default !important;
}

.social-icon,
.social-icon *,
.social-icon:hover,
.social-icon:hover * {
    cursor: default !important;
}

.link-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.link-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

/* Social media platform colors */
.social-link[data-platform="github"] .link-icon {
    background: linear-gradient(135deg, #333, #24292e);
}

.social-link[data-platform="linkedin"] .link-icon {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link[data-platform="twitter"] .link-icon {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link[data-platform="instagram"] .link-icon {
    background: linear-gradient(135deg, #e4405f, #833ab4, #fcb045);
}

.social-link[data-platform="youtube"] .link-icon {
    background: linear-gradient(135deg, #ff0000, #cc0000);
}

.social-link[data-platform="discord"] .link-icon {
    background: linear-gradient(135deg, #7289da, #5b6eae);
}

.work-link .link-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.link-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.link-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.link-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.link-arrow {
    font-size: 1rem;
    color: #9ca3af;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.link-card:hover .link-arrow {
    color: #667eea;
    transform: translateX(4px);
}

/* Footer */
.footer {
    text-align: center;
    padding: 2rem 0;
    color: var(--footer-text);
    /* border-top: 1px solid var(--border-color); */
}

.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-link {
    color: var(--footer-link);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--footer-link-hover);
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .hero {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .link-card {
        padding: 1.25rem;
    }
    
    .profile-image {
        width: var(--profile-image-size--mobile);
        height: var(--profile-image-size--mobile);
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Social icons responsive */
    .social-icons-grid {
        gap: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .social-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 1.5rem 1rem;
    }
    
    .name {
        font-size: 1.75rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .link-card {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    /* Social icons mobile */
    .social-icons-grid {
        gap: 1rem;
        margin: 1rem 0;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        border-radius: 15px;
    }
}

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

.hero {
    animation: fadeInUp 0.8s ease-out;
}

.links-section {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

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

/* Focus styles for keyboard navigation */
.link-card:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

.footer-link:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}
