/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-dark: #000000;
    --primary-blue: #1E3A8A;
    --primary-purple: #6A5ACD;
    --electric-blue: #4169E1;
    --neon-purple: #9400D3;
    --neon-cyan: #00FFFF;
    --gray-text: #4A4A4A;
    --light-gray: #D3D3D3;
    --white: #FFFFFF;
    --navy-blue: #0A192F;
    --orange-highlight: #FF6B00;
    --wordpress-red: #DC1F26;
    --gradient-blue-purple: linear-gradient(135deg, #1E3A8A, #6A5ACD);
    --gradient-purple-blue: linear-gradient(135deg, #9400D3, #4169E1);
    --bg-color: #ffffff;
    --card-bg: #f5f5f5;
    --hover-color: #8b85ff;
    --accent-color: #6c63ff;
    --text-color: #333;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    position: relative;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 35%, rgba(108, 99, 255, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 75% 55%, rgba(76, 201, 240, 0.1) 0%, transparent 30%),
        radial-gradient(circle at 40% 80%, rgba(243, 225, 107, 0.08) 0%, transparent 25%);
    z-index: -1;
    opacity: 0.4;
    animation: backgroundShift 120s infinite alternate linear;
}

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

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    margin: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--navy-blue);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-purple), transparent);
    transition: width 0.4s ease;
}

.logo:hover {
    color: var(--primary-purple);
}

.logo:hover::after {
    width: 100%;
}

.nav-logo {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--navy-blue);
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--primary-purple), var(--electric-blue));
    transition: width 0.3s cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-links a:hover {
    color: var(--primary-purple);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active {
    color: var(--primary-purple);
}

.nav-links a.active::after {
    width: 100%;
}

/* Remove center alignment for larger screens */
@media (min-width: 769px) {
    .nav-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav-links {
        justify-content: flex-end;
    }
}

/* Mobile navigation styles */
@media (max-width: 768px) {
    .nav-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .nav-links li {
        margin: 0;
    }

    .menu-header {
        margin-bottom: 20px;
    }
}

/* Mobile Hero Section Styles */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px; /* Increased padding to account for mobile nav */
        min-height: 100vh;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
    }

    .hero-text {
        order: 2;
        width: 100%;
        margin-top: 1rem;
        min-height: 360px;
    }

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

    .hero-text h2 {
        font-size: 1.5rem;
    }

    .hero-image {
        order: 1;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }

    .cta-button {
        margin: 1.5rem auto;
        display: inline-block;
    }
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 80px 0 0 0;
    background: linear-gradient(135deg, rgba(250, 250, 250, 0.95), rgba(245, 245, 252, 0.98));
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, 
        rgba(108, 99, 255, 0.12) 0%, 
        rgba(139, 133, 255, 0.07) 25%,
        rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 2;
    filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.6));
    opacity: 1;
}

#particles-js canvas {
    transition: filter 0.5s ease;
}

/* Add a subtle glow effect to the canvas for more visibility */
canvas.particles-js-canvas-el {
    filter: contrast(1.1) brightness(1.05);
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1400px;
    padding: 0 5%;
    margin: 0 auto;
    min-height: calc(100vh - 80px);
    text-align: left;
}

/* Add glow effect to particles on hover */
#particles-js canvas {
    transition: filter 0.5s ease;
}

#particles-js:hover canvas {
    filter: drop-shadow(0 0 12px rgba(108, 99, 255, 0.6));
}

/* Hero Section Text Layout */
.hero-text {
    flex: 1;
    max-width: 600px;
    padding-right: 4rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-text h2 {
    color: var(--navy-blue);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    padding-left: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.2s;
}

.hero-text h2.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-text h1 {
    color: var(--navy-blue);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    padding-left: 0;
    position: relative;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.4s;
}

.hero-text h1.animate {
    opacity: 1;
    transform: translateY(0);
}

.role {
    color: var(--navy-blue);
    font-size: 1.8rem;
    margin-bottom: 2rem;
    padding-left: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.6s;
    position: relative;
    min-height: 3rem;
    width: 100%;
}

.role.animate {
    opacity: 1;
    transform: translateY(0);
}

.typed-wrapper {
    display: inline-block;
    position: relative;
    margin-left: 5px;
    bottom: 0.3rem;
}

.typed-text {
    color: var(--wordpress-red);
    font-weight: 500;
    position: relative;
    display: inline;
    white-space: nowrap;
    overflow: visible;
}

/* Update the typed cursor color */
.typed-cursor {
    color: var(--wordpress-red) !important;
    font-weight: bold;
    display: inline-block;
    position: relative;
    font-size: 1.8rem;
    margin-left: 0;
}

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

/* Image Animation Styles */
.hero-image {
    position: relative;
    flex: 0 0 45%;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    perspective: 1000px;
}

.hero-image.animate {
    opacity: 1;
    transform: translateY(0);
}

.hero-image .image-container {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 5px rgba(108, 99, 255, 0.2);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
    padding: 8px;
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
}

.hero-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    border: 5px solid var(--bg-color);
}

.hero-image .image-container::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--hover-color));
    z-index: 0;
    animation: rotate 20s linear infinite;
}

.hero-image .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(108, 99, 255, 0.1) 0%, 
        transparent 70%);
    opacity: 0;
    z-index: 3;
    transition: opacity 0.5s ease;
}

.hero-image .shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg) translateX(-100%);
    z-index: 10;
    pointer-events: none;
    transition: 0.4s;
}

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

/* Add glow effect for both hero and about images */
.hero-image .image-container, .about-image .image-container {
    overflow: hidden;
    position: relative;
}

.hero-image .shine-effect, .about-image .shine-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(255, 255, 255, 0) 100%);
    transform: rotate(45deg) translateX(-100%);
    z-index: 10;
    pointer-events: none;
    transition: 0.4s;
}

.hero-image .image-container:hover .shine-effect,
.about-image .image-container:hover .shine-effect {
    animation: shine 1.5s infinite;
}

/* Subtle shadow outline for hero and about image for premium feel */
.hero-image .image-container, .about-image .image-container {
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(108, 99, 255, 0.1),
        0 0 15px rgba(108, 99, 255, 0.2);
}

.hero-image .image-container:hover, .about-image .image-container:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(108, 99, 255, 0.2),
        0 0 30px rgba(108, 99, 255, 0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2.2rem;
    background: linear-gradient(45deg, var(--primary-purple), var(--electric-blue));
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 1.2rem auto;
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 0;
    transform: translateY(20px);
    transition-delay: 1.2s;
    border: 2px solid transparent;
    z-index: 5;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--electric-blue), var(--primary-purple));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(75, 0, 130, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button:hover::before {
    opacity: 1;
}

.cta-button:hover i {
    transform: translateX(5px);
    animation: bounce 1s infinite;
}

.cta-button i {
    transition: transform 0.3s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(5px); }
}

.cta-button.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Sections */
section {
    padding: 5rem 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Section Transitions */
.section-transition {
    opacity: 1;
    transform: none;
    transition: all 0.8s ease;
}

.section-transition.visible {
    opacity: 1;
    transform: none;
}

/* Section Content */
.section-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title with Icon */
.section-title-container {
    text-align: center;
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 3.5rem;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.section-title i {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-purple), var(--electric-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--electric-blue));
    border-radius: 3px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Remove any display: none or visibility: hidden */
section, .section-content, .section-title {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
}

/* Ensure proper spacing between sections */
section:not(:last-child) {
    margin-bottom: 2rem;
}

/* Update section backgrounds */
.about {
    position: relative;
    padding: 6rem 0;
    background: linear-gradient(to bottom, rgba(250, 250, 250, 0.95), rgba(245, 245, 252, 0.98));
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, 
        rgba(108, 99, 255, 0.08) 0%, 
        transparent 60%);
    pointer-events: none;
}

.about-content {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4.5rem;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.about-image {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 3.5rem;
    animation: floatAnimation 6s ease-in-out infinite;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.about-image .image-container {
    width: 320px;
    height: 380px;
    overflow: hidden;
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(108, 99, 255, 0.1);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(108, 99, 255, 0.1),
        0 0 15px rgba(108, 99, 255, 0.2);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: relative;
    overflow: hidden;
}

.about-image .image-container:hover {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(108, 99, 255, 0.2),
        0 0 30px rgba(108, 99, 255, 0.3);
    transform: translateY(-10px);
}

.about-image .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    transition: all 0.5s ease;
}

.about-image .image-container::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.05),
        rgba(0, 31, 63, 0.3)
    );
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.about-image .image-container:hover::before {
    opacity: 0.3;
}

.about-text {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-name {
    font-size: 2.8rem;
    font-weight: 700;
    color: #0A192F;
    margin-bottom: 0.2rem;
    background: linear-gradient(to right, #0A192F, #6C63FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    text-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.about-name::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 4px;
    bottom: 0;
    left: 0;
    background: linear-gradient(to right, #6C63FF, #8B85FF);
    border-radius: 4px;
    opacity: 0.7;
}

.about-role {
    font-size: 1.4rem;
    color: #DC1F26;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    background: linear-gradient(to right, #DC1F26, #FF6B6B);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-role::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, #DC1F26, #FF6B6B);
    border-radius: 2px;
    box-shadow: 0 2px 5px rgba(220, 31, 38, 0.3);
}

.about-text p {
    color: #333333;
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
    text-align: justify;
}

.about-text p::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 3px;
    background: linear-gradient(to bottom, #6C63FF, transparent);
    border-radius: 3px;
}

.contact-details {
    margin-top: 2rem;
    padding: 0rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-details p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-left: 0;
    font-size: 1.05rem;
}

.contact-details p::before {
    display: none;
}

.contact-details i {
    font-size: 1.2rem;
    color: #6C63FF;
    background: rgba(108, 99, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00ffff;
    transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-detail-icon {
    transform: scale(1.1);
    background: rgba(0, 255, 255, 0.3);
}

.contact-details p:hover i {
    transform: scale(1.1);
    color: white;
    background: #6C63FF;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

.download-resume {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    background: var(--navy-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    width: auto;
    max-width: 250px;
}

.download-resume::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6C63FF, #DC1F26);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.download-resume:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.3);
}

.download-resume:hover::before {
    opacity: 1;
}

.download-resume i {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.download-resume:hover i {
    transform: translateY(-3px);
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(-3px); }
    100% { transform: translateY(3px); }
}

/* Add scroll observer animation class */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, rgba(10, 30, 50, 0.97), rgba(22, 42, 74, 0.98));
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(108, 99, 255, 0.15) 0%, 
        transparent 70%);
    pointer-events: none;
}

.projects::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDEwMFYwaC0uNUEzOS41IDM5LjUgMCAwIDAgNjAgMzkuNSAzOS41IDM5LjUgMCAwIDAgMjAuNSAwSDBWMTAwaDEwMHoiIGZpbGw9IiMzMzMiIG9wYWNpdHk9Ii4wMyIvPjwvc3ZnPg==');
    background-position: 0 0;
    background-size: 30px 30px;
    opacity: 0.05;
    z-index: 0;
}

.projects .section-title {
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    text-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

.project-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    border: 1px solid rgba(108, 99, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.4);
    border-color: rgba(108, 99, 255, 0.5);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6C63FF, #8B85FF);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(108, 99, 255, 0.1);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.215, 0.61, 0.355, 1), filter 0.8s ease;
    filter: brightness(0.9) saturate(1.1);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
    filter: brightness(1.1) saturate(1.2);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(10, 26, 47, 0.4) 0%, 
        rgba(10, 26, 47, 0.7) 70%, 
        rgba(10, 26, 47, 0.9) 100%);
    opacity: 0.8;
    transition: opacity 0.4s ease, background 0.4s ease;
}

.project-card:hover .project-image::after {
    opacity: 0.6;
    background: linear-gradient(to bottom, 
        rgba(108, 99, 255, 0.2) 0%, 
        rgba(10, 26, 47, 0.7) 70%, 
        rgba(10, 26, 47, 0.9) 100%);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.project-content h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #6C63FF, transparent);
    transition: width 0.4s ease;
}

.project-card:hover .project-content h3 {
    color: rgba(108, 99, 255, 1);
}

.project-card:hover .project-content h3::after {
    width: 100px;
}

.project-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    transition: color 0.3s ease;
}

.project-card:hover .project-content p {
    color: rgba(255, 255, 255, 0.95);
}

/* Make sure projects section and grid are visible */
.projects {
    display: block !important;
    visibility: visible !important;
}

.projects-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 1.5rem;
    opacity: 1; /* Make sure it's visible */
    transform: translateY(0); /* Reset any transforms */
    position: relative;
    z-index: 2;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-purple) transparent;
}

/* Custom scrollbar styling */
.projects-grid::-webkit-scrollbar {
    height: 8px;
}

.projects-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.projects-grid::-webkit-scrollbar-thumb {
    background: linear-gradient(to right, var(--primary-purple), var(--electric-blue));
    border-radius: 10px;
    transition: all 0.3s ease;
}

.projects-grid::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to right, var(--electric-blue), var(--primary-purple));
}

.project-card {
    min-width: 350px;
    max-width: 400px;
    flex: 1;
    margin-bottom: 1rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

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

@media (max-width: 1200px) {
    .projects-grid {
        flex-wrap: wrap;
    }
    .project-card {
        min-width: 45%;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        gap: 20px;
        padding: 20px 10px;
        margin: 0 auto;
        justify-content: center;
        align-items: center;
    }

    .project-card {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
        margin: 10px auto;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;  /* Firefox */
        -ms-overflow-style: none;  /* IE and Edge */
        gap: 20px;
        padding: 20px 10px;
        margin: 0 -10px;
    }

    .projects-grid::-webkit-scrollbar {
        display: none;  /* Chrome, Safari, Opera */
    }

    .project-card {
        flex: 0 0 85%;
        min-width: 280px;
        scroll-snap-align: center;
        margin: 10px 0;
        transform: translateZ(0);  /* Hardware acceleration */
        -webkit-transform: translateZ(0);
        will-change: transform;  /* Optimize animations */
    }
}

/* Skills Section */
.skills {
    position: relative;
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 15, 31, 0.92), rgba(0, 31, 63, 0.94));
    overflow: hidden;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.2), transparent);
    z-index: 0;
}

.skills .section-title {
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 2;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.skills-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    opacity: 1;
    visibility: visible;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.skill-item h4 {
    color: #fff;
    font-size: 1rem;
    margin: 1rem 0 0;
    font-weight: 500;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

/* Hide the percentage text that appears below the skill name */
.skill-item .percentage {
    display: none;
}

.skill-category {
    background: rgba(0, 15, 31, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(0, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
    opacity: 1;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.skill-category::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 255, 255, 0.08));
    border-radius: 16px;
    opacity: 0;
    transition: all 0.5s ease;
}

.skill-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 255, 255, 0.2);
    border-color: rgba(0, 255, 255, 0.3);
}

.skill-category:hover::before {
    opacity: 1;
}

.skill-category h3 {
    color: #fff;
    font-size: 1.6rem;
    margin-bottom: 2.5rem;
    text-align: center;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    position: relative;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    left: 30%;
    right: 30%;
    bottom: -10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.7), transparent);
}

.progress-circle {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(0, 15, 31, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 255, 0.2);
    transform: scale(1);
    opacity: 1;
    z-index: 2;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-circle:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
}

.progress-circle-bar {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    mask: radial-gradient(transparent 55%, black 55%);
    -webkit-mask: radial-gradient(transparent 55%, black 55%);
    transform: rotate(-90deg);
    z-index: 2;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.6));
}

.progress-circle-value {
    width: 100%;
    height: 100%;
    background: conic-gradient(
        #00ffff var(--progress, 0deg),
        transparent var(--progress, 0deg)
    );
    border-radius: 50%;
    transition: none;
}

.progress-circle::before {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    background: rgba(0, 15, 31, 0.8);
    border-radius: 50%;
    z-index: 1;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.progress-circle i {
    position: absolute;
    font-size: 1.8rem;
    color: #00ffff;
    z-index: 10;
    transform: translateY(-15px);
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7));
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    transition: all 0.3s ease;
}

.progress-circle:hover i {
    transform: translateY(-18px) scale(1.1);
    color: #ffffff;
}

.progress-circle::after {
    content: attr(data-progress) '%';
    position: absolute;
    font-size: 1.2rem;
    font-weight: 600;
    color: #00ffff;
    z-index: 10;
    transform: translateY(15px);
    opacity: 1 !important;
    filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7));
    visibility: visible !important;
    display: block !important;
    transition: all 0.3s ease;
}

.progress-circle:hover::after {
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .progress-circle {
        width: 80px;
        height: 80px;
    }

    .progress-circle::before {
        width: 72px;
        height: 72px;
    }

    .progress-circle i {
        font-size: 1.4rem;
        transform: translateY(-10px);
    }

    .progress-circle::after {
        font-size: 0.9rem;
        transform: translateY(10px);
    }
}

/* Education Section - Light Theme */
.education {
    background: linear-gradient(135deg, #FFF0F5 0%, #D8BFD8 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0;
}

.education::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255, 240, 245, 0.15) 0%, 
        rgba(216, 191, 216, 0.08) 70%);
    pointer-events: none;
}

.cgpa {
    color: rgb(30,58,138);
    margin-bottom: 0.5rem;
    font-weight: bold;
    font-size: large;
}

/* Floating educational icons */
.education::after {
    content: '🎓';
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
    opacity: 0.1;
    right: 5%;
    top: 10%;
}

.education .section-title {
    color: #001F3F;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}

.education .section-subtitle {
    color: #555555;
    font-style: italic;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.education-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Reset education-item styles */
.education-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(224, 195, 252, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    visibility: hidden;
    backface-visibility: hidden;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

.education-item.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
    animation: scaleInEducation 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleInEducation {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        visibility: hidden;
    }
    70% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        visibility: visible;
    }
}

.education-item:hover {
    transform: scale(1.03) translateY(-10px);
    border-color: #E0C3FC;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Add animation delays for staggered appearance */
.education-item:nth-child(1) { --i: 1; }
.education-item:nth-child(2) { --i: 2; }
.education-item:nth-child(3) { --i: 3; }

/* Add pop-up glow effect */
.education-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(224, 195, 252, 0.3) 0%, 
        transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.education-item:hover::before {
    opacity: 1;
    animation: glowPulse 2s ease-in-out infinite;
}

/* Add shine effect */
.education-item::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    transition: transform 0.6s ease;
    z-index: 3;
}

.about-image .image-container:hover::after {
    transform: rotate(45deg) translateX(100%);
}

/* Animation Keyframes */
@keyframes glowPulse {
    0% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
    50% { box-shadow: 0 8px 25px rgba(224, 195, 252, 0.3); }
    100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); }
}

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

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.education-image {
    width: 100%;
    height: 150px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.education-item:hover .education-image img {
    transform: scale(1.05);
}

.education-item h3 {
    color: #222222;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.education-item .institution {
    color: #000000;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.education-item .percentage  {
    color: #007BFF;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.education-item .board {
    color: #555555;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.education-item .duration {
    color: #555555;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Responsive styles */
@media (max-width: 768px) {
    .education-content {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .education-item {
        padding: 1.5rem;
    }

    .education-image {
        height: 120px;
    }
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(0, 255, 255, 0.15) 0%, 
        transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.contact::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTAwIDEwMFYwaC0uNUEzOS41IDM5LjUgMCAwIDAgNjAgMzkuNSAzOS41IDM5LjUgMCAwIDAgMjAuNSAwSDBWMTAwaDEwMHoiIGZpbGw9IiMwMDMiIG9wYWNpdHk9Ii4wNCIvPjwvc3ZnPg==');
    background-position: 0 0;
    background-size: 40px 40px;
    opacity: 0.1;
    z-index: 0;
}

.contact .section-title {
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
    text-align: center;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
}

.contact-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.contact-heading.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-heading span {
    color: #00ffff;
    position: relative;
    display: inline-block;
}

.contact-heading span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #00ffff, transparent);
}

.contact-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.2s;
}

.contact-text.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-details {
    margin-bottom: 2rem;
    width: 100%;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-detail-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.contact-detail-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #00ffff;
    transition: all 0.3s ease;
}

.contact-detail-item:hover .contact-detail-icon {
    transform: scale(1.1);
    background: rgba(0, 255, 255, 0.3);
}

.contact-detail-text {
    flex: 1;
}

.contact-detail-text h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.contact-detail-text p, .contact-detail-text a {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-detail-text a:hover {
    color: #00ffff;
}

.contact-social {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.6s;
}

.contact-social.animate {
    opacity: 1;
    transform: translateY(0);
}

.contact-social a {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #00ffff;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-social a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 255, 0.2);
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    z-index: -1;
}

.contact-social a:hover {
    transform: translateY(-5px);
    color: #ffffff;
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.contact-social a:hover::before {
    transform: scale(1.5);
}

.contact-form-container {
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
    transition-delay: 0.3s;
}

.contact-form-container.animate {
    opacity: 1;
    transform: translateX(0);
}

.contact-form {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transform: perspective(1000px) rotateY(0deg);
    transition: all 0.5s ease;
}

.contact-form:hover {
    transform: perspective(1000px) rotateY(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 255, 0.2);
}

.contact-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg) translateX(-100%);
    z-index: 1;
}

.contact-form:hover::before {
    animation: shine 1.5s forwards;
}

.form-group {
    position: relative;
    margin-bottom: 1.8rem;
    z-index: 2;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: none;
}

.form-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 255, 255, 0.7);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.form-group.textarea i {
    top: 1.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 255, 255, 0.5);
    box-shadow: 0 0 0 2px rgba(0, 255, 255, 0.2);
    outline: none;
}

.form-group input:focus + i,
.form-group textarea:focus + i {
    color: #00ffff;
    transform: translateY(-50%) scale(1.2);
}

.form-group.textarea i {
    transform: translateY(0);
}

.form-group.textarea textarea:focus + i {
    transform: scale(1.2);
}

.submit-btn {
    background: rgba(0, 255, 255, 0.15);
    border: 1px solid rgba(0, 255, 255, 0.3);
    padding: 1rem 2rem;
    width: 100%;
    color: #ffffff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #00ffff, #0088ff);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.submit-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(0, 255, 255, 0.6);
}

.submit-btn:hover::before {
    opacity: 1;
}

.submit-btn:active {
    transform: translateY(-2px);
}

/* Animation keyframes */
@keyframes shine {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

/* Responsive Design */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .contact-info {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .contact-form-container {
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 5rem 0;
    }
    
    .contact-heading {
        font-size: 2rem;
        text-align: center;
    }
    
    .contact-text {
        text-align: center;
    }
    
    .contact-social {
        justify-content: center;
    }
    
    .contact-detail-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .contact-detail-text h4 {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Modern Footer Styles */
.footer {
    background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
    color: #ffffff;
    padding: 3rem 2rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, 
        rgba(108, 99, 255, 0.15) 0%, 
        transparent 50%);
    pointer-events: none;
}

.footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, 
        #6C63FF, 
        #8B85FF, 
        #4169E1, 
        #6C63FF);
    background-size: 300% 100%;
    animation: gradientMove 5s linear infinite;
}

@keyframes gradientMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 150% 0%; }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
}

.footer-section h3 {
    color: #ffffff;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, #6C63FF, transparent);
    transition: width 0.3s ease;
}

.footer-section:hover h3::after {
    width: 100%;
}

.footer-section p {
    color: #B8B8B8;
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-size: 0.9rem;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
}

.footer-links li:hover {
    transform: translateX(8px);
}

.footer-links a {
    color: #B8B8B8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #6C63FF;
}

.footer-links i {
    font-size: 0.8rem;
    color: #6C63FF;
    transition: transform 0.3s ease;
}

.footer-links a:hover i {
    transform: translateX(5px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #B8B8B8;
}

.footer-contact i {
    color: #6C63FF;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.footer-contact p:hover i {
    transform: scale(1.2);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(108, 99, 255, 0.1);
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6C63FF, #4169E1);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-social a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.footer-social a:hover i {
    transform: scale(1.2);
}

.footer-bottom {
    position: relative;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: #B8B8B8;
    font-size: 0.9rem;
}

.footer-bottom span {
    color: #6C63FF;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .footer-section:first-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .footer {
        padding: 2.5rem 1.5rem 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links a {
        justify-content: center;
    }

    .footer-contact p {
        justify-content: center;
    }

    .footer-social {
        justify-content: center;
    }
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.8rem;
}

.project-tech span {
    padding: 0.5rem 1rem;
    background: rgba(108, 99, 255, 0.15);
    color: #ffffff;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(108, 99, 255, 0.3);
    transform-origin: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.project-tech span:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(108, 99, 255, 0.3);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
    color: #ffffff;
    border-color: rgba(108, 99, 255, 0.6);
}

.project-tech span::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-tech span:hover::before {
    transform: translateX(100%);
}

.project-links {
    display: flex;
    gap: 1.2rem;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.4rem;
    background: rgba(108, 99, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(108, 99, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.project-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #6C63FF, #8B85FF);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.project-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
    border-color: rgba(108, 99, 255, 0.6);
}

.project-link:hover::before {
    opacity: 1;
}

.project-link i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.project-link:hover i {
    transform: translateX(5px);
    animation: pulse-icon 1s infinite alternate;
}

@keyframes pulse-icon {
    0% { transform: translateX(3px); }
    100% { transform: translateX(6px); }
}

@media (max-width: 768px) {
    .project-tech {
        gap: 0.6rem;
    }
    
    .project-tech span {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .project-links {
        flex-direction: column;
        gap: 1rem;
    }
}

.about-image .image-container .shine-effect {
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg) translateX(-100%);
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.about-image .image-container:hover .shine-effect {
    transform: rotate(45deg) translateX(100%);
    transition: transform 1s ease;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.9s;
}

.social-links.animate {
    opacity: 1;
    transform: translateY(0);
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: scale(1);
    border: 2px solid transparent;
    z-index: 1;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, var(--primary-purple), var(--electric-blue));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover i {
    transform: scale(1.1);
    color: white;
}

.social-links a i {
    font-size: 1.3rem;
    transition: all 0.3s ease;
    color: var(--navy-blue);
}

/* Individual social media button styles */
.social-links a:nth-child(1) { /* LinkedIn */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    transition-delay: 0.1s;
    transform: translateY(0) scale(1);
}

.social-links a:nth-child(2) { /* GitHub */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    transition-delay: 0.2s;
    transform: translateY(0) scale(1);
}

.social-links a:nth-child(3) { /* Twitter */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    transition-delay: 0.3s;
    transform: translateY(0) scale(1);
}

.social-links a:nth-child(4) { /* Instagram */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.9));
    transition-delay: 0.4s;
    transform: translateY(0) scale(1);
}

.social-links a:nth-child(1):hover { box-shadow: 0 15px 25px rgba(0, 119, 181, 0.25); }
.social-links a:nth-child(2):hover { box-shadow: 0 15px 25px rgba(51, 51, 51, 0.25); }
.social-links a:nth-child(3):hover { box-shadow: 0 15px 25px rgba(29, 161, 242, 0.25); }
.social-links a:nth-child(4):hover { box-shadow: 0 15px 25px rgba(225, 48, 108, 0.25); }

/* Breathe effect for social buttons */
@keyframes breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.social-links a:hover {
    animation: breathe 2s infinite ease-in-out;
}

/* Mobile styles for social links */
@media (max-width: 768px) {
    .social-links {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .social-links a {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #6c63ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(255, 255, 255, 0.2);
    pointer-events: none;
}

.scroll-to-top.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.7);
    background: linear-gradient(135deg, #6c63ff, #8b85ff);
}

.scroll-to-top i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.scroll-to-top:hover i {
    transform: translateY(-3px);
    animation: bounce 1s infinite alternate;
}

@keyframes bounce {
    0% { transform: translateY(-3px); }
    100% { transform: translateY(3px); }
}

@media (max-width: 768px) {
    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@keyframes floatIn {
    0% { 
        opacity: 0;
        transform: translateY(40px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    0% { 
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    70% {
        transform: scale(1.05) translateY(-5px);
    }
    100% { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        transform: translateX(40px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popUp {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Education item animation */
.education-item {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(224, 195, 252, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.8) translateY(50px);
    visibility: hidden;
    backface-visibility: hidden;
    transform-origin: center bottom;
    will-change: transform, opacity;
}

.education-item.animate {
    opacity: 1;
    transform: scale(1) translateY(0);
    visibility: visible;
    animation: scaleInEducation 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes scaleInEducation {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
        visibility: hidden;
    }
    70% {
        transform: scale(1.05) translateY(-5px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        visibility: visible;
    }
}

.education-item:hover {
    transform: scale(1.03) translateY(-10px);
    border-color: #E0C3FC;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* About section animations */
.about-image.animated {
    animation: floatIn 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.about-name.animated {
    animation: fadeInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.about-role.animated {
    animation: fadeInLeft 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.2s forwards;
}

.about-text p.animated {
    animation: fadeInRight 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.3s forwards;
}

.contact-details.animated {
    animation: fadeInRight 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.4s forwards;
}

.download-resume.animated {
    animation: popUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.5s forwards;
}

.highlight {
    color: #6c63ff;
    background: linear-gradient(135deg, #6c63ff, #4169E1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(108, 99, 255, 0.3);
}
  
.form-message {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background-color: #4BB543;
    color: white;
    padding: 15px;
    border-radius: 5px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Improved Mobile Responsiveness */

/* Hero Section Media Queries */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column-reverse;
        padding: 20px 15px;
        gap: 2rem;
    }
    
    .hero-text {
        width: 100%;
        text-align: left;
        padding: 0;
    }
    
    .hero-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
        font-weight: 700;
    }
    
    .role {
        font-size: 1.1rem;
        margin: 15px 0;
    }
    
    .hero-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
    }
    
    .hero-image .image-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .social-links {
        justify-content: left;
        margin-top: 20px;
    }
    
    .cta-button {
        margin: 20px auto;
        display: block;
        max-width: 200px;
        text-align: center;
        margin-left: 0;
    }
}

/* About Section Media Queries */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        padding: 20px 15px;
        gap: 2rem;
    }
    
    .about-image {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        padding: 0;
    }
    
    .about-image .image-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .about-text {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .about-name {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-role {
        font-size: 1.3rem;
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 5px;
        margin: 10px 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        margin: 1rem 0;
        width: 100%;
    }
    
    .contact-details p {
        justify-content: center;
        font-size: 0.9rem;
        width: 100%;
        word-break: break-word;
        padding: 0 10px;
    }
    
    .download-resume {
        margin: 1.5rem auto;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
        width: auto;
        display: inline-block;
    }
}

/* Additional Small Screen Media Queries */
@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .hero-text h2 {
        font-size: 1.5rem;
    }
    
    .role {
        font-size: 1rem;
    }
    
    .hero-image .image-container,
    .about-image .image-container {
        width: 180px;
        height: 180px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .about-name {
        font-size: 1.7rem;
    }
    
    .about-role {
        font-size: 1.2rem;
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    transition: all 0.3s ease;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background: linear-gradient(to right, var(--primary-purple), var(--electric-blue));
    border-radius: 5px;
    transition: all 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    width: 100%;
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    width: 100%;
}

/* Enhance mobile menu display */
@media (max-width: 768px) {
    .nav-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 15px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu-btn:hover span {
        background: linear-gradient(to right, var(--neon-purple), var(--electric-blue));
        box-shadow: 0 0 5px rgba(108, 99, 255, 0.7);
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        padding: 3rem 0;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        transition: right 0.5s cubic-bezier(0.65, 0, 0.35, 1);
        overflow-y: auto;
    }
    
    .nav-links::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: linear-gradient(to bottom, var(--primary-purple), var(--electric-blue));
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        padding: 12px 20px;
        width: 75%;
        text-align: center;
        border-radius: 10px;
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover {
        background: rgba(108, 99, 255, 0.1);
        transform: translateX(5px);
    }
    
    .nav-links a::after {
        bottom: -5px;
        height: 3px;
    }
    
    .nav-links li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.4s ease;
    }
    
    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    /* Staggered animation for list items */
    .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }
    
    .nav-links li:nth-child(2) {
        transition-delay: 0.2s;
    }
    
    .nav-links li:nth-child(3) {
        transition-delay: 0.3s;
    }
    
    .nav-links li:nth-child(4) {
        transition-delay: 0.4s;
    }
    
    .nav-links li:nth-child(5) {
        transition-delay: 0.5s;
    }
    
    .nav-links li:nth-child(6) {
        transition-delay: 0.6s;
    }
}

/* Menu header and close button */
.menu-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.menu-header h3 {
    font-size: 1.3rem;
    color: var(--primary-purple);
    font-weight: 600;
    margin: 0;
    background: linear-gradient(to right, var(--primary-purple), var(--electric-blue));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-close-btn {
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--navy-blue);
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-close-btn:hover {
    background-color: rgba(108, 99, 255, 0.1);
    transform: rotate(90deg);
    color: var(--primary-purple);
}

@media (max-width: 768px) {
    /* ... existing mobile styles ... */
    
    .nav-links {
        padding-top: 80px;
    }
    
    .nav-links li {
        width: 80%;
    }
    
    .nav-links a {
        display: flex;
        align-items: center;
        gap: 12px;
        font-weight: 500;
    }
    
    .nav-links a i {
        font-size: 1.1rem;
        color: var(--primary-purple);
        transition: all 0.3s ease;
    }
    
    .nav-links a:hover i {
        transform: translateX(3px);
        color: var(--electric-blue);
    }
    
    .nav-links a.active {
        background: linear-gradient(to right, rgba(108, 99, 255, 0.1), rgba(65, 105, 225, 0.05));
        font-weight: 600;
    }
    
    .nav-links a.active i {
        color: var(--electric-blue);
    }
}

/* Body styles when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Create an overlay when menu is open */
@media (max-width: 768px) {
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        opacity: 1;
        transition: opacity 0.3s ease;
        pointer-events: none;
    }
    
    .nav-links {
        z-index: 1001;
    }
}

/* Fix menu display on desktop */
@media (min-width: 769px) {
    .mobile-menu-btn, .menu-header {
        display: none !important;
    }
    
    .nav-links {
        position: static !important;
        width: auto !important;
        height: auto !important;
        flex-direction: row !important;
        background: none !important;
        box-shadow: none !important;
        padding: 0 !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        right: 0 !important;
    }
    
    .nav-links::before {
        display: none !important;
    }
    
    .nav-links li {
        opacity: 1 !important;
        transform: none !important;
        width: auto !important;
    }
    
    .nav-links a {
        font-size: 1.05rem !important;
        padding: 0.5rem !important;
        width: auto !important;
        display: inline-block !important;
    }
    
    .nav-links a i {
        display: none !important;
    }
}

/* Improve About section on mobile */
@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        padding: 15px;
        gap: 1.5rem;
    }
    
    .about-image {
        width: 100%;
        max-width: 220px;
        margin: 0 auto 10px;
        padding: 0;
        order: -1; /* Make image appear first */
    }
    
    .about-image .image-container {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }
    
    .about-text {
        width: 100%;
        text-align: center;
        padding: 0;
    }
    
    .about-name {
        font-size: 1.7rem;
        margin-bottom: 0.5rem;
        text-align: center;
    }
    
    .about-role {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        text-align: center;
    }
    
    .about-text p {
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.6;
        padding: 0 5px;
        margin: 10px 0;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    .contact-details {
        flex-direction: column;
        gap: 0.5rem;
        margin: 1rem 0;
    }
    
    .contact-details p {
        justify-content: center;
        font-size: 0.9rem;
    }
    
    .download-resume {
        margin: 1.5rem auto;
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .about-image .image-container {
        width: 160px;
        height: 160px;
    }
    
    .about-text p {
        font-size: 0.85rem;
        padding: 0 5px;
        line-height: 1.5;
    }
    
    .about-name {
        font-size: 1.6rem;
    }
    
    .about-role {
        font-size: 1.1rem;
    }
    
    .contact-details p {
        font-size: 0.85rem;
    }
}

/* Further mobile optimizations for about section */
@media (max-width: 768px) {
    .about {
        padding: 60px 0 40px;
        overflow-x: hidden;
    }

    .about-content {
        flex-direction: column;
        padding: 10px;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .about-image {
        width: 100%;
        max-width: 180px;
        margin: 0 auto 15px;
        padding: 0;
        order: -1; /* Make image appear first */
    }
    
    .about-image .image-container {
        width: 160px;
        height: 160px;
        margin: 0 auto;
    }
    
    .about-text {
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0 auto;
        box-sizing: border-box;
    }
    
    .about-name {
        font-size: 1.6rem;
        margin-bottom: 0.3rem;
        text-align: center;
        width: 100%;
    }
    
    .about-role {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
        text-align: center;
        width: 100%;
    }
    
    .about-text p {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.5;
        padding: 0;
        margin: 10px auto;
        max-width: 100%;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .contact-details {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        margin: 0.8rem 0;
        width: 100%;
    }
    
    .contact-details p {
        justify-content: center;
        font-size: 0.85rem;
        width: 100%;
        word-break: break-word;
        padding: 0 5px;
        margin: 0;
    }
    
    .contact-details p a {
        font-size: 0.85rem;
        word-break: break-word;
    }
    
    .download-resume {
        margin: 1.2rem auto 0;
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        width: auto;
        display: inline-block;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .about {
        padding: 50px 0 30px;
    }
    
    .about-content {
        padding: 5px;
    }
    
    .about-image .image-container {
        width: 140px;
        height: 140px;
    }
    
    .about-name {
        font-size: 1.4rem;
    }
    
    .about-role {
        font-size: 1rem;
    }
    
    .about-text p {
        font-size: 0.8rem;
        line-height: 1.4;
        padding: 0 10px;
        margin: 8px auto;
    }
    
    .contact-details p, 
    .contact-details p a {
        font-size: 0.8rem;
    }
    
    .download-resume {
        font-size: 0.8rem;
        padding: 0.6rem 0.9rem;
    }
}

/* Fix About section for mobile phones */
@media (max-width: 768px) {
    .about {
        padding: 50px 10px 30px !important;
        overflow-x: hidden !important;
    }

    .about-content {
        flex-direction: column !important;
        padding: 0 !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 15px !important;
    }
    
    .about-image {
        width: 100% !important;
        max-width: 180px !important;
        margin: 0 auto 10px !important;
        padding: 0 !important;
        order: -1 !important; /* Make image appear first */
        float: none !important;
    }
    
    .about-image .image-container {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto !important;
    }
    
    .about-text {
        width: 100% !important;
        text-align: center !important;
        padding: 0 !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        float: none !important;
    }
    
    .about-name {
        font-size: 1.5rem !important;
        margin-bottom: 5px !important;
        margin-top: -18px;
        text-align: center !important;
        width: 100% !important;
    }
    
    .about-role {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
        text-align: center !important;
        width: 100% !important;
    }
    
    .about-text p {
        text-align: left ;
        text-align: justify;
        text-justify: inter-word;
        font-size: 0.9rem !important;
        line-height: 1.4 !important;
        padding: 0 10px !important;
        margin: 0 auto 10px !important;
        max-width: 100% !important;
        word-wrap: break-word !important;
    }
    
    .contact-details {
        flex-direction: column !important;
        align-items: center !important;
        gap: 8px !important;
        margin: 10px 0 !important;
        width: 100% !important;
    }
    
    .contact-details p {
        justify-content: center !important;
        font-size: 0.85rem !important;
        width: 100% !important;
        word-break: break-word !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .contact-details p a {
        font-size: 0.85rem !important;
        word-break: break-word !important;
    }
    
    .download-resume {
        margin: 10px auto 0 !important;
        padding: 8px 15px !important;
        font-size: 0.85rem !important;
        width: auto !important;
        display: inline-block !important;
    }
}

/* For extra small phones */
@media (max-width: 400px) {
    .about-image .image-container {
        width: 130px !important;
        height: 130px !important;
    }
    
    .about-name {
        font-size: 1.3rem !important;
    }
    
    .about-role {
        font-size: 0.9rem !important;
    }
    
    .about-text p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        padding: 0 5px !important;
    }
    
    .contact-details p, 
    .contact-details p a {
        font-size: 0.75rem !important;
    }
    
    .download-resume {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 768px) {
    .about {
        padding: 50px 10px 30px;
        overflow-x: hidden;
    }

    .about-content {
        flex-direction: column;
        padding: 0;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
    
    .about-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto 20px;
        padding: 0;
        order: -1;
    }
    
    .about-image .image-container {
        width: 220px;
        height: 220px;
        margin: 0 auto;
    }
    
    .about-text {
        width: 100%;
        text-align: center;
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }
    
    .about-name {
        font-size: 1.8rem;
        margin-bottom: 5px;
        text-align: center;
        width: 100%;
        position: relative;
        padding-bottom: 10px;
    }
    
    .about-name::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 80px;
        height: 3px;
        background: linear-gradient(to right, var(--primary-purple), var(--electric-blue));
        border-radius: 3px;
    }
    
    .about-role {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
        position: relative;
        padding-bottom: 10px;
    }
    
    .about-role::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 2px;
        background: linear-gradient(to right, var(--primary-purple), var(--electric-blue));
        border-radius: 2px;
    }
}

@media (max-width: 480px) {
    .about-image .image-container {
        width: 200px;
        height: 200px;
    }
    
    .about-name {
        font-size: 1.6rem;
    }
    
    .about-role {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .about-image .image-container {
        width: 180px;
        height: 180px;
    }
}

@media (max-width: 768px) {
    .menu-header {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }

    .menu-header h3 {
        margin: 0;
        padding-bottom: 10px;
    }

    .nav-logo {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .about-image .image-container {
        width: 280px;
        height: 280px;
        margin: 0 auto;
        padding: 5px;
    }

    .about-image .image-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        padding: 0;
    }

    .about-image .image-container::before {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        top: 5px;
        left: 5px;
    }

    .about-image .image-container::after {
        width: calc(100% - 10px);
        height: calc(100% - 10px);
        top: 5px;
        left: 5px;
    }
}

@media (max-width: 480px) {
    .about-image .image-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 400px) {
    .about-image .image-container {
        width: 220px;
        height: 220px;
    }
}

.about-image .image-container {
    border-radius: 0 !important;
}

.about-image .image-container img {
    border-radius: 0 !important;
}

.about-image .image-container::before {
    border-radius: 0 !important;
}

.about-image .image-container::after {
    border-radius: 0 !important;
}
.hero-content {
    min-height: 532px;
}