@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #000;
    color: #fff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(99, 102, 241, 0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(139, 92, 246, 0.1) 2px, transparent 2px);
    background-size: 100px 100px;
    animation: circuitPulse 4s ease-in-out infinite alternate;
}

@keyframes circuitPulse {
    0% { opacity: 0.3; }
    100% { opacity: 0.7; }
}

.code-rain {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.code-char {
    position: absolute;
    color: rgba(99, 102, 241, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 14px;
    animation: codeRainFall 15s linear infinite;
}

@keyframes codeRainFall {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

.terminal-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.terminal-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
    animation: terminalScan 8s ease-in-out infinite;
}

@keyframes terminalScan {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

.gradient-orbs {
    position: absolute;
    width: 100%;
    height: 100%;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.3;
}

.orb-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #6366f1, transparent);
    top: 20%;
    left: 10%;
    animation: float1 15s ease-in-out infinite;
}

.orb-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #8b5cf6, transparent);
    top: 60%;
    right: 20%;
    animation: float2 12s ease-in-out infinite reverse;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #06b6d4, transparent);
    bottom: 10%;
    left: 60%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(100px, -50px) rotate(120deg); }
    66% { transform: translate(-50px, 100px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-80px, -120px) rotate(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(120px, 80px) rotate(90deg); }
    75% { transform: translate(-100px, -60px) rotate(270deg); }
}

.floating-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 15s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
    position: relative;
    z-index: 1;
}

.header {
    text-align: center;
    margin-bottom: 100px;
}

.name {
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: -3px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #fff 0%, #a855f7 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
    }
    100% {
        text-shadow: 0 0 40px rgba(168, 85, 247, 0.6), 0 0 80px rgba(6, 182, 212, 0.3);
    }
}

.description {
    font-size: 1.3rem;
    font-weight: 300;
    color: #ccc;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-section {
    text-align: center;
    margin-top: 80px;
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.projects-btn, .info-btn {
    position: relative;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: #fff;
    padding: 18px 40px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.3);
}

.info-btn {
    background: linear-gradient(45deg, #059669, #0891b2);
    box-shadow: 0 8px 32px rgba(5, 150, 105, 0.3);
}

.projects-btn:hover, .info-btn:hover {
    transform: translateY(-3px);
}

.projects-btn:hover {
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.5);
}

.info-btn:hover {
    box-shadow: 0 12px 40px rgba(5, 150, 105, 0.5);
}

.projects-btn:hover .btn-glow, .info-btn:hover .btn-glow {
    opacity: 1;
}

.btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
    border-radius: 12px;
    opacity: 0;
    z-index: -1;
    filter: blur(6px);
    transition: opacity 0.3s ease;
    animation: btnGlowRotate 3s linear infinite;
}

@keyframes btnGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.projects-content {
    display: none;
    animation: fadeIn 0.6s ease-in;
}

.projects-content.active, .info-content.active {
    display: block;
}

.info-content {
    display: none;
    animation: fadeIn 0.6s ease-in;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.extras-title {
    margin-top: 80px;
    margin-bottom: 40px;
}

.extras-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 25px;
}

.contact-btn {
    margin-top: 20px;
    position: relative;
    background: linear-gradient(45deg, #059669, #0891b2);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.5);
}

.contact-btn:hover .contact-btn-glow {
    opacity: 1;
}

.contact-btn-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #059669, #0891b2, #06b6d4, #059669);
    border-radius: 8px;
    opacity: 0;
    z-index: -1;
    filter: blur(4px);
    transition: opacity 0.3s ease;
    animation: contactGlowRotate 3s linear infinite;
}

@keyframes contactGlowRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.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);
    align-items: center;
    justify-content: center;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: linear-gradient(145deg, rgba(20, 20, 30, 0.95), rgba(40, 40, 60, 0.95));
    margin: auto;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    position: relative;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from { 
        transform: translateY(-50px); 
        opacity: 0; 
    }
    to { 
        transform: translateY(0); 
        opacity: 1; 
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #fff;
}

.modal-title {
    color: #fff;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 600;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ddd;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(168, 85, 247, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-top: 10px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff33;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-message,
.error-message {
    display: none;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    font-weight: 500;
}

.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.info-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
    text-align: center;
}

.info-card:hover {
    border-color: rgba(5, 150, 105, 0.3);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

.info-card:hover .card-glow {
    opacity: 1;
}

.extras-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.payment-card:hover {
    border-color: rgba(6, 182, 212, 0.3);
}

.info-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    display: block;
}

.info-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.info-desc {
    color: #bbb;
    line-height: 1.5;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.payment-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.payment-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.robux-icon, .paypal-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.robux-icon {
    background: linear-gradient(45deg, #00A2FF, #0078CC);
    color: #fff;
}

.paypal-icon {
    background: linear-gradient(45deg, #0070BA, #003087);
    color: #fff;
}

.payment-item span {
    font-size: 0.8rem;
    color: #ccc;
}

.back-btn {
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
    transform: translateX(-5px);
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #fff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.05);
}

.project-card:hover .card-glow {
    opacity: 1;
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #fff;
    position: relative;
    z-index: 1;
}

.project-desc {
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 25px;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.project-video {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 315px;
}

.project-video iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #ddd;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.4);
    color: #fff;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }
    
    .description {
        font-size: 1.1rem;
    }
    
    .projects-grid, .info-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .projects-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .container {
        padding: 60px 15px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .orb-1, .orb-2, .orb-3 {
        width: 150px;
        height: 150px;
    }
    
    .code-char {
        font-size: 12px;
    }
    
    .payment-methods {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-card {
        padding: 25px;
    }
    
    .modal-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .extras-grid {
        max-width: 100%;
    }
}