:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --background-color: #f5f6fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

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

/* Header Styles */
.header {
    background: rgba(52, 152, 219, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(52, 152, 219, 0.3);
    position: relative;
    z-index: 1000;
    box-shadow: 
        0 8px 32px rgba(52, 152, 219, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (min-width: 769px) {
    .header {
        position: sticky;
        top: 0;
        width: 100%;
        transition: box-shadow 0.3s ease;
    }
}

.header .logo {
    background: linear-gradient(to right, #0f1419 0%, #1e3a5f 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

.logo:hover {
    opacity: 0.9;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(255, 255, 255, 0.5);
    border-radius: 6px;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nav-links a.active {
    color: var(--white);
    background: rgba(52, 152, 219, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 30px rgba(255, 255, 255, 0.6);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    position: relative;
    z-index: 2;
    overflow: hidden;
    min-height: 80vh;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    gap: 4rem;
}

.hero-text {
    flex: 1;
    color: var(--white);
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: border-box;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text p {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 30px rgba(0,0,0,0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-color);
    z-index: 10;
}

.scroll-line {
    width: 50px;
    height: 2px;
    background: var(--accent-color);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--white);
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Portfolio Grid */
.portfolio {
    padding: 60px 0;
}

.portfolio h1 {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.portfolio-item {
    display: flex;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
    animation-delay: calc(var(--item-index) * 0.2s);
    cursor: pointer;
    height: 100%;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.03),
        0 3px 6px rgba(0, 0, 0, 0.1);
}

.portfolio-item a {
    text-decoration: none;
    color: var(--text-color);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #f0f0f0;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

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

.portfolio-item-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.portfolio-item-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 1.5rem;
}

.portfolio-item h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.portfolio-item:hover h3 {
    color: var(--accent-color);
}

.portfolio-item p {
    color: var(--secondary-color);
    margin-bottom: 1rem;
    flex-grow: 1;
}

.portfolio-meta-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0.5rem 0;
    overflow: visible;
    white-space: nowrap;
    position: relative;
}

.portfolio-category {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    flex-shrink: 0;
    z-index: 2;
    background-color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover .portfolio-category {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portfolio-tags {
    font-size: 0.75rem;
    color: var(--secondary-color);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    text-align: right;
    transition: all 0.3s ease;
    position: relative;
}

.portfolio-date {
    font-size: 0.9rem;
    color: var(--secondary-color);
    margin-right: auto;
}

.portfolio-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

/* Animations */
.animate-text {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--white);
    position: relative;
    z-index: 1;
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 2rem 0;
    text-align: center;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--accent-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

html {
    scroll-behavior: smooth;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.social-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(255, 255, 255, 0.7),
        0 0 30px rgba(255, 255, 255, 0.5);
}

.social-icon:hover {
    color: var(--accent-color);
    text-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.contact-button {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-shadow: 
        0 1px 2px rgba(255, 255, 255, 0.8),
        0 0 15px rgba(255, 255, 255, 0.6);
}

.contact-button:hover {
    background: rgba(52, 152, 219, 0.9);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    border-color: rgba(52, 152, 219, 0.5);
}

/* Add responsive styles */
@media (max-width: 768px) {
    .header {
        position: relative;
    }
    
    .nav-container {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin: 1rem 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .social-links {
        margin-top: 1rem;
    }

    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
        padding: 2rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
        margin-bottom: 2rem;
    }

    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer updates */
.footer-links {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.skills-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
}

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

.skill-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.skill-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.testimonials-section {
    padding: 6rem 0;
}

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

.testimonial-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Portfolio page animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Floating animations */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.08;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
}

.floating-circle {
    border-radius: 50%;
    animation: float1 15s infinite linear;
    left: 10%;
    top: 20%;
}

.floating-square {
    animation: float2 18s infinite linear;
    right: 15%;
    top: 30%;
}

.floating-triangle {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: float3 20s infinite linear;
    left: 25%;
    top: 60%;
}

.floating-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: float4 12s infinite linear;
    right: 20%;
    top: 70%;
}

.floating-plus {
    clip-path: polygon(40% 0%, 60% 0%, 60% 40%, 100% 40%, 100% 60%, 60% 60%, 60% 100%, 40% 100%, 40% 60%, 0% 60%, 0% 40%, 40% 40%);
    animation: float5 25s infinite linear;
    left: 40%;
    top: 40%;
}

@keyframes float1 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(100px, 100px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes float2 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-100px, 50px) rotate(-180deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}

@keyframes float3 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, -100px) rotate(180deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

@keyframes float4 {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 100px) scale(1.5); }
    100% { transform: translate(0, 0) scale(1); }
}

@keyframes float5 {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(100px, -50px) rotate(-180deg); }
    100% { transform: translate(0, 0) rotate(-360deg); }
}

@media (max-width: 768px) {
    .floating-elements {
        display: none;
    }
}

/* Contact section styles */
.contact-section {
    padding: 6rem 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.05), rgba(41, 128, 185, 0.05));
    position: relative;
    z-index: 2;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.contact-cta .contact-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 5px;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-cta .contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.contact-cta .contact-button i {
    font-size: 1.2rem;
}

@media (min-width: 768px) {
    .floating-elements {
        will-change: transform;
    }
}

@media (max-width: 768px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

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

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-image img {
        width: 250px;
        height: 250px;
    }
}

.search-container {
    margin-bottom: 1rem;
}

.search-box {
    position: relative;
    margin-bottom: 1rem;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

#portfolio-search {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 1rem;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#portfolio-search:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.2);
}

.search-tags {
    display: none;
}

.tag-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-tag {
    padding: 0.3rem 0.8rem;
    background: var(--white);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover,
.search-tag.active {
    background: var(--accent-color);
    color: var(--white);
}

.no-results {
    text-align: center;
    padding: 2rem;
    color: var(--secondary-color);
    font-style: italic;
}

.portfolio-item {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden {
    display: none;
}

.portfolio-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.portfolio-popup.active {
    opacity: 1;
}

.portfolio-popup.active .popup-content {
    transform: translateY(0);
}

.popup-content {
    background: #f8f9fa;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    border-radius: 8px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: auto;
}

.popup-header {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    padding: 1rem 2rem;
    margin-bottom: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.popup-header h2 {
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.popup-category {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.close-popup {
    position: relative;
    top: auto;
    right: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    order: 3;
    margin-left: 0.5rem;
}

.close-popup:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .popup-header {
        padding: 0.75rem 1rem;
        gap: 0.5rem;
    }

    .popup-header h2 {
        font-size: 1.1rem;
        line-height: 1.3;
        min-width: 0;
    }

    .popup-category {
        padding: 0.25rem 0.6rem;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    .close-popup {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
        flex-shrink: 0;
        margin-left: 0.25rem;
    }

    .popup-content {
        width: 95%;
        max-height: 95vh;
        margin: 10px;
    }
}

.popup-main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 2rem;
}

.popup-main-content img {
    margin: 1.5rem 0;
}

.popup-footer {
    position: sticky;
    bottom: 0;
    background: #f8f9fa;
    padding: 1rem 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.popup-description {
    margin: 1.5rem 0;
    line-height: 1.8;
}

.popup-metadata {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.popup-date {
    color: var(--secondary-color);
}

.popup-date i {
    margin-right: 0.5rem;
}

.project-links {
    margin: 0;
    flex: 2;
}

.popup-button {
    margin: 0;
    height: 36px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.popup-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.popup-button i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .popup-footer {
        padding: 1rem 1.5rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .share-section, .project-links {
        width: 100%;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .popup-button {
        height: 40px;
    }
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: 0.3s;
}

.filter-group {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label i {
    color: var(--accent-color);
    font-size: 1rem;
}

.filter-group select {
    padding: 0.8rem 1rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%234a5568' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14L2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: calc(100% - 1rem) center;
    padding-right: 2.5rem;
}

.filter-group select:hover, 
.filter-group select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
    outline: none;
}

.checkbox-group {
    background: rgba(52, 152, 219, 0.05);
    padding: 0.8rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    margin: 0;
    accent-color: var(--accent-color);
    width: 16px;
    height: 16px;
}

/* Update responsive styles */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        padding: 1rem;
    }

    .filter-group {
        width: 100%;
    }

    .checkbox-group {
        justify-content: flex-start;
    }
}

.portfolio-status {
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
}

.status-active {
    background: var(--accent-color);
    color: var(--white);
}

.status-inactive {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
}

.portfolio-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 1;
}

.portfolio-item.inactive {
    opacity: 0.8;
}

.portfolio-item.inactive:hover {
    opacity: 1;
}

.portfolio-tags {
    font-size: 0.75rem;
    color: var(--secondary-color);
    margin-top: 0.25rem;
    text-align: center;
    font-style: italic;
}

.portfolio-popup img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

@media (max-width: 768px) {
    .portfolio-popup img {
        max-height: 50vh;
    }
}

.latest-projects {
    padding: 6rem 0;
    background: linear-gradient(135deg, 
        rgba(52, 219, 66, 0.119) 0%,
        rgba(5, 80, 131, 0.08) 50%,
        rgba(212, 249, 67, 0.15) 100%
    );
    position: relative;
    z-index: 1;
}

.latest-projects h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 3rem;
}

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

.view-all-projects {
    text-align: center;
    margin-top: 2rem;
}

.view-all-projects .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

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

.view-all-projects .cta-button:hover i {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .latest-projects-grid {
        grid-template-columns: 1fr;
    }
}

/* Add these styles at the end of the file */
.about-sections {
    position: relative;
    z-index: 1;
}

.about-flexible-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.about-flexible-section:nth-child(odd) {
    background: linear-gradient(135deg, 
        rgba(52, 152, 219, 0.08) 0%,
        rgba(41, 128, 185, 0.08) 100%
    );
}

.about-flexible-section .container {
    max-width: 1000px;
    position: relative;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.section-header i {
    font-size: 2.5rem;
    color: var(--accent-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-header h2 {
    margin: 0;
    font-size: 2.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.section-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.section-embed {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

/* Example styles for the journey milestones HTML embed */
.journey-milestones {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 3rem;
}

.milestone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.milestone .year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
}

.milestone .event {
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .about-flexible-section {
        padding: 4rem 0;
    }

    .section-header {
        flex-direction: column;
        text-align: center;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-description {
        text-align: center;
    }
}

/* Update share trigger hover color */
.share-trigger:hover {
    background: #ff6b6b; /* Coral red color */
}

/* Enhance tag styling in popup */
.project-meta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--accent-color);
    width: 20px;
}

.meta-item .tags-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.meta-item .tag {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.meta-item .tag:hover {
    background: rgba(52, 152, 219, 0.2);
}

/* Update hover effect */
.portfolio-item:hover .portfolio-tags {
    white-space: normal;
    overflow: visible;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    padding: 0.5rem 0.6rem;
    margin-top: 0.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 3;
    animation: expandTags 0.3s ease-out forwards;
    text-align: left;
    max-height: 80px;
    overflow-y: auto;
    font-weight: 500;
    font-style: normal;
    color: var(--primary-color);
}

/* Style the spans inside expanded tags */
.portfolio-item:hover .portfolio-tags span {
    display: inline-block;
    padding: 0.1rem 0;
}

/* Update scrollbar color for better contrast with white background */
.portfolio-item:hover .portfolio-tags::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Update animation for new position */
@keyframes expandTags {
    from {
        opacity: 0;
        transform: translateY(0);
    }
    to {
        opacity: 1;
        transform: translateY(5px);
    }
}

/* Update the JavaScript-generated tags to show bullet points properly */
.portfolio-tags span:not(:last-child)::after {
    content: " • ";
    margin: 0 0.3rem;
    color: var(--accent-color);
    font-style: normal;
}

/* Style the bullet points in expanded state */
.portfolio-item:hover .portfolio-tags span:not(:last-child)::after {
    content: " • ";
    margin: 0 0.3rem;
    color: var(--secondary-color);
    opacity: 0.7;
}

/* Style scrollbar for expanded tags */
.portfolio-item:hover .portfolio-tags::-webkit-scrollbar {
    width: 4px;
}

.portfolio-item:hover .portfolio-tags::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-item:hover .portfolio-tags::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 2px;
}

.policy-content {
    padding: 4rem 0;
    min-height: 70vh;
}

.policy-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.policy-text {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.policy-text h1 {
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-align: center;
}

.policy-text h2 {
    margin: 2.5rem 0 1rem;
    color: var(--primary-color);
}

.policy-text h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--secondary-color);
}

.policy-text p, .policy-text ul, .policy-text ol {
    margin-bottom: 1rem;
}

.policy-text ul, .policy-text ol {
    padding-left: 1.5rem;
}

.policy-text li {
    margin-bottom: 0.5rem;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.cookie-table th, .cookie-table td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.cookie-table th {
    background-color: var(--accent-color);
    color: white;
}

.cookie-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.browser-instructions {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.browser-instructions a {
    color: var(--accent-color);
    text-decoration: none;
}

.browser-instructions a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .policy-content {
        padding: 2rem 1rem;
    }
    
    .cookie-table {
        display: block;
        overflow-x: auto;
    }
}

.cookie-preferences {
    background: var(--accent-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
    text-align: center;
    color: var(--white);
}

.cookie-settings-button {
    background: var(--white);
    color: var(--accent-color);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.cookie-settings-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.policy-text ul ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.policy-text ul ul li {
    font-size: 0.95em;
    color: var(--secondary-color);
}

/* Add new styles for homepage stack tags */
.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.stack-tags .tag {
    background: rgba(52, 152, 219, 0.1);
    color: var(--accent-color);
    padding: 0.6rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(52, 152, 219, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.stack-tags .tag:hover {
    transform: translateY(-2px);
    background: rgba(52, 152, 219, 0.15);
    border-color: rgba(52, 152, 219, 0.3);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Ensure these styles don't affect portfolio tags */
.portfolio-tags span,
.tags-wrapper .tag {
    /* Reset any inherited styles */
    transform: none;
    border: none;
    box-shadow: none;
    padding: inherit;
    border-radius: inherit;
    background: inherit;
}

/* Add these styles at the end of the file */
.section-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
}

.section-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.section-nav li {
    position: relative;
}

.section-nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
}

.section-nav a:hover,
.section-nav a.active {
    background: var(--accent-color);
    color: var(--white);
    transform: scale(1.1);
}

.section-nav .tooltip {
    position: absolute;
    right: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.section-nav .tooltip::after {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 4px solid rgba(0, 0, 0, 0.8);
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}

.section-nav a:hover .tooltip {
    opacity: 1;
    visibility: visible;
    right: calc(100% + 15px);
}

@media (max-width: 768px) {
    .section-nav {
        right: 10px;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .section-nav.show-on-scroll {
        opacity: 1;
        visibility: visible;
    }

    .section-nav a {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    .section-nav .tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}

@media (max-width: 768px) {
    /* Override AOS animations on mobile */
    [data-aos="fade-right"],
    [data-aos="fade-left"] {
        transition-property: opacity !important;
        transform: none !important;
    }

    [data-aos="fade-right"].aos-animate,
    [data-aos="fade-left"].aos-animate {
        transform: none !important;
    }

    /* Keep fade-up animations as they are more subtle */
    [data-aos="fade-up"] {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }

    /* Adjust animation timing for better mobile experience */
    [data-aos] {
        transition-duration: 600ms !important;
    }

    /* Ensure about section content stacks properly */
    .about-content {
        flex-direction: column;
    }

    .about-image,
    .about-text {
        width: 100%;
        transform: none !important;
    }
}

/* Share section styles */
.share-section {
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    flex: 1;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-button {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    border: 1px solid rgba(52, 152, 219, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--secondary-color);
    background: var(--white);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none !important;
}

.share-button:hover {
    transform: translateY(-2px);
    color: var(--white);
    border-color: transparent;
}

.share-button.copy-link {
    background: var(--accent-color);
    color: var(--white);
    border: none;
}

.share-button.copy-link:hover {
    background: var(--primary-color);
}

.share-button.copy-link.copied {
    background: #27ae60;
}

.share-button.linkedin:hover { background: #0077b5; }
.share-button.twitter:hover { background: #000000; }
.share-button.whatsapp:hover { background: #25d366; }
.share-button.telegram:hover { background: #0088cc; }
.share-button.email:hover { background: #ea4335; }

.project-links {
    margin: 0;
    flex: 2;
}

.popup-button {
    margin: 0;
    height: 36px;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.popup-button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.popup-button i {
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .popup-footer {
        padding: 1rem 1.5rem;
        flex-direction: column-reverse;
        gap: 0.75rem;
    }

    .share-section, .project-links {
        width: 100%;
    }

    .share-buttons {
        justify-content: center;
    }

    .share-button {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }

    .popup-button {
        height: 40px;
    }
}



/* Filter Notice */
.filter-notice {
    background: rgba(52, 152, 219, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.filter-notice.visible {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.filter-notice-text {
    color: var(--primary-color);
    font-size: 0.9rem;
}

.reset-filters {
    background: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.reset-filters:hover {
    background: var(--primary-color);
} 