:root {
    --color-1: cyan;
    --color-2: #ff7b00;
    --gradient-1: linear-gradient(135deg, #00fbff 0%, #0037ff 50%, #9000ff 100%);
    --gradient-2: linear-gradient(135deg, #ffcc00 0%, #ff9100 50%, #ff2a00 100%);
}

html, body {
    overflow: hidden;
}

#home {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2vw;
    padding: 7vh;
    padding-left: 15vw;
    align-items: center;
    text-align: left;
}

/* Animated Background Cubes */
.animated-background {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.cube {
    position: absolute;
    width: 100px;
    height: 100px;
    animation: cube 12s linear infinite;
    transform-origin: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 251, 255, 0.1), 0 0 20px rgba(255, 165, 0, 0.1);
}

.cube:nth-child(even) { background: rgba(0, 255, 255, 0.14); }
.cube:nth-child(odd) { background: #ff7b0020; }
.cube:nth-child(n) {
    left: calc(8.33% * var(--n));
    animation-delay: calc(-1s * var(--n));
}

@keyframes cube {
    0% {
        top: -100px;
        transform: rotate(0deg) scale(0);
        opacity: 1;
    }
    50% {
        transform: rotate(180deg) scale(1.5);
    }
    100% {
        top: 110%;
        transform: rotate(360deg) scale(1);
        opacity: 0;
    }
}

/* Images */
.home-image {
    width: 38vw;
    position: relative;
    transition: all 0.3s ease;
    top: 10vh;
    right: 5vw;
}

.home-image:hover {
    transform: translateY(-1.5vw) scale(1.05);
}

/* Text */
.name-container {
    position: relative;
    top: -6vh;
}

#home h1 {
    font-size: 4.3vw;
    font-weight: 700;
    color: #808080;
    line-height: 1.2;
}

.name-highlight {
    background-image: var(--gradient-1);
    background-clip: text;
    color: transparent;
    font-weight: bold;
    animation: gradientAnimation 10s infinite alternate;
}

/* Typing effect */
.home-content {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.5vw;
    top: -28vh;
}

.typing-container {
    font-size: 2vw;
    display: flex;
    align-items: center;
    gap: 0.5vw;
}

.typing-effect {
    color: var(--color-1);
    position: relative;
}

.typing-effect::after {
    content: '|';
    position: absolute;
    right: 0;
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

/* Contact Links */
.contact-links {
    display: flex;
    gap: 1vw;
    margin-top: 1vw;
}

.contact-icons {
    width: 2.5vw;
    height: 2.5vw;
    transition: transform 0.3s ease;
}

.contact-icons:hover {
    transform: translateY(-0.5vh) scale(1.1);
}

/* Responsive Design */
@media (min-width: 2500px) {
    #home { margin-top: 5vh; }
    .home-content { top: -20vh; }
}

@media (max-width: 2500px) {
    #home { margin-top: 5vh; }
    .home-content { top: -20vh; }
}

@media (max-width: 2500px) {
    #home { margin-top: 5vh; }
    .home-content { top: -20vh; }
}

@media (max-width: 2000px) {
    #home { margin-top: 0; }
    .home-content { top: -28vh; }
}

@media (max-width: 800px) {
    html, body { overflow: scroll; }
    #home { 
        grid-template-columns: 1fr; 
        padding: 0;
        padding-top: 7vh;
    }
    #home h1 { font-size: 6.5vw; }
    .name-container {
        margin: 0 auto;
        margin-top: 15vh; 
    }
    .home-image { 
        top: -5vh; 
        margin: 0 auto;
        width: 60vw;
        right: auto;
    }
    .home-content { top: -10vh; }
    .typing-container { 
        margin: 0 auto;
        font-size: 4vw; 
    }
    .contact-links { 
        margin: 0 auto; 
        gap: 2.5vw;
    }
    .contact-icons {
        width: 4vw;
        height: 4vw;
    }
    
}

@media (max-width: 480px) {
    #home h1 { font-size: 7.5vw; }
    .name-container { margin-top: 15vh; }
    .home-image { 
        top: -5vh; 
        width: 75vw;
    }
    .home-content { top: -8vh; }
    .typing-container { font-size: 5vw; }
    .contact-icons {
        width: 5vw;
        height: 5vw;
    }
}
