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

:root {
    /* Light theme variables */
    --primary-bg: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --shadow-color: rgba(0, 0, 0, 0.2);
    --text-primary: #2c3e50;
    --text-secondary: #666;
    --card-bg: white;
    --hover-shadow: rgba(0, 0, 0, 0.15);
    --footer-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] {
    --primary-bg: linear-gradient(135deg, #1a1a1a 0%, #2d3436 100%);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --card-bg: #2d3436;
    --hover-shadow: rgba(0, 0, 0, 0.3);
    --footer-bg: rgba(0, 0, 0, 0.2);
    --border-color: rgba(255, 255, 255, 0.1);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
}

.container {
    max-width: 680px;
    width: 100%;
    padding: 40px 20px;
    margin-top: 100px !important;
}

/* Profile Section */
.profile-section {
    text-align: center;
    margin-bottom: 40px;
}

.profile-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid white;
    box-shadow: 0 8px 20px var(--shadow-color);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.profile-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-color);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(45deg, #12c2e9, #c471ed, #f64f59);
    z-index: -1;
    animation: rotate 4s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

h1 {
    color: var(--text-primary);
    margin-bottom: 10px;
    font-size: 28px;
}

.bio {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 16px;
    line-height: 1.5;
}

/* Links Section */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-button {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px var(--shadow-color);
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

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

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

.link-button i {
    font-size: 24px;
    margin-right: 12px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

.link-button:hover i:not(.arrow-icon) {
    transform: scale(1.2);
}

.link-button span {
    font-size: 16px;
}

.arrow-icon {
    position: absolute;
    right: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.link-button:hover .arrow-icon {
    opacity: 1;
    transform: translateX(5px);
}

/* Social Media Colors */
.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
    border-color: transparent;
}

.facebook:hover {
    background: #1877f2;
    color: white;
    border-color: transparent;
}

.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: transparent;
}

.website:hover {
    background: linear-gradient(45deg, #11998e, #38ef7d);
    color: white;
    border-color: transparent;
}

.email:hover {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
    color: white;
    border-color: transparent;
}

/* Active (Click) States */
.instagram:active {
    background: linear-gradient(45deg, #d1772b, #c85934, #b91f39, #a81d54, #9a1472);
}

.facebook:active {
    background: #145cbb;
}

.twitter:active {
    background: #1780c2;
}

.website:active {
    background: linear-gradient(45deg, #0d7267, #2bc462);
}

.email:active {
    background: linear-gradient(45deg, #1b748c, #58abc0);
}

/* Hover Effects */
.link-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--shadow-color);
}

/* Footer Styles */
.footer {
    width: 100%;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    margin-top: 60px;
    padding: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    padding: 0 15px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.footer-title {
    font-size: 1.5rem;
    font-weight: 600;
    background: linear-gradient(45deg, #11998e, #38ef7d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.footer-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 10px 0;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #11998e;
    transform: translateX(5px);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    transform: translateY(-5px);
}

.footer-social a:hover i {
    animation: bounce 0.5s ease infinite;
}

.footer-social .fa-instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-social .fa-facebook-f:hover {
    color: #1877f2;
}

.footer-social .fa-twitter:hover {
    color: #1da1f2;
}

.footer-social .fa-envelope:hover {
    background: linear-gradient(45deg, #2193b0, #6dd5ed);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.03);
}

.footer-text {
    color: var(--text-primary);
    font-size: 14px;
    margin: 0;
}

.footer-text a {
    color: #11998e;
    text-decoration: none;
    font-weight: 500;
}

.footer-text .fa-heart {
    color: #e74c3c;
    margin: 0 4px;
    animation: heartBeat 1.5s ease infinite;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 5px 0 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }

    .footer-section {
        text-align: center;
        padding: 0;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    h1 {
        font-size: 24px;
    }

    .bio {
        font-size: 14px;
        margin-bottom: 24px;
    }

    .link-button {
        padding: 14px 16px;
    }

    .link-button i {
        font-size: 20px;
    }

    .link-button span {
        font-size: 14px;
    }

    .footer {
        padding: 20px 16px;
    }

    .footer-text {
        font-size: 13px;
    }

    .stats {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .stat-item {
        width: 80%;
        min-width: auto;
    }

    .arrow-icon {
        display: none;
    }
}

/* Print styles */
@media print {
    body {
        background: none;
    }

    .link-button {
        break-inside: avoid;
        border: 1px solid #ddd;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Theme Toggle */
.theme-toggle {
    position: relative;
    top: unset;
    right: unset;
    margin-left: 1rem;
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    border-color: transparent;
}

.theme-toggle:active {
    transform: scale(0.95);
    background: linear-gradient(45deg, #e85f5f, #45b8b0);
}

.theme-toggle i {
    font-size: 20px;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

/* Stats Section */
.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 12px var(--shadow-color);
    min-width: 120px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item i {
    font-size: 24px;
    color: #007bff;
    margin-bottom: 8px;
}

.stat-count {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: var(--text-primary);
    margin: 5px 0;
}

.stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-secondary);
}

/* Animation Delays */
.animate__fadeInUp {
    animation-delay: calc(var(--animation-order) * 0.1s);
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    transition: transform 0.3s ease;
}

.header.scroll-down {
    transform: translateY(-100%);
}

.header.scroll-up {
    transform: translateY(0);
    box-shadow: 0 4px 15px var(--shadow-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    background: linear-gradient(45deg, #11998e, #38ef7d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #11998e, #38ef7d);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover {
    color: #11998e;
}

.nav-link.active {
    color: #11998e;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .logo-text {
        font-size: 1.1rem;
    }

    .header {
        padding: 0.25rem 0.5rem;
    }
}