/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */

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

:root {
    --primary: #8B2C3A;
    --secondary: #A64253;
    --accent: #6B1F2A;
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    color-scheme: only light;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Space Background with Stars */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 47px 83px, white, transparent),
        radial-gradient(1px 1px at 156px 241px, white, transparent),
        radial-gradient(2px 2px at 312px 67px, white, transparent),
        radial-gradient(1px 1px at 89px 412px, white, transparent),
        radial-gradient(2px 2px at 534px 189px, white, transparent),
        radial-gradient(1px 1px at 267px 534px, white, transparent),
        radial-gradient(2px 2px at 623px 401px, white, transparent),
        radial-gradient(1px 1px at 178px 723px, white, transparent),
        radial-gradient(2px 2px at 445px 312px, white, transparent),
        radial-gradient(1px 1px at 701px 156px, white, transparent),
        radial-gradient(2px 2px at 123px 589px, white, transparent),
        radial-gradient(1px 1px at 389px 801px, white, transparent),
        radial-gradient(2px 2px at 756px 478px, white, transparent),
        radial-gradient(1px 1px at 534px 623px, white, transparent),
        radial-gradient(2px 2px at 201px 867px, white, transparent),
        radial-gradient(1px 1px at 678px 734px, white, transparent),
        radial-gradient(2px 2px at 423px 112px, white, transparent),
        radial-gradient(1px 1px at 812px 345px, white, transparent),
        radial-gradient(2px 2px at 67px 956px, white, transparent),
        radial-gradient(1px 1px at 589px 867px, white, transparent),
        radial-gradient(2px 2px at 934px 201px, white, transparent),
        radial-gradient(1px 1px at 278px 178px, white, transparent),
        radial-gradient(2px 2px at 845px 623px, white, transparent),
        radial-gradient(1px 1px at 456px 445px, white, transparent),
        radial-gradient(2px 2px at 112px 312px, white, transparent),
        radial-gradient(1px 1px at 723px 912px, white, transparent),
        radial-gradient(2px 2px at 367px 689px, white, transparent),
        radial-gradient(1px 1px at 901px 534px, white, transparent),
        radial-gradient(2px 2px at 534px 23px, white, transparent),
        radial-gradient(1px 1px at 145px 478px, white, transparent);
    background-size: 1000px 1000px;
    background-repeat: repeat;
    opacity: 0.5;
    z-index: -2;
    pointer-events: none;
}

/* Solar System Orbits - Curved arc segments */
.orbit {
    position: absolute;
    border: 3px solid rgba(139, 44, 58, 0.3);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Planets */
.planet {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(139, 44, 58, 0.5);
    z-index: -1;
    will-change: transform;
    transform: translateZ(0);
}

.sun {
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700, #FFA500);
    position: absolute;
    top: -10px;
    left: -170px;
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(255, 215, 0, 0.9),
        0 0 120px rgba(255, 165, 0, 0.6),
        0 0 200px rgba(255, 140, 0, 0.3);
    z-index: -1;
}

@media (max-width: 768px) {
    .sun {
        width: 60px;
        height: 60px;
        left: 2%;
    }

    .corporation-link img {
        height: 30px !important;
    }

    .corporation-link {
        right: 2% !important;
    }
}

/* Section planets positioned next to headings */

/* Introduction */

.orbit-about {
    width: 928px;
    height: 928px;
    top: calc(40px - 464px);
    left: calc(-120px - 464px);
    border: 3px solid rgba(52, 152, 219, 0.4);
}

/* Introduction */

.planet-about {
    width: 28px;
    height: 28px;
    background: radial-gradient(circle at 30% 30%, #3498DB, #2C5C8A);
    position: absolute;
    top:    3px;
    left: -60px;
    box-shadow:
        0 0 20px rgba(52, 152, 219, 0.8),
        0 0 40px rgba(52, 152, 219, 0.5),
        0 0 80px rgba(52, 152, 219, 0.3);
}

/* Recent Project */
.orbit-experience {
    width: 1503px;
    height: 1503px;
    top: calc(40px - 751.5px);
    left: calc(-120px - 751.5px);
    border: 3px solid #dc3ce766;
}

/* Recent Project */
.planet-projects {
    width: 45px;
    height: 45px;
    background: radial-gradient(circle at 30% 30%, #dc3ce7, #8B2C3A);
    position: absolute;
    top: -5px;
    left: -60px;
    box-shadow:
        0 0 20px rgba(220, 60, 231, 0.8),
        0 0 40px rgba(220, 60, 231, 0.5),
        0 0 80px rgba(220, 60, 231, 0.3);
}

.planet-projects::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 70px;
    height: 20px;
    border: 2px solid rgba(220, 60, 231, 0.6);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    pointer-events: none;
}

/* experience */
.orbit-education {
    width: 2625px;
    height: 2625px;
    top: calc(40px - 1312.5px);
    left: calc(-120px - 1312.5px);
    border: 3px solid #E67E2266;
}

/* experience */
.planet-experience {
    width: 50px;
    height: 50px;
    background: radial-gradient(circle at 30% 30%, #E67E22, #B8571A);
    position: absolute;
    top: -5px;
    left: -60px;
    box-shadow:
        0 0 20px rgba(230, 126, 34, 0.8),
        0 0 40px rgba(230, 126, 34, 0.5),
        0 0 80px rgba(230, 126, 34, 0.3);
}

/* education */
.orbit-contact {
    width: 4130px;
    height: 4130px;
    top: calc(40px - 2065px);
    left: calc(-120px - 2065px);
    border: 3px solid #1ABC9C66;
}

/* education */
.planet-education {
    width: 32px;
    height: 32px;
    background: radial-gradient(circle at 30% 30%, #1ABC9C, #16A085);
    position: absolute;
    top: 775px;
    left: -65px;
    box-shadow:
        0 0 20px rgba(26, 188, 156, 0.8),
        0 0 40px rgba(26, 188, 156, 0.5),
        0 0 80px rgba(26, 188, 156, 0.3);
}

/* getintouch */
.planet-contact {
    width: 55px;
    height: 55px;
    background: radial-gradient(circle at 30% 30%, #F39C12, #CA7D0D);
    position: absolute;
    top: -5px;
    left: -65px;
    box-shadow:
        0 0 20px rgba(243, 156, 18, 0.8),
        0 0 40px rgba(243, 156, 18, 0.5),
        0 0 80px rgba(243, 156, 18, 0.3);
}

.planet-contact::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90px;
    height: 25px;
    border: 3px solid rgba(243, 156, 18, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    pointer-events: none;
}

.planet-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75px;
    height: 18px;
    border: 2px solid rgba(243, 156, 18, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotateX(75deg);
    pointer-events: none;
}

/* getintouch */
.orbit-getintouch {
    width: 4950px;
    height: 4950px;
    top: calc(40px - 2475px);
    left: calc(-120px - 2475px);
    border: 3px solid #F39C1266;
}

/* intrests */
.planet-interests {
    width: 42px;
    height: 42px;
    background: radial-gradient(circle at 30% 30%, #E91E63, #AD1457);
    position: absolute;
    top: 0px;
    left: -62px;
    box-shadow:
        0 0 20px rgba(233, 30, 99, 0.8),
        0 0 40px rgba(233, 30, 99, 0.5),
        0 0 80px rgba(233, 30, 99, 0.3);
}
/* intrests */
.orbit-interests {
    width: 5645px;
    height: 5645px;
    top: calc(40px - 2822.5px);
    left: calc(-120px - 2822.5px);
    border: 3px solid rgba(233, 30, 99, 0.4);
}



/* blog */
.orbit-blog {
    width: 6190px;
    height: 6190px;
    top: calc(40px - 3097.5px);
    left: calc(-120px - 3097.5px);
    border: 3px solid rgba(22, 160, 133, 0.4);
}

/* blog */
.planet-blog {
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #16A085, #0E6655);
    position: absolute;
    top: 5px;
    left: -60px;
    box-shadow:
        0 0 20px rgba(22, 160, 133, 0.8),
        0 0 40px rgba(22, 160, 133, 0.5),
        0 0 80px rgba(22, 160, 133, 0.3);
}

/* Corporation Link Space Object */
.corporation-link {
    position: relative;
}

.corporation-link::before {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    background: radial-gradient(circle at 30% 30%, #7F8C8D, #2C3E50);
    border-radius: 50%;
    bottom: -15px;
    left: -15px;
    box-shadow: 0 0 15px rgba(127, 140, 141, 0.6);
}


/* ==========================================================================
   Container
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(139, 44, 58, 0.3);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero-content {
    padding: 1rem;
}

/* Profile Picture */
.profile-picture {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow:
        0 0 20px rgba(139, 44, 58, 0.5),
        0 0 40px rgba(139, 44, 58, 0.3);
    top: -140px;
    left: 2rem;
    transition: transform 0.3s ease;
}

.profile-picture:hover {
    transform: scale(1.05);
}

/* Profile Picture Modal */
.profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.profile-modal.active {
    display: flex;
}

.profile-modal-img {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    box-shadow:
        0 0 40px rgba(139, 44, 58, 0.8),
        0 0 80px rgba(139, 44, 58, 0.5),
        0 0 120px rgba(139, 44, 58, 0.3);
}

.glitch {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    position: relative;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.btn-secondary:hover {
    border-color: var(--secondary);
    color: var(--secondary);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
    padding: 1.5rem 0;
    position: relative;
}

.section-title {
    font-size: 1.5rem;
    text-align: left;
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
}

/* ==========================================================================
   About Section
   ========================================================================== */

.about-content {
    max-width: 100%;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.skills h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 1.1rem;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.skill-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(139, 44, 58, 0.3);
    transition: all 0.3s;
}

.skill-item:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   Projects Section
   ========================================================================== */

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

.project-card {
    background: var(--bg-light);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(139, 44, 58, 0.3);
    transition: all 0.3s;
}

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

.project-image {
    height: 200px;
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-placeholder {
    font-size: 2rem;
    color: var(--text-muted);
    font-weight: bold;
    opacity: 0.3;
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: rgba(139, 44, 58, 0.2);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    border: 1px solid rgba(139, 44, 58, 0.3);
}

.project-link {
    color: var(--secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.project-link:hover {
    color: var(--primary);
}

/* ==========================================================================
   CV Section
   ========================================================================== */

.cv-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cv-section {
    margin-bottom: 1.5rem;
}

.cv-section-experience {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cv-section-experience .cv-section-title {
    grid-column: 1 / -1;
}

.cv-section-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 0.75rem;
    border-bottom: 2px solid rgba(139, 44, 58, 0.3);
    padding-bottom: 0.3rem;
}

.cv-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid rgba(139, 44, 58, 0.3);
}

.cv-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.cv-item h4 {
    color: var(--text-primary);
    font-size: 1.1rem;
}

.cv-date {
    color: var(--primary);
    font-weight: 600;
}

.cv-company {
    color: var(--text-secondary);
    font-style: italic;
    margin-bottom: 0.5rem;
}

.cv-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

.cv-description li {
    margin-bottom: 0.25rem;
    margin-left: 1.5rem;
}


/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-content {
    max-width: 600px;
    margin: 0;
    text-align: left;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid rgba(139, 44, 58, 0.3);
    transition: all 0.3s;
}

.contact-item:hover {
    border-color: var(--primary);
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
    background: var(--bg-darker);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(139, 44, 58, 0.3);
    width: 100%;
}

.footer p {
    color: var(--text-muted);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .glitch {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .skill-grid {
        grid-template-columns: 1fr;
    }

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

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

    .cv-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .cv-section-experience {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 2rem 0;
    }

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

    .container {
        padding: 0 1rem;
    }

    /* Smaller profile picture on mobile */
    .profile-picture {
        width: 70px !important;
        height: 70px !important;
        top: -70px !important;
    }

    /* Position corporation link on right, parallel to Introduction heading */
    .corporation-link {
        top: auto !important;
        bottom: -70px !important;
        right: -4rem !important;
        left: auto !important;
        padding: 0.5rem !important;
    }

    .corporation-link img {
        height: 25px !important;
    }

    .corporation-link span {
        font-size: 0.6rem !important;
    }

    /* Hide planets and orbits on mobile to prevent overlap */
    .planet,
    .orbit {
        display: none;
    }

    /* Adjust hero for mobile */
    .hero {
        min-height: 250px;
    }

    /* Smaller modal image on mobile */
    .profile-modal-img {
        width: 250px;
        height: 250px;
    }

    /* Ensure about content box fits */
    .about-content p {
        font-size: 0.95rem;
    }

    /* CV item adjustments */
    .cv-item {
        padding: 0.75rem;
    }

    .cv-item h4 {
        font-size: 1rem;
    }

    .cv-description {
        font-size: 0.9rem;
    }

    .cv-description li {
        margin-left: 1rem;
    }

    /* Contact adjustments */
    .contact-item {
        padding: 0.75rem;
        font-size: 0.85rem;
    }

    /* Project card adjustments */
    .project-content {
        padding: 1rem;
    }

    .project-content h3 {
        font-size: 1.1rem;
    }

    .project-content p {
        font-size: 0.9rem;
    }
}
