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

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #1a1a1a;
    background-image: url('../assets/Website Background.svg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
}

/* Navigation */
nav {
    background: #1a1a1a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

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

.nav-menu a {
    font-family: 'Poppins', sans-serif;
    text-decoration: none;
    color: #b0b0b0;
    font-weight: 400;
    transition: color 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #ffffff;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 600;
    margin-bottom: -2.0rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-100px);
    animation: fadeInDown 1s ease-out forwards;
}

.hero-content h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(-50px);
    animation: fadeInDown 1s ease-out 0.5s forwards;
}

.hero-content p {
    font-family: 'Lato', sans-serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #b0b0b0;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out 1.5s forwards;
    position: relative;
}

.hero-content p::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    opacity: 0;
    animation: fadeIn 1s ease-out 2.5s forwards;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
        transform: translateY(-50px);
    }
    
    .hero-content p {
        transform: translateY(30px);
    }
}
/* Main content sections */
main {
    margin-top: 80px;
    padding: 2rem;
}

.about-hero,
.projects-hero,
.contact-hero {
    text-align: center;
    padding: 4rem 0;
    background: #1a1a1a;
}

.about-hero h1,
.projects-hero h1,
.contact-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #ffffff;
}

.about-hero p,
.projects-hero p,
.contact-hero p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #b0b0b0;
}

/* About page */
.about-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    display: grid;
    gap: 3rem;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2rem;
    font-size: 2rem;
    text-align: center;
}

.about-content p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Skills Tree */
.skills-section {
    margin-top: 2rem;
}

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

.skill-category {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #333333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.skill-category:hover {
    transform: translateY(-5px);
    border-color: #555;
}

.skill-category h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    border-bottom: 2px solid #404040;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #555 #2d2d2d;
}

.skill-list::-webkit-scrollbar {
    width: 6px;
}

.skill-list::-webkit-scrollbar-track {
    background: #2d2d2d;
}

.skill-list::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 3px;
}

.skill-list::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* Dropdown Skill Items */
.skill-item-dropdown {
    font-family: 'Lato', sans-serif;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.skill-header {
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    color: #e0e0e0;
    padding: 0.5rem 0;
    padding-left: 1rem;
    cursor: pointer;
    position: relative;
    transition: color 0.3s ease;
    user-select: none;
}

.skill-header:before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
    color: #b0b0b0;
    font-size: 0.8rem;
    font-weight: bold;
}

.skill-item-dropdown.active .skill-header:before {
    transform: translateY(-50%) rotate(90deg);
}

.skill-header:hover {
    color: #ffffff;
}

.skill-header:hover:before {
    color: #ffffff;
}

.skill-description {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #b0b0b0;
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.85rem;
    line-height: 1.4;
}

.skill-level {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.skill-detail {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #b0b0b0;
    font-size: 0.85rem;
    line-height: 1.4;
}

.skill-item-dropdown.active .skill-description {
    max-height: 120px;
    padding: 0.25rem 0 0.5rem 1.5rem;
}

.skill-list li:not(.skill-item-dropdown) {
    display: none;
}

.skill-list li:not(.skill-item-dropdown):before {
    display: none;
}

.skill-list li:not(.skill-item-dropdown):hover {
    display: none;
}

.skill-list li:not(.skill-item-dropdown):hover:before {
    display: none;
}

.skills-grid {
    display: none;
}

.skill-item {
    display: none;
}

@media (max-width: 768px) {
    .skills-tree {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        padding: 1rem;
        gap: 2rem;
    }
    
    .skill-category {
        padding: 1rem;
    }
}

/* Projects page */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
    align-items: stretch;
}

.project-card {
    background: #1a1a1a;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    transition: transform 0.3s;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #555;
}

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

.project-card h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-summary {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #b0b0b0;
    margin-bottom: 0;
}

.project-description {
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.project-card p {
    font-family: 'Lato', sans-serif;
    font-weight: 300;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.project-links {
    margin-top: auto;
}

.btn {
    font-family: 'Poppins', sans-serif;
    display: inline-block;
    background: #404040;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    margin-right: 1rem;
    transition: background 0.3s;
    border: 1px solid #555;
    font-weight: 400;
}

.btn:hover {
    background: #505050;
}

.btn-secondary {
    background: #333333;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: #444444;
}

/* Contact page */
.contact-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 0;
}

.contact-content h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-item {
    font-family: 'Lato', sans-serif;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #1a1a1a;
    border-radius: 10px;
    border: 1px solid #333333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: #555;
}

.contact-label {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 130px;
}

.contact-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    color: #b0b0b0;
    flex-shrink: 0;
}

.contact-item strong {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    color: #ffffff;
}

.contact-item a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
    margin-left: 1rem;
    text-align: left;
}

.contact-item a:hover {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .about-hero h1,
    .projects-hero h1,
    .contact-hero h1 {
        font-size: 2rem;
    }
}

/* API Demo Floating Elements */
.hero {
    position: relative;
    height: 100vh;
    background: rgba(10, 10, 10, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.api-demo-floating {
    position: fixed;
    bottom: 15vh;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 2s forwards;
    z-index: 10;
    width: 100vw;
    pointer-events: none;
}

.api-text-element {
    text-align: center;
    color: #e0e0e0;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.api-text-element:hover {
    transform: translateY(-2px);
    color: #007bff;
}

.api-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.api-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #b0b0b0;
}

.api-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #007bff;
    min-height: 1.5rem;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .api-demo-floating {
        gap: 3rem;
        bottom: 12vh;
    }
}

@media (max-width: 768px) {
    .api-demo-floating {
        flex-direction: column;
        gap: 2rem;
        bottom: 10vh;
    }
    
    .api-label {
        font-size: 0.9rem;
    }
    
    .api-value {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .api-demo-floating {
        bottom: 8vh;
        gap: 1.5rem;
    }
}