
        
 * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #5a42f3 0%, #ad5389 100%);
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-background: #ffffff;
    --transition-speed: 0.3s;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    
    color: var(--text-color);
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
}

.portfolio-container {
    
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

.profile-header {
    background:linear-gradient(135deg, #5a42f3 0%, #ad5389 100%);
  

    backdrop-filter: blur(10px);
    color: white;
    background-size: 400% 400%;
    display: flex;
    align-items: center;
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    animation: gradient 15s ease infinite;
}


@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-right: 2rem;
    transition: transform 0.4s ease;
}



.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    text-decoration: none;
    color: white;
    font-size: 1.5rem;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.social-link:hover {
    opacity: 1;
    color: rgb(190, 15, 15);
}

.about-section {
    background: white;
    backdrop-filter: blur(10px);
    padding: 2rem;
}

.projects-section {
    background: #f9f9f9;
    
    padding: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: all 0.4s ease;
    position: relative;
}

.project-card:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: fill;
    filter: grayscale(30%);
    transition: all 0.4s ease;
}

.project-card:hover .project-image {
    filter: grayscale(0);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-btn {
    background: white;
    color: #5b42f3;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
}

.project-details {
    padding: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
}

.contact-section {
    background: var(--primary-gradient);
   
    color: white;
    padding: 2rem;
    text-align: center;
    border-radius: 0 0 16px 16px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: white;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.contact-form textarea {
    resize: vertical;
}

.contact-btn {
    background: white;
    color: #5b42f3;
    border: none;
    padding: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.contact-btn:hover {
    transform: translateY(-3px);
}

.connection-subtext {
    font-size: 1rem;
}

h2 {
    margin-bottom: 1rem;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-toggle-btn {
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

/* Home Navigation */
.home-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.home-nav-btn {
    background: var(--primary-gradient);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.home-nav-btn:hover {
    transform: scale(1.1);
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .portfolio-container {
        padding: 1rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 1rem;
    }

    .header-content h1 {
        font-size: 2rem;
    }

    .social-links {
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-image {
        height: 200px;
    }

    .theme-toggle, .home-nav {
        position: static;
        display: flex;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .theme-toggle-btn, .home-nav-btn {
        position: relative;
        z-index: 1;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-container {
        padding: 0.5rem;
    }

    .profile-header {
        border-radius: 0;
        padding: 1rem;
    }

    .header-content h1 {
        font-size: 1.5rem;
    }

    .social-link {
        font-size: 1.2rem;
    }

    .contact-form {
        padding: 0.5rem;
    }
}

/* Dark Mode Styles */
body.dark-mode {
    --primary-color: #22222246;
    --text-color: #fff;
    --accent-color: #f80b5a;
    --bg-color: #121212;
    
}

body.dark-mode .about-section,
body.dark-mode .projects-section,
body.dark-mode .project-card {
    background-color: var(--primary-color);
    color: var(--text-color);
    backdrop-filter: blur(10px);
}
/* Magnetic Cursor */
.magnetic-cursor {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    transition: transform 0.2s;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
}

/* Floating Navigation Styles */
.floating-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}

.nav-dot {
    width: 12px;
    height: 12px;
    background: #000000;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.5;
}

body.dark-mode .nav-dot{
    background: #ffffff;
}

.nav-dot:hover {
    transform: scale(1.2);
    opacity: 0.8;
}

.nav-dot.active {
    transform: scale(1.5);
    opacity: 1;
    box-shadow: 0 0 10px rgba(90, 66, 243, 0.5);
}

/* Hide on mobile */
@media screen and (max-width: 768px) {
    .floating-nav {
        display: none;
    }
}
/* 3D Card Transformations */
.project-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

/* Typing Effect */
.typing-text {
    border-right: 2px solid #5a42f3;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 3.5s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #5a42f3 }
}

/* Scroll-based animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.cta-button {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: white;
    color: #5a42f3;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-color: #5a42f3;
    background: transparent;
    color: white;
}
.bio-link-btn {
    background: linear-gradient(135deg, #5a42f3 0%, #ad5389 100%);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bio-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.arrow-icon {
    transition: transform 0.3s ease;
}

.bio-link-btn:hover .arrow-icon {
    transform: translateX(5px);
}

/* Page Transition Animation */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #5a42f3 0%, #ec0690 100%);
    transform: translateX(-100%);
    z-index: 1000;
}

.transition-active {
    animation: slideIn 1s forwards;
}

@keyframes slideIn {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(0); }
}