/* Global Styles */
:root {
    --primary-color: #a500fd;
    --text-color: #ffffff;
    --bg-color: #000000;
    --overlay-color: rgba(0, 0, 0, 0.85);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(165, 0, 253, 0.2);
    --font-main: 'Poppins', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow: hidden;
    /* Prevent body scroll, handle in sections */
    height: 100vh;
}

/* Fixed Background */
.fixed-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    z-index: -1;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.navbar.visible {
    opacity: 1;
    visibility: visible;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Hero Nav (Home Only) */
.hero-nav {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.hero-nav-link {
    text-decoration: none;
    color: #ccc;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s;
}

.hero-nav-link:hover,
.hero-nav-link.active {
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

/* Content Container */
.content-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Sections */
.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    overflow: hidden;
    /* Default hidden overflow */
}

.section.active {
    opacity: 1;
    visibility: visible;
    z-index: 10;
}

/* Home Section */
#home {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Left align like reference */
    padding-left: 10%;
}

.hero-content {
    max-width: 600px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-content .subtitle {
    font-size: 1.5rem;
    color: #ccc;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 20px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.social-links a {
    color: #ccc;
    font-size: 1.5rem;
    transition: color 0.3s, transform 0.3s;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.2);
}

/* About Section */
#about {
    overflow-y: auto;
    /* Scrollable content */
}

.about-overlay {
    min-height: 100%;
    width: 100%;
    background-color: var(--overlay-color);
    /* Translucent overlay */
    padding: 100px 10% 50px;
    /* Top padding for navbar space */
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

.about-header {
    margin-bottom: 50px;
}

.about-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-header .underline {
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

/* Profile Section */
.profile-section {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    margin-bottom: 60px;
    align-items: flex-start;
}

.profile-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
    /* Square/slightly rounded like reference */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.profile-text {
    flex: 1;
}

.profile-text h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.profile-text .tagline {
    font-style: italic;
    color: #ccc;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.details-grid {
    display: flex;
    flex-wrap: wrap;
    /* Keep wrap for mobile compliance, but spacing should prevent desktop wrap */
    gap: 20px;
    /* Reduced from 40px to 20px */
    margin-bottom: 30px;
    align-items: center;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.detail-item .icon {
    color: var(--primary-color);
}

.detail-item .label {
    font-weight: 600;
}

.detail-item .value {
    color: #ccc;
}

.bio {
    line-height: 1.8;
    color: #ddd;
    font-size: 1.05rem;
}

/* Skills Section */
.skills-section {
    margin-bottom: 60px;
}

.skills-section h3,
.hobbies-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

.skill-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s, background 0.3s;
}

.skill-card:hover {
    transform: translateY(-5px);
    background: var(--card-hover);
}

.skill-card i,
.skill-card svg {
    font-size: 1.8rem;
    color: var(--primary-color);
    /* Icon color primarily accent */
}

.skill-card span {
    font-weight: 500;
}

/* Hobbies Section */
.hobbies-section {
    margin-bottom: 50px;
}

.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.hobby-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.hobby-card:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
    transform: translateY(-5px);
}

.hobby-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    background: rgba(165, 0, 253, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hobby-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.hobby-card p {
    color: #aaa;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .profile-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .profile-image img {
        width: 100%;
        max-width: 300px;
    }

    .detail-item {
        justify-content: center;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #home {
        padding-left: 5%;
        justify-content: center;
        text-align: center;
    }

    .about-overlay {
        padding-top: 80px;
    }
}