:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-color: #6366f1;
    --text-dark: #333;
    --text-muted: #666;
    --bg-light: #f8f9fa;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--bg-light);
    scroll-behavior: smooth;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark) !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--accent-color) !important;
    transform: translateY(-2px);
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    color: var(--text-dark) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

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

.lang-selector {
    margin-left: 1rem;
}

.lang-selector select {
    padding: 0.375rem 2rem 0.375rem 0.75rem;
    border: 2px solid var(--text-muted);
    border-radius: 5px;
    background: white;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23333' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.lang-selector select:hover {
    border-color: var(--accent-color);
}

.lang-selector select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: #fff;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 300;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
    line-height: 1.1;
    position: relative;
}

.hero-title::after {
    content: '✨';
    position: absolute;
    right: -60px;
    top: 10px;
    font-size: 0.6em;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { opacity: 0.3; transform: rotate(0deg) scale(1); }
    50% { opacity: 1; transform: rotate(180deg) scale(1.2); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    letter-spacing: 1px;
    font-weight: 300;
}

.hero-description {
    font-size: 1rem;
    color: #777;
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 1rem 2rem;
    border: 2px solid var(--text-dark);
    background: transparent;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    transition: all 0.4s ease;
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    color: #fff !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    text-decoration: none;
    border-color: transparent;
}

.hero-images {
    height: 600px;
    padding-left: 2rem;
}

.image-container {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border-radius: 0;
}

.image-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.image-container:hover img {
    transform: scale(1.08);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.overlay-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.image-container:hover .overlay-text {
    transform: translateY(0);
}

.section {
    padding: 4rem 0;
    background: #fff;
}

.section:nth-child(even) {
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 5rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-gradient);
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.portfolio-item {
    margin-bottom: 3rem;
    transition: all 0.4s ease;
    background: #fff;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-link:hover .portfolio-item {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
    height: 250px;
    margin-bottom: 0;
    background: #f5f5f5;
}

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

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

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-link:hover .portfolio-image::after {
    opacity: 1;
}

.portfolio-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

.portfolio-description {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex: 1;
}

.tech-tag {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: var(--bg-light);
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 500;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

.skill-category {
    background: white;
    padding: 2.5rem;
    height: 100%;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-left-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transform: translateX(5px);
}

.skill-category h3 {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

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

.skill-list li {
    padding: 0.6rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
    transition: all 0.3s ease;
}

.skill-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 1.2rem;
    line-height: 1;
}

.skill-list li:hover {
    color: var(--text-dark);
}

.about-image {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 20px;
    right: 20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--accent-color);
    z-index: -1;
    transition: all 0.3s ease;
}

.about-image:hover::after {
    top: 10px;
    right: 10px;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.about-text .highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.contact-item {
    padding: 2rem;
    transition: all 0.3s ease;
    border-radius: 10px;
}

.contact-item:hover {
    background: var(--bg-light);
    transform: translateY(-5px);
}

.contact-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent-color);
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.form-control, .form-select {
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.btn-submit {
    padding: 1rem 3rem;
    background: var(--primary-gradient);
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.alert {
    border-radius: 5px;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.footer {
    background: var(--text-dark);
    color: white;
    padding: 1rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title::after {
        right: -40px;
    }

    .section {
        padding: 3rem 0;
    }

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

    .lang-selector {
        margin-left: 0;
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 0.95rem;
        max-width: calc(100% - 60px);
        white-space: normal;
        line-height: 1.3;
    }

    .navbar-nav .nav-link {
        margin: 0.5rem 0;
    }

    .hero-images {
        height: 400px;
        padding-left: 0;
        margin-top: 3rem;
    }

    .about-image {
        height: 400px;
        margin-bottom: 3rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}
