/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
    animation: floatBg 20s ease-in-out infinite;
    z-index: -1;
}

/* Navigation */
.navbar-custom {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 10px 30px;
    animation: slideDown 1s ease-out;
    width: auto;
}

.navbar-nav {
    gap: 30px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0 !important;
}

.navbar-nav .nav-link:hover {
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* Section Styling */
.custom-section {
    min-height: 100vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-content {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 60px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(50px);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.section-content.visible {
    animation-delay: 0.2s;
}

/* Profile Image */
.profile-image-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
#hero .section-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 300;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Social Links */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    text-decoration: none;
    color: white;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 80px;
    margin-bottom: 15px;
    text-align: center;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.social-link:hover::before {
    left: 100%;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    text-decoration: none;
}

/* Social Links - Perfect Centering */
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    height: 80px;
    position: relative;
}

/* Create a container for the icon and text to center them together */
.social-link-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
}

.social-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    filter: brightness(0) invert(1);
    flex-shrink: 0;
}

/* Fix for Xing icon alignment */
.social-icon-xing {
    transform: translateX(-4px); /* Adjust the icon position */
}

/* Center the row and columns */
.row.g-3 {
    justify-content: center;
}

.col-md-6.col-lg-3 {
    display: flex;
    justify-content: center;
}

.col-md-6.col-lg-3 a.social-link {
    width: 100%;
}

/* Fix for text alignment with icon */
.social-link span {
    display: inline-block;
    vertical-align: middle;
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff, #e0e0e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 40px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

/* Education Cards */
.education-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
    margin-bottom: 30px;
}

.education-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
}

.education-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.education-card h3 {
    color: white;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.education-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
}

.education-card .year {
    color: #4ecdc4;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Floating Elements */
.floating-element {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

/* Large circles */
.floating-element-large {
    width: 100px;
    height: 100px;
    opacity: 0.08;
}

.floating-element-large:nth-of-type(1) {
    top: 15%;
    left: 8%;
    animation: floatCircular 12s ease-in-out infinite;
    animation-delay: 0s;
}

.floating-element-large:nth-of-type(2) {
    bottom: 20%;
    right: 12%;
    animation: float 10s ease-in-out infinite;
    animation-delay: 1s;
}

/* Medium circles */
.floating-element-medium {
    width: 60px;
    height: 60px;
    opacity: 0.1;
}

.floating-element-medium:nth-of-type(1) {
    top: 35%;
    right: 20%;
    animation: floatDiagonal 7s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-element-medium:nth-of-type(2) {
    bottom: 40%;
    left: 15%;
    animation: float 9s ease-in-out infinite;
    animation-delay: 3s;
}

.floating-element-medium:nth-of-type(3) {
    top: 70%;
    right: 30%;
    animation: floatSubtle 8s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Small circles */
.floating-element-small {
    width: 30px;
    height: 30px;
    opacity: 0.12;
}

.floating-element-small:nth-of-type(1) {
    top: 25%;
    left: 30%;
    animation: floatDiagonal 5s ease-in-out infinite;
    animation-delay: 0.5s;
}

.floating-element-small:nth-of-type(2) {
    bottom: 30%;
    right: 35%;
    animation: floatCircular 9s ease-in-out infinite;
    animation-delay: 2.5s;
}

.floating-element-small:nth-of-type(3) {
    top: 60%;
    left: 40%;
    animation: float 6s ease-in-out infinite;
    animation-delay: 3.5s;
}

.floating-element-small:nth-of-type(4) {
    top: 45%;
    right: 5%;
    animation: floatSubtle 7s ease-in-out infinite;
    animation-delay: 1.2s;
}

/* Tiny circles */
.floating-element-tiny {
    width: 15px;
    height: 15px;
    opacity: 0.15;
}

.floating-element-tiny:nth-of-type(1) {
    top: 10%;
    right: 25%;
    animation: floatSubtle 4s ease-in-out infinite;
    animation-delay: 1s;
}

.floating-element-tiny:nth-of-type(2) {
    bottom: 15%;
    left: 25%;
    animation: floatDiagonal 5s ease-in-out infinite;
    animation-delay: 2s;
}

.floating-element-tiny:nth-of-type(3) {
    top: 50%;
    left: 5%;
    animation: floatCircular 6s ease-in-out infinite;
    animation-delay: 3s;
}
