/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #00CED1;
    --accent-color: #00CED1;
    --text-color: #fff;
    --bg-dark: #000;
    --bg-light: #fff;
    --text-dark: #000;
    --glass-bg: rgba(20, 20, 25, 0.4);
    --glass-border: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-color);
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body.light {
    background-color: var(--bg-light);
    color: var(--text-dark);
    --primary-color: #00A5A8;
    --accent-color: #00A5A8;
}

/* Light theme navbar styles moved to main navbar section */

body.light .logo .white {
    color: var(--text-dark);
}

body.light .nav-link {
    color: var(--text-dark);
}

body.light .nav-link:hover,
body.light .nav-link.active {
    color: var(--primary-color);
}

/* Particles fixed background */
#particles-js {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: -1 !important;
    pointer-events: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

#particles-js canvas {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    pointer-events: auto !important;
    z-index: -1 !important;
    display: block !important;
}

body.light #particles-js {
    opacity: 0.8;
}

body.light #particles-js canvas {
    opacity: 0.8;
    filter: invert(1) hue-rotate(180deg);
}

/* Light theme fixes */
body.light .theme-toggle {
    border-color: rgba(0, 0, 0, 0.2);
    color: var(--text-dark);
}

body.light .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

body.light .lang-toggle {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light .lang-btn {
    color: var(--text-dark);
}

body.light .lang-btn.active {
    background: var(--primary-color);
    color: #000;
}

body.light .hamburger span {
    background: var(--text-dark);
}

body.light .navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: rgba(0, 0, 0, 0.1);
}

body.light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: rgba(0, 206, 209, 0.2);
}

body.light .hero-content h3,
body.light .hero-content p,
body.light .about-text p,
body.light .service-card p,
body.light .project-card p {
    color: #666;
}

body.light .service-card,
body.light .project-card {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    border-color: rgba(0, 206, 209, 0.2);
}

body.light .service-card:hover,
body.light .project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.3);
}

body.light .form-group input,
body.light .form-group textarea {
    background: #f5f5f5;
    border-color: rgba(0, 206, 209, 0.3);
    color: var(--text-dark);
}

body.light .contact-info {
    color: #666;
}

body.light .projects-page {
    background: transparent;
}

body.light .projects-header h1 {
    color: var(--text-dark);
}

body.light .search-box input,
body.light .sort-box select {
    background: #f5f5f5;
    border-color: rgba(0, 206, 209, 0.3);
    color: var(--text-dark);
}

body.light .search-box button {
    background: var(--primary-color);
    color: #fff;
}

body.light .sort-box label {
    color: #666;
}

body.light .project-meta {
    color: #666;
}

body.light .projects h2,
body.light .about h2,
body.light .skills h2,
body.light .contact h2 {
    color: var(--text-dark);
}

body.light .about,
body.light .skills,
body.light .projects,
body.light .contact {
    background: transparent;
}

body.light .no-projects {
    color: #666;
}

body.light .social-icons a {
    background: #f5f5f5;
    border-color: rgba(0, 206, 209, 0.2);
    color: var(--text-dark);
}

body.light .social-icons a:hover {
    background: var(--primary-color);
    color: #000;
}

body.light .btn {
    color: var(--text-dark);
    border-color: var(--primary-color);
}

body.light .btn:hover {
    background: #006666;
    color: #fff;
    border-color: #006666;
}

body.light .btn:hover::before {
    display: none;
}

body.light .btn-secondary {
    background: var(--primary-color);
    color: #fff;
}

body.light .btn-secondary:hover {
    background: #006666;
    color: #fff;
    border-color: #006666;
}

body.light .service-card h3,
body.light .project-card h3 {
    color: var(--text-dark);
}

body.light .about-text h3 {
    color: var(--primary-color);
}

body.light blockquote {
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

/* Responsive social links */
@media (max-width: 480px) {
    .social-links-contact {
        width: 100%;
    }

    .social-link-contact {
        min-width: 100%;
        padding: 20px;
    }

    .social-link-contact i {
        font-size: 36px;
    }

    .social-link-contact span {
        font-size: 14px;
    }
}

/* ===== LOADER ===== */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-text {
    font-size: 2rem;
    letter-spacing: 5px;
    animation: pulse 1.5s infinite;
    color: var(--primary-color);
}

.loader-bar {
    width: 0%;
    height: 2px;
    background: var(--primary-color);
    margin-top: 20px;
    transition: width 1.5s ease;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

body.light .loader {
    background: #fff;
}

/* ===== NAVBAR - LIQUID GLASS STYLE (iOS 26) ===== */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1000px;
    padding: 15px 30px;
    /* Very transparent background - shows content through */
    background: rgba(100, 100, 100, 0.08);
    /* Lighter blur for liquid glass transparency */
    backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
    -webkit-backdrop-filter: blur(8px) saturate(120%) brightness(1.05);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.08),
        0 1px 2px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Top specular highlight - bright rim */
.navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.9) 50%,
            transparent 100%);
    pointer-events: none;
    z-index: 3;
}

/* Subtle inner gradient */
.navbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 30%,
            transparent 50%);
    pointer-events: none;
    z-index: 1;
}

/* Ensure navbar content is above effects */
.navbar>* {
    position: relative;
    z-index: 2;
}

body.light .navbar {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -1px 0 rgba(255, 255, 255, 0.3);
}

body.light .navbar.scrolled {
    background: rgba(255, 255, 255, 0.45);
}

.navbar.scrolled {
    top: 15px;
    background: rgba(120, 120, 120, 0.2);
    box-shadow:
        0 6px 32px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.logo,
.logo:hover,
.logo:visited,
.logo:active,
.logo:focus {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important;
    outline: none !important;
}

.logo .white {
    color: var(--text-color);
}

.logo .accent {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: var(--glass-bg);
    border-color: var(--primary-color);
}

.lang-toggle {
    display: flex;
    gap: 5px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 5px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 5px 12px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.85rem;
    font-weight: 500;
}

.lang-btn.active {
    background: var(--primary-color);
    color: #000;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    gap: 5px;
}

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

.nav-controls-mobile {
    display: none;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 80px 50px;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-content h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 15px;
    color: #ddd;
    animation: fadeInUp 0.8s ease-out;
}

.hero-content h3 .name {
    color: var(--primary-color);
    font-weight: 600;
}

.hero-content h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-content h1 .typing {
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
    animation: blink 0.7s infinite;
}

@keyframes blink {

    0%,
    50% {
        border-color: var(--primary-color);
    }

    51%,
    100% {
        border-color: transparent;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 35px;
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.btn {
    padding: 14px 32px;
    border: 2px solid var(--primary-color);
    background: transparent;
    color: var(--text-color);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
}

.btn-secondary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.btn-secondary::before {
    background: transparent;
}

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

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.8s backwards;
}

.social-icons a {
    width: 50px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-decoration: none;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 206, 209, 0.5);
}

/* Profile Image */
.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease-out 0.5s backwards;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.profile-circle {
    position: relative;
    width: 380px;
    height: 380px;
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 206, 209, 0.6),
        inset 0 0 40px rgba(0, 206, 209, 0.2);
    transition: all 0.5s ease;
    background: #1a1a1a;
}

.glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    border: 2px solid rgba(0, 206, 209, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

/* ===== ABOUT SECTION ===== */
.about {
    min-height: 100vh;
    padding: 100px 80px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-container {
    max-width: 1200px;
    width: 100%;
}

.about h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-color);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.about-photo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.about-photo img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 15px;
    border: 5px solid var(--primary-color);
    box-shadow: 0 0 40px rgba(0, 206, 209, 0.6);
    transition: all 0.3s ease;
}

.about-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 60px rgba(0, 206, 209, 0.8);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #aaa;
    margin-bottom: 15px;
    text-align: justify;
}

blockquote {
    font-style: italic;
    font-size: 18px;
    color: var(--primary-color);
    margin: 20px 0;
    padding-left: 20px;
    border-left: 4px solid var(--primary-color);
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* ===== SKILLS SECTION ===== */
.skills {
    min-height: 100vh;
    padding: 100px 80px 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.skills-container {
    max-width: 1200px;
    width: 100%;
}

.skills h2 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
    color: var(--text-color);
}

.service-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    width: 300px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.6);
    border-color: var(--primary-color);
}

.service-card i {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

/* ===== PROJECTS SECTION ===== */
.projects {
    min-height: 100vh;
    padding: 100px 80px 50px;
    background: transparent;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.projects h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    width: 300px;
    padding: 25px;
    text-align: center;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

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

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.6);
    border-color: var(--primary-color);
}

.project-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.project-card h3 {
    font-size: 20px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.project-card p {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}

.project-btn {
    margin-top: 15px;
    padding: 10px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: #fff;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.project-btn:hover {
    background: #006666;
    color: #fff;
}

.projects-footer {
    margin-top: 40px;
}

.no-projects {
    text-align: center;
    color: #aaa;
    font-size: 18px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    min-height: 100vh;
    padding: 100px 80px 50px;
    background: transparent;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.contact h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.contact-info {
    text-align: center;
    font-size: 18px;
    color: #aaa;
    line-height: 2;
}

.social-links-contact {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.social-link-contact {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 2px solid transparent;
    border-radius: 20px;
    min-width: 150px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.social-link-contact:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 206, 209, 0.6);
    color: var(--primary-color);
}

.social-link-contact i {
    font-size: 48px;
    transition: all 0.3s ease;
}

.social-link-contact:hover i {
    transform: scale(1.2);
}

.social-link-contact span {
    font-size: 16px;
    font-weight: 600;
}

body.light .social-link-contact {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-dark);
}

body.light .social-link-contact:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #1a1a1a;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    outline: none;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #aaa;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(0, 206, 209, 0.5);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    padding: 15px 40px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #000;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 206, 209, 0.5);
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000;
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-submit:hover::before {
    left: 0;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px rgba(0, 206, 209, 0.8);
}

/* ===== PROJECTS PAGE ===== */
.projects-page {
    min-height: 100vh;
    padding: 120px 80px 50px;
    background: transparent;
    position: relative;
}

.projects-header {
    margin-bottom: 40px;
}

.projects-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
}

.projects-filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-form {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    flex: 1;
    padding: 12px 20px;
    background: #1a1a1a;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
}

.search-box button {
    padding: 12px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
}

.sort-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-box label {
    color: #aaa;
}

.sort-box select {
    padding: 12px 20px;
    background: #1a1a1a;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--text-color);
    font-size: 16px;
    cursor: pointer;
}

.project-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #aaa;
}

.project-date {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.pagination-wrapper {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .navbar {
        padding: 15px 20px;
    }

    .hero {
        padding: 100px 50px 50px;
    }

    .hero-container {
        gap: 50px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

    .profile-circle {
        width: 380px;
        height: 380px;
    }

    .about {
        padding: 100px 50px 50px;
    }

    .skills {
        padding: 100px 50px 50px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: 95%;
        max-width: 95%;
        border-radius: 30px;
        padding: 12px 20px;
        justify-content: space-between;
    }

    .navbar::before {
        border-radius: 30px;
    }

    .navbar.scrolled {
        top: 10px;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-controls {
        display: flex !important;
        gap: 10px;
    }

    .fab-container {
        display: block !important;
    }

    .hero {
        padding: 180px 30px 50px;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 50px;
    }

    .hero-image {
        order: -1;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-content h3 {
        font-size: 16px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 15px;
    }

    .cta-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .profile-circle {
        width: 300px;
        height: 300px;
    }

    .social-icons {
        justify-content: center;
    }

    .about {
        padding: 80px 30px 50px;
    }

    .about h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
        gap: 40px;
    }

    .about-photo img {
        max-width: 300px;
    }

    .about-text {
        text-align: left;
    }

    .about-text p {
        font-size: 15px;
    }

    .skills {
        padding: 80px 30px 50px;
    }

    .skills h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .service-card {
        width: 100%;
        max-width: 300px;
    }

    .projects {
        padding: 80px 30px 50px;
    }

    .projects h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .project-card {
        width: 100%;
        max-width: 300px;
    }

    .contact {
        padding: 80px 30px 50px;
    }

    .contact h2 {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .contact-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .contact-info {
        font-size: 15px;
        text-align: center;
    }

    .contact-form {
        align-items: center;
    }

    .btn-submit {
        align-self: center;
    }

    .social-links-contact {
        flex-direction: column;
        gap: 20px;
    }

    .social-link-contact {
        min-width: 100%;
        max-width: 300px;
    }

    .projects-page {
        padding: 100px 20px 50px;
    }

    .filter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.2rem;
    }

    .hero {
        padding: 140px 20px 50px;
    }

    .hero-content h3 {
        font-size: 14px;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .profile-circle {
        width: 250px;
        height: 250px;
    }

    .about h2 {
        font-size: 28px;
    }

    .about-photo img {
        max-width: 250px;
    }

    .social-icons a {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .skills h2 {
        font-size: 28px;
    }

    .projects h2 {
        font-size: 28px;
    }

    .contact h2 {
        font-size: 28px;
    }
}

/* ===== FAB NAVIGATION ===== */
.fab-container {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
}

.fab-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text-color);
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.fab-toggle:hover {
    transform: scale(1.1);
}

.fab-toggle.active {
    transform: rotate(45deg);
}

.fab-toggle.active i::before {
    content: "\f00d";
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    min-width: 180px;
}

.fab-menu.active {
    display: flex;
    animation: fabSlideUp 0.3s ease;
}

@keyframes fabSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fab-item {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
}

.fab-item:hover {
    background: var(--primary-color);
    color: #fff;
}

body.light .fab-toggle {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--text-dark);
}

body.light .fab-menu {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.8);
}

body.light .fab-item {
    color: var(--text-dark);
}

body.light .fab-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Fix all primary color buttons - white text */
.btn-secondary {
    color: #fff !important;
}

body.light .btn-secondary {
    color: #fff !important;
}

.lang-btn.active {
    color: #fff !important;
}

/* ===== PROJECTS PAGE FILTERS ===== */
.type-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.filter-btn:hover {
    background: rgba(0, 206, 209, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

body.light .filter-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-dark);
}

body.light .filter-btn:hover {
    background: rgba(0, 206, 209, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.light .filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Project Stack */
.project-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--primary-color);
    margin: 10px 0;
    padding: 8px 12px;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 8px;
}

.project-stack i {
    font-size: 14px;
}

.project-stack span {
    color: #ccc;
}

body.light .project-stack span {
    color: #666;
}

/* Project Type Badge */
.project-type {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.project-type.work {
    background: rgba(0, 206, 209, 0.2);
    color: var(--primary-color);
}

.project-type.educational {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

body.light .project-type.work {
    background: rgba(0, 206, 209, 0.15);
}

body.light .project-type.educational {
    background: rgba(255, 193, 7, 0.15);
    color: #d4a300;
}

/* Project Meta Flexbox */
.project-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.3s, transform 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Make project images clickable */
.project-img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.project-img:hover {
    transform: scale(1.02);
}