html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100dvh;
    background-attachment: fixed;
    --nav-height: 70px;
}

.section {
    min-height: 100dvh;
    padding: 6rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.modal-content,
.modal-images,
.tech-badges {
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-blue: #3b82f6;
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;
    --border-color: rgba(226, 232, 240, 1);
    --shadow-color: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 50%, #e2e8f0 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* Navigation */
nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1000px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 70px;
    display: flex;
    align-items: center;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--shadow-color), 0 0 0 1px var(--border-color);
    overflow: hidden;
}

nav.scrolled {
    top: 10px;
    height: 60px;
    box-shadow: 0 8px 30px var(--shadow-hover), 0 0 0 1px var(--border-color);
}

nav.hidden {
    transform: translateX(-50%) translateY(-120%);
}

nav::before,
nav::after,
.nav-container::before,
.nav-container::after,
.logo-container::before,
.logo-container::after {
    content: none !important;
    display: none !important;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.logo-image {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--accent-cyan);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.3);
}

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    align-items: center;
    height: 100%;
}

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

/* Mobile Menu Styles - Always available */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        height: auto;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.4s ease, transform 0.4s ease;
        margin: 0;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
        opacity: 0;
        transform: translateY(-20px);
        z-index: 1001;
        align-items: flex-start;
    }

    .nav-menu.active {
        display: flex !important;
        max-height: 500px;
        padding: 1rem;
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    display: inline-block;
}

.nav-link:hover {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.08);
}

.nav-link.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(6, 182, 212, 0.15));
    box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.2);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    border-radius: 8px;
    width: 44px;
    height: 44px;
    position: relative;
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-cyan);
}

.menu-toggle span {
    width: 24px;
    height: 2.5px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
    display: block;
    position: absolute;
}

.menu-toggle span:nth-child(1) {
    top: 12px;
}

.menu-toggle span:nth-child(2) {
    top: 20px;
}

.menu-toggle span:nth-child(3) {
    top: 28px;
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 20px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 20px;
}

/* HIDE ABOUT SECTION & HOME SECTION - MERGED INTO ONE */
#about {
    display: none !important;
}

/* HOME SECTION - COMBINED WITH ABOUT */
#home {
    position: relative;
    overflow: visible;
    padding-top: 120px;
    min-height: 100vh;
}

#home::before,
#home::after {
    display: none;
}

.home-content {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    animation: fadeIn 1s ease;
    position: relative;
    z-index: 2;
    padding: 2rem 1rem;
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
}

.home-content::before,
.home-content::after {
    display: none;
}

/* Profile Image - Left Side */
.profile-image-wrapper {
    display: block;
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 6px solid #ffffff;
    box-shadow: 
        0 10px 40px rgba(59, 130, 246, 0.2),
        0 0 0 1px var(--border-color);
    flex-shrink: 0;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    display: block;
    transform: scale(1.1);
}

/* Right Content Area */
.home-text-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #16a34a;
    margin-bottom: 1.5rem;
    width: fit-content;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.main-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

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

.home-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn-primary,
.btn-cv {
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 56px;
    box-sizing: border-box;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    border: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-cv {
    background: #ffffff;
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    box-shadow: 0 2px 10px var(--shadow-color);
}

.btn-cv:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-hover);
    border-color: var(--accent-cyan);
}

/* Section Styles */
.section {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

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

/* Card Styles */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px var(--shadow-color);
    border: 1px solid var(--border-color);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.skill-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px var(--shadow-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-hover);
    border-color: var(--accent-cyan);
}

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

.skill-header svg {
    color: var(--accent-cyan);
}

.skill-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.skill-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.3rem;
    font-weight: 500;
}

.skill-list li::before {
    content: '●';
    color: var(--accent-cyan);
    position: absolute;
    left: 0;
    font-size: 0.8rem;
}

/* Progress Bar */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.progress-bar {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 50px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
    border-radius: 50px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.skill-card .progress-fill {
    width: 0 !important;
}

.skill-card.animate .progress-fill {
    width: var(--target-width) !important;
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.project-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px var(--shadow-color);
}

.project-card.hidden {
    display: none;
}

.project-card.project-hidden {
    display: none;
    opacity: 0;
    transform: translateY(30px);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-hover);
    border-color: var(--accent-cyan);
}

.project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    border-radius: 20px 20px 0 0;
    transition: transform 0.3s ease;
    background: var(--bg-secondary);
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-content {
    padding: 1.5rem;
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0 0.75rem;
    max-width: 100%;
}

.project-tech-badges .tech-badge {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.project-tech-badges .tech-badge:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.project-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.btn-view,
.btn-github {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1.5px solid transparent;
}

.btn-view {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.2);
}

.btn-view:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.btn-github {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.btn-github:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--accent-cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.2);
}

.btn-view svg,
.btn-github svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
    transition: transform 0.3s ease;
}

.btn-view:hover svg { transform: scale(1.1) rotate(5deg); }
.btn-github:hover svg { transform: rotate(360deg); }

/* SEE MORE BUTTON FOR PROJECTS */
.projects-see-more {
    text-align: center;
    margin-top: 2rem;
}

.btn-see-more {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-see-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-see-more svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn-see-more:hover svg {
    transform: translateX(5px);
}

.btn-see-more.show-less svg {
    transform: rotate(180deg);
}

.btn-see-more.show-less:hover svg {
    transform: rotate(180deg) translateX(5px);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.3);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

@keyframes ripple-animation {
    to { transform: scale(4); opacity: 0; }
}

/* Experience Grid */
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
}

.experience-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    max-width: 100%;
    box-shadow: 0 2px 15px var(--shadow-color);
}

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

.experience-header svg {
    color: var(--accent-blue);
}

.experience-header h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    font-weight: 700;
}

.experience-list-new {
    list-style: none;
}

.experience-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    border: 1px solid var(--border-color);
}

.experience-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateX(5px);
    border-color: var(--accent-cyan);
}

.experience-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--accent-cyan);
    flex-shrink: 0;
}

.experience-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.experience-info h4 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    font-weight: 700;
}

.experience-info p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    word-wrap: break-word;
}

.btn-view-small {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #ffffff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.btn-view-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.medal {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Contact Section */
.contact-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.contact-intro {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.contact-item:hover {
    background: rgba(59, 130, 246, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--accent-cyan);
}

.contact-item svg {
    color: var(--accent-cyan);
}

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

.contact-email {
    font-size: 0.8rem !important;
    word-break: break-all;
}

/* CONTACT FORM */
.contact-form-wrapper {
    margin-top: 3rem;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow-color);
}

.contact-form-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.1);
}

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

.btn-send-message {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-send-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.35);
}

.btn-send-message:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-send-message svg {
    width: 20px;
    height: 20px;
}

.form-status {
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    margin-top: 1rem;
    display: none;
}

.form-status.success {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.3);
    display: block;
}

.form-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
    display: block;
}

/* Footer */
footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideUp 0.3s ease;
    box-sizing: border-box;
}

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

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: var(--text-primary);
    font-size: 1.8rem;
    font-weight: 700;
}

.modal-close {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: rotate(90deg);
}

.modal-close svg {
    color: #ef4444;
}

.modal-body {
    padding: 2rem;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
}

.modal-body > * {
    margin-bottom: 2.5rem;
    max-width: 100%;
    box-sizing: border-box;
}

.modal-body > *:last-child {
    margin-bottom: 0;
}

.modal-info {
    margin-bottom: 1.5rem;
}

.modal-info-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.modal-info-item svg {
    color: var(--accent-cyan);
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    flex-shrink: 0;
    margin-right: 0.75rem;
}

.modal-description {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent-cyan);
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.modal-description h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.description-paragraph {
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    text-align: justify;
    line-height: 1.9;
    font-size: 1.05rem;
}

.description-paragraph:last-child {
    margin-bottom: 0;
}

.modal-description p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.modal-gallery {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent-cyan);
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.modal-gallery h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    max-width: 100%;
    padding: 0;
}

.modal-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 100%;
}

.modal-image:hover {
    transform: scale(1.05);
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

.modal-overview,
.modal-technologies {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border-left: 5px solid var(--accent-cyan);
    box-shadow: 0 2px 15px var(--shadow-color);
    transition: all 0.3s ease;
}

.modal-overview h3,
.modal-technologies h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.modal-overview:hover,
.modal-technologies:hover,
.modal-description:hover,
.modal-gallery:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-hover);
}

.tech-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
    justify-content: center;
    max-width: 100%;
    padding: 0 0.5rem;
}

.tech-badge {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
    color: white;
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.tech-badge:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    cursor: pointer;
}

.lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 0 60px rgba(6, 182, 212, 0.6);
}

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

/* ===============================================
   RESPONSIVE MOBILE OPTIMIZED
   =============================================== */

@media (max-width: 968px) {
    .home-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .home-text-content {
        text-align: center;
    }
    
    .profile-image-wrapper {
        width: 220px;
        min-width: 220px;
        height: 220px;
        margin-bottom: 2rem;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .home-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        background: var(--bg-secondary);
        border-radius: 8px;
        padding: 8px;
        z-index: 1102;
    }
    
    nav {
        top: 10px;
        width: calc(100% - 20px);
        border-radius: 16px;
        z-index: 1100;
    }

    nav.scrolled {
        top: 10px;
    }
    
    nav::before,
    nav::after,
    .nav-container::before,
    .nav-container::after {
        content: none !important;
        display: none !important;
    }
    
    .nav-container {
        padding: 0 1rem;
        position: relative;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: 10px;
        right: 10px;
        width: calc(100% - 20px);
        flex-direction: column;
        align-items: stretch;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid var(--border-color);
        padding: 0;
        margin: 0;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
        z-index: 1101;
    }
    
    .nav-menu::before,
    .nav-menu::after {
        display: none !important;
    }
    
    .nav-menu.active {
        display: flex !important;
        max-height: 520px;
        padding: 0.5rem 0.75rem;
        opacity: 1;
        transform: translateY(0);
    }
    
    .nav-menu li { 
        padding: 0; 
        width: 100%;
    }
    
    .nav-link {
        display: block;
        width: 100%;
        padding: 0.75rem 1rem;
        text-align: center;
    }
    
    .home-content {
        padding: 1.5rem 1rem;
    }
    
    .profile-image-wrapper {
        width: 180px;
        min-width: 180px;
        height: 180px;
        margin-bottom: 1.5rem;
    }
    
    .profile-image {
        object-position: center 25%;
        transform: scale(1.2);
    }
    
    .main-title { font-size: 2rem; }
    .subtitle { font-size: 1.1rem; }
    .about-text { font-size: 1rem; }
    .section-title { font-size: 2rem; }
    
    .skills-grid, 
    .projects-grid, 
    .experience-grid { 
        grid-template-columns: 1fr; 
    }
    
    .contact-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .experience-card {
        padding: 1.25rem;
        margin: 0;
        width: 100%;
        border-radius: 16px;
    }
    
    .experience-header h3 {
        font-size: 1.3rem;
    }
    
    .experience-item {
        padding: 0.75rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        border-radius: 10px;
    }
    
    .experience-thumb {
        width: 60px;
        height: 60px;
        border-radius: 8px;
    }
    
    .experience-info h4 {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .experience-info p {
        font-size: 0.75rem;
    }
    
    .btn-view-small {
        padding: 0.4rem 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .medal {
        font-size: 1.2rem;
    }
    
    .modal-info-item svg {
        color: var(--accent-cyan);
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
        min-height: 24px !important;
        flex-shrink: 0;
    }
    
    .tech-badges {
        gap: 0.5rem;
        padding: 0;
    }
    
    .tech-badge {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
        letter-spacing: 0.3px;
        border-radius: 8px;
    }
    
    .modal-images {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .modal-image {
        height: 160px;
        border-radius: 10px;
    }
    
    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 20px;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    .modal-description,
    .modal-gallery,
    .modal-overview,
    .modal-technologies {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section {
        padding: 5rem 1rem 3rem;
    }
    
    .card,
    .skill-card,
    .project-card,
    .contact-card {
        border-radius: 16px;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    
    .contact-form-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .nav-container { padding: 0 0.75rem; }
    .section { padding: 3rem 0.75rem; }
    
    nav {
        width: calc(100% - 16px);
        top: 8px;
    }
    
    .profile-image-wrapper {
        width: 150px;
        min-width: 150px;
        height: 150px;
        border-width: 4px;
    }
    
    .profile-image {
        object-position: center 20%;
        transform: scale(1.25);
    }
    
    .main-title { font-size: 1.8rem; }
    .subtitle { font-size: 1rem; }
    .about-text { font-size: 0.95rem; }
    .section-title { font-size: 1.75rem; }
    
    .contact-grid { 
        grid-template-columns: 1fr; 
    }
    
    .contact-item span {
        font-size: 0.85rem;
    }
    
    .logo-image { 
        width: 30px; 
        height: 30px;
        border-radius: 8px;
    }
    .logo { font-size: 1.2rem; }
    
    .experience-card {
        padding: 1rem;
        border-radius: 14px;
    }
    
    .experience-header {
        margin-bottom: 1rem;
    }
    
    .experience-header h3 {
        font-size: 1.15rem;
    }
    
    .experience-item {
        padding: 0.6rem;
        gap: 0.6rem;
        border-radius: 8px;
    }
    
    .experience-thumb {
        width: 50px;
        height: 50px;
    }
    
    .experience-info h4 {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 0.15rem;
    }
    
    .experience-info p {
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .btn-view-small {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
    }
    
    .medal {
        font-size: 1rem;
    }
    
    .tech-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.65rem;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        border-radius: 16px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-description,
    .modal-gallery,
    .modal-overview,
    .modal-technologies {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .modal-images {
        gap: 0.6rem;
    }
    
    .modal-image {
        height: 140px;
    }
    
    .home-buttons {
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-cv {
        min-width: 150px;
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .project-card {
        border-radius: 14px;
    }
    
    .project-image {
        border-radius: 14px 14px 0 0;
    }
    
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    
    .contact-form-title {
        font-size: 1.3rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
    nav {
        width: calc(100% - 40px);
    }
    
    .section {
        min-height: auto;
        padding: 4rem 2rem;
    }
    
    .home-content {
        padding: 2rem 1rem;
    }
    
    .profile-image-wrapper {
        width: 200px;
        min-width: 200px;
        height: 200px;
    }
    
    .profile-image {
        object-position: center 25%;
        transform: scale(1.15);
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .tech-badge {
        font-size: 0.75rem;
        padding: 0.45rem 0.85rem;
    }
    
    .modal-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 896px) and (orientation: landscape) {
    nav {
        top: 8px;
        height: 56px;
    }
    
    nav.scrolled {
        height: 50px;
    }
    
    .section {
        min-height: auto;
        padding: 3rem 2rem;
    }
    
    .home-content {
        flex-direction: row;
        gap: 2rem;
    }
    
    .profile-image-wrapper {
        width: 150px;
        min-width: 150px;
        height: 150px;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .about-text {
        font-size: 0.9rem;
    }
    
    .home-buttons {
        gap: 1rem;
    }
    
    .btn-primary,
    .btn-cv {
        min-width: 140px;
        height: 48px;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
}

@media (min-width: 1440px) {
    nav {
        max-width: 1200px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .main-title {
        font-size: 4rem;
    }
    
    .profile-image-wrapper {
        width: 320px;
        min-width: 320px;
        height: 320px;
    }
}