:root {
    --primary-dark: #030508;
    --secondary-dark: #050914;
    --text-primary: #E2E5EB;
    --text-secondary: #707A8C;
    --accent: #2A5C96;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(140deg, var(--primary-dark) 0%, var(--secondary-dark) 50%, #070C1A 100%);
    color: var(--text-primary);
    min-height: 100vh;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(3, 5, 8, 0.98);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(42, 92, 150, 0.06);
    box-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-links a:hover {
    color: var(--accent);
    background: rgba(59, 127, 204, 0.08);
    text-shadow: 0 2px 8px rgba(59, 127, 204, 0.2);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    background:
        linear-gradient(to right,
            var(--primary-dark) 0%,
            var(--secondary-dark) 60%,
            #040810 100%);
    position: relative;
    isolation: isolate;
}

.hero::before, .hero::after {
    transition: opacity 0.3s ease;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 2rem 1.5rem;
    text-align: left;
    max-width: 500px;
    margin-left: 8%;
}

.about-section {
    padding: 6rem 5%;
    background: linear-gradient(140deg,
        rgba(3, 5, 8, 0.95) 0%,
        rgba(5, 9, 20, 0.95) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.about-card {
    background: rgba(42, 92, 150, 0.05);
    border: 1px solid rgba(42, 92, 150, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    overflow: hidden;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon {
    font-size: 1.8rem;
    opacity: 0.9;
}

.card-header h3 {
    color: var(--accent);
    font-size: 1.4rem;
    margin: 0;
}

.highlight-text {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-category h4 {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-stack-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stack-category {
    margin-bottom: 1rem;
}

.stack-category h4 {
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.tech-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(42, 92, 150, 0.08);
    border-radius: 20px;
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.tech-pill:hover {
    transform: translateY(-2px);
    background: rgba(42, 92, 150, 0.15);
    box-shadow: 0 4px 12px rgba(42, 92, 150, 0.1);
}

/* Add reveal animation for tech pills */
.tech-pills .tech-pill {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease-out forwards;
}

.tech-pills .tech-pill:nth-child(1) { animation-delay: 0.1s; }
.tech-pills .tech-pill:nth-child(2) { animation-delay: 0.2s; }
.tech-pills .tech-pill:nth-child(3) { animation-delay: 0.3s; }
.tech-pills .tech-pill:nth-child(4) { animation-delay: 0.4s; }
.tech-pills .tech-pill:nth-child(5) { animation-delay: 0.5s; }

.focus-list {
    list-style: none;
    padding: 0;
}

.focus-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
}

.focus-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.hobby-items {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hobby-item {
    background: rgba(42, 92, 150, 0.08);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quote {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(42, 92, 150, 0.1);
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.bio {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    animation: fadeInLeft 0.8s ease-out 0.2s both;
}

.hero-main {
    margin-bottom: 3rem;
}

.subtitle {
    font-size: 1.4rem;
    color: var(--accent);
    margin: 0.7rem 0 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
    opacity: 0;
    animation: fadeInLeft 0.7s ease-out 0.3s forwards;
}

.expertise-section {
    margin: 2rem 0;
    opacity: 0;
    animation: fadeInLeft 0.7s ease-out 0.5s forwards;
}

.tag-icon {
    margin-right: 0.5rem;
    font-size: 1.1em;
}

.scroll-indicator {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.7s ease-out 1.2s forwards;

}

.scroll-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

.scroll-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Enhance existing animations */
@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    0% {
        opacity: 0;
        transform: translateX(-30px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    text-shadow:
        0 2px 8px rgba(0, 0, 0, 0.8),
        0 4px 15px rgba(42, 92, 150, 0.4),
        0 0 5px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
    font-weight: 600;
    text-align: left;
    animation: fadeInLeft 0.7s ease-out 0.1s both;
}

.hero-content p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-button {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    background: rgba(59, 127, 204, 0.1);
    color: var(--accent);
    border: 1px solid rgba(59, 127, 204, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
    animation: fadeInLeft 0.6s ease-out 0.7s both;
}

.cta-button:hover {
    background: rgba(59, 127, 204, 0.15);
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(59, 127, 204, 0.15);
    transform: translateY(-1px);
}

/* This is the old footer style - replaced by .footer class */

.skill-tags .tag:nth-child(1) { animation: fadeInLeft 0.6s ease-out 0.3s both; }
.skill-tags .tag:nth-child(2) { animation: fadeInLeft 0.6s ease-out 0.4s both; }
.skill-tags .tag:nth-child(3) { animation: fadeInLeft 0.6s ease-out 0.5s both; }
.skill-tags .tag:nth-child(4) { animation: fadeInLeft 0.6s ease-out 0.6s both; }

.bio span {
    display: inline-block;
    animation: fadeIn 0.6s ease-out 1s both;
}

.decorative-shapes {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 40%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.triangle {
    position: absolute;
    border-style: solid;
    opacity: 0.1;
    filter: blur(1px);
    transition: all 0.5s ease;
}

.triangle-1 {
    right: 35%;
    top: 15%;
    border-width: 0 25px 45px 25px;
    border-color: transparent transparent var(--accent) transparent;
    animation: floatTriangle 8s ease-in-out infinite;
}

.triangle-2 {
    right: 40%;
    top: 75%;
    border-width: 0 35px 60px 35px;
    border-color: transparent transparent var(--text-primary) transparent;
    animation: floatTriangle 12s ease-in-out infinite reverse;
    opacity: 0.05;
}

.triangle-3 {
    right: 28%;
    top: 35%;
    border-width: 0 20px 35px 20px;
    border-color: transparent transparent var(--accent) transparent;
    animation: floatTriangle 10s ease-in-out infinite 2s;
}

@keyframes floatTriangle {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }
    25% {
        transform: translateY(-15px) rotate(5deg);
    }
    75% {
        transform: translateY(15px) rotate(-5deg);
    }
}

/* Your existing CSS */
.profile-image-container {
    position: absolute;
    right: 15%;
    top: 20%;
    transform: translateY(-50%);
    z-index: 2;
    animation: fadeIn 1s ease-out 0.5s both;
}

/* ✅ Add the floating animation here */
@keyframes floatUpDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.profile-image {
    width: 390px;
    height: 445px;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.5))
           drop-shadow(0 5px 15px rgba(42, 92, 150, 0.3));
    animation: floatUpDown 3s ease-in-out infinite; /* Apply it here */
}

.profile-image-container:hover .profile-image {
    transform: translateY(-5px);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.6))
           drop-shadow(0 8px 20px rgba(42, 92, 150, 0.4));
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Menu Animation */
.mobile-menu-btn span {
    transition: all 0.3s ease;
}

.mobile-menu-btn span.active:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-btn span.active:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn span.active:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.3s ease;
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero-content {
        margin: 0 auto;
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .profile-image-container {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        margin: 6rem auto 2rem;
        text-align: center;
    }

    .profile-image {
        width: 250px;
        height: auto;
        border-radius: 50%;
    }

    .hero {
        flex-direction: column;
        padding-top: 60px;
        height: auto;
        min-height: 100vh;
    }

    .decorative-shapes {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .bio {
        font-size: 0.9rem;
    }

    .nav {
        padding: 1rem;
    }

    .profile-image {
        width: 180px;
    }

    .skill-tags {
        margin: 1rem 0;
    }

    .scroll-indicator {
        margin-top: 2rem;
        align-items: center;
        width: 100%;
    }
}

.expertise-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.expertise-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem;
    background: rgba(42, 92, 150, 0.05);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.expertise-item:hover {
    transform: translateX(5px);
    background: rgba(42, 92, 150, 0.1);
}

.expertise-icon {
    font-size: 1.5rem;
    min-width: 2rem;
}

.expertise-content {
    flex: 1;
}

.expertise-content strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.expertise-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: rgba(42, 92, 150, 0.08);
    border-radius: 20px;
    margin: 0.3rem;
    transition: all 0.3s ease;
}

.tech-pill:hover {
    transform: translateY(-2px);
    background: rgba(42, 92, 150, 0.15);
    box-shadow: 0 4px 12px rgba(42, 92, 150, 0.1);
}

.tech-icon {
    font-size: 1.1rem;
}

.focus-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.focus-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    padding: 0.6rem;
    background: rgba(42, 92, 150, 0.05);
    border-radius: 6px;
    transition: transform 0.3s ease;
}

.focus-list li:hover {
    transform: translateX(5px);
    background: rgba(42, 92, 150, 0.1);
}

.focus-icon {
    font-size: 1.2rem;
}

.bio-text {
    line-height: 1.6;
    margin: 1rem 0;
    color: var(--text-secondary);
}

.bio-text strong {
    color: var(--accent);
}

.bio-gif-container {
    margin: 1.5rem 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    background: rgba(42, 92, 150, 0.05);
    padding: 0.5rem;
    border: 1px solid rgba(42, 92, 150, 0.1);
}

.bio-gif {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    opacity: 0.9;
    transition: all 0.3s ease;
    animation: floatUpDown 3s ease-in-out infinite;
}

.bio-gif:hover {
    opacity: 1;
    transform: scale(1.02);
    box-shadow: 0 6px 25px rgba(42, 92, 150, 0.2);
}

/* Projects Section Styles */
.projects-section {
    padding: 6rem 5%;
    background: linear-gradient(140deg,
        rgba(3, 5, 8, 0.95) 0%,
        rgba(5, 9, 20, 0.95) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(42, 92, 150, 0.05) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.projects-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem;
}

.decorative-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(42, 92, 150, 0.3), transparent);
    width: 80px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
    line-height: 1.6;
}

/* Featured Project Styles */
.featured-project {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
    background: rgba(42, 92, 150, 0.03);
    border: 1px solid rgba(42, 92, 150, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.5s ease;
}

.featured-project:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(42, 92, 150, 0.1);
    border-color: rgba(42, 92, 150, 0.2);
}

.featured-project-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.7s ease;
}

.featured-project:hover .featured-project-image img {
    transform: scale(1.05);
}

.featured-project-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-project-title {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.featured-project-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
    opacity: 0.7;
}

.project-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.project-category {
    color: var(--accent);
    font-weight: 500;
}

.project-duration {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-duration::before {
    content: '⏱️';
    font-size: 0.9rem;
}

.project-role {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.project-role::before {
    content: '👤';
    font-size: 0.9rem;
}

.project-highlights {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0;
}

.highlight-icon {
    font-size: 1.2rem;
    color: var(--accent);
}

.highlight-text {
    color: var(--text-primary);
    font-size: 0.95rem;
}

/* Projects Filter */
.projects-filter {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(42, 92, 150, 0.05);
    border: 1px solid rgba(42, 92, 150, 0.1);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
    background: rgba(42, 92, 150, 0.15);
    color: var(--text-primary);
    border-color: rgba(42, 92, 150, 0.3);
    transform: translateY(-2px);
}

.filter-btn.active {
    box-shadow: 0 4px 12px rgba(42, 92, 150, 0.15);
}

/* Project Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.project-card {
    background: rgba(42, 92, 150, 0.05);
    border: 1px solid rgba(42, 92, 150, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
}

.project-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.4rem 0.8rem;
    background: rgba(3, 5, 8, 0.7);
    color: var(--text-primary);
    font-size: 0.75rem;
    border-radius: 20px;
    z-index: 10;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(42, 92, 150, 0.2);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(42, 92, 150, 0.15);
    border-color: rgba(42, 92, 150, 0.2);
}

.project-image-container {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 5, 8, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(2px);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    padding: 0.7rem 1.2rem;
    background: rgba(42, 92, 150, 0.2);
    color: var(--text-primary);
    border: 1px solid rgba(42, 92, 150, 0.3);
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-link:hover {
    background: rgba(42, 92, 150, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.link-icon {
    font-size: 1.1rem;
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    color: var(--accent);
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
}

.project-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tech .tech-pill {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}

/* Media Queries for Projects Section */
@media screen and (max-width: 992px) {
    .featured-project {
        grid-template-columns: 1fr;
    }

    .featured-project-image {
        min-height: 300px;
    }

    .featured-project-content {
        padding: 2rem;
    }
}

@media screen and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .project-image-container {
        height: 180px;
    }

    .projects-filter {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
}

@media screen and (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .featured-project-title {
        font-size: 1.5rem;
    }

    .project-highlights {
        gap: 0.5rem;
    }
}

/* Contact Section Styles */
.contact-section {
    padding: 6rem 5%;
    background: linear-gradient(140deg,
        rgba(3, 5, 8, 0.95) 0%,
        rgba(5, 9, 20, 0.95) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(42, 92, 150, 0.05) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.contact-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-text h3 {
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    position: relative;
    display: inline-block;
}

.contact-text h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent);
    opacity: 0.7;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 90%;
}

.contact-details {
    margin: 2rem 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    padding: 0.8rem 1.2rem;
    background: rgba(42, 92, 150, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(5px);
    background: rgba(42, 92, 150, 0.1);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.contact-detail {
    color: var(--text-secondary);
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(42, 92, 150, 0.1);
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid rgba(42, 92, 150, 0.2);
}

.social-link:hover {
    background: rgba(42, 92, 150, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--accent);
}

.contact-gif-container {
    margin-top: 2rem;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    background: rgba(42, 92, 150, 0.05);
    padding: 1rem;
    border: 1px solid rgba(42, 92, 150, 0.1);
    max-width: 90%;
}

.contact-gif {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contact-gif:hover {
    opacity: 1;
    transform: scale(1.02);
}

/* Contact Form Styles */
.contact-form-container {
    background: rgba(42, 92, 150, 0.03);
    border: 1px solid rgba(42, 92, 150, 0.1);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: rgba(42, 92, 150, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: rgba(42, 92, 150, 0.05);
    border: 1px solid rgba(42, 92, 150, 0.1);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(42, 92, 150, 0.3);
    background: rgba(42, 92, 150, 0.08);
    box-shadow: 0 0 0 3px rgba(42, 92, 150, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

.submit-btn {
    padding: 1rem 2rem;
    background: rgba(42, 92, 150, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(42, 92, 150, 0.2);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: all 0.6s ease;
}

.submit-btn:hover {
    background: rgba(42, 92, 150, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), 0 6px 10px rgba(42, 92, 150, 0.1);
}

.submit-btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.2rem;
}

.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 6px;
    font-size: 0.95rem;
    text-align: center;
    display: none;
}

.form-status.success {
    display: block;
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.form-status.error {
    display: block;
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

/* Footer Styles */
.footer {
    background: rgba(3, 5, 8, 0.98);
    padding: 2rem 5%;
    text-align: center;
    border-top: 1px solid rgba(42, 92, 150, 0.1);
    position: relative; /* Changed from fixed to relative */
    width: 100%;
    z-index: 10;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-tagline {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.heart {
    color: #e25555;
    display: inline-block;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Media Queries for Contact Section */
@media screen and (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-container {
        order: 1;
    }

    .contact-gif-container {
        margin: 2rem auto;
    }
}

@media screen and (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }

    .contact-text h3 {
        font-size: 1.5rem;
    }

    .social-links {
        justify-content: center;
    }
}

@media screen and (max-width: 480px) {
    .contact-item {
        padding: 0.6rem 1rem;
    }

    .contact-icon {
        font-size: 1.2rem;
    }

    .contact-detail {
        font-size: 0.9rem;
    }

    .submit-btn {
        width: 100%;
    }
}

.quote-container {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(42, 92, 150, 0.1);
}

.quote-container blockquote {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
    margin: 0;
}
