/* Variables */
:root {
    --primary: #4a90e2;
    --secondary: #2c3e50;
    --accent: #e74c3c;
    --background: #f8f9fa;
    --text: #2c3e50;
    --light-text: #7f8c8d;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, #4a90e2 0%, #2c3e50 100%);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #2196f3;
    --secondary-color: #f50057;
    --accent-color: #ff4081;
    --gradient: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
}

.logo .highlight {
    color: var(--primary);
}

.nav-items {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-items a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-items a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-items a:hover::after {
    width: 100%;
}

.nav-items a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

.menu-btn {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.menu-btn__lines {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn__lines::before {
    content: '';
    top: -8px;
}

.menu-btn__lines::after {
    content: '';
    top: 8px;
}

.menu-btn.open .menu-btn__lines {
    background: transparent;
}

.menu-btn.open .menu-btn__lines::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-btn.open .menu-btn__lines::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8% 10%;
    gap: 4rem;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0.1;
    animation: pulse 8s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 500px;
    height: 500px;
    bottom: -200px;
    left: -200px;
    animation-delay: 2s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: 4s;
}

.hero-text {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    margin-right: 2rem;
}

.tag {
    display: inline-block;
    padding: 12px 24px;
    background: var(--gradient);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform-origin: left;
    animation: scaleIn 0.5s ease-out;
}

.tag i {
    margin-right: 8px;
    animation: spin 4s linear infinite;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    line-height: 1.2;
}

.animated-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin-top: 0.5rem;
}

.description {
    margin-bottom: 2.5rem;
}

.desc-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    opacity: 0;
    animation: slideInLeft 0.5s ease-out forwards;
}

.desc-item:nth-child(1) { animation-delay: 0.3s; }
.desc-item:nth-child(2) { animation-delay: 0.6s; }
.desc-item:nth-child(3) { animation-delay: 0.9s; }

.desc-item i {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.skill-tag {
    padding: 8px 16px;
    background: rgba(var(--primary-color-rgb), 0.1);
    border: 1px solid rgba(var(--primary-color-rgb), 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.skill-tag:nth-child(1) { animation-delay: 0.1s; }
.skill-tag:nth-child(2) { animation-delay: 0.2s; }
.skill-tag:nth-child(3) { animation-delay: 0.3s; }
.skill-tag:nth-child(4) { animation-delay: 0.4s; }
.skill-tag:nth-child(5) { animation-delay: 0.5s; }

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(var(--primary-color-rgb), 0.2);
    background: var(--gradient);
    color: white;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 3rem;
}

.social-icon {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.icon-background {
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.4s ease;
    transform: scale(0.8);
    border-radius: 50%;
}

.social-icon i {
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    place-items: center;
}

.social-icon:hover {
    transform: translateY(-8px) rotate(360deg);
}

.social-icon:hover .icon-background {
    opacity: 1;
    transform: scale(1);
}

.social-icon:hover i {
    color: white;
}

.hero-image {
    position: relative;
    width: 450px;
    height: 450px;
    z-index: 1;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    animation: morphing 10s ease-in-out infinite;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    mix-blend-mode: overlay;
}

.experience-badge {
    position: absolute;
    bottom: 10%;
    right: -20px;
    background: var(--gradient);
    color: white;
    padding: 1rem;
    border-radius: 50%;
    width: 100px;
    height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
}

.experience-badge .number {
    font-size: 1.8rem;
    font-weight: bold;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.9;
}

/* Enhanced Social Icons */
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    position: relative;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient);
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--gradient);
    border-radius: inherit;
    opacity: 0.9;
}

.social-icon i {
    position: relative;
    z-index: 2;
}

.social-icon:hover {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 6px 20px rgba(var(--primary-color-rgb), 0.2);
}

/* New Animations */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .hero {
        padding: 6rem 5% 3rem;
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-text {
        margin-right: 0;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .desc-item {
        justify-content: center;
    }

    .skill-tags {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .hero-image {
        width: 300px;
        height: 300px;
        margin: 0 auto;
    }

    .experience-badge {
        right: 0;
        bottom: 0;
        width: 80px;
        height: 80px;
    }

    .experience-badge .number {
        font-size: 1.5rem;
    }

    .experience-badge .text {
        font-size: 0.7rem;
    }
}

/* Floating Technology Icons */
.floating-icons {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    pointer-events: none;
    animation: rotateIcons 20s linear infinite;
}

.floating-icons i {
    position: absolute;
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    transition: all 0.3s ease;
}

.floating-icons i:nth-child(1) { top: 40%; left: 30%; animation: float 6s ease-in-out infinite; }
.floating-icons i:nth-child(2) { top: 60%; right: 30%; animation: float 8s ease-in-out infinite 1s; }
.floating-icons i:nth-child(3) { bottom: 30%; left: 40%; animation: float 7s ease-in-out infinite 2s; }
.floating-icons i:nth-child(4) { top: 30%; right: 40%; animation: float 9s ease-in-out infinite 3s; }
.floating-icons i:nth-child(5) { bottom: 40%; right: 35%; animation: float 8s ease-in-out infinite 4s; }

@keyframes rotateIcons {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Button Enhancements */
.cta-buttons {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.btn.primary {
    background: var(--gradient);
    color: var(--white);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn.accent {
    background: var(--accent);
    color: var(--white);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateY(-2px);
}

/* Contact Section Styles */
.contact {
    padding: 80px 5%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.contact-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-header h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.8rem;
}

.contact-details {
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-item i {
    font-size: 1.5rem;
    margin-right: 10px;
    color: var(--primary-color);
}

.contact-social {
    margin-top: 1.5rem;
}

.social-icon {
    margin-right: 10px;
    color: var(--text-color);
    transition: color 0.3s;
}

.social-icon:hover {
    color: var(--primary-color);
}

.contact-form {
    flex: 1;
    min-width: 300px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    color: var(--text-color);
    transition: background 0.3s;
}

.input-group input:focus,
.input-group textarea:focus {
    background: rgba(255, 255, 255, 0.7);
    outline: none;
}

.input-group label {
    position: absolute;
    left: 15px;
    top: 10px;
    transition: 0.3s;
    color: var(--light-text);
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -10px;
    font-size: 12px;
    color: var(--primary-color);
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.submit-btn:hover {
    background: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
    color: var(--secondary);
    border: 2px solid var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.subtitle {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.experience-badge .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
    animation: scaleIn 0.5s ease-out;
}

.skill-item {
    background: var(--white);
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.skill-item:hover {
    transform: translateY(-10px);
    color: var(--white);
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item:hover i,
.skill-item:hover span {
    color: var(--white);
    position: relative;
    z-index: 1;
}

.skill-item:nth-child(1) { animation-delay: 0.1s; }
.skill-item:nth-child(2) { animation-delay: 0.2s; }
.skill-item:nth-child(3) { animation-delay: 0.3s; }
.skill-item:nth-child(4) { animation-delay: 0.4s; }

/* Projects Section */
.projects {
    padding: 100px 5%;
    background: var(--bg-color);
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.title-bar {
    width: 70px;
    height: 4px;
    background: var(--gradient);
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.title-bar::before,
.title-bar::after {
    content: '';
    position: absolute;
    width: 45%;
    height: 100%;
    background: var(--gradient);
    border-radius: 2px;
    animation: titleBarAnim 2s ease-in-out infinite;
}

.title-bar::before {
    left: -60%;
}

.title-bar::after {
    right: -60%;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 20px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-image {
    position: relative;
    width: 100%;
    padding-top: 60%; /* Aspect ratio */
    overflow: hidden;
}

.project-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.project-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 20px;
    justify-content: center;
}

.project-tech span {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9em;
}

.project-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    z-index: 1;
}

.project-content h3 {
    color: var(--text-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.project-content p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
    flex-grow: 1;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: var(--accent-color);
}

.project-link i {
    font-size: 1.1em;
}

/* Project card link styles */
.project-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    transition: transform 0.3s ease;
}

.project-link-wrapper:hover {
    transform: translateY(-5px);
}

.error-message {
    text-align: center;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
}

.error-message h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-message p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Contact Section */
.contact {
    padding: 100px 5%;
    background: var(--bg-color);
}

.contact-container {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.4s ease;
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card > * {
    position: relative;
    z-index: 1;
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    transition: all 0.4s ease;
}

.contact-card:hover i {
    color: white;
    transform: translateY(-5px);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: all 0.4s ease;
}

.contact-card:hover h3 {
    color: white;
}

.contact-card p {
    color: var(--text-secondary);
    transition: all 0.4s ease;
}

.contact-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.contact-form {
    flex: 1;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(var(--primary-color-rgb), 0.2);
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group textarea {
    height: 120px;
    resize: none;
}

.focus-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: all 0.4s ease;
}

.form-group input:focus ~ .focus-border,
.form-group textarea:focus ~ .focus-border {
    width: 100%;
}

.submit-btn {
    background: var(--gradient);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn i {
    transition: all 0.4s ease;
}

.submit-btn:hover i {
    transform: translateX(5px) rotate(45deg);
}

/* Animations */
@keyframes titleBarAnim {
    0%, 100% {
        transform: scaleX(1);
    }
    50% {
        transform: scaleX(1.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        gap: 3rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* Project Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    position: relative;
    transform: scale(0.8) translateY(30px);
    opacity: 0;
    transition: all 0.3s ease;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modal-close i {
    font-size: 1.2rem;
    color: var(--text);
    transition: all 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
    background: var(--primary);
}

.modal-close:hover i {
    color: var(--white);
}

.modal-content {
    padding: 0;
}

.modal-header {
    position: relative;
}

.modal-images {
    width: 100%;
}

.modal-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    display: none;
}

.modal-image.active {
    display: block;
}

.modal-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 50px;
}

.thumbnail {
    width: 60px;
    height: 40px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.thumbnail.active,
.thumbnail:hover {
    opacity: 1;
}

.modal-body {
    padding: 2rem;
}

.modal-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-description {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.modal-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-item h3 {
    margin-bottom: 1rem;
    color: var(--text);
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-tag {
    padding: 0.5rem 1rem;
    background: rgba(74, 144, 226, 0.1);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.9rem;
}

.modal-links {
    display: flex;
    gap: 1rem;
}

.modal-link {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.modal-link i {
    font-size: 1rem;
}

/* Enhanced Contact Form */
.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--light-text);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-container {
    position: relative;
}

.input-container input,
.input-container textarea {
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid #eee;
    color: var(--text);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-container textarea {
    min-height: 150px;
    resize: vertical;
}

.input-container label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-container label i {
    font-size: 1.2rem;
    color: var(--primary);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
}

.input-container input:focus,
.input-container textarea:focus {
    outline: none;
}

.input-container input:focus ~ .input-border,
.input-container textarea:focus ~ .input-border,
.input-container input:valid ~ .input-border,
.input-container textarea:valid ~ .input-border {
    width: 100%;
}

.input-container input:focus ~ label,
.input-container textarea:focus ~ label,
.input-container input:valid ~ label,
.input-container textarea:valid ~ label {
    transform: translateY(-2rem);
    font-size: 0.8rem;
    color: var(--primary);
}

.submit-btn {
    background: var(--gradient);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.submit-btn:hover::before {
    transform: translateX(100%);
}

.submit-btn i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .input-group {
        grid-template-columns: 1fr;
    }

    .modal-info {
        grid-template-columns: 1fr;
    }

    .modal-image {
        height: 300px;
    }

    .modal-thumbnails {
        display: none;
    }
}

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 150px;
    }

    .social-icons {
        justify-content: center;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-items {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-items.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-items li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-items.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-items li:nth-child(1) { transition-delay: 0.1s; }
    .nav-items li:nth-child(2) { transition-delay: 0.2s; }
    .nav-items li:nth-child(3) { transition-delay: 0.3s; }
    .nav-items li:nth-child(4) { transition-delay: 0.4s; }

    .nav-items a {
        font-size: 1.5rem;
    }

    .theme-selector {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
}

/* Theme Selector Styles */
.theme-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--background);
    padding: 0.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.theme-select {
    padding: 0.5rem;
    border: none;
    border-radius: 4px;
    background: var(--white);
    color: var(--text);
    font-size: 0.9rem;
    cursor: pointer;
    outline: none;
    transition: var(--transition);
}

.theme-select:hover {
    background: var(--background);
}

.theme-icon {
    color: var(--primary);
    font-size: 1.2rem;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.social-icon i {
    font-size: 1.2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.social-icon:hover {
    transform: translateY(-3px);
    color: white;
}

.social-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.social-icon:hover::before {
    opacity: 1;
}

/* Resume Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1100;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.modal-open {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    margin: 2rem auto;
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.modal-open .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent);
}

.resume-container {
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.resume-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    box-shadow: var(--shadow);
}

/* Button Styles */
.btn.accent {
    background: var(--accent);
    color: var(--white);
}

.btn.accent:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Theme Colors */
[data-theme="light"] {
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
}

[data-theme="dark"] {
    --bg-color: #1a1a1a;
    --text-color: #ffffff;
    --primary-color: #64b5f6;
    --secondary-color: #b2ebf2;
    --accent-color: #ff7043;
}

[data-theme="blue"] {
    --bg-color: #f0f8ff;
    --text-color: #2c3e50;
    --primary-color: #1e88e5;
    --secondary-color: #64b5f6;
    --accent-color: #00bcd4;
}

[data-theme="purple"] {
    --bg-color: #f3e5f5;
    --text-color: #4a148c;
    --primary-color: #7b1fa2;
    --secondary-color: #ba68c8;
    --accent-color: #e040fb;
}

[data-theme="green"] {
    --bg-color: #e8f5e9;
    --text-color: #1b5e20;
    --primary-color: #43a047;
    --secondary-color: #81c784;
    --accent-color: #00c853;
}

/* Theme Transition */
.theme-transition {
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    transition: background-color 0.3s ease, color 0.3s ease;
}

* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Social Media Container */
.social-media-container {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.social-media-container h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.social-media-icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-media-icon {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-media-icon i {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-media-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--gradient);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.social-media-icon:hover {
    transform: translateY(-5px);
    color: white;
}

.social-media-icon:hover::before {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .nav-items {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: all 0.3s ease;
        opacity: 0;
        visibility: hidden;
    }

    .nav-items.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-items li {
        opacity: 0;
        transform: translateX(50px);
        transition: all 0.3s ease;
    }

    .nav-items.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-items li:nth-child(1) { transition-delay: 0.1s; }
    .nav-items li:nth-child(2) { transition-delay: 0.2s; }
    .nav-items li:nth-child(3) { transition-delay: 0.3s; }
    .nav-items li:nth-child(4) { transition-delay: 0.4s; }

    .nav-items a {
        font-size: 1.5rem;
    }

    .theme-selector {
        position: absolute;
        top: 20px;
        right: 20px;
    }
}

/* Skills Showcase */
.skills-showcase {
    /* margin-top: 3rem; */
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.skills-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(-45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(-45deg);
    }
    100% {
        transform: translateX(100%) rotate(-45deg);
    }
}

.skills-showcase h3 {
    font-size: 2.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    padding-bottom: 10px;
}

.skills-showcase h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: var(--gradient);
    border-radius: 3px;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.skill-category {
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    font-size: 1.4rem;
    margin-bottom: 1.8rem;
    color: var(--primary);
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.skill-category h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient);
    border-radius: 2px;
}

.skill-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1.2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.skill-item:hover::before {
    opacity: 1;
}

.skill-item i {
    font-size: 2.2rem;
    color: var(--primary);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-item span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.skill-item:hover i,
.skill-item:hover span {
    color: white;
    transform: scale(1.1);
}

/* Custom colors for skill icons */
.skill-item .fa-html5 { color: #e34f26; }
.skill-item .fa-css3-alt { color: #1572b6; }
.skill-item .fa-js { color: #f7df1e; }
.skill-item .fa-react { color: #61dafb; }
.skill-item .fa-node-js { color: #339933; }
.skill-item .fa-php { color: #777bb4; }
.skill-item .fa-database { color: #4479a1; }
.skill-item .fa-figma { color: #f24e1e; }
.skill-item .fa-git-alt { color: #f05032; }
.skill-item .fa-aws { color: #ff9900; }

/* Responsive Styles for Skills */
@media (max-width: 768px) {
    .skills-showcase {
        padding: 2rem 1.5rem;
    }
    .hero-image-container img{
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        /* object-fit: none; */
        width: 100%;
    }
    

    .skills-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .skill-items {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 1rem;
    }

    .skill-item {
        padding: 1rem;
    }

    .skill-item i {
        font-size: 1.8rem;
    }

    .skill-item span {
        font-size: 0.85rem;
    }

    .skills-showcase h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .skill-category h4 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
}

/* Add smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Add loading animation for skill items */
@keyframes skillFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-item {
    animation: skillFadeIn 0.5s ease forwards;
}

.skill-items > * {
    opacity: 0;
}

.skill-items > *:nth-child(1) { animation-delay: 0.1s; }
.skill-items > *:nth-child(2) { animation-delay: 0.2s; }
.skill-items > *:nth-child(3) { animation-delay: 0.3s; }
.skill-items > *:nth-child(4) { animation-delay: 0.4s; }
.skill-items > *:nth-child(5) { animation-delay: 0.5s; }

/* Project Details Page Styles */
.project-details {
    padding: 120px 5% 80px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.project-header {
    text-align: center;
    margin-bottom: 4rem;
    animation: fadeIn 0.8s ease-out;
}

.project-title {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.meta-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.meta-item i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.project-gallery {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    aspect-ratio: 16/9;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.project-content {
    /* margin-top: 4rem; */
    display: grid;
    /* grid-template-columns: 2fr 1fr;
    gap: 3rem; */
    animation: fadeIn 0.8s ease-out 0.4s backwards;
}

.project-description {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.project-description h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.project-description p {
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.project-sidebar {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    height: fit-content;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.tech-tag {
    padding: 0.5rem 1rem;
    background: var(--gradient);
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.tech-tag:hover {
    transform: translateY(-2px);
}

/* Enhanced Mobile Menu Styles */
@media (max-width: 768px) {
    .nav-items {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease-in-out;
        opacity: 0;
        visibility: hidden;
        z-index: 999;
    }

    .nav-items.active {
        right: 0;
        opacity: 1;
        visibility: visible;
    }

    .nav-items li {
        margin: 1.5rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.3s ease;
    }

    .nav-items.active li {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.2s;
    }

    .nav-items a {
        font-size: 1.4rem;
        font-weight: 600;
        color: var(--text-color);
        padding: 0.8rem 2rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .nav-items a:hover {
        background: var(--primary-color);
        color: white;
    }

    /* Theme Selector Position Fix */
    .theme-selector {
        position: fixed;
        top: 20px;
        right: 80px;
        z-index: 1000;
    }

    /* Project Details Mobile Styles */
    .project-title {
        font-size: 2.2rem;
    }

    .project-content {
        grid-template-columns: 1fr;
    }

    .meta-item {
        width: 100%;
        justify-content: center;
    }

    .project-description,
    .project-sidebar {
        padding: 1.5rem;
    }
}

/* Menu Button Styles */
.menu-btn {
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1000;
    cursor: pointer;
    display: none;
}

.menu-btn__lines,
.menu-btn__lines::before,
.menu-btn__lines::after {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-btn__lines {
    top: 50%;
    transform: translateY(-50%);
}

.menu-btn__lines::before {
    content: '';
    top: -8px;
}

.menu-btn__lines::after {
    content: '';
    bottom: -8px;
}

.menu-btn.active .menu-btn__lines {
    background-color: transparent;
}

.menu-btn.active .menu-btn__lines::before {
    top: 0;
    transform: rotate(45deg);
}

.menu-btn.active .menu-btn__lines::after {
    bottom: 0;
    transform: rotate(-45deg);
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Icon Animations and Transitions */
i {
    transition: all 0.3s ease;
}

/* Pulse animation for icons */
@keyframes iconPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Rotate animation for icons */
@keyframes iconRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Bounce animation for icons */
@keyframes iconBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shake animation for icons */
@keyframes iconShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* Apply different animations to different sections */

/* Skills section icons */
.skill-item i {
    transition: all 0.3s ease;
}

.skill-item:hover i {
    animation: iconRotate 0.8s ease;
    color: white;
    transform: scale(1.2);
}

/* Social media icons */
.social-links i {
    transition: all 0.3s ease;
}

.social-links a:hover i {
    animation: iconBounce 0.8s ease;
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Project icons */
.project-meta-item i,
.project-link i {
    transition: all 0.3s ease;
}

.project-meta-item:hover i,
.project-link:hover i {
    animation: iconShake 0.5s ease;
    color: var(--primary-color);
}

/* Contact section icons */
.contact-info i {
    transition: all 0.3s ease;
}

.contact-info-item:hover i {
    animation: iconBounce 0.8s ease;
    color: var(--primary-color);
    transform: scale(1.2);
}

/* CTA button icons */
.btn i {
    transition: all 0.3s ease;
}

.skill-item a{
    text-decoration: none;
}
.btn:hover i {
    animation: iconShake 0.5s ease;
    transform: translateX(5px);
}

/* Menu button icon animation */
.menu-btn i {
    transition: all 0.3s ease;
}

.menu-btn.active i {
    transform: rotate(90deg);
}

/* Theme selector icon */
.theme-selector i {
    transition: all 0.3s ease;
}

.theme-selector:hover i {
    animation: iconRotate 1s linear;
    color: var(--primary-color);
}

/* Navbar icons */
.nav-items a i {
    transition: all 0.3s ease;
    margin-right: 8px;
}

.nav-items a:hover i {
    animation: iconBounce 0.5s ease;
    color: var(--primary-color);
}

/* Form submit button icon */
.submit-btn i {
    transition: all 0.3s ease;
    margin-left: 8px;
}

.submit-btn:hover i {
    animation: iconShake 0.5s ease;
    transform: translateX(5px);
}

.main-image{
    width: 100%;
}

/* YouTube Icon Styles */
.youtube-icon {
    display: inline-block;
}

.youtube-icon a {
    text-decoration: none;
    display: inline-block;
}

.youtube-icon i {
    font-size: 2.5rem;
    color: #FF0000; /* YouTube's official red color */
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.youtube-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* YouTube Icon Styles */
.youtube-icon {
    display: inline-block;
}

.youtube-icon a {
    text-decoration: none;
    display: inline-block;
}

.youtube-icon i {
    font-size: 2.5rem;
    color: #FF0000; /* YouTube's official red color */
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.youtube-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* YouTube Icon Styles */
.youtube-icon {
    display: inline-block;
}

.youtube-icon a {
    text-decoration: none;
    display: inline-block;
}

.youtube-icon i {
    font-size: 2.5rem;
    color: #FF0000; /* YouTube's official red color */
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.youtube-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* YouTube Icon Styles */
.youtube-icon {
    display: inline-block;
}

.youtube-icon a {
    text-decoration: none;
    display: inline-block;
}

.youtube-icon i {
    font-size: 2.5rem;
    color: #FF0000; /* YouTube's official red color */
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.youtube-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* YouTube Icon Styles */
.youtube-icon {
    display: inline-block;
}

.youtube-icon a {
    text-decoration: none;
    display: inline-block;
}

.youtube-icon i {
    font-size: 2.5rem;
    color: #FF0000; /* YouTube's official red color */
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.youtube-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* YouTube Icon Styles */
.youtube-icon {
    display: inline-block;
}

.youtube-icon a {
    text-decoration: none;
    display: inline-block;
}

.youtube-icon i {
    font-size: 2.5rem;
    color: #FF0000; /* YouTube's official red color */
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.youtube-icon i:hover {
    transform: scale(1.2);
    filter: brightness(1.2);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Contact Form Status Messages */
.form-status {
    margin-top: 1rem;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 4px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn .fa-spinner {
    margin-right: 0.5rem;
}

/* Resume Page Styles */
.resume-section {
    padding: 120px 20px 60px;
    min-height: 100vh;
    background: var(--bg-color);
}

.resume-container {
    max-width: 1200px;
    margin: 0 auto;
}

.resume-container h1 {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.resume-content {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.resume-preview {
    margin-bottom: 30px;
}

.resume-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.resume-pdf {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.resume-actions {
    text-align: center;
}

.resume-actions .btn {
    padding: 12px 30px;
    font-size: 1.1rem;
}

.responsive-img {
    position: relative;
    height: 675px;
    margin-top: -90px;
    max-width: 100%;
    object-fit: cover;
  }
  
  /* Responsive styles */
  @media (max-width: 1024px) {
    .responsive-img {
      height: 500px;
      margin-top: -60px;
    }
  }
  
  @media (max-width: 768px) {
    .responsive-img {
      height: 400px;
      margin-top: -40px;
    }
  }
  
  @media (max-width: 480px) {
    .responsive-img {
      height: 300px;
      margin-top: -20px;
    }
  }
  