* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    font-family: 'Rajdhani', sans-serif;
    color: white;
    overflow-x: hidden;
    transition: transform 0.4s ease, filter 0.4s ease;
}

body.zoomed {
    transform: scale(0.95);
    filter: blur(4px);
}

canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    display: block;
    opacity: 0.7;
    pointer-events: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 6.5vh;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    padding: 0 5%;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateZ(0); 
    will-change: transform;
}

.highlight-section {
    animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
    0% { 
        box-shadow: 0 0 0px transparent; 
        transform: scale(1); 
    }
    30% { 
        box-shadow: 0 0 30px rgba(221, 0, 0, 0.8); 
        transform: scale(1.02); 
        z-index: 10;
        border-color: #dd0000;
    }
    100% { 
        box-shadow: 0 0 0px transparent; 
        transform: scale(1); 
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.logo-phrase {
    color: #dd0000;
    font-size: 0.9rem;
    font-weight: 500;
    font-style: italic;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    transition: color 0.3s ease;
}

.logo-link:hover .logo {
    color: #dd0000;
}

.nav-links {
    display: flex;
    justify-content: flex-end;
    list-style: none;
    align-items: center;
    flex: 1;
}

.nav-links a {
    color: #f0f0f0;
    text-decoration: none;
    letter-spacing: 1px;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0 15px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #dd0000;
    text-shadow: 0 0 8px rgba(221, 0, 0, 0.5);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px;
    transition: all 0.3s ease;
}

.nav-cross-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    perspective: 800px;
}

.nav-cross-pivot {
    position: relative;
    width: 20px;
    height: 40px;
    transform-style: preserve-3d;
}

.nav-cross-bar {
    position: absolute;
    transform-style: preserve-3d;
}

.nav-cross-bar .face {
    position: absolute;
    backface-visibility: hidden;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ccc;
    box-shadow: 0 0 8px 1px rgba(255, 255, 255, 0.7);
}

.nav-cross-bar.vertical {
    width: 6px;
    height: 40px;
    top: 0;
    left: 7px;
}

.nav-cross-bar.vertical .front {
    width: 6px;
    height: 40px;
    transform: translateZ(3px);
}

.nav-cross-bar.vertical .back {
    width: 6px;
    height: 40px;
    transform: rotateY(180deg) translateZ(3px);
}

.nav-cross-bar.vertical .right {
    width: 6px;
    height: 40px;
    transform: rotateY(90deg) translateZ(3px);
}

.nav-cross-bar.vertical .left {
    width: 6px;
    height: 40px;
    transform: rotateY(-90deg) translateZ(3px);
}

.nav-cross-bar.vertical .top {
    width: 6px;
    height: 6px;
    transform: rotateX(90deg) translateZ(3px);
}

.nav-cross-bar.vertical .bottom {
    width: 6px;
    height: 6px;
    transform: rotateX(-90deg) translateZ(37px);
}

.nav-cross-bar.horizontal {
    width: 20px;
    height: 6px;
    top: 8px;
    left: 0;
}

.nav-cross-bar.horizontal .front {
    width: 20px;
    height: 6px;
    transform: translateZ(3px);
}

.nav-cross-bar.horizontal .back {
    width: 20px;
    height: 6px;
    transform: rotateY(180deg) translateZ(3px);
}

.nav-cross-bar.horizontal .right {
    width: 6px;
    height: 6px;
    transform: rotateY(90deg) translateZ(17px);
}

.nav-cross-bar.horizontal .left {
    width: 6px;
    height: 6px;
    transform: rotateY(-90deg) translateZ(3px);
}

.nav-cross-bar.horizontal .top {
    width: 20px;
    height: 6px;
    transform: rotateX(90deg) translateZ(3px);
}

.nav-cross-bar.horizontal .bottom {
    width: 6px;
    height: 6px;
    transform: rotateX(-90deg) translateZ(3px);
}

main {
    padding: 4rem 5%;
    padding-top: calc(6vh + 4rem);
}

.hero-section {
    display: flex;
    gap: 2rem;
    background-color: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-image {
    flex: 1;
    min-width: 300px;
}

.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.hero-content {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #ccc;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    border-radius: 4px;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: #dd0000;
}

@media screen and (max-width: 768px) {
    body.light-theme .nav-links {
        background-color: rgba(245, 245, 245, 0.98);
    }

    nav { 
        justify-content: flex-start; 
        gap: 10px; 
        min-height: 60px;
        height: 60px;
    }

    .logo-phrase {
        display: none;
    }

    .logo {
        font-size: 1.4rem;
    }

    .nav-cross-container { 
        display: flex; 
        position: absolute;
        top: 50%;
        left: 65%;
        margin: 0;
        transform: translate(-50%, -50%) scale(0.7); 
    }

    .burger { 
        display: block; 
        margin-left: auto; 
    }

    .nav-links { 
        position: fixed; 
        right: 0; 
        height: calc(100vh - 60px); 
        top: 60px; 
        background-color: rgba(10, 10, 10, 0.95); 
        flex-direction: column; 
        justify-content: flex-start;
        align-items: center;
        width: 65%;
        transform: translateX(100%); 
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        padding-top: 4rem;
        gap: 2rem;
    }

    .nav-active { 
        transform: translateX(0%); 
        box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.3rem;
    }

    .hero-section { 
        flex-direction: column; 
    }

    main { 
        padding: 2rem 5%; 
        padding-top: calc(60px + 2rem); 
    }
}

body.light-theme {
    background-color: #f0f0f0;
    color: #000;
}

body.light-theme nav {
    background-color: rgba(245, 245, 245, 0.8);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

body.light-theme .logo, 
body.light-theme .nav-links a, 
body.light-theme .hero-content h2 {
    color: #000;
}

body.light-theme .hero-section {
    background-color: rgba(255, 255, 255, 0.7);
    border-color: rgba(0,0,0,0.1);
}

body.light-theme .hero-content p {
    color: #333;
}

body.light-theme .nav-cross-bar .face {
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
}

body.light-theme .burger div { 
    background-color: #000; 
}

.site-footer {
    width: 100%;
    background-color: rgba(10, 10, 10, 0.85); 
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    padding: 2rem 1rem 1rem 1rem;
    margin-top: 4rem;
    position: relative;
    z-index: 10;
}

.site-footer h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.site-footer p {
    color: #ccc;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 55px;
    height: 55px;
    padding: 0;
    background: #ffffff !important;
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.footer-btn img {
    width: 28px;
    height: 28px;
}

.footer-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    margin: 0 auto;
}

body.light-theme .site-footer {
    background-color: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .site-footer h2 {
    color: #000;
}

body.light-theme .site-footer p {
    color: #555;
}

body.light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .footer-bottom p {
    color: #888;
}

@media screen and (min-width: 769px) and (max-width: 1200px) {
    body.light-theme .nav-links {
        background-color: rgba(245, 245, 245, 0.98);
    }
    
    nav { 
        justify-content: space-between; 
        gap: 10px; 
    }

    .logo-container {
        display: flex;
        white-space: nowrap; 
        gap: 15px; 
    }

    .logo-phrase {
        display: inline-block; 
        font-size: 0.9rem;
    }

    .nav-cross-container { 
        display: flex; 
        position: absolute;
        top: 50%;
        left: 68%; 
        margin: 0;
        transform: translate(-50%, -50%) scale(0.8); 
    }

    .burger { 
        display: block; 
        margin-left: auto;
    }
    
    .nav-links { 
        position: fixed; 
        right: 0; 
        height: calc(100vh - 6.5vh);
        top: 6.5vh; 
        background-color: rgba(10, 10, 10, 0.95); 
        flex-direction: column; 
        justify-content: flex-start; 
        align-items: center; 
        width: 45%;
        transform: translateX(100%); 
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1); 
        padding-top: 4rem; 
        gap: 2rem; 
    }
    
    .nav-active { 
        transform: translateX(0%); 
        box-shadow: -5px 0 20px rgba(0,0,0,0.5); 
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        display: block;
        padding: 10px 0;
        font-size: 1.3rem; 
    }
}

@media screen and (min-width: 1200px) and (max-width: 1700px) {
    .nav-cross-container {
        left: 40%;
    }
}

@media (max-width: 1200px) {
    html, body {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    
    .site-footer, #footer-placeholder, footer {
        margin-bottom: 0 !important;
        width: 100%;
        display: block;
        bottom: 0;
    }
}

@media screen and (max-width: 1370px) {
    .dashboard-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .profile-card, .skills-card, .projects-card, .career-card {
        grid-column: auto;
        grid-row: auto;
    }
    
    .github-card {
        grid-column: 1 / -1; 
        grid-row: auto;
    }

    .projects-card { order: 1; }
    .skills-card   { order: 2; }
    .profile-card  { order: 3; }
    .career-card   { order: 4; }
    .github-card   { order: 5; }
}

@media screen and (max-width: 1020px) {
    .dashboard-grid { 
        grid-template-columns: 1fr; 
    }

    .profile-card  { order: 0; }
    .skills-card   { order: 0; }
    .projects-card { order: 0; }
    .career-card   { order: 0; }
    .github-card   { order: 0; }
}