:root {
    --primary: #007bff;
    --secondary: #88b8ec;
    --accent: #5aa1ed;
    
    /* Derived colors with opacity variations */
    --primary-10: rgba(0, 123, 255, 0.1);
    --primary-20: rgba(0, 123, 255, 0.2);
    --primary-30: rgba(0, 123, 255, 0.3);
    --secondary-30: rgba(136, 184, 236, 0.3);
    --secondary-50: rgba(136, 184, 236, 0.5);
    --accent-30: rgba(90, 161, 237, 0.3);
    --accent-50: rgba(90, 161, 237, 0.5);
    
    /* Glass effect colors */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.25);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-border-light: rgba(255, 255, 255, 0.3);
    --glass-border-strong: rgba(255, 255, 255, 0.4);
    
    /* Shadow colors */
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-light: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.wave-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.8;
    overflow: hidden;
}

.wave-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

@keyframes wave-flow {
    0% { transform: translateZ(0) rotateX(0deg) rotateY(0deg); }
    25% { transform: translateZ(50px) rotateX(10deg) rotateY(5deg); }
    50% { transform: translateZ(0) rotateX(-5deg) rotateY(-10deg); }
    75% { transform: translateZ(-30px) rotateX(5deg) rotateY(8deg); }
    100% { transform: translateZ(0) rotateX(0deg) rotateY(0deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    padding: 80px 0 60px;
    color: white;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    font-size: 4rem;
    box-shadow: 
        0 20px 40px var(--shadow-dark),
        inset 0 0 50px var(--shadow-light);
    animation: float 6s ease-in-out infinite;
    border: 3px solid var(--glass-border-strong);
    position: relative;
    overflow: hidden;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        var(--shadow-light),
        transparent
    );
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.name {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out;
}

.title {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: slideInUp 1s ease-out 0.3s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 0.6s both;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--primary-20);
    background: var(--glass-bg-hover);
    border: 1px solid var(--secondary-30);
}

.card h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 1.1rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    background: var(--glass-border);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-30);
}

.skill-tag:hover {
    background: var(--secondary-30);
    transform: scale(1.05);
    border: 1px solid var(--secondary-50);
}

.services-section {
    text-align: center;
    padding: 60px 0;
}

.services-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 40px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out 0.8s both;
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px 25px;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out 1s both;
    text-align: center;
    flex: 0 0 280px;
    max-width: 260px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
}
.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px var(--primary-20);
    background: var(--glass-bg-hover);
    border: 1px solid var(--accent-30);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px; /* Fixed icon area */
}

.service-card h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    height: 40px; /* Fixed title area */
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-section {
    text-align: center;
    padding: 40px 0;
}

.social-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out 0.9s both;
}

.map-title {
    color: white;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: slideInUp 1s ease-out 1.1s both;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.map-container {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px var(--shadow-dark);
    animation: slideInUp 1s ease-out 1.3s both;
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px var(--primary-20);
    border: 1px solid var(--accent-30);
}

.map-container iframe {
    border-radius: 15px;
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%) contrast(1.2);
}

.social-link {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-30);
}

.social-link:hover {
    background: var(--secondary-30);
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px var(--primary-30);
    border: 2px solid var(--secondary-50);
}

.footer {
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    color: rgba(255, 255, 255, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .name { font-size: 2.5rem; }
    .title { font-size: 1.2rem; }
    .content-grid { grid-template-columns: 1fr; gap: 20px; }
    .card { padding: 30px; }
    .profile-image { width: 120px; height: 120px; font-size: 3rem; }
    .social-title, .map-title { font-size: 1.5rem; }
    .map-container { 
        padding: 15px; 
        margin: 0 10px;
    }
    .map-container iframe { 
        height: 300px; 
    }
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle 8s linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) rotate(360deg);
        opacity: 0;
    }
}