/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0c0c0c 0%, #1a1a1a 50%, #0f0f0f 100%);
    background-size: 400% 400%;
    animation: gradientShift 8s ease-in-out infinite;
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Container */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(120, 120, 120, 0.1) 0%, transparent 50%),
                      radial-gradient(circle at 80% 20%, rgba(120, 120, 120, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 300px;
    height: auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1;
}

.coming-soon {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: #b0b0b0;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.2s forwards;
}

.personal-intro {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 400;
    color: #aaa;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.4s forwards;
}

.button-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    margin-bottom: 2rem;
}

.contact-btn, .snake-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    border: 2px solid #666666;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-btn:hover, .snake-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    border-color: #888888;
}

.contact-btn:active, .snake-btn:active {
    transform: translateY(0);
}

.snake-btn {
    background: linear-gradient(135deg, #2a4d3a 0%, #3a6b4a 100%);
    border-color: #4a8a6a;
}

.snake-btn:hover {
    border-color: #6aaa8a;
}

/* Lighting Controls */
.lighting-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.8s forwards;
}

.strobe-btn, .bump-btn {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    border: 1px solid #444;
    color: #888;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
}

.strobe-btn:hover, .bump-btn:hover {
    border-color: #666;
    color: #aaa;
    transform: translateY(-1px);
}

.strobe-btn:active {
    background: linear-gradient(135deg, #ff4444 0%, #ff6666 100%);
    border-color: #ff6666;
    color: #fff;
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.bump-btn:active {
    background: linear-gradient(135deg, #fff 0%, #f0f0f0 100%);
    border-color: #fff;
    color: #333;
    transform: translateY(0);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
}

/* Strobe Effect */
.strobe-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 8888;
    opacity: 0;
}

.strobe-overlay.active {
    opacity: 1;
    animation: strobeFlash 0.1s infinite;
}

@keyframes strobeFlash {
    0%, 50% { 
        background: #000; 
    }
    51%, 100% { 
        background: #fff; 
    }
}

/* Bump White Effect */
.bump-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 1);
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bump-overlay.active {
    opacity: 1;
    transition: opacity 0.05s ease;
}

/* Footer */
.footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.portfolio-link {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #888;
}

.portfolio-link a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid rgba(187, 187, 187, 0.3);
}

.portfolio-link a:hover {
    color: #fff;
    border-bottom-color: #fff;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 1px solid #333;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close {
    color: #888;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    margin-top: -10px;
}

.close:hover {
    color: #fff;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 600;
}

/* Form Styles */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: #ccc;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    padding: 0.8rem 1rem;
    background: #333;
    border: 1px solid #555;
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #777;
    background: #3a3a3a;
    box-shadow: 0 0 0 2px rgba(119, 119, 119, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    border: 2px solid #666666;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.submit-btn:hover {
    border-color: #888888;
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .logo {
        max-width: 220px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 1.5rem;
    }
    
    .contact-btn, .snake-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
    
    .button-group {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .lighting-controls {
        gap: 0.8rem;
        flex-direction: column;
        align-items: center;
    }
    
    .strobe-btn, .bump-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
        width: 120px;
    }
}

@media (max-width: 480px) {
    .coming-soon {
        font-size: 2.5rem;
        letter-spacing: 0.05em;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .personal-intro {
        font-size: 1rem;
    }
}

/* Success message styles */
.success-message {
    background: linear-gradient(135deg, #1a4d3a 0%, #2a6b4a 100%);
    border: 1px solid #4a8a6a;
    padding: 1rem;
    border-radius: 8px;
    color: #fff;
    text-align: center;
    margin-top: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

/* Snake Game Styles */
.snake-modal-content {
    max-width: 500px;
    text-align: center;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    max-width: 400px;
    color: #ccc;
    font-size: 0.9rem;
}

#gameCanvas {
    border: 2px solid #555;
    border-radius: 8px;
    background: #1a1a1a;
}

.game-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.game-btn {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #333333 0%, #555555 100%);
    border: 1px solid #666666;
    color: #ffffff;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.game-btn:hover {
    border-color: #888888;
    transform: translateY(-1px);
}

.game-over {
    background: rgba(0, 0, 0, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #555;
}

.game-over h3 {
    color: #ff6b6b;
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

@media (max-width: 480px) {
    #gameCanvas {
        width: 300px;
        height: 300px;
    }
    
    .snake-modal-content {
        padding: 1rem;
    }
    
    .game-info {
        font-size: 0.8rem;
    }
}

/* Modern Lighting Effects */
.lighting-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.lighting-overlay.active {
    opacity: 1;
}

.cursor-spotlight {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, 
                rgba(255, 255, 255, 0.08) 0%,
                rgba(255, 255, 255, 0.04) 30%,
                rgba(255, 255, 255, 0.02) 60%,
                transparent 100%);
    filter: blur(1px);
    transform: translate(-50%, -50%);
    will-change: transform, opacity;
}

.ambient-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, 
                rgba(120, 120, 120, 0.03) 0%,
                rgba(120, 120, 120, 0.015) 40%,
                transparent 70%);
    filter: blur(3px);
    transform: translate(-50%, -50%);
    animation: ambientPulse 8s ease-in-out infinite;
    will-change: transform;
}

@keyframes ambientPulse {
    0%, 100% { 
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% { 
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* Subtle edge lighting */
.edge-lights {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.edge-light {
    position: absolute;
    background: linear-gradient(90deg, 
                transparent 0%,
                rgba(255, 255, 255, 0.02) 50%,
                transparent 100%);
    opacity: 0;
    transition: opacity 0.8s ease;
}

.edge-light.top {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation: edgeGlowTop 6s ease-in-out infinite;
}

.edge-light.right {
    top: 0;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
                transparent 0%,
                rgba(255, 255, 255, 0.02) 50%,
                transparent 100%);
    animation: edgeGlowRight 7s ease-in-out infinite;
}

.edge-light.bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    animation: edgeGlowBottom 8s ease-in-out infinite;
}

.edge-light.left {
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, 
                transparent 0%,
                rgba(255, 255, 255, 0.02) 50%,
                transparent 100%);
    animation: edgeGlowLeft 9s ease-in-out infinite;
}

@keyframes edgeGlowTop {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

@keyframes edgeGlowRight {
    0%, 100% { opacity: 0.15; }
    50% { opacity: 0.35; }
}

@keyframes edgeGlowBottom {
    0%, 100% { opacity: 0.25; }
    50% { opacity: 0.45; }
}

@keyframes edgeGlowLeft {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.3; }
}

/* Cursor interaction highlight */
.cursor-highlight {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    background: radial-gradient(circle, 
                rgba(255, 255, 255, 0.05) 0%,
                transparent 70%);
    will-change: transform, opacity;
}

.cursor-highlight.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
} 