:root {
    --terminal-green: #00ff00;
    --terminal-bg: #000000;
    --terminal-text: #ffffff;
    --firework-colors: #ff0000, #00ff00, #0000ff, #ffff00, #ff00ff, #00ffff;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--terminal-bg);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--terminal-text);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1000px;
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Typing animation */
#typing-text {
    color: var(--terminal-green);
    white-space: pre-wrap;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

/* Portfolio styles */
#portfolio-content {
    margin-top: 2rem;
}

h1 {
    color: var(--terminal-green);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.tagline {
    color: #888;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.portfolio-section {
    margin-top: 2rem;
}

h2 {
    color: var(--terminal-green);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Secret projects styles */
.secret-projects-list {
    list-style: none;
    margin-top: 1.5rem;
}

.secret-projects-list li {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 255, 0, 0.1);
    border: 1px solid var(--terminal-green);
    border-radius: 4px;
}

/* Fireworks styles */
.fireworks-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 999;
    overflow: hidden;
    will-change: transform;
    perspective: 1000px;
}

.firework {
    position: absolute;
    font-family: monospace;
    white-space: pre;
    color: var(--terminal-green);
    text-shadow: 0 0 5px currentColor,
                 0 0 10px currentColor,
                 0 0 20px currentColor;
    animation: firework 1.5s ease-out forwards;
    opacity: 0;
    transform-origin: center;
    will-change: transform, opacity;
}

.firework-particle {
    position: absolute;
    font-family: monospace;
    color: var(--terminal-green);
    text-shadow: 0 0 5px currentColor,
                 0 0 10px currentColor,
                 0 0 20px currentColor;
    animation: particle 1.2s ease-out forwards;
    opacity: 0;
    will-change: transform, opacity;
}

@keyframes firework {
    0% {
        transform: translateY(100vh) translateX(calc(var(--tx) * 2)) scale(0.5);
        opacity: 0;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translateY(0) translateX(var(--tx)) scale(1.2);
        opacity: 0;
    }
}

@keyframes particle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    40% {
        opacity: 1;
    }
    100% {
        transform: translate(calc(var(--tx) * 1.5), calc(var(--ty) * 1.5)) scale(0);
        opacity: 0;
    }
}

/* Add new styles for enhanced fireworks */
.firework::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        var(--terminal-green) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    opacity: 0.3;
    filter: blur(2px);
    animation: glow 1.5s ease-out forwards;
}

@keyframes glow {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
    }
    40% {
        opacity: 0.3;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Konami message styles */
#konami-message {
    position: fixed;
    top: 50%;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);
    background: rgba(12, 12, 12, 0.795);
    padding: 1.5rem;
    border: 2px solid grey;
    border-radius: 8px;
    text-align: center;
    z-index: 1000;
    animation: fadeIn 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 600px) {
    .container {
        width: 95%;
        padding: 1rem;
    }
    
    h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    
    .tagline {
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    #graduation-message h2 {
        font-size: clamp(1.5rem, 6vw, 2.5em);
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }

    #graduation-message p {
        font-size: clamp(0.9rem, 4vw, 1.2em);
        word-wrap: break-word;
        white-space: normal;
        line-height: 1.4;
    }

    #graduation-message.blast span {
        display: inline;
        white-space: normal;
        word-break: keep-all;
    }

    .secret-projects-list li {
        font-size: clamp(0.9rem, 4vw, 1rem);
        padding: 0.8rem;
    }
}

/* Graduation message styles */
#graduation-message {
    position: relative;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: none;
    z-index: 1000;
    max-width: 100%;
    padding: 0 1rem;
    text-align: center;
    overflow: visible;
}

#graduation-message.visible {
    opacity: 1;
    transform: scale(1);
    visibility: visible;
}

#graduation-message.visible .word {
    display: inline-block;
    white-space: normal;
    word-break: keep-all;
    margin: 0 0.1em;
    visibility: visible;
    opacity: 0;
    animation: wordFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--word-index) * 0.1s);
}

#graduation-message.visible .letter {
    display: inline-block;
    white-space: nowrap;
    animation: flyIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    background: linear-gradient(
        45deg,
        #FF6B6B,  /* Coral Red */
        #4ECDC4,  /* Turquoise */
        #45B7D1,  /* Ocean Blue */
        #96E6A1,  /* Mint Green */
        #FFD93D,  /* Golden Yellow */
        #6C5CE7,  /* Purple */
        #FF9F43,  /* Orange */
        #FF6B6B   /* Back to Coral Red */
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: flyIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               gradientFlow 4s ease infinite;
    transform-origin: center;
    will-change: transform, opacity, background-position;
    opacity: 0;
    animation-delay: calc(var(--letter-index) * 0.05s);
    backface-visibility: hidden;
    transform-style: preserve-3d;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    visibility: visible;
}

#graduation-message h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(3rem, 10vw, 5em);
    font-weight: bold;
    background: linear-gradient(
        45deg,
        #FF6B6B,  /* Coral Red */
        #4ECDC4,  /* Turquoise */
        #45B7D1,  /* Ocean Blue */
        #96E6A1,  /* Mint Green */
        #FFD93D,  /* Golden Yellow */
        #6C5CE7,  /* Purple */
        #FF9F43,  /* Orange */
        #FF6B6B   /* Back to Coral Red */
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease infinite;
    position: relative;
    z-index: 1001;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.4;
    margin-bottom: 2rem;
    max-width: 100%;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    visibility: visible;
    will-change: background-position;
}

#graduation-message p {
    font-family: 'JetBrains Mono', monospace;
    font-size: clamp(1.5rem, 6vw, 2.2em);
    background: linear-gradient(
        45deg,
        #FF6B6B,  /* Coral Red */
        #4ECDC4,  /* Turquoise */
        #45B7D1,  /* Ocean Blue */
        #96E6A1   /* Mint Green */
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease infinite;
    position: relative;
    z-index: 1001;
    word-wrap: break-word;
    white-space: normal;
    line-height: 1.6;
    max-width: 100%;
    overflow-wrap: break-word;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    visibility: visible;
    will-change: background-position;
    margin-bottom: 1.5rem;
}

#graduation-message.visible .letter::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle at center,
        var(--ribbon-color) 0%,
        transparent 70%
    );
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: ribbonBlast 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-delay: calc(var(--letter-index) * 0.05s + 0.3s);
    z-index: -1;
    filter: blur(4px);
}

@keyframes wordFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes ribbonBlast {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        width: 200%;
        height: 200%;
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
    100% {
        width: 300%;
        height: 300%;
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.5);
    }
}

@keyframes flyIn {
    0% {
        transform: translate3d(var(--fly-x), var(--fly-y), 0) rotate(var(--fly-rotate)) scale(0.3);
        opacity: 0;
    }
    20% {
        opacity: 0.3;
    }
    40% {
        transform: translate3d(calc(var(--fly-x) * 0.3), calc(var(--fly-y) * 0.3), 0) rotate(calc(var(--fly-rotate) * 0.3)) scale(0.8);
        opacity: 0.6;
    }
    60% {
        transform: translate3d(calc(var(--fly-x) * 0.1), calc(var(--fly-y) * 0.1), 0) rotate(calc(var(--fly-rotate) * 0.1)) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate3d(0, 0, 0) rotate(0) scale(1);
        opacity: 1;
    }
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 0%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #graduation-message {
        padding: 0 0.5rem;
        width: 100%;
    }

    #graduation-message h2 {
        font-size: clamp(2rem, 7vw, 3em);
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    #graduation-message p {
        font-size: clamp(1.2rem, 5vw, 1.5em);
        padding: 0 0.5rem;
    }

    #graduation-message.visible .word {
        white-space: normal;
        word-break: break-word;
    }
}

/* Responsive adjustments */
@media (max-width: 400px) {
    #graduation-message {
        padding: 0 0px;
        width: 100%;
    }

    #graduation-message h2 {
        font-size: clamp(1.8rem, 5vw, 1.8em);
        margin-bottom: 2rem;
        padding: 0 2px;
    }

    #graduation-message p {
        font-size: clamp(0.8rem, 4vw, 1em);
        padding: 0 0px;
    }

    #graduation-message.visible .word {
        white-space: normal;
        word-break: break-word;
    }
} 