/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #000000;
    color: #F0F0F0;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}


/* Landing page styles */
.landing-page {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-label {
    margin-top: 12px; /* space under button */
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.65); /* white, slightly transparent */
    font-weight: 300;
    letter-spacing: 0.5px;
    text-align: center;
    user-select: none; /* optional: can’t highlight it */
}


#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -100;
    filter: brightness(0.4) blur(1px);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px); /* For Safari compatibility */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 10;
}

.overlay h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Liquid Glass Button Styles */
.liquid-glass-button {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 32px;
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    cursor: pointer;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.liquid-glass-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.liquid-glass-button:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.liquid-glass-button:hover::before {
    left: 100%;
}

.liquid-glass-button:active {
    transform: translateY(0);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Navigation styles */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: #F0F0F0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 8px 16px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Main content styles */
.content {
    display: none;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.content.fade-in {
    opacity: 1;
}

.page-section {
    padding: 120px 40px 80px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-section.active {
    opacity: 1;
    transform: translateY(0);
}

.page-section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 3rem;
    color: #ffffff;
    text-align: center;
    letter-spacing: -0.02em;
}

/* Home page styles */
.home-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    gap: 4rem;
}

.profile-section {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    gap: 3rem;
}

.profile-photo-placeholder {
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.introduction-text {
    flex-grow: 1;
    text-align: left;
    max-width: 600px;
}

.introduction-text h2,
.experience-details h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.introduction-text p,
.experience-details > p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.experience-details {
    width: 100%;
    text-align: center;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

/* Liquid Glass Card Styles */
.liquid-glass-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.liquid-glass-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-4px);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.experience-item h3,
.project-card h3,
.blog-post h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.experience-item p,
.project-card p,
.blog-post p {
    color: #d0d0d0;
    line-height: 1.6;
}

/* Projects page styles */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    justify-items: center;
}

/* Center align when fewer than 3 items in last row */
.projects-grid .project-card:nth-last-child(1):nth-child(3n-1) {
    grid-column-start: 2;
}

.projects-grid .project-card:nth-last-child(2):nth-child(3n-1),
.projects-grid .project-card:nth-last-child(1):nth-child(3n-1) ~ .project-card {
    grid-column-start: 2;
}

.project-card {
    text-align: center;
    width: 100%;
    max-width: 350px;
}

.project-card .liquid-glass-button {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding: 12px 24px;
}

/* Blog page styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
}

.blog-post {
    text-align: left;
}

.post-date {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin-bottom: 1rem;
}

.blog-post .liquid-glass-button {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    padding: 12px 24px;
}

/* Contact form styles */
.contact-form {
    width: 100%;
    max-width: 600px;
    text-align: left;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #ffffff;
}

.liquid-glass-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
    color: #F0F0F0;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.liquid-glass-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.liquid-glass-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Transition effects */
.landing-page.fade-out {
    opacity: 0;
    transition: opacity 1s ease-out;
}

/* Responsive design */
@media (max-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Center align when only one item in last row for 2-column layout */
    .projects-grid .project-card:nth-last-child(1):nth-child(2n-1) {
        grid-column-start: 1;
        grid-column-end: 3;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-photo-placeholder {
        margin-bottom: 2rem;
        width: 200px;
        height: 200px;
    }

    .introduction-text {
        text-align: center;
    }

    .nav-links {
        gap: 1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .page-section {
        padding: 100px 20px 60px;
    }

    .experience-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    /* Reset center alignment for mobile */
    .projects-grid .project-card:nth-last-child(1):nth-child(3n-1),
    .projects-grid .project-card:nth-last-child(2):nth-child(3n-1),
    .projects-grid .project-card:nth-last-child(1):nth-child(3n-1) ~ .project-card {
        grid-column-start: auto;
    }

    .overlay h1 {
        font-size: 2.5rem;
    }

    .liquid-glass-button {
        padding: 14px 28px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .profile-photo-placeholder {
        width: 150px;
        height: 150px;
    }

    .introduction-text h2,
    .experience-details h2 {
        font-size: 2rem;
    }

    .page-section h2 {
        font-size: 2rem;
    }
}


/* Admin Portal Styles */
.admin-link {
    color: #ff6b6b !important;
    font-weight: 600;
}

.admin-section {
    background: rgba(20, 20, 20, 0.95);
}

.admin-content {
    width: 100%;
    max-width: 1200px;
}

.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.admin-tab-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 24px;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.admin-tab-button.active,
.admin-tab-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0;
}

.admin-list {
    display: grid;
    gap: 1rem;
}

.admin-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.admin-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.admin-item h4 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.admin-item p {
    color: #d0d0d0;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.admin-item-actions button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.edit-btn {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.4);
}

.edit-btn:hover {
    background: rgba(59, 130, 246, 0.3);
}

.delete-btn {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
}

.delete-btn:hover {
    background: rgba(239, 68, 68, 0.3);
}

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

.modal-content {
    position: relative;
    margin: 5% auto;
    padding: 2rem;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}
.modal-content {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.modal-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Edge */
}
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #ffffff;
}

.modal h3 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.modal .post-date {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.modal .post-content {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.1rem;
}

.modal .project-link {
    color: #e0e0e0;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal .project-link a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.modal .project-link a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.modal .project-description {
    color: #e0e0e0;
    line-height: 1.7;
    font-size: 1.1rem;
}

/* Admin Form Styles */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.admin-form label {
    color: #ffffff;
    font-weight: 500;
}

.admin-form input,
.admin-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    color: #F0F0F0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1rem;
    transition: all 0.3s ease;
    resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.admin-form textarea {
    min-height: 120px;
}

.admin-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.admin-form .form-actions button {
    padding: 12px 24px;
}

.cancel-btn {
    background: rgba(107, 114, 128, 0.2);
    border-color: rgba(107, 114, 128, 0.4);
}

.cancel-btn:hover {
    background: rgba(107, 114, 128, 0.3);
}

/* Responsive adjustments for admin */
@media (max-width: 768px) {
    .admin-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .admin-item-actions {
        justify-content: center;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 1.5rem;
    }
    
    .admin-form .form-actions {
        flex-direction: column;
    }
}


/* Hide Manus watermark */
[data-testid="manus-watermark"],
.manus-watermark,
div[style*="position: fixed"][style*="bottom: 16px"][style*="right: 16px"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}
/* Social Links Styles */
.social-links-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 14px 28px;
    font-size: 1.1rem;
    text-decoration: none;
    color: #ffffff;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.5rem;
}

/* Responsive adjustments for social links */
@media (max-width: 768px) {
    .social-links-container {
        flex-direction: column;
        align-items: center;
    }
    .social-link {
        width: 80%;
        justify-content: center;
    }
}

