/* Portfolio Animation CSS - V2 */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Geist', sans-serif;
    background: #000000;
    color: #ffffff;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

/* Main Container */
.portfolio-container {
    display: flex;
    flex-direction: column;
    height: 95vh;
    width: 100vw;
    background: #000000;
}

/* Canvas Area */
.canvas-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    min-height: 0;
}

.animated-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: min(1200px, 80vw);
    max-height: 600px;
    background: #000000;
    overflow: hidden;
}

/* Letter Styling */
.letter {
    position: absolute;
    font-family: 'Geist Mono', monospace;
    font-size: 11px;
    font-weight: 400;
    color: #ffffff;
    user-select: none;
    pointer-events: none;
    line-height: 1;
    transition: opacity 0.1s ease;
    white-space: nowrap;
}

/* Bottom Section */
.bottom-section {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    flex-shrink: 0;
}

.bottom-content {
    width: 100%;
    max-width: min(1200px, 80vw);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Name */
.name {
    font-family: 'Geist', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    opacity: 0.2;
    white-space: nowrap;
}

/* Animation Controls */
.animation-controls {
    display: flex;
    gap: 16px;
    align-items: center;
}

.control-icon {
    width: 24px;
    height: 24px;
    cursor: pointer;
    opacity: 0.3;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.control-icon:hover {
    opacity: 0.6;
    transform: scale(1.1);
}

.control-icon.active {
    opacity: 1;
}

.control-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.social-link {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    opacity: 0.3;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.social-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .canvas-area {
        padding: 32px;
    }

    .animated-canvas {
        max-width: 80vw;
        max-height: none;
        min-height: 300px;
    }

    .letter {
        font-size: 10px;
    }

    .bottom-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        max-width: 80vw;
    }

    .name {
        font-size: 20px;
    }

    .social-links {
        gap: 16px;
        order: 2;
    }

    .social-link {
        font-size: 12px;
    }

    .bottom-section {
        height: auto;
        padding: 20px 32px;
        min-height: 120px;
    }

    /* Mobile layout adjustments */
    .top-row {
        display: flex !important;
        align-items: center;
        gap: 20px;
        order: 1;
    }

    /* Hide desktop layout on mobile */
    .bottom-content > .name {
        display: none;
    }

    .bottom-content > .animation-controls {
        display: none;
    }
}

@media (max-width: 480px) {
    .canvas-area {
        padding: 24px;
    }
    .portfolio-container {
        height:90vh;
    }

    .letter {
        font-size: 9px;
    }

    .control-icon {
        width: 20px;
        height: 20px;
    }

    .animation-controls {
        gap: 20px;
    }

    .name {
        font-size: 20px;
    }

    .social-links {
        width: 100%;
        justify-content: space-between;
    }

    .top-row {
        width:100%;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .canvas-area {
        padding: 16px;
    }

    .bottom-section {
        padding: 16px;
    }

    .animated-canvas {
        min-height: 250px;
    }

    .letter {
        font-size: 8px;
    }

    .control-icon {
        width: 18px;
        height: 18px;
    }

    .animation-controls {
        gap: 20px;
    }
}

/* Desktop-specific styles */
@media (min-width: 769px) {
    .top-row {
        display: none !important;
    }
}

/* Debug mode (remove in production) */
.debug .animated-canvas {
    border: 2px solid red;
}

.debug .letter {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
