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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    transition: background 0.3s ease;
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 60px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 50px;
}

.nav-link {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 0;
    position: relative;
    transition: all 0.3s ease;
}

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

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

.hero {
    padding-top: 0;
}

.carousel {
    position: relative;
    width: 80vw;
    height: 600px;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.carousel-slide.active {
    opacity: 1;
}

.slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
    z-index: 0;
}

.hero-content {
    color: #fff;
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 20px;
}

.carousel-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #fff;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.hero-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content .title {
    font-size: 24px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.hero-content .subtitle {
    font-size: 18px;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: #fff;
    color: #6366f1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: #fff;
    color: #6366f1;
}

.section {
    padding: 80px 20px;
}

.bg-light {
    background: #f8fafc;
}

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

.section-title {
    font-size: 36px;
    text-align: center;
    margin-bottom: 50px;
    color: #1e293b;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

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

.skills h3 {
    margin-bottom: 20px;
    color: #1e293b;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.skill-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.skill-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    border-radius: 6px;
}

.skill-item span {
    font-size: 14px;
    font-weight: 500;
    color: #334155;
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: #e2e8f0;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-date {
    width: 45%;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-content {
    width: 45%;
    padding: 25px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.timeline-content h3 {
    color: #1e293b;
    margin-bottom: 5px;
    font-size: 20px;
}

.timeline-content .job-title {
    color: #6366f1;
    font-weight: 600;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #64748b;
    font-size: 14px;
}

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

.contact-item {
    text-align: center;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-item h4 {
    color: #1e293b;
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-item p {
    color: #64748b;
    font-size: 14px;
}

.footer {
    background: #1e293b;
    color: #fff;
    text-align: center;
    padding: 30px 20px;
}

.footer p {
    margin-bottom: 5px;
    opacity: 0.8;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close:hover {
    color: #1e293b;
}

.login-form {
    padding: 40px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1e293b;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: #6366f1;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 14px;
    cursor: pointer;
}

.forgot-password {
    color: #6366f1;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.divider {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: #fff;
    padding: 0 15px;
    color: #94a3b8;
    font-size: 14px;
}

.social-login {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.btn-social {
    flex: 1;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-social:hover {
    border-color: #6366f1;
    background: #f8fafc;
}

.signup-link {
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.signup-link a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #10b981;
    color: #fff;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 20px;
}

.projects-section {
    background: #fff;
    overflow: hidden;
}

.marquee-container {
    overflow: hidden;
    padding: 10px 0;
}

.marquee-row {
    position: relative;
    height: 55px;
    margin-bottom: 8px;
    overflow: hidden;
}

.marquee-row:last-child {
    margin-bottom: 0;
}

.marquee-track {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    animation: marquee 90s linear infinite;
    width: max-content;
}

.marquee-track .marquee-item {
    flex-shrink: 0;
}

.marquee-row:nth-child(1) .marquee-track {
    animation-duration: 85s;
}

.marquee-row:nth-child(2) .marquee-track {
    animation-duration: 95s;
}

.marquee-row:nth-child(3) .marquee-track {
    animation-duration: 105s;
}

.marquee-track:first-child {
    animation-delay: -42.5s;
}

.marquee-track:nth-child(2) {
    left: 0;
    transform: translateX(100%);
}

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

.marquee-item {
    display: inline-block;
    padding: 12px 30px;
    color: #9ca3af;
    font-size: 16px;
    line-height: 1.4;
    transition: color 0.3s ease;
    cursor: default;
    position: relative;
    z-index: 1;
    white-space: nowrap;
}

.marquee-row.paused-all .marquee-track {
    animation-play-state: paused;
}

.marquee-track {
    transition: animation-play-state 0.1s ease;
}

@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
    }
    
    .carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 2500 / 1160;
    }
    
    .hero-image {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content .title {
        font-size: 16px;
    }
    
    .hero-content .subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .btn {
        padding: 8px 20px;
        font-size: 14px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 10px;
    }
    
    .carousel-next {
        right: 10px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(odd) {
        flex-direction: column;
        padding-left: 50px;
    }
    
    .timeline-date,
    .timeline-content {
        width: 100%;
    }
    
    .timeline-date {
        margin-bottom: 10px;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .modal-content {
        margin: 10% auto;
    }
    
    .login-form {
        padding: 30px 25px;
    }
}
