/* Modern Portfolio CSS */
:root {
    --primary-color: #c49b61;
    --secondary-color: #8b5a3c;
    --accent-color: #d4af37;
    --text-primary: #ffffff;
    --text-secondary: #e2d5c7;
    --bg-primary: #0a0e0d;
    --bg-secondary: #1a2328;
    --bg-card: #2a3a42;
    --border-color: #4a5a62;
    --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --iraq-gradient: linear-gradient(0deg, #ce1126 0%, #ce1126 33%, #ffffff 33%, #ffffff 66%, #000000 66%, #000000 100%);
    --shadow: 0 25px 50px -12px rgba(196, 155, 97, 0.25);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Account for fixed navbar */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(196, 155, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 90, 60, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
    z-index: -2;
    animation: backgroundShift 20s ease-in-out infinite alternate;
}

@keyframes backgroundShift {
    0% {
        transform: translateX(-10px) translateY(-5px);
    }
    100% {
        transform: translateX(10px) translateY(5px);
    }
}

/* Geometric Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(196, 155, 97, 0.02) 100px,
            rgba(196, 155, 97, 0.02) 102px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 100px,
            rgba(139, 90, 60, 0.02) 100px,
            rgba(139, 90, 60, 0.02) 102px
        );
    z-index: -1;
    animation: patternFloat 30s linear infinite;
}

@keyframes patternFloat {
    0% {
        transform: translateX(0) translateY(0);
    }
    100% {
        transform: translateX(100px) translateY(50px);
    }
}

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

/* Section Spacing and Navigation Targets */
section {
    scroll-margin-top: 80px; /* Account for fixed navbar height */
    position: relative;
}

section:not(.hero) {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

/* Ensure hero section takes full viewport */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    scroll-margin-top: 0;
}

/* Loading Screen */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-content {
    text-align: center;
}

.loader-animation {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    border-bottom-color: var(--primary-color);
}

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

.nav-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.nav-logo span:hover {
    transform: scale(1.05);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s ease;
    border-radius: 1px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    margin: 3px 0;
    transition: 0.3s;
}

/* Three.js Canvas */
#three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 30% 70%, rgba(196, 155, 97, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.1) 0%, transparent 40%);
    animation: heroGlow 15s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes heroGlow {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.3;
    }
    100% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.1;
    }
}

.hero-content {
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.hero-line {
    display: block;
    overflow: hidden;
}

.hero-name {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-role {
    color: var(--text-secondary);
    font-size: 0.8em;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    opacity: 0;
    line-height: 1.8;
}

.hero-highlights {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    flex-wrap: wrap;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 155, 97, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    border: 1px solid var(--primary-color);
    transition: all 0.3s ease;
}

.highlight-item:hover {
    background: rgba(196, 155, 97, 0.2);
    transform: translateY(-2px);
}

.highlight-item i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.highlight-item span {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: var(--gradient);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.scroll-arrow {
    width: 2px;
    height: 30px;
    background: var(--primary-color);
    margin: 0.5rem auto;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Sections */
section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

section:nth-child(even) {
    background: linear-gradient(
        135deg, 
        rgba(196, 155, 97, 0.03) 0%, 
        rgba(139, 90, 60, 0.02) 100%
    );
}

section:nth-child(odd) {
    background: linear-gradient(
        -135deg, 
        rgba(212, 175, 55, 0.02) 0%, 
        rgba(196, 155, 97, 0.03) 100%
    );
}

/* Floating decorative elements */
section::before {
    content: '';
    position: absolute;
    top: 10%;
    right: 5%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(196, 155, 97, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatRight 10s ease-in-out infinite;
}

section::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatLeft 12s ease-in-out infinite;
}

@keyframes floatRight {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-20px) translateX(-10px);
    }
}

@keyframes floatLeft {
    0%, 100% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-15px) translateX(10px);
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.cv-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.cv-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(196, 155, 97, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(196, 155, 97, 0.2);
    transition: all 0.3s ease;
}

.cv-item:hover {
    background: rgba(196, 155, 97, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.cv-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.cv-item h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.cv-item p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.about-image {
    display: flex;
    justify-content: center;
}

.profile-image-container {
    position: relative;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-color);
    box-shadow: 0 20px 40px rgba(196, 155, 97, 0.3);
    transition: transform 0.3s ease;
}

.profile-image-container:hover {
    transform: scale(1.05);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-image-container:hover .profile-image {
    transform: scale(1.1);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--text-secondary);
    text-align: center;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.image-placeholder p {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Skills Section */
/* Skills Section */
.skills {
    background: linear-gradient(
        45deg,
        rgba(196, 155, 97, 0.05) 0%,
        rgba(139, 90, 60, 0.03) 50%,
        rgba(212, 175, 55, 0.05) 100%
    );
    position: relative;
}

.skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-conic-gradient(
        from 0deg at 50% 50%,
        transparent 0deg,
        rgba(196, 155, 97, 0.02) 60deg,
        transparent 120deg
    );
    animation: skillsRotate 60s linear infinite;
}

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

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

.skill-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(196, 155, 97, 0.1),
        transparent
    );
    animation: cardShimmer 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

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

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(196, 155, 97, 0.2);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-card h3 {
    margin-bottom: 1rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.skill-progress {
    background: var(--bg-secondary);
    height: 4px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--gradient);
    width: 0;
    transition: width 1s ease;
}

/* Projects Section */
/* Projects Section */
.projects {
    background: 
        radial-gradient(circle at 25% 25%, rgba(196, 155, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, rgba(139, 90, 60, 0.02) 0%, transparent 100%);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: 
        conic-gradient(
            from 0deg,
            rgba(196, 155, 97, 0.1),
            rgba(212, 175, 55, 0.05),
            rgba(139, 90, 60, 0.08),
            rgba(196, 155, 97, 0.1)
        );
    border-radius: 50%;
    animation: mesopotamianRotate 25s linear infinite;
    filter: blur(40px);
}

@keyframes mesopotamianRotate {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

.project-card {
    background: var(--bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 2.5rem 2rem;
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(196, 155, 97, 0.05) 0%,
        transparent 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 1.5rem;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 25px 50px rgba(196, 155, 97, 0.2);
}

.project-image {
    height: 280px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
    border-radius: 1rem 1rem 0 0;
    background: linear-gradient(
        135deg,
        rgba(196, 155, 97, 0.1) 0%,
        rgba(139, 90, 60, 0.05) 100%
    );
}

.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all 0.4s ease;
    filter: brightness(0.95) contrast(1.05);
}

.project-card:hover .project-screenshot {
    transform: scale(1.08);
    filter: brightness(0.85) contrast(1.1);
}

.project-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-align: center;
}

.project-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.project-placeholder p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

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

.project-link {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.project-link:hover {
    transform: scale(1.1);
}

/* Project Content Styling */
.project-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-content h3 {
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.project-tech span {
    background: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.project-content .project-links {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: 1rem;
    gap: 0.75rem;
    justify-content: flex-start;
}

.project-content .project-link {
    position: relative;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    min-width: auto;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    gap: 0.5rem;
    backdrop-filter: none;
    box-shadow: none;
}

.project-content .project-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 155, 97, 0.3);
}

.project-content .project-link svg {
    width: 14px;
    height: 14px;
}

/* Contact Section */
/* Contact Section */
.contact {
    background: 
        linear-gradient(
            45deg,
            rgba(196, 155, 97, 0.03) 0%,
            rgba(139, 90, 60, 0.05) 50%,
            rgba(212, 175, 55, 0.03) 100%
        );
    position: relative;
    overflow: hidden;
    z-index: 1;
    padding: 6rem 0;
}

.contact::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0px,
            rgba(196, 155, 97, 0.02) 100px,
            transparent 200px
        );
    animation: contactWave 20s ease-in-out infinite;
}

@keyframes contactWave {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(196, 155, 97, 0.03));
    border-radius: 15px;
    border: 1px solid rgba(196, 155, 97, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.contact-item:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(196, 155, 97, 0.05));
    border-color: rgba(196, 155, 97, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 
        0 4px 15px rgba(196, 155, 97, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 
        0 6px 20px rgba(196, 155, 97, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.contact-text h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
}

.contact-text p {
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 2.5rem;
    justify-content: flex-start;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(196, 155, 97, 0.05));
    border: 1px solid rgba(196, 155, 97, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 
        0 8px 20px rgba(196, 155, 97, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(196, 155, 97, 0.05));
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(196, 155, 97, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(196, 155, 97, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.9rem;
    opacity: 0.9;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(196, 155, 97, 0.3);
    border-radius: 12px;
    color: #2d3748;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #718096;
    opacity: 0.8;
    font-weight: 400;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 3px rgba(196, 155, 97, 0.15),
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
    opacity: 1;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 3px rgba(196, 155, 97, 0.2), 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Contact Form Submit Button */
.contact-form .btn {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1rem;
    cursor: pointer;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 15px rgba(196, 155, 97, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

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

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

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 25px rgba(196, 155, 97, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

.contact-form .btn:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 15px rgba(196, 155, 97, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Ensure Default Visibility */
.testimonials,
.testimonials-grid,
.testimonial-card,
.contact,
.contact-content,
.contact-form,
.form-group,
.form-group input,
.form-group textarea {
    opacity: 1;
    visibility: visible;
    display: initial;
}

/* Override any potential GSAP initial states */
.testimonials {
    transform: none !important;
}

.contact {
    transform: none !important;
}

/* Desktop-First Display Rules */
@media (min-width: 769px) {
    .testimonials {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .testimonials-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .testimonial-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contact {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contact-content {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .contact-form {
        display: flex !important;
        flex-direction: column !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .form-group {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .form-group input,
    .form-group textarea {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure sections are always visible on desktop */
    section {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-secondary);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-image-container {
        width: 250px;
        height: 250px;
    }

    .hero-highlights {
        gap: 1rem;
        justify-content: center;
    }
    
    .highlight-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .tech-items {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .client-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .client-stat {
        padding: 1.5rem;
    }
    
    .client-stat .stat-number {
        font-size: 2rem;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }

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

    .project-image {
        height: 200px;
    }

    section {
        padding: 4rem 0;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .profile-image-container {
        width: 200px;
        height: 200px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .hero-title {
        font-size: clamp(1.2rem, 5vw, 2rem);
    }
    
    .about-stats {
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .hero-highlights {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .highlight-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .client-stats {
        grid-template-columns: 1fr;
    }
    
    .tech-items {
        grid-template-columns: 1fr;
    }
    
    .tech-item {
        padding: 1rem 0.75rem;
    }
    
    .tech-icon {
        width: 35px;
        height: 35px;
    }
    
    .tech-icon svg {
        width: 30px;
        height: 30px;
    }
    
    .tech-icon i {
        font-size: 1.8rem;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
    
    .client-stat .stat-number {
        font-size: 1.8rem;
    }
}

/* Testimonials Section - Desktop First */
.testimonials {
    background: 
        linear-gradient(
            135deg,
            rgba(196, 155, 97, 0.05) 0%,
            rgba(139, 90, 60, 0.03) 50%,
            rgba(212, 175, 55, 0.05) 100%
        );
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
    min-height: auto;
}

.testimonials::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-radial-gradient(
            circle at 30% 70%,
            transparent 0px,
            rgba(196, 155, 97, 0.02) 150px,
            transparent 300px
        );
    animation: testimonialWave 25s ease-in-out infinite;
}

@keyframes testimonialWave {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.testimonial-card {
    background: rgba(42, 58, 66, 0.8);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(196, 155, 97, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(
            135deg,
            rgba(196, 155, 97, 0.05) 0%,
            transparent 50%
        );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(196, 155, 97, 0.15);
    border-color: var(--primary-color);
}

.testimonial-card:hover::before {
    opacity: 1;
}

.testimonial-content {
    position: relative;
    z-index: 1;
    margin-bottom: 1.5rem;
}

.stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.stars i {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.testimonial-content p {
    font-style: italic;
    line-height: 1.6;
    color: var(--text-secondary);
    font-size: 1rem;
    position: relative;
}

.testimonial-content p::before {
    content: '"';
    font-size: 3rem;
    color: var(--primary-color);
    position: absolute;
    top: -1rem;
    left: -1rem;
    opacity: 0.3;
    font-family: serif;
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.author-info h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.author-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Client Stats */
.client-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
    z-index: 1;
}

.client-stat {
    text-align: center;
    padding: 2rem;
    background: rgba(42, 58, 66, 0.8);
    border-radius: 1rem;
    border: 1px solid rgba(196, 155, 97, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    height: fit-content;
}

.client-stat:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(196, 155, 97, 0.2);
}

.client-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: inline;
}

.client-stat .stat-symbol {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.client-stat .stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Technologies Section */
.technologies {
    background: 
        linear-gradient(
            -45deg,
            rgba(196, 155, 97, 0.03) 0%,
            rgba(139, 90, 60, 0.05) 50%,
            rgba(212, 175, 55, 0.03) 100%
        );
    position: relative;
    overflow: hidden;
}

.technologies::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 80px,
            rgba(196, 155, 97, 0.01) 80px,
            rgba(196, 155, 97, 0.01) 82px
        );
    animation: techFlow 20s linear infinite;
}

@keyframes techFlow {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(80px);
    }
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.tech-category {
    background: var(--bg-card);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(196, 155, 97, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.tech-category:hover::before {
    left: 100%;
}

.tech-category:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(196, 155, 97, 0.2);
}

.tech-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.tech-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem 1rem;
    background: var(--bg-secondary);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(196, 155, 97, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
    transform: translate(-50%, -50%);
}

.tech-item:hover::before {
    width: 200px;
    height: 200px;
}

.tech-item:hover {
    transform: translateY(-3px) scale(1.05);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(196, 155, 97, 0.3);
}

.tech-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.tech-icon svg {
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.tech-icon i {
    font-size: 2.2rem;
    transition: transform 0.3s ease;
}

.tech-item:hover .tech-icon svg,
.tech-item:hover .tech-icon i {
    transform: scale(1.2) rotate(5deg);
}

/* Technology specific colors */
.tech-item[data-tech="Flutter"] .tech-icon {
    color: #02569B;
}

.tech-item[data-tech="Dart"] .tech-icon {
    color: #0175C2;
}

.tech-item[data-tech="Laravel"] .tech-icon {
    color: #FF2D20;
}

.tech-item[data-tech="PHP"] .tech-icon {
    color: #777BB4;
}

.tech-item[data-tech="Android"] .tech-icon {
    color: #3DDC84;
}

.tech-item[data-tech="iOS"] .tech-icon {
    color: #000000;
}

.tech-item[data-tech="HTML5"] .tech-icon {
    color: #E34F26;
}

.tech-item[data-tech="CSS3"] .tech-icon {
    color: #1572B6;
}

.tech-item[data-tech="JavaScript"] .tech-icon {
    color: #F7DF1E;
}

.tech-item[data-tech="Bootstrap"] .tech-icon {
    color: #7952B3;
}

.tech-item[data-tech="Git"] .tech-icon {
    color: #F05032;
}

.tech-item[data-tech="GitHub"] .tech-icon {
    color: #181717;
}

.tech-item[data-tech="VS Code"] .tech-icon {
    color: #007ACC;
}

.tech-item[data-tech="MySQL"] .tech-icon {
    color: #4479A1;
}

.tech-item[data-tech="Firebase"] .tech-icon {
    color: #FFCA28;
}

.tech-item[data-tech="Postman"] .tech-icon {
    color: #FF6C37;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Interactive Images */
.interactive-image {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.image-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transition: all 0.3s ease;
}

.zoom-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(196, 155, 97, 0.95), rgba(212, 175, 55, 0.95));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    opacity: 0;
    scale: 0.3;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.tech-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(196, 155, 97, 0.3);
    backdrop-filter: blur(10px);
}

.interactive-image:hover .zoom-indicator {
    opacity: 1;
    scale: 1;
    animation: pulse 2s infinite;
}

.interactive-image:hover .tech-badge {
    transform: translateY(0);
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(196, 155, 97, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(196, 155, 97, 0);
    }
}

.interactive-image:hover .project-screenshot {
    transform: scale(1.08);
    filter: brightness(0.7) contrast(1.15);
}

/* Image Quality Enhancement */
.project-screenshot {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Mobile App Screenshot Specific Styles */
.project-card[data-type="mobile"] .project-image {
    background: linear-gradient(
        135deg,
        rgba(2, 86, 155, 0.1) 0%,
        rgba(1, 117, 194, 0.05) 100%
    );
}

.project-card[data-type="web"] .project-image {
    background: linear-gradient(
        135deg,
        rgba(255, 45, 32, 0.1) 0%,
        rgba(196, 155, 97, 0.05) 100%
    );
}

/* Enhanced Project Cards for Different Types */
.project-card[data-type="mobile"] {
    border-left: 4px solid #02569B;
}

.project-card[data-type="web"] {
    border-left: 4px solid #FF2D20;
}

.project-card[data-type="mobile"]:hover {
    box-shadow: 0 25px 50px rgba(2, 86, 155, 0.2);
}

.project-card[data-type="web"]:hover {
    box-shadow: 0 25px 50px rgba(255, 45, 32, 0.2);
}

/* Project Gallery Enhancements */
.project-gallery {
    position: relative;
    width: 100%;
    height: 100%;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-thumbnails {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 15;
}

.project-card:hover .gallery-thumbnails {
    opacity: 1;
}

.gallery-thumbnails .thumbnail {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gallery-thumbnails .thumbnail:hover {
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.5);
}

.gallery-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.project-card:hover .gallery-counter {
    opacity: 1;
    transform: translateY(0);
}

.counter-text {
    font-weight: 600;
    font-size: 0.8rem;
}

/* Enhanced Project Links */
.project-links {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    z-index: 15;
}

.project-card:hover .project-links {
    opacity: 1;
    transform: translateY(0);
}

.project-link {
    min-width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0 8px;
    white-space: nowrap;
    gap: 4px;
}

.project-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.project-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05) rotate(2deg);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

/* Mobile Responsive Gallery */
@media (max-width: 768px) {
    .gallery-thumbnails {
        bottom: 8px;
        gap: 4px;
    }
    
    .gallery-thumbnails .thumbnail {
        width: 35px;
        height: 35px;
        border-radius: 6px;
    }
    
    .gallery-counter {
        top: 8px;
        left: 8px;
        padding: 4px 10px;
        font-size: 0.75rem;
    }
    
    .counter-text {
        font-size: 0.7rem;
    }
}

/* Gallery Section */
.gallery {
    background: 
        linear-gradient(
            135deg,
            rgba(196, 155, 97, 0.05) 0%,
            rgba(139, 90, 60, 0.03) 50%,
            rgba(212, 175, 55, 0.05) 100%
        );
    position: relative;
    overflow: hidden;
}

.gallery::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        repeating-radial-gradient(
            circle at 30% 70%,
            transparent 0px,
            rgba(196, 155, 97, 0.02) 150px,
            transparent 300px
        );
    animation: galleryWave 25s ease-in-out infinite;
}

@keyframes galleryWave {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.1);
    }
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(196, 155, 97, 0.3);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: all 0.4s ease;
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.gallery-image {
    position: relative;
    background: var(--bg-card);
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 16/10;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.gallery-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(196, 155, 97, 0.2);
    border-color: var(--primary-color);
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(0, 0, 0, 0.8) 0%,
        rgba(196, 155, 97, 0.6) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image:hover .gallery-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    padding: 1rem;
}

.overlay-content h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.overlay-content p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.overlay-content a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.overlay-content a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.overlay-content a i {
    font-size: 1.2rem;
}

.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(196, 155, 97, 0.2);
}

.stat-item .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Mobile App specific styling */
.gallery-item[data-category="mobile"] .gallery-image {
    background: linear-gradient(
        135deg,
        rgba(2, 86, 155, 0.1) 0%,
        rgba(1, 117, 194, 0.05) 100%
    );
}

.gallery-item[data-category="mobile"]:hover .gallery-image {
    box-shadow: 0 20px 40px rgba(2, 86, 155, 0.2);
}

/* Web App specific styling */
.gallery-item[data-category="web"] .gallery-image {
    background: linear-gradient(
        135deg,
        rgba(255, 45, 32, 0.1) 0%,
        rgba(196, 155, 97, 0.05) 100%
    );
}

.gallery-item[data-category="web"]:hover .gallery-image {
    box-shadow: 0 20px 40px rgba(255, 45, 32, 0.2);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-filters {
        gap: 0.5rem;
        margin-bottom: 2rem;
    }
    
    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .overlay-content h4 {
        font-size: 1rem;
    }
    
    .overlay-content p {
        font-size: 0.8rem;
    }
    
    .overlay-content a {
        width: 40px;
        height: 40px;
    }
    
    .gallery-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-image {
        aspect-ratio: 16/9;
    }
    
    .filter-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    background: rgba(212, 175, 55, 0.2) !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
}

.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    background: rgba(212, 175, 55, 0.4) !important;
    transform: scale(1.1) !important;
}

.lb-close {
    background: rgba(212, 175, 55, 0.2) !important;
    border-radius: 50% !important;
    backdrop-filter: blur(10px) !important;
}

.lb-close:hover {
    background: rgba(212, 175, 55, 0.4) !important;
    transform: scale(1.1) !important;
}

/* Project Icons Section */
.project-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.project-card:hover .project-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 35px rgba(212, 175, 55, 0.5);
}

.project-card[data-type="mobile"] .project-icon {
    background: linear-gradient(135deg, #0175C2, #13B9FD);
}

.project-card[data-type="web"] .project-icon {
    background: linear-gradient(135deg, #FF2D20, #FF6B6B);
}

.project-content {
    text-align: center;
    padding: 0;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--heading-color);
    font-weight: 600;
    font-size: 1.2rem;
}

.project-content p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.project-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 1rem;
}

.project-links .project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.project-links .project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
}

/* Gallery Section */
.gallery {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23c49b61" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
    pointer-events: none;
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

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

.gallery-item {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.6), rgba(212, 175, 55, 0.6));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    color: white;
    text-align: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transform: scale(0.8);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.gallery-item:hover .gallery-overlay a {
    transform: scale(1);
}

.gallery-overlay a:hover {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1);
}

.gallery-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    min-width: 150px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.stat-item .stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-item .stat-label {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .gallery-stats {
        gap: 1.5rem;
    }
    
    .stat-item {
        min-width: 120px;
        padding: 1rem;
    }
    
    .stat-item .stat-number {
        font-size: 2rem;
    }
    
    .filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .project-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .project-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .project-links .project-link {
        width: fit-content;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
        padding: 1.5rem 0;
    }
    
    .project-card {
        padding: 2rem 1.5rem;
    }
}

/* Footer */
.footer {
    background: linear-gradient(
        135deg,
        var(--bg-secondary) 0%,
        #1a2328 50%,
        var(--bg-primary) 100%
    );
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--primary-color) 50%,
        transparent 100%
    );
}

.footer-content {
    position: relative;
    z-index: 1;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section {
    position: relative;
}

.footer-logo h3 {
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.9;
}

.footer-description {
    margin: 1.5rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.9;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(196, 155, 97, 0.1));
    border: 1px solid rgba(196, 155, 97, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    transform: translateY(-3px) scale(1.05);
    border-color: var(--accent-color);
    box-shadow: 
        0 8px 20px rgba(196, 155, 97, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    opacity: 0.9;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    opacity: 1;
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links a:hover::before {
    width: 10px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    opacity: 0.9;
}

.contact-info-item i {
    width: 18px;
    color: var(--primary-color);
    font-size: 1rem;
    text-align: center;
}

.contact-info-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-item a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(196, 155, 97, 0.2);
    padding-top: 2rem;
    position: relative;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.footer-bottom-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    opacity: 0.8;
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
    opacity: 1;
}

/* Decorative Elements */
.footer-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.decoration-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 155, 97, 0.1) 0%, transparent 70%);
    animation: floatDecoration 15s ease-in-out infinite;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    bottom: 30%;
    left: 5%;
    animation-delay: 5s;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 30%;
    animation-delay: 10s;
}

@keyframes floatDecoration {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-20px) translateX(10px) scale(1.1);
        opacity: 0.1;
    }
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-contact {
        align-items: center;
    }
    
    .contact-info-item {
        justify-content: center;
    }
}