/* Modern CSS Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Modern Variables */
:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --primary-color: #ff3333;
    --secondary-color: #ff6b6b;
    --hover-color: #ff4444;
    --card-bg: rgba(25, 25, 25, 0.8);
    --accent-glow: rgba(255, 51, 51, 0.3);
}

/* Base Styles */
html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at center, #1a1a1a, var(--bg-color));
    color: var(--text-color);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.6;
    padding: 1rem;
}

.container {
    width: min(95%, 600px);
    margin: auto;
    position: relative;
}

/* Cool background animation */
.container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.5;
    filter: blur(60px);
    z-index: -1;
    animation: pulse 8s ease-in-out infinite;
}

.profile {
    text-align: center;
    padding: clamp(1.5rem, 5vw, 2.5rem);
    background: var(--card-bg);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    margin: auto;
}

/* Profile Image Styles */
.profile-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 2rem;
    box-shadow: 0 0 25px var(--accent-glow);
    position: relative;
}

/* Name Styles */
.name {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Social Icons Styles */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(0.5rem, 2vw, 1.5rem);
    margin-top: 2rem;
    position: relative;
}

.social-icon {
    color: var(--text-color);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    padding: clamp(0.7rem, 2vw, 1rem);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    min-width: clamp(2.5rem, 8vw, 3.5rem);
    min-height: clamp(2.5rem, 8vw, 3.5rem);
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.social-icon:hover {
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}

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

/* Cool Animations */
@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Responsive Design */
/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        width: min(95%, 700px);
    }

    .profile-img {
        width: 220px;
        height: 220px;
    }

    .name {
        font-size: 3rem;
    }

    .social-icon {
        font-size: 1.8rem;
        padding: 1.2rem;
    }
}

/* Desktop and Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        width: min(95%, 600px);
    }

    .profile-img {
        width: 200px;
        height: 200px;
    }

    .name {
        font-size: 2.5rem;
    }

    .social-icon {
        font-size: 1.5rem;
        padding: 1rem;
    }
}

/* Tablet and Small Tablets */
@media (min-width: 481px) and (max-width: 767px) {
    .container {
        width: min(95%, 500px);
    }

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

    .name {
        font-size: 2.2rem;
    }

    .social-icons {
        gap: 1.2rem;
    }

    .social-icon {
        font-size: 1.3rem;
        padding: 0.9rem;
    }
}

/* Mobile Devices */
@media (max-width: 480px) {
    body {
        padding: 0.5rem;
    }

    .container {
        width: min(95%, 400px);
    }

    .profile {
        padding: clamp(1rem, 4vw, 1.5rem);
    }

    .profile-img {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }

    .name {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: clamp(0.4rem, 1.5vw, 0.8rem);
        padding: 0 0.5rem;
    }

    .social-icon {
        min-width: clamp(2.2rem, 7vw, 2.8rem);
        min-height: clamp(2.2rem, 7vw, 2.8rem);
    }
}

/* Small Mobile Devices */
@media (max-width: 320px) {
    body {
        padding: 0.3rem;
    }

    .container {
        width: min(98%, 300px);
    }

    .profile {
        padding: 1rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        margin-bottom: 1.2rem;
    }

    .name {
        font-size: 1.5rem;
    }

    .social-icons {
        gap: 0.4rem;
        padding: 0 0.3rem;
    }

    .social-icon {
        min-width: 2.2rem;
        min-height: 2.2rem;
        font-size: 1rem;
        padding: 0.5rem;
    }
}

/* Handle very tall screens */
@media (min-height: 1000px) {
    .container {
        margin: auto;
    }
}

/* Handle landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        width: min(95%, 600px);
    }

    .profile {
        display: flex;
        align-items: center;
        text-align: left;
        gap: 2rem;
        padding: 1.5rem;
    }

    .profile-img {
        width: 120px;
        height: 120px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .name {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .social-icons {
        gap: 0.8rem;
    }

    .social-icon {
        font-size: 1.2rem;
        padding: 0.8rem;
    }
}