/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
    min-height: 100vh;
    padding-top: 80px; /* Account for fixed header */
    animation: gradientShift 10s ease-in-out infinite;
}

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

html {
    scroll-behavior: smooth;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 2px solid rgba(255, 107, 107, 0.2);
    height: 80px;
    display: flex;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-left: 2rem;
}

.logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 2rem;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 1rem;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.1);
}

nav ul li a:hover {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    border-color: rgba(255, 107, 107, 0.3);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: block;
    cursor: pointer;
    font-size: 1.5rem;
    color: #333;
    position: absolute;
    top: 50%;
    right: 4rem;
    transform: translateY(-50%);
    z-index: 1002;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* Desktop Sidebar */
@media (min-width: 769px) {
    nav ul {
        position: fixed;
        top: 80px;
        right: -300px;
        width: 300px;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        right: 0;
    }

    nav ul li {
        margin: 1rem 0;
        width: 80%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
        border-radius: 10px;
    }
}

/* No hero section */

/* Sections */
section {
    padding: 5rem 0;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

/* home Section */
.home {
    background: linear-gradient(135deg, rgba(255, 154, 158, 0.1) 0%, rgba(254, 207, 239, 0.1) 100%);
}

.home-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.profile-photo img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.home-text {
    flex: 1;
}

.home-text p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Skills Section */
.skills {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.skill-item {
    background: linear-gradient(135deg, #fecfef 0%, #ff9a9e 100%);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 107, 107, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 107, 107, 0.1), transparent);
    transition: left 0.5s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.2);
}

.skill-item h3 {
    margin-bottom: 1rem;
    color: #000;
    font-weight: 600;
}

.skill-icon i {
    font-size: 3rem;
    color: #ff6b6b;
    transition: transform 0.3s ease, color 0.3s ease;
}

.skill-icon:hover i {
    transform: rotate(360deg) scale(1.2);
    color: #4ecdc4;
}

.skill-icon img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.skill-icon:hover img {
    transform: scale(1.2);
}

.progress-bar {
    background-color: #e9ecef;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    border-radius: 6px;
    transition: width 1.5s ease;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section */
.projects {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(254, 207, 239, 0.1) 100%);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,154,158,0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(254,207,239,0.03) 0%, transparent 50%);
}

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

.project-card {
    background-color: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.project-card h3 {
    margin-bottom: 1rem;
    color: #333;
}

/* Contact Section */
.contact {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,107,107,0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(78,205,196,0.1) 0%, transparent 50%);
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
    transform: translateY(-2px);
}

.contact-form button {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 2rem 0;
}

/* Mouse Follower */
.mouse-follower {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(255, 107, 107, 0.8) 0%, rgba(255, 107, 107, 0.2) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
    animation: pulse 2s infinite;
}

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

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 20px;
    height: 20px;
    background: rgba(255, 107, 107, 0.3);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: 1;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 20%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Ripple Effect */
.ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
}





/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #28a745);
    z-index: 1002;
    transition: width 0.1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo {
        margin-left: 1rem;
        font-size: 1.2rem;
    }

    .logo i {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
    }

    nav ul {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 2rem 0;
        transition: left 0.3s ease;
        z-index: 999;
        box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        margin: 1rem 0;
        width: 80%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 1rem;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .home-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .profile-photo img {
        width: 150px;
        height: 150px;
    }

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

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

    .skills-grid,
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .skill-item,
    .project-card {
        padding: 1.5rem;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1rem;
        margin-left: 0.5rem;
    }

    .logo i {
        font-size: 1.2rem;
    }

    .menu-toggle {
        right: 1rem;
        font-size: 1.2rem;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 0.8rem;
    }

    .home-content {
        gap: 1.5rem;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
    }

    .home-text h1 {
        font-size: 1.8rem;
    }

    .home-text p {
        font-size: 0.9rem;
    }

    .skill-item,
    .project-card {
        padding: 1rem;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .container {
        padding: 0 0.5rem;
    }

    section {
        padding: 2rem 0;
    }

    .contact-form input,
    .contact-form textarea,
    .contact-form button {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}
