* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --primary: #8A2BE2;
    --secondary: #4B0082;
    --dark: #1A001A;
    --light: #F8F0FF;
    --accent: #FF6BCB;
}

body {
    background: linear-gradient(135deg, var(--dark), var(--secondary), var(--primary));
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(26, 0, 26, 0.9);
    backdrop-filter: blur(15px);
    border-radius: 50px;
    padding: 12px 30px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(138, 43, 226, 0.4);
    z-index: 1000;
    min-width: 400px;
}

.nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(138, 43, 226, 0.2);
    transform: translateY(-2px);
}

.nav-links a.active {
    color: var(--accent);
    background: rgba(138, 43, 226, 0.3);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 70%;
}

/* Add padding to body to account for fixed navbar */
body {
    padding-top: 80px;
}

/* Section spacing */
.hero-section {
    padding: 40px 0 20px 0;
}

.about-section {
    padding: 10px 0 60px 0;
}

.contact-section {
    padding: 60px 0;
}

/* Hero Section - Fixed side-by-side layout */
.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 30px;
    min-height: 350px;
}

.profile-card {
    background: rgba(26, 0, 26, 0.7);
    border-radius: 20px;
    padding: 40px 35px;
    flex: 1;
    max-width: 68%;
    display: flex;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.profile-img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 35px;
    overflow: hidden;
    border: 4px solid var(--light);
    box-shadow: 0 0 20px rgba(255, 107, 203, 0.5);
    flex-shrink: 0;
}

.profile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-info h1 {
    font-size: 2.3rem;
    margin-bottom: 12px;
    background: linear-gradient(45deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.profile-info p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 8px;
    line-height: 1.5;
}

.friends-box {
    background: rgba(26, 0, 26, 0.7);
    border-radius: 20px;
    padding: 30px 25px;
    width: 320px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    display: flex;
    flex-direction: column;
}

.friends-box h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
    color: var(--accent);
}

.friends-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    flex: 1;
}

.friend {
    width: 75px;
    height: 75px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border: 3px solid var(--light);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.friend:hover {
    transform: scale(1.1);
}

.friend img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* About Section */
.about-section {
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 30px;
    text-align: center;
    background: linear-gradient(45deg, var(--light), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cards-container {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.card {
    background: rgba(26, 0, 26, 0.7);
    border-radius: 18px;
    padding: 30px 25px;
    flex: 1;
    min-width: 280px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 32px;
    color: var(--light);
    box-shadow: 0 6px 20px rgba(255, 107, 203, 0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.card:hover .card-icon {
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(255, 107, 203, 0.5);
}

.card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--accent);
    text-align: center;
}

.card p {
    text-align: center;
    line-height: 1.5;
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}

.tech-tag {
    background: rgba(138, 43, 226, 0.2);
    color: var(--accent);
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid rgba(255, 107, 203, 0.3);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 107, 203, 0.3);
    transform: translateY(-2px);
}

/* Contact Section */
.contact-section {
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 35px;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--light);
    text-decoration: none;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.social-icon img {
    width: 55%;
    height: 55%;
    object-fit: contain;
}

.social-icon:hover {
    transform: scale(1.1) rotate(8deg);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        gap: 25px;
        min-height: auto;
    }
    
    .profile-card {
        max-width: 100%;
        width: 100%;
    }
    
    .friends-box {
        width: 100%;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .friends-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .friend {
        width: 65px;
        height: 65px;
    }
    
    .navbar {
        min-width: 350px;
        padding: 10px 25px;
    }
    
    .nav-links {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .cards-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .profile-card {
        flex-direction: column;
        text-align: center;
        padding: 30px 25px;
    }
    
    .profile-img {
        margin-right: 0;
        margin-bottom: 20px;
        width: 120px;
        height: 120px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .navbar {
        min-width: 300px;
        padding: 8px 20px;
    }
    
    .nav-links {
        gap: 20px;
    }
    
    .nav-links a {
        font-size: 0.9rem;
        padding: 6px 12px;
    }
}

@media (max-width: 576px) {
    .friends-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .social-icons {
        gap: 20px;
    }
    
    .social-icon {
        width: 55px;
        height: 55px;
        font-size: 24px;
    }
    
    .card {
        padding: 25px 20px;
    }
    
    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
    
    .tech-stack {
        gap: 6px;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 4px 10px;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }
    
    .profile-info h1 {
        font-size: 1.8rem;
    }
    
    .navbar {
        min-width: 280px;
        padding: 8px 15px;
    }
    
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    body {
        padding-top: 70px;
    }
}