/* styles.css - All static styles moved from index.html */

@font-face {
    font-family: 'Orbitron';
    src: url('Orbitron-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000813;
    overflow-x: hidden;
}

.hero {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.static-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.1s ease-in;
    z-index: 1;
}

.static-logo.reveal {
    opacity: 1;
}

.blue-box {
    position: absolute;
    left: 50%;
    top: 50%;
    background-color: #000813;
    z-index: 2;
    opacity: 1;
    transition: transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
               opacity 1s ease-in-out;
}

.blue-box.fade-out {
    opacity: 0;
}

#animContainer {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    transition: transform 1.8s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 1s ease-in-out;
    opacity: 0;
}

nav {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 10;
}

nav.visible {
    opacity: 1;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
    align-items: center;
}

nav li {
    position: relative;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-family: 'Orbitron', monospace;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: block;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

nav a:hover::before {
    left: 100%;
}

nav a:hover {
    color: #ff6b35;
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
    background-color: rgba(255, 107, 53, 0.05);
}

/* Content sections */
.content-section {
    min-height: 100vh;
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    color: white;
    font-family: 'Orbitron', monospace;
}

.content-section h2 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: #ff6b35;
    text-align: center;
}

.content-section p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Portfolio containers */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-item {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
    border-color: rgba(255, 107, 53, 0.4);
    background: rgba(255, 107, 53, 0.1);
}

.portfolio-item h3 {
    color: #ff6b35;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.portfolio-item p {
    font-size: 1rem;
    text-align: left;
    margin-bottom: 1rem;
}

.portfolio-item .tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tech-stack span {
    background: rgba(255, 107, 53, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.8rem;
    color: #ff6b35;
}

/* Footer */
footer {
    background: rgba(0, 8, 19, 0.9);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 107, 53, 0.2);
}

footer p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin: 0;
}

/* Contact Form Styles */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 8px;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    color: #ffffff;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 4px;
    color: #ffffff;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    box-sizing: border-box;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff6b35;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.2);
}

.submit-btn {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    background: #ff5722;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.form-message {
    margin-top: 0.8rem;
    padding: 0.8rem;
    border-radius: 4px;
    text-align: center;
    display: none;
    font-size: 0.9rem;
}

.form-message.success {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    color: #4CAF50;
}

.form-message.error {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    color: #F44336;
}

/* Service items */
.service-item {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.service-icon {
    flex: 0 0 60px;
    width: 60px;
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 8px;
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.service-item p {
    margin: 0;
    line-height: 1.6;
    text-align: left;
    max-width: 700px;
}

/* Mobile: stack icon above text */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        align-items: center;
    }
    .service-icon {
        width: 60px !important;
        height: 60px !important;
        margin: 0 auto 0.5rem auto;
    }
    .service-item p {
        font-size: 0.95rem;
        line-height: 1.4;
    }
    .static-logo {
        content: url('portrait-logo.png');
    }
    nav {
        width: 100vw;
        left: 0;
        transform: none;
        top: 0;
        border-radius: 0;
    }
    nav ul {
        flex-wrap: wrap;
        gap: 0;
        width: 100vw;
        justify-content: flex-start;
    }
    nav li {
        flex: 1 1 50%;
        min-width: 50vw;
        text-align: center;
        box-sizing: border-box;
    }
    nav a {
        width: 100%;
        box-sizing: border-box;
        font-size: 11px;
        padding: 8px 0;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    .contact-form {
        padding: 1rem;
        margin: 0 1rem;
    }
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on mobile */
    }
    .content-section {
        padding: 40px 20px;
    }
    .content-section h2 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    .content-section p {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 10px;
    }
    .service-item {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    .service-icon {
        width: 36px;
        height: 36px;
    }
    .service-item p {
        text-align: center;
        font-size: 0.9rem;
    }
    .blue-box.reveal {
        /* Set your end transform here, e.g.: */
        transform: translate(calc(var(--end-x, 0)), calc(var(--end-y, 0)));
    }
}
