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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: #1a1a1a;
    color: #acacac;
    line-height: 1.6;
    overflow-x: hidden;
}

/*CURSOR SPOTLIGHT EFFECT*/
.cursor-spotlight {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s ease;
    opacity: 0;
}

body:hover .cursor-spotlight {
    opacity: 1;
}

/*MAIN LAYOUT - SPLIT SCREEN*/
.main-container {
    display: flex;
    min-height: 100vh;
}

/*LEFT PANEL*/
.left-panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 50%;
    height: 100vh;
    padding: 6rem 4rem 4rem 12rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.left-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    height: 100%;
    max-width: 500px;
}

/*RIGHT PANEL - Scrollable*/
.right-panel {
    margin-left: 50%;
    width: 50%;
    padding: 6rem 4rem 4rem 8rem;
}

.right-content {
    max-width: 600px;
}

/*LEFT PANEL - HEADER*/
.profile-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #efefef;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.typing-text {
    white-space: nowrap;
    overflow: hidden;
}

.cursor {
    font-weight: 300;
    animation: blink 1s infinite;
}

.cursor--done {
    animation: none !important;
    opacity: 0;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: #efefef;
    margin-bottom: 1.5rem;
}

.description {
    font-size: 1rem;
    color: #acacac;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/*LEFT PANEL - NAVIGATION*/
.section-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: #858585;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative;
}

.nav-indicator {
    width: 2rem;
    height: 1px;
    background-color: #646464;
    transition: all 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 4rem;
    background-color: #dc2626;
}

.nav-link:hover .nav-text,
.nav-link.active .nav-text {
    color: #efefef;
}

/*LEFT PANEL - SOCIAL LINKS*/
.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: auto;
}

.social-links a {
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.social-links a:hover {
    transform: translateY(-3px);
    opacity: 1;
}

.social-links img {
    width: 28px;
    height: 28px;
    filter: brightness(0.8);
    transition: filter 0.3s ease;
}

.social-links a:hover img {
    filter: brightness(1.2);
}

/*RIGHT PANEL - SECTIONS*/
.content-section {
    margin-bottom: 8rem;
    scroll-margin-top: 4rem;
}

.section-heading-mobile {
    display: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: #efefef;
    margin-bottom: 2rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/*EXPERIENCE SECTION*/
.experience-card {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1rem;
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.experience-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
    padding: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.experience-timeline {
    font-size: 0.75rem;
    color: #858585;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-top: 0.25rem;
}

.experience-content {
    flex: 1;
}

.experience-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #efefef;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.company-name {
    color: #dc2626;
}

.experience-description {
    color: #acacac;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.experience-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.experience-tech li {
    font-size: 0.75rem;
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

/*PROJECTS SECTION*/
.project-card {
    padding: 1.5rem 0;
    margin-bottom: 3rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.project-card:hover {
    background-color: rgba(255, 255, 255, 0.03);
    box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.1);
    padding: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
}

.project-header {
    margin-bottom: 1rem;
}

.project-title {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.project-title a {
    color: #efefef;
    text-decoration: none;
    transition: color 0.3s ease;
}

.project-title a:hover {
    color: #dc2626;
}

.project-description {
    color: #acacac;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    list-style: none;
}

.project-tech li {
    font-size: 0.75rem;
    color: #dc2626;
    background-color: rgba(220, 38, 38, 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
}

.view-more {
    margin-top: 2rem;
    text-align: center;
}

.view-more-link {
    color: #efefef;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: #dc2626;
}

/*PROJECT IMAGE CAROUSEL (Vagabond)*/
.project-img-carousel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.25rem 0 1.5rem;
    gap: 0.5rem;
}

.proj-carousel-track {
    flex: 1;
    overflow: hidden;
    border-radius: 10px;
}

.proj-carousel-img {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: opacity 0.35s ease;
}

.proj-carousel-img.active {
    display: block;
}

.proj-carousel-btn {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #dc2626;
    font-size: 2.5rem;
    cursor: pointer;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
}

.proj-carousel-btn:hover {
    color: #ef4444;
    transform: scale(1.2);
}

/*TECHNICAL SKILLS SECTION*/
.skills-content {
    padding: 2.5rem;
    text-align: center;
}

.skills-category {
    font-size: 1.2rem;
    font-weight: 600;
    color: #efefef;
    margin-bottom: 2rem;
    margin-top: 2.5rem;
    text-align: center;
}

.skills-category:first-child {
    margin-top: 0;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: transparent;
}

.skill-item:hover {
    background-color: rgba(255, 255, 255, 0.03);
    transform: translateY(-3px);
}

.skill-item img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.skill-item span {
    font-size: 0.95rem;
    color: #acacac;
    text-align: center;
}

/*ABOUT SECTION*/
.about-content {
    padding: 2rem;
    text-align: center;
}

.about-image {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-text {
    margin-bottom: 1.5rem;
    color: #acacac;
    line-height: 1.7;
    text-align: center;
}

.highlight {
    color: #dc2626;
    font-weight: 500;
}

.inline-link {
    color: #dc2626;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.inline-link:hover {
    border-bottom-color: #dc2626;
}

/*ABOUT CAROUSEL*/
.about-carousel {
    position: relative;
}

.carousel-track {
    position: relative;
}

/*SLIDES*/
.carousel-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease;
    text-align: center;
}

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

/*IMAGE*/
.about-image {
    width: 100%;
    max-width: 420px;
    height: auto;
    border-radius: 16px;
    margin-bottom: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/*TEXT*/
.about-text {
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: #dc2626;
    font-weight: 600;
}

/*NAV BUTTONS - ARROW ONLY (NO CIRCLE)*/
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #dc2626;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.25s ease, transform 0.25s ease;
    padding: 0;
    line-height: 1;
}

.carousel-btn:hover {
    color: #ef4444;
    transform: translateY(-50%) scale(1.15);
}

.carousel-btn-prev {
    left: 12px;
}

.carousel-btn-next {
    right: 12px;
}

/*INDICATORS*/
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 2rem;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #555;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.indicator:hover {
    transform: scale(1.2);
}

.indicator.active {
    background-color: #dc2626;
}

/*CONTACT SECTION*/
.contact-intro {
    color: #acacac;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    padding: 0 2.5rem;
    text-align: center;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    padding: 2.5rem;
}

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

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #efefef;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 1px solid #505050;
    border-radius: 6px;
    background-color: #2f2f2f;
    color: #efefef;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #dc2626;
    background-color: #3c3c3c;
}

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

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

.submit-btn {
    padding: 0.875rem 2rem;
    background-color: rgba(220, 38, 38, 0.1);
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: center;
}

.submit-btn:hover {
    background-color: rgba(220, 38, 38, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
}

/*FOOTER*/
.site-footer {
    padding: 2rem;
    text-align: center;
    color: #858585;
    font-size: 0.875rem;
    border-top: 1px solid #505050;
    margin-top: 4rem;
}

.site-footer p {
    margin-bottom: 0.5rem;
}

/*SUCCESS POPUP*/
.popup {
    position: fixed;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #dc2626;
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    transition: top 0.5s ease;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.popup.show {
    top: 20px;
}

/*RESPONSIVE DESIGN*/

/*tablet*/
@media (max-width: 1024px) {
    .left-panel {
        padding: 4rem 4rem 3rem 3rem;
    }
    
    .right-panel {
        padding: 4rem 3rem 3rem 4rem;
    }
    
    .profile-header h1 {
        font-size: 2.5rem;
    }
}

/*mobile*/
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-panel {
        position: relative;
        width: 100%;
        height: auto;
        padding: 3rem 2rem;
    }
    
    .left-content {
        max-width: 100%;
        margin-left: 0;
    }
    
    .right-panel {
        margin-left: 0;
        width: 100%;
        padding: 3rem 2rem;
    }
    
    .profile-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1.125rem;
    }
    
    .section-nav {
        display: none;
    }
    
    .section-heading-mobile {
        display: block;
    }
    
    .experience-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .cursor-spotlight {
        display: none;
    }
    
    .carousel-btn {
        font-size: 2rem;
    }
    
    .about-carousel {
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-header h1 {
        font-size: 1.75rem;
    }
    
    .project-card,
    .skills-content,
    .about-content,
    .contact-form {
        padding: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }
}

@media (max-width: 768px) {
    .carousel-btn {
        font-size: 2.5rem;
    }

    .about-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}