/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Floating Elements */
.floating-element {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-cube {
    position: fixed;
    top: 15%;
    right: 10%;
    width: 250px;
    height: auto;
    z-index: 10;
}

.floating-tools {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 255, 159, 0.3));
}



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}



/* Page System */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 80px;
}

.page.active {
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 255, 159, 0.2);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover,
.nav-link.active {
    color: #00ff9f;
    background: rgba(0, 255, 159, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Home Page */
#home {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero-profile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
}



.hero-photo {
    flex-shrink: 0;
    margin-left: -2rem;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}



.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.hero-text {
    text-align: left;
}



.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #00ff9f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease;
}

.highlight {
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.5rem;
    color: #00ccff;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-education {
    font-size: 1.1rem;
    color: #00ff9f;
    font-weight: 500;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease 0.3s both;
}

.hero-schools {
    font-size: 1rem;
    color: #888888;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.school-logos {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease 0.45s both;
}

.school-logo {
    height: 40px;
    width: auto;
    opacity: 0.8;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.school-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Experience Showcase */
.experience-showcase {
    margin: 3rem 0;
}

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

.experience-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.experience-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.experience-card h3 {
    color: #00ff9f;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.experience-card .company {
    color: #00ccff;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.experience-card .period {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.experience-card p {
    color: #cccccc;
    line-height: 1.6;
}

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

.company-link:hover {
    color: #00ff9f;
    border-bottom: 1px solid #00ff9f;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.5s both;
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    color: #0f0f0f;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 255, 159, 0.3);
}

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

.btn-secondary:hover {
    background: #00ff9f;
    color: #0f0f0f;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Projects Page */
#projects {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.project-card h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.project-card p {
    color: #cccccc;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-card a {
    color: #00ccff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-card a:hover {
    color: #00ff9f;
}

/* Writing Page */
#writing {
    background: linear-gradient(135deg, #16213e 0%, #0f3460 50%, #533483 100%);
}

.writing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.writing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.writing-card:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.writing-card h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.writing-card .date {
    color: #ff6b6b;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.writing-card a {
    color: #00ccff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.writing-card a:hover {
    color: #00ff9f;
}

/* Skills Page */
#skills {
    background: linear-gradient(135deg, #0f3460 0%, #533483 50%, #e94560 100%);
}

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

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.2);
}

.skill-category h3 {
    color: #00ff9f;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: rgba(0, 255, 159, 0.1);
    color: #00ff9f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 255, 159, 0.3);
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: rgba(0, 255, 159, 0.2);
    transform: translateY(-2px);
}

.skills-tools {
    position: fixed;
    top: 20%;
    right: 10%;
    z-index: 10;
}

.skills-tools-image {
    width: 300px;
    height: auto;
    margin-top: 350px;
    filter: drop-shadow(0 10px 20px rgba(0, 255, 159, 0.3));
}

/* Connect Page */
#connect {
    background: linear-gradient(135deg, #533483 0%, #e94560 50%, #f39c12 100%);
}

.connect-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    position: relative;
}

.connect-envelope {
    width: 120px;
    height: 120px;
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 3rem;
    font-size: 3rem;
    color: #0f0f0f;
    animation: envelopeGlow 3s ease-in-out infinite alternate;
    box-shadow: 0 0 50px rgba(0, 255, 159, 0.5);
}

@keyframes envelopeGlow {
    0% { box-shadow: 0 0 30px rgba(0, 255, 159, 0.3); }
    100% { box-shadow: 0 0 60px rgba(0, 255, 159, 0.8); }
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 159, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 200px;
    justify-content: center;
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: #00ff9f;
    box-shadow: 0 10px 30px rgba(0, 255, 159, 0.3);
    background: rgba(0, 255, 159, 0.1);
}

.social-link i {
    font-size: 1.5rem;
    color: #00ff9f;
}

.social-link span {
    font-weight: 500;
}

/* Loading */
.loading {
    text-align: center;
    color: #00ff9f;
    font-size: 1.2rem;
    padding: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Chatbot Styles */
.chatbot {
    position: fixed;
    top: 6rem;
    right: 2rem;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-toggle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    overflow: hidden;
    background: linear-gradient(45deg, #00ff9f, #00ccff);
}

.chatbot-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 255, 159, 0.4);
}

.chatbot-container {
    position: absolute;
    top: 70px;
    right: 0;
    width: 300px;
    height: 400px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(0, 255, 159, 0.3);
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 255, 159, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    color: #00ff9f;
    margin: 0;
    font-size: 1rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: #888;
    cursor: pointer;
    font-size: 1rem;
    padding: 0.25rem;
    transition: color 0.3s ease;
}

.chatbot-close:hover {
    color: #00ff9f;
}

.chatbot-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    margin-bottom: 0.5rem;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.user-message .message-content {
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    color: #0f0f0f;
}

.bot-message .message-content {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.typing-indicator .message-content {
    background: rgba(255, 255, 255, 0.05);
    color: #888;
}

.chatbot-input {
    padding: 1rem;
    border-top: 1px solid rgba(0, 255, 159, 0.2);
    display: flex;
    gap: 0.5rem;
}

.chatbot-input input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid rgba(0, 255, 159, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 0.9rem;
}

.chatbot-input input:focus {
    outline: none;
    border-color: #00ff9f;
}

.chatbot-input input::placeholder {
    color: #888;
}

.chatbot-input button {
    padding: 0.75rem 1rem;
    background: linear-gradient(45deg, #00ff9f, #00ccff);
    border: none;
    border-radius: 8px;
    color: #0f0f0f;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chatbot-input button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 159, 0.3);
}

.chatbot-input button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: rgba(10, 10, 10, 0.95);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-education {
        font-size: 1rem;
    }

    .hero-schools {
        font-size: 0.9rem;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
        justify-content: center;
    }

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

    .social-links {
        gap: 1rem;
    }

    .social-link {
        min-width: 80px;
    }

    .chatbot {
        top: 5rem;
        right: 1rem;
    }

    .chatbot-container {
        width: 280px;
        height: 350px;
    }

    .chatbot-toggle {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }

    .school-logos {
        gap: 1.5rem;
    }

    .school-logo {
        height: 35px;
    }

    .floating-cube {
        width: 200px;
        top: 12%;
    }

    .skills-tools-image {
        width: 200px;
    }




}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-container {
        padding: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .school-logos {
        gap: 1rem;
    }

    .school-logo {
        height: 30px;
    }

    .floating-cube {
        width: 150px;
        top: 10%;
    }

    .skills-tools-image {
        width: 150px;
    }





    .projects-grid,
    .writing-grid,
    .experience-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .chatbot-container {
        width: 260px;
        height: 300px;
    }
}