/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: var(--fw-bold);
    line-height: 1.3;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--text-shadow);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: -0.02em;
}

p {
    font-family: var(--font-secondary);
    font-weight: var(--fw-regular);
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
}

/* Friends Section Typography */
.friend-content h3 {
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    font-size: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--text-shadow);
    margin-bottom: 0.5rem;
}

.friend-title {
    font-family: var(--font-secondary);
    font-weight: var(--fw-medium);
    color: var(--neon-blue);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.friend-bio p {
    font-family: var(--font-secondary);
    font-weight: var(--fw-regular);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero Section Typography */
.hero-text h1 {
    font-size: 4rem;
    font-weight: var(--fw-bold);
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero-text p {
    font-size: 1.2rem;
    font-weight: var(--fw-medium);
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

/* Mobile Typography */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    p {
        font-size: 0.95rem;
    }
}

/* Page Loader */
.page-loader {
    position: fixed;
    inset: 0;
    background: #0a0a0f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--pink);
    border-bottom-color: var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    color: var(--text-primary);
    font-size: 1rem;
    letter-spacing: 2px;
    animation: pulse 1.5s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    width: 0%;
    transition: width 0.1s ease;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-5px);
}

/* Custom Selection */
::selection {
    background: var(--accent);
    color: #fff;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Link Hover */
a {
    position: relative;
    text-decoration: none;
}

a:not(.nav-links a):not(.logo):not(.back-to-top)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

a:not(.nav-links a):not(.logo):not(.back-to-top):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Image Hover Effect */
.project-image, .friend-image {
    overflow: hidden;
}

.project-image img, .friend-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image:hover img, .friend-image:hover img {
    transform: scale(1.1);
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 5rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

:root {
    /* Colors */
    --bg-primary: #080808;
    --bg-secondary: #0c0c12;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent: #00ffff;
    --pink: #ff00ff;
    --purple: #8a2be2;
    --neon-blue: #00f3ff;
    --neon-pink: #ff2ecd;
    --neon-purple: #b537f2;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
    --gradient-secondary: linear-gradient(45deg, var(--neon-purple), var(--neon-blue));
    --gradient-text: linear-gradient(120deg, var(--neon-blue) 0%, var(--neon-pink) 50%, var(--neon-purple) 100%);
    
    /* Shadows */
    --neon-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
    --text-shadow: 0 0 10px rgba(0, 243, 255, 0.3);
    
    /* Fonts */
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Inter', sans-serif;
    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-secondary), sans-serif;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Fixed Sticky Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.5rem 0;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    margin: 1rem 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-links a:hover::before {
    transform: scaleX(1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    perspective: 1000px;
}

.social-icon {
    font-size: 2.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    will-change: transform;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, var(--accent), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05) 50%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
}

.social-icon:hover {
    transform: translateY(-10px) rotateX(10deg) rotateY(10deg);
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

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

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

.profile-container {
    padding-top: 120px; /* Increased padding to avoid overlap */
}

/* Theme Toggler in Navigation */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
    padding: 0.3rem;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--card-border);
}

.theme-toggle button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding: 0;
}

.theme-toggle button:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.theme-toggle button.active {
    background: var(--accent);
    color: var(--bg-primary);
}

/* Scroll Effect */
.navbar.scrolled {
    top: 0;
    padding: 0;
}

.navbar.scrolled .glass-nav {
    border-radius: 0 0 20px 20px;
    padding: 0.6rem 1.5rem;
    background: rgba(10, 10, 15, 0.85);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        top: 0;
        padding: 0;
    }

    .glass-nav {
        border-radius: 0;
        padding: 0.6rem 1rem;
    }

    .nav-content {
        height: 2.2rem;
    }

    .logo {
        font-size: 1.1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.9);
        backdrop-filter: blur(12px);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
        border-radius: 10px;
    }

    .nav-links a::before {
        display: none;
    }

    .container {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .nav-links {
        justify-content: space-between;
        padding: 0.5rem 1rem;
    }

    .theme-toggle {
        margin: 0;
        position: fixed;
        bottom: 5rem;
        right: 1rem;
        background: var(--nav-bg);
        backdrop-filter: blur(12px);
        padding: 0.4rem;
        box-shadow: var(--shadow);
    }
}

/* Profile Section */
.profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 4px solid var(--accent);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 255, 255, 0.2);
}

.glowing-text {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #fff;
    text-shadow: 
        0 0 7px #00f3ff,
        0 0 10px #00f3ff,
        0 0 21px #00f3ff,
        0 0 42px #ff00ff;
    animation: none;
    opacity: 1;
    font-weight: 600;
    z-index: 10;
    position: relative;
}

.tagline {
    font-size: 1.2rem;
    color: #fff;
    margin: 1rem 0;
    text-shadow: 0 0 5px rgba(0, 243, 255, 0.5);
    opacity: 1;
    z-index: 10;
    position: relative;
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.tech-badges span {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--accent);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-badges span:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.2);
}

/* Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
}

/* Friend Cards Enhanced */
.friend-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.friend-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.friend-card:hover::before {
    transform: translateX(100%);
}

.friend-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: rgba(0, 255, 255, 0.3);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 20px rgba(0, 255, 255, 0.1);
}

.friend-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto 1.5rem;
}

.friend-card:hover .friend-image {
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.15);
}

.friend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.friend-card:hover .friend-image img {
    transform: scale(1.1);
}

.friend-content {
    text-align: center;
}

.friend-content h3 {
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.friend-card:hover .friend-content h3 {
    background: linear-gradient(45deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.1);
}

.friend-title {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.friend-card:hover .friend-title {
    opacity: 1;
    color: var(--accent);
}

.friend-bio {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.friend-card:hover .friend-bio {
    color: var(--text-primary);
}

.friend-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.friend-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

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

/* Friend Social Links */
.friend-social {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.2rem;
    color: var(--neon-blue);
    transition: all 0.3s ease;
}

.social-link span {
    font-size: 0.9rem;
    font-family: var(--font-secondary);
    font-weight: var(--fw-medium);
}

.social-link:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 243, 255, 0.2);
}

.social-link:hover i {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .friend-social {
        gap: 0.6rem;
    }

    .social-link {
        padding: 0.5rem 0.8rem;
    }

    .social-link span {
        font-size: 0.85rem;
    }
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.friend-card {
    animation: fadeInUp 0.6s ease-out forwards;
    animation-delay: calc(var(--order) * 0.1s);
    opacity: 0;
}

/* Smooth Scroll Behavior */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

@media (max-width: 768px) {
    .friend-card {
        padding: 1.5rem;
    }

    .friend-image {
        width: 100px;
        height: 100px;
    }

    .friend-content h3 {
        font-size: 1.5rem;
    }

    .friend-title {
        font-size: 0.9rem;
    }

    .friend-bio {
        font-size: 0.9rem;
    }
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(45deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.button {
    background: linear-gradient(45deg, var(--accent), var(--pink));
    color: var(--text-primary);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(10px);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    .glass-nav {
        margin: 0;
        border-radius: 0;
        padding: 1rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .glowing-text {
        font-size: 2rem;
    }

    .tech-badges span {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .profile-pic {
        width: 120px;
        height: 120px;
    }

    .glowing-text {
        font-size: 1.8rem;
    }

    .tech-badges span {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-section {
        width: 60%;
    }
    
    .tech-background {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .profile-section {
        width: 100%;
        text-align: center;
    }
    
    .tech-background {
        display: none;
    }
    
    .friend-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .friend-hero-image {
        width: 200px;
        height: 200px;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    /* Container spacing */
    .container {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }

    /* Hero Section Mobile */
    .hero-section {
        padding: 80px 1rem 2rem 1rem;
        min-height: auto;
        align-items: flex-start;
    }

    .profile-section {
        width: 100%;
        padding: 0;
        text-align: center;
    }

    /* Profile Image */
    .profile-pic {
        width: 180px;
        height: 180px;
        margin: 0 auto 1.5rem;
    }

    /* Text Sizing */
    .glowing-text {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .tagline {
        font-size: 1.1rem;
        margin: 1rem 0;
    }

    /* Tech Badges */
    .tech-badges {
        justify-content: center;
        gap: 0.5rem;
        margin: 1rem 0;
    }

    .tech-badges span {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }

    /* About Section */
    .about-section {
        padding: 2rem 0;
    }

    /* Education Section */
    .educational-journey {
        padding: 2rem 0;
    }

    /* Friends Section */
    .friends-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0;
    }

    .friend-card {
        width: 100%;
        margin: 0;
        padding: 1.5rem;
    }

    .friend-image {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
    }

    .friend-content h3 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .friend-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .friend-bio {
        font-size: 0.95rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Read More Button */
    .read-more-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.95rem;
        justify-content: center;
    }

    /* Connect Section */
    .connect-section {
        padding: 2rem 0;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .social-links a {
        width: calc(50% - 1rem);
        margin: 0;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
        text-align: center;
    }

    /* Navigation */
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }

    /* Hide background patterns on mobile */
    .tech-pattern,
    .tech-background {
        display: none;
    }

    /* Footer */
    footer {
        padding: 1.5rem;
        margin-bottom: 60px; /* Space for bottom navigation */
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .glowing-text {
        font-size: 2rem;
    }

    .friend-image {
        width: 120px;
        height: 120px;
    }
}

/* Prevent Horizontal Scroll */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Add spacing between sections */
section {
    margin-bottom: 3rem;
    padding: 0 1rem;
}

/* Ensure content doesn't touch screen edges */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--gold);
    text-shadow: 0 0 15px var(--gold);
    display: inline-block;
}

/* About Section */
.highlight-text {
    font-size: 1.4rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

/* Friends Grid */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 2rem;
}

.friend-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.friend-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--purple-glow), var(--purple-light), var(--gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.friend-card:hover::before {
    opacity: 1;
}

.friend-card:hover {
    transform: translateY(-5px);
}

.friend-image {
    width: 250px;
    height: 250px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--gold);
    box-shadow: 0 0 20px var(--gold);
}

.friend-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.friend-card:hover .friend-image img {
    transform: scale(1.1);
}

.friend-content {
    text-align: center;
}

.friend-content h3 {
    color: var(--gold);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px var(--gold);
}

.friend-title {
    color: var(--gold);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.friend-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Responsive Design for Friends Grid */
@media (max-width: 1200px) {
    .friends-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: 1fr;
    }
    
    .friend-image {
        width: 200px;
        height: 200px;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--purple-glow), var(--purple-light));
    color: var(--gold);
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--gold);
}

/* Read More Button */
.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--purple-glow), var(--purple-light));
    color: var(--gold);
    text-decoration: none;
    border-radius: 30px;
    margin-top: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.read-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--gold), var(--gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.read-more-btn:hover::before {
    opacity: 1;
}

.read-more-btn span {
    position: relative;
    z-index: 1;
}

.read-more-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px var(--gold);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Friend Profile Pages */
.friend-profile {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
}

.friend-header {
    text-align: center;
    margin-bottom: 2rem;
}

.friend-profile-pic {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 4px solid var(--accent);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
}

.friend-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.friend-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.friend-section h2 {
    color: var(--neon-blue);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.friend-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--neon-pink);
    transform: translateX(5px);
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    text-decoration: none;
    margin-top: 2rem;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(45deg, var(--neon-blue), var(--neon-pink));
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3);
}

@media (max-width: 768px) {
    .friend-profile {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .friend-profile-pic {
        width: 150px;
        height: 150px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    background: var(--bg-primary);
    margin-top: 4rem;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--gold);
    }
    50% {
        box-shadow: 0 0 30px var(--gold);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes backgroundMove {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar {
        padding: 0.5rem 0;
    }

    .nav-content {
        padding: 0 1rem;
    }

    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        padding: 1rem;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 0.5rem;
        text-align: center;
    }

    .nav-links a::after {
        display: none;
    }

    /* Adjust container padding for mobile */
    .container {
        padding: 1rem;
        margin-top: 60px;
        padding-bottom: 80px; /* Space for bottom navigation */
    }

    /* Hero section mobile adjustments */
    .hero-section {
        padding-top: 80px;
        min-height: auto;
    }

    .profile-section {
        width: 100%;
        text-align: center;
    }

    .profile-pic {
        margin: 0;
    }

    .tech-badges {
        justify-content: flex-start;
    }
}

@media (max-width: 1024px) {
    .profile-section {
        width: 60%;
    }
    
    .tech-background {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .profile-section {
        width: 100%;
        text-align: center;
    }
    
    .tech-background {
        display: none;
    }
    
    .friend-hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .friend-hero-image {
        width: 200px;
        height: 200px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .glowing-text {
        font-size: 2rem;
    }

    .profile-pic {
        width: 150px;
        height: 150px;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.4rem;
    }

    .tech-badges span {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Landscape mode adjustments */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 50px;
    }

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

    .profile-pic {
        margin: 0;
    }

    .tech-badges {
        justify-content: flex-start;
    }
}

/* Mobile View Toggle Button */
.mobile-view-toggle {
    display: none !important;
}

.mobile-view-toggle button {
    display: none !important;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Container and General Layout */
    .container {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
    }

    /* Hero Section */
    .hero-section {
        flex-direction: column;
        padding: 1rem;
        min-height: auto;
        position: relative;
    }

    /* Profile Section */
    .profile-section {
        width: 100%;
        padding: 1rem;
        text-align: center;
        margin: 0 auto;
    }

    /* Hide tech background on mobile */
    .tech-background,
    .tech-pattern {
        display: none !important;
    }

    /* Profile Image */
    .profile-pic {
        width: 150px;
        height: 150px;
        margin: 0 auto 1rem;
        border: 2px solid var(--gold);
    }

    /* Text Adjustments */
    .glowing-text {
        font-size: 2rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }

    .tagline {
        font-size: 1rem;
        margin: 0.5rem 0;
        text-align: center;
    }

    /* Friends Section */
    .friends-section {
        padding: 2rem 1rem;
        overflow: hidden;
    }

    .friends-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        padding: 0;
        width: 100%;
        align-items: center;
    }

    .friend-card {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 1.5rem;
    }

    .friend-image {
        width: 120px;
        height: 120px;
        margin: 0 auto 1rem;
    }

    .friend-content {
        text-align: center;
    }

    .friend-content h3 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }

    .friend-title {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .friend-bio {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    /* Navigation */
    .nav-links {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--glass-bg);
        backdrop-filter: blur(12px);
        padding: 0.8rem;
        display: flex;
        justify-content: space-around;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
        z-index: 1000;
    }

    .nav-links a {
        font-size: 0.8rem;
        padding: 0.5rem;
        text-align: center;
    }

    /* Footer */
    footer {
        padding: 1.5rem;
        margin-bottom: 60px; /* Space for bottom navigation */
        text-align: center;
    }
}

/* Extra Small Devices */
@media (max-width: 360px) {
    .profile-pic {
        width: 100px;
        height: 100px;
    }

    .glowing-text {
        font-size: 1.8rem;
    }

    .friend-image {
        width: 100px;
        height: 100px;
    }

    .mobile-view-toggle button {
        display: none !important;
    }
}

/* Mobile View Container */
.mobile-view {
    display: none !important;
}

/* Base Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.hero-image {
    flex: 0 0 400px;
    order: -1; /* This moves the image to the left */
}

.profile-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: translateY(-10px);
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: var(--text-primary);
    text-shadow: 
        0 0 7px var(--neon-blue),
        0 0 10px var(--neon-blue),
        0 0 21px var(--neon-blue),
        0 0 42px var(--neon-pink);
    animation: none;
    opacity: 1;
}

.hero-text p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
}

/* Remove blur animation */
.hero-text h1 {
    animation: none;
    opacity: 1;
}

@media (max-width: 968px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-image {
        flex: 0 0 300px;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.profile-container {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 120px;
}

.profile-pic-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
}

.profile-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid transparent;
    background: var(--gradient-primary) border-box;
    -webkit-mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) padding-box,
        linear-gradient(#fff 0 0);
    transition: transform var(--transition-normal);
}

.profile-pic:hover {
    transform: scale(1.05);
}

.profile-pic-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0, 255, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.profile-pic-container:hover .profile-pic-overlay {
    opacity: 1;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1rem 0;
}

.tech-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.tech-badges span {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-normal);
    animation: fadeInUp 0.5s ease forwards;
    animation-delay: calc(var(--i) * 0.1s);
    opacity: 0;
}

.tech-badges span:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--accent);
}

/* Skills Carousel */
.skills-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 2rem;
    scroll-snap-type: x mandatory;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
}

.skills-carousel::-webkit-scrollbar {
    display: none;
}

.skill-item {
    min-width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 1.5rem;
    scroll-snap-align: center;
    transition: all var(--transition-normal);
}

.skill-item:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.skill-item i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Testimonials Slider */
.testimonials-slider {
    position: relative;
    padding: 2rem 0;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    padding: 1rem 2rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.3);
}

/* Chatbot */
.chatbot-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    transition: all var(--transition-normal);
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.chatbot-container {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    width: 350px;
    height: 500px;
    background: var(--bg-secondary);
    border-radius: 20px;
    z-index: 997;
    transform: translateY(100%);
    opacity: 0;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.chatbot-container.active {
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 1rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: var(--text-primary);
}

.chatbot-input button {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.chatbot-input button:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glowing-text {
        font-size: 2.5rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .chatbot-container {
        width: calc(100% - 2rem);
        right: 1rem;
        left: 1rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.theme-toggle i {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all var(--transition-normal);
}

.theme-toggle .fa-sun {
    display: none;
}

.theme-toggle.active .fa-sun {
    display: block;
}

.theme-toggle.active .fa-moon {
    display: none;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 998;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* Friends Section */
.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.friend-card {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.friend-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 255, 255, 0.1),
        0 0 20px rgba(0, 255, 255, 0.1);
}

.friend-image {
    position: relative;
    width: 100%;
    padding-top: 100%;
    overflow: hidden;
}

.friend-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.friend-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        45deg,
        rgba(0, 255, 255, 0.2),
        rgba(255, 0, 255, 0.2)
    );
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.friend-card:hover .friend-image img {
    transform: scale(1.1);
}

.friend-card:hover .friend-image-overlay {
    opacity: 1;
}

.friend-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.friend-content h3 {
    font-family: var(--font-primary);
    font-weight: var(--fw-semibold);
    font-size: 1.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: var(--text-shadow);
    margin-bottom: 0.5rem;
}

.friend-title {
    font-family: var(--font-secondary);
    font-weight: var(--fw-medium);
    color: var(--neon-blue);
    opacity: 0.8;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.friend-bio {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.friend-bio p {
    font-family: var(--font-secondary);
    font-weight: var(--fw-regular);
    line-height: 1.8;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.read-more-btn {
    font-family: var(--font-primary);
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Responsive Design for Friends Section */
@media (max-width: 768px) {
    .friends-grid {
        grid-template-columns: 1fr;
        padding: 1rem 0;
    }

    .friend-card {
        max-width: 100%;
    }

    .friend-content h3 {
        font-size: 1.3rem;
    }

    .friend-bio p {
        font-size: 0.9rem;
    }
}
