/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #112240;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    display: flex;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
}

/* Left Sidebar */
.sidebar {
    width: 300px;
    background-color: #112240;
    padding: 30px 25px 20px 25px;
    position: fixed;
    height: 100vh;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.sidebar-top {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-bottom: 15px;
}

.sidebar-top::-webkit-scrollbar {
    width: 4px;
}

.sidebar-top::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-top::-webkit-scrollbar-thumb {
    background: #64ffda;
    border-radius: 2px;
}

.sidebar-top::-webkit-scrollbar-thumb:hover {
    background: #52e8c8;
}

.profile {
    margin-bottom: 25px;
}

.name {
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.2;
}

.title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64ffda;
    margin-bottom: 12px;
}

.tagline {
    font-size: 0.85rem;
    color: #a8b2d1;
    line-height: 1.4;
    max-width: 250px;
}

/* Navigation */
.navigation {
    margin-bottom: 25px;
    flex-shrink: 0;
}

.nav-list {
    list-style: none;
}

.nav-item {
    margin-bottom: 12px;
    position: relative;
}

.nav-link {
    color: #a8b2d1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
    padding-left: 30px;
}

.nav-link:hover {
    color: #64ffda;
}

.nav-item.active .nav-link {
    color: #64ffda;
}

.nav-item.active .nav-link::before,
.nav-item .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 1px;
    background-color: #64ffda;
    transition: width 0.3s ease;
}

.nav-item.active .nav-link::before {
    width: 25px;
}

.nav-item .nav-link::before {
    width: 0;
    background-color: #a8b2d1;
}

.nav-item:hover .nav-link::before {
    width: 15px;
}

/* Contact Info */
.contact-info {
    margin-bottom: 10px;
    flex-shrink: 0;
}

.contact-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-label {
    font-size: 0.8rem;
    color: #64ffda;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 3px;
}

.contact-value {
    font-size: 0.9rem;
    color: #a8b2d1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value:hover {
    color: #64ffda;
}

/* Download CV Button */
.download-cv-container {
    width: 100%;
    margin-top: 0;
    flex-shrink: 0;
}

.download-cv-btn {
    width: 100%;
    padding: 10px 18px;
    background: linear-gradient(135deg, #64ffda, #1e3a8a);
    border: 2px solid #64ffda;
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.download-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.5);
    background: linear-gradient(135deg, #52e8c8, #1a2f6e);
}

.download-cv-btn:active {
    transform: translateY(0);
}

.download-icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
}


/* Main Content */
.main-content {
    flex: 1;
    margin-left: 300px;
    padding: 0 60px;
    padding-top: 30px;
    background-color: #112240;
    overflow-y: auto;
    height: 100vh;
    scroll-behavior: smooth;
}

.content-section {
    display: block;
    max-width: 800px;
    min-height: 100vh;
    padding-top: 0;
    padding-bottom: 60px;
}

.content-section#about {
    min-height: 100vh;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 2px;
    background-color: #64ffda;
}

.section-content {
    color: #a8b2d1;
    font-size: 1rem;
    line-height: 1.7;
}

.section-content p {
    margin-bottom: 16px;
}

#about .section-content p:last-child {
    margin-bottom: 0;
}

/* Experience Section */
.experience-item {
    margin-bottom: 40px;
    padding-bottom: 25px;
    border-bottom: 1px solid #233554;
}

.experience-item:last-child {
    border-bottom: none;
}

.experience-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.experience-period {
    color: #64ffda;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.experience-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.experience-location {
    color: #a8b2d1;
    font-size: 0.9rem;
    margin: 0;
    font-style: italic;
}

.experience-type {
    color: #64ffda;
    font-weight: 600;
    font-style: normal;
}

.experience-description {
    color: #a8b2d1;
    margin-bottom: 20px;
    line-height: 1.7;
    word-wrap: break-word;
    white-space: normal;
}

/* Skills Section */
.skills-category {
    margin-bottom: 45px;
}

.skills-category:last-child {
    margin-bottom: 0;
}

.skills-category-title {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    position: relative;
    padding-left: 15px;
}

.skills-category-title::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #64ffda;
}

/* Tech Tags */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-tag {
    background-color: #233554;
    color: #64ffda;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid #64ffda;
    transition: all 0.3s ease;
}

.tech-tag.cert-tag {
    background-color: #0a192f;
    border: 1px solid #f0db4f;
    color: #f0db4f;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 255, 218, 0.2);
}

/* Projects Section */
.project-item {
    margin-bottom: 40px;
    padding: 30px;
    background-color: #0a192f;
    border-radius: 10px;
    border: 1px solid #233554;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(100, 255, 218, 0.1);
}

.project-title {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-description {
    color: #a8b2d1;
    margin-bottom: 20px;
    line-height: 1.7;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    color: #64ffda;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid #64ffda;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    background-color: rgba(100, 255, 218, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(100, 255, 218, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        width: 250px;
        padding: 30px 20px;
    }
    
    .main-content {
        margin-left: 250px;
        padding: 30px 40px 0 40px;
    }
    
    .name {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        position: static;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
        padding: 30px 20px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 30px;
    }
    
    .profile {
        margin-bottom: 0;
        width: 100%;
    }
    
    .navigation {
        margin-bottom: 0;
        margin-left: 0;
        width: 100%;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .nav-item {
        margin-bottom: 0;
    }
    
    .nav-link {
        padding-left: 0;
        font-size: 1.2rem;
    }
    
    .nav-link::before {
        display: none;
    }
    
    .contact-info {
        width: 100%;
    }
    
    .main-content {
        margin-left: 0;
        padding: 30px 20px 0 20px;
    }
    
    .name {
        font-size: 1.8rem;
    }
    
    .title {
        font-size: 1.1rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
}

/* Floating Action Button */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.fab-main {
    position: relative;
}

.fab-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64ffda, #1e3a8a);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4);
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
}

.fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(100, 255, 218, 0.6);
}

.fab-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.fab-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.fab-label {
    color: #64ffda;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.fab-hint {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(100, 255, 218, 0.1);
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #64ffda;
    opacity: 0;
    visibility: hidden;
    animation: fabHintPulse 5s ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes fabHintPulse {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) translateX(10px);
    }
    10% {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) translateX(0);
    }
    20%, 40%, 60%, 80% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    30%, 50%, 70% {
        opacity: 0.6;
        transform: translateY(-50%) translateX(0);
    }
    90% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    100% {
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) translateX(10px);
    }
}

.fab-hint-text {
    color: #64ffda;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.fab-hint-arrow {
    width: 20px;
    height: 20px;
    fill: #64ffda;
    animation: fabArrowBounce 1s ease-in-out infinite;
}

@keyframes fabArrowBounce {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

.fab-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.fab-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.fab-item:nth-child(1) {
    background: #0077b5; /* LinkedIn blue */
}

.fab-item:nth-child(2) {
    background: #333; /* GitHub black */
}

.fab-item:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.fab-item-icon {
    width: 20px;
    height: 20px;
    fill: white;
}

@media (max-width: 768px) {
    .main-content {
        padding: 20px 15px 0 15px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-item {
        padding: 20px;
    }
    
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-button {
        width: 55px;
        height: 55px;
    }
    
    .fab-item {
        width: 45px;
        height: 45px;
    }
    
    .fab-hint {
        right: auto;
        left: 50%;
        top: auto;
        bottom: 70px;
        transform: translateX(-50%);
        flex-direction: column;
        padding: 6px 12px;
    }
    
    @keyframes fabHintPulse {
        0% {
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(10px);
        }
        10% {
            opacity: 1;
            visibility: visible;
            transform: translateX(-50%) translateY(0);
        }
        20%, 40%, 60%, 80% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        30%, 50%, 70% {
            opacity: 0.6;
            transform: translateX(-50%) translateY(0);
        }
        90% {
            opacity: 1;
            transform: translateX(-50%) translateY(0);
        }
        100% {
            opacity: 0;
            visibility: hidden;
            transform: translateX(-50%) translateY(10px);
        }
    }
    
    .fab-hint-text {
        font-size: 0.75rem;
    }
    
    .fab-hint-arrow {
        width: 16px;
        height: 16px;
        transform: rotate(90deg);
    }
    
    @keyframes fabArrowBounce {
        0%, 100% {
            transform: rotate(90deg) translateX(0);
        }
        50% {
            transform: rotate(90deg) translateX(5px);
        }
    }
    
    .fab-item-icon {
        width: 18px;
        height: 18px;
    }
    
    /* Back to Top Button for tablets and mobile */
    .back-to-top {
        width: 50px !important;
        height: 50px !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 9999 !important;
        display: flex !important;
        position: fixed !important;
        border-radius: 50% !important;
        background: linear-gradient(135deg, #64ffda, #1e3a8a) !important;
        border: none !important;
        cursor: pointer !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4) !important;
        transition: all 0.3s ease !important;
        opacity: 0 !important;
        visibility: hidden !important;
    }
    
    .back-to-top-icon {
        width: 18px;
        height: 18px;
    }
    
    .back-to-top:hover {
        transform: translateX(-50%) scale(1.1) !important;
        box-shadow: 0 6px 25px rgba(100, 255, 218, 0.6) !important;
    }
    
    .back-to-top.visible {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #64ffda, #1e3a8a);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(100, 255, 218, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1001;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.back-to-top:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 6px 25px rgba(100, 255, 218, 0.6);
}

.back-to-top-icon {
    width: 20px;
    height: 20px;
    fill: white;
}
