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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Quicksand', sans-serif;
    background-color: #1a1a1a; /* Fallback color shown immediately */
    background-image: url('images/background.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 50px;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.navbar.hidden {
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
}

.navbar.floating {
    bottom: 30px;
    background: rgba(20, 20, 20, 0.98);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-items {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #D666F2;
    padding: 12px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.nav-item:hover,
.nav-item.active {
    color: #000000;
    background: rgba(106, 38, 173, 1);
    transform: translateY(-2px);
}

/* Main Content */
.main-content {
    padding-top: 0;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

.content-container {
    max-width: 60vw;
    width: 60vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    border-radius: 0;
    padding: 50px 35px;
    border: none;
    box-shadow: 
        0 0 50px rgba(202, 90, 230, 0.7),
        0 0 100px rgba(202, 90, 230, 0.7),
        0 25px 50px rgba(0, 0, 0, 0.4);
}

/* Hero Section */
.hero {
    text-align: center;
    max-width: 60vw;
    width: 60vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(0px);
    border-radius: 0;
    padding: 50px 35px;
    border: none;
    box-shadow: 
        0 0 50px rgba(202, 90, 230, 0.7),
        0 0 100px rgba(202, 90, 230, 0.7),
        0 25px 50px rgba(0, 0, 0, 0.4);
}

.hero-content {
    animation: fadeInUp 1s ease 0.2s both;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
    padding: 2px;
}

.profile-image img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

.profile-image i {
    font-size: 60px;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    font-family: 'Quicksand', sans-serif;
    color: #D666F2;
    text-shadow: 0 4px 8px #6A26AD;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: #888;
    margin-bottom: 25px;
    font-weight: 400;
}

.hero-description {
    margin-bottom: 35px;
}

.hero-description p {
    font-size: 1.1rem;
    color: #aaa;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    text-align: center;
    letter-spacing: 3px;
    position: relative;
    font-family: 'Quicksand', sans-serif;
    color: #D666F2;
    text-shadow: 0 4px 8px #6A26AD;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* About Section */
.about-content {
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 25px;
    line-height: 1.8;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
}

.skills-column {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.skill-item {
    background: rgba(45, 45, 45, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: all 0.2s ease;
}

.skill-item:hover {
    transform: translateY(-2px);
    background: rgba(55, 55, 55, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.skill-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.skill-icon {
    font-size: 1.5rem;
    color: #667eea;
    width: 24px;
    text-align: center;
}

.skill-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    flex: 1;
}

.skill-bar {
    display: flex;
    gap: 3px;
    height: 12px;
}

.skill-segment {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.skill-segment.filled {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #667eea 100%);
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.4);
    border-color: rgba(102, 126, 234, 0.6);
}

.skill-segment.filled::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Hover effect for skill bars */
.skill-item:hover .skill-segment.filled {
    background: linear-gradient(90deg, #764ba2 0%, #667eea 50%, #764ba2 100%);
    box-shadow: 0 0 12px rgba(102, 126, 234, 0.6);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: rgba(45, 45, 45, 0.9);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.project-card:hover {
    transform: translateY(-3px);
    background: rgba(55, 55, 55, 0.95);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.project-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.project-icon i {
    font-size: 2rem;
    color: white;
}

.project-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.project-card p {
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 25px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    color: #764ba2;
    transform: translateX(5px);
}

/* Profiles Section */
.profiles-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.profile-category {
    background: rgba(45, 45, 45, 0.9);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.profile-category:hover {
    background: rgba(55, 55, 55, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    padding-bottom: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-title:hover {
    color: #667eea;
}

.category-title i:first-child {
    color: #667eea;
    font-size: 1.5rem;
}

.category-title span {
    flex: 1;
    margin-left: 12px;
}

.toggle-icon {
    font-size: 1rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.category-title.expanded .toggle-icon {
    transform: rotate(180deg);
}

.category-links {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.category-links.expanded {
    display: flex;
}

.profile-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.profile-link:hover {
    color: #fff;
    background: rgba(102, 126, 234, 0.15);
    border-left-color: #667eea;
    transform: translateX(5px);
}

.profile-link i {
    font-size: 1.2rem;
    color: #667eea;
    width: 20px;
    text-align: center;
}

.profile-link span {
    font-weight: 500;
    font-size: 0.95rem;
}

/* Other Links Section */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.link-card {
    display: block;
    padding: 25px 20px;
    background: rgba(45, 45, 45, 0.9);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.link-card:hover {
    background: rgba(55, 55, 55, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.link-card i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 15px;
    display: block;
}

.link-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.link-card p {
    color: #aaa;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    display: none;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .hero,
    .content-container {
        max-width: 80vw;
        width: 80vw;
    }
}

@media (max-width: 768px) {
    .navbar {
        margin: 0 10px 20px 10px;
        padding: 12px 15px;
        border-radius: 0 0 20px 20px;
        width: calc(100% - 20px);
        left: 10px;
        transform: none;
    }
    
    .navbar.hidden {
        transform: translateY(120px);
        opacity: 0;
    }
    
    .nav-items {
        gap: 8px;
        justify-content: space-between;
        width: 100%;
    }
    
    .nav-item {
        padding: 10px 8px;
        font-size: 9px;
        flex: 1;
        min-width: 0;
    }
    
    .nav-item i {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .nav-item span {
        font-size: 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: 0;
    }
    
    .hero,
    .content-container {
        max-width: 95vw;
        width: 95vw;
        padding: 30px 20px;
        margin: 0;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }
    
    .hero-description p {
        font-size: 0.9rem;
    }
    
    .about-text p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .navbar {
        bottom: 10px;
        margin: 0 5px;
        padding: 8px 10px;
        width: calc(100% - 10px);
        left: 5px;
    }
    
    .navbar.hidden {
        transform: translateY(100px);
        opacity: 0;
    }
    
    .nav-item span {
        display: none;
    }
    
    .nav-item {
        padding: 12px 8px;
        font-size: 8px;
    }
    
    .nav-item i {
        font-size: 18px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    
    .hero,
    .content-container {
        max-width: 98vw;
        width: 98vw;
        padding: 20px 15px;
        margin: 0;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }
    
    .hero-description p {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .skill-item {
        padding: 15px;
    }
    
    .skill-info {
        gap: 10px;
    }
    
    .skill-name {
        font-size: 0.9rem;
    }
    
    .link-card {
        padding: 15px;
    }
    
    .link-card h3 {
        font-size: 1rem;
    }
    
    .link-card p {
        font-size: 0.85rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 30px;
    }
}

/* Additional breakpoint for very small screens */
@media (max-width: 360px) {
    .hero,
    .content-container {
        max-width: 100vw;
        width: 100vw;
        padding: 15px 10px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
    }
    
    .hero-description p {
        font-size: 0.75rem;
    }
    
    .nav-item {
        padding: 10px 6px;
    }
    
    .nav-item i {
        font-size: 16px;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1001;
}

.scroll-progress {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Hide sections initially */
.section:not(.active) {
    display: none;
}

/* Show all sections when JavaScript is disabled */
.no-js .section {
    display: flex !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}
