/* Minimal modern CSS for personal website */
:root {
    --background: #106EBE;
    --accent: #0FFCBE;
    --highlight: #45D8CD;
    --text: #ffffff;
    --card-bg: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.2);
    --vh: 1vh;
    --color-scheme: light dark;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #0061f2 0%, #00c6f9 100%);
    color: var(--text);
    font-family: "Inter", system-ui, sans-serif;
    min-height: 100vh; /* Fallback */
    min-height: calc(var(--vh, 1vh) * 100);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    flex: 1;
}

@media (min-width: 768px) {
    .container {
        max-width: 1200px;
        padding: 2rem;
    }
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 0.5rem;
    width: 100%;
    position: relative;
    padding: 0 1rem;
}

.profile-container {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
}

.profile-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--accent), var(--highlight));
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-container:hover::before {
    opacity: 1;
}

.profile-container:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px var(--shadow);
}

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

.profile-container:hover img {
    transform: scale(1.1);
}

/* Name and Description */
h1 {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    text-align: center;
    margin-bottom: 0.15rem;
    color: var(--text);
    text-shadow: 0 2px 4px var(--shadow);
}

.subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    opacity: 0.9;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px var(--shadow);
}

@media (min-width: 480px) {
    .profile-section {
        padding: 0 2rem;
    }
    
    .profile-container {
        width: 180px;
        height: 180px;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    
    .social-icons {
        gap: 1.2rem;
    }
    
    .social-icons a {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .profile-section {
        padding: 0;
    }
    
    .profile-container {
        width: 200px;
        height: 200px;
    }
    
    h1 {
        font-size: 3.2rem;
    }
    
    .social-icons {
        gap: 1.5rem;
        flex-wrap: nowrap;
    }
    
    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

/* Social Icons */
.social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin: 0.15rem auto 2rem;
    max-width: 100%;
    padding: 0 1rem;
}

.social-icons a {
    color: var(--text);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--glass-bg);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px var(--shadow);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
    -webkit-tap-highlight-color: transparent;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 8px 16px var(--shadow);
}

/* Apply hover effects only on non-touch devices */
@media (hover: hover) {
    .social-icons a:hover {
        transform: translateY(-5px);
        background: rgba(16, 110, 190, 0.2);
        border-color: var(--accent);
        color: var(--accent);
    }
}

/* Footer */
footer {
    width: 100%;
    padding: 1.5rem 0;
    text-align: center;
}

/* Navigation Links */
.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.5rem;
    transition: all 0.3s ease;
    text-transform: lowercase;
    letter-spacing: 0.5px;
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

@media (min-width: 480px) {
    .nav-links a {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
}

@media (min-width: 768px) {
    .nav-links {
        gap: 0.2rem;
    }
    
    .nav-links a {
        padding: 0.5rem 1rem;
    }
}

.nav-links a:hover {
    opacity: 1;
    transform: translateY(-2px);
    color: var(--accent);
}

/* Apply hover effects only on non-touch devices */
@media (hover: hover) {
    .nav-links a:hover {
        opacity: 1;
        transform: translateY(-2px);
        color: var(--accent);
    }
}

.dot {
    display: none;
    margin: 0 0.25rem;
    opacity: 0.7;
    color: var(--accent);
}

@media (min-width: 480px) {
    .dot {
        display: inline;
    }
}

@media (min-width: 768px) {
    .dot {
        margin: 0 0.5rem;
    }
}
