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

body {
    background-color: #000000;
    font-family: 'Courier New', monospace;
    color: white;
    overflow-x: hidden;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.intro-content {
    text-align: center;
    width: 100%;
    padding: 20px;
}

.intro-title {
    font-size: 3rem;
    font-weight: 700;
    width: 100%;
    overflow: hidden;
}

.title-text {
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    overflow: hidden;
    width: 0;
    animation: typing 3.5s steps(30, end) forwards, blink-caret 0.75s step-end infinite 3.5s;
    border-right: 3px solid white;
}

@keyframes typing {
    0% { width: 0; }
    50% { width: 45%; }
    100% { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

.intro-overlay {
    animation: fadeOut 0.5s 4s forwards;
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { 
        opacity: 0; 
        visibility: hidden;
        display: none;
    }
}

.main-container {
    min-height: 100vh;
    width: 100%;
    padding: 40px 20px;
    opacity: 0;
    animation: fadeIn 0.5s 4.1s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.hero {
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.profile-section {
    background: rgba(20, 20, 20, 0.95);
    border-radius: 20px;
    padding: 40px;
    border: 2px solid #ff0000;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 50px rgba(255, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s 4.3s forwards;
}

@keyframes slideUp {
    0% { 
        opacity: 0;
        transform: translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    margin-bottom: 25px;
    opacity: 0;
    animation: fadeIn 0.8s 4.5s forwards;
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff0000;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.about-section, .skills-section, .contact-section {
    margin-bottom: 30px;
    opacity: 0;
}

.about-section {
    animation: fadeIn 0.8s 4.7s forwards;
}

.skills-section {
    animation: fadeIn 0.8s 4.9s forwards;
}

.contact-section {
    animation: fadeIn 0.8s 5.1s forwards;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ff0000;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #ff0000;
    box-shadow: 0 0 10px #ff0000;
}

.about-section p {
    font-size: 1rem;
    color: white;
    line-height: 1.6;
    margin-bottom: 20px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 0, 0, 0.15);
    color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 0, 0, 0.4);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
    animation: tagAppear 0.5s forwards;
}

.skill-tag:nth-child(1) { animation-delay: 5.3s; }
.skill-tag:nth-child(2) { animation-delay: 5.4s; }
.skill-tag:nth-child(3) { animation-delay: 5.5s; }
.skill-tag:nth-child(4) { animation-delay: 5.6s; }
.skill-tag:nth-child(5) { animation-delay: 5.7s; }
.skill-tag:nth-child(6) { animation-delay: 5.8s; }

@keyframes tagAppear {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.4);
    background: rgba(255, 0, 0, 0.25);
}

.skill-tag i {
    font-size: 1.1rem;
    color: #ff0000;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.contact-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 0, 0, 0.15);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 0, 0, 0.4);
    transition: all 0.3s;
    font-size: 1rem;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.6s forwards;
}

.contact-link:nth-child(1) { animation-delay: 5.9s; }
.contact-link:nth-child(2) { animation-delay: 6.1s; }
.contact-link:nth-child(3) { animation-delay: 6.3s; }

@keyframes slideIn {
    0% { 
        opacity: 0;
        transform: translateX(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-link:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 0, 0, 0.4);
}

.contact-link i {
    font-size: 1.3rem;
    color: #ff0000;
}

.dev {
    text-align: center;
    margin-top: 50px;
    font-size: 0.9rem;
    color: #aaaaaa;
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 0.8s 6.5s forwards;
}

.dev a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.dev a:hover {
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.8);
}

.projects-container {
    min-height: 100vh;
    width: 100%;
    padding: 60px 20px;
    background: #000000;
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.projects-wrapper {
    max-width: 1400px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s 0.3s forwards;
}

@keyframes fadeInDown {
    0% { 
        opacity: 0;
        transform: translateY(-20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-header h2 {
    font-size: 3rem;
    color: white;
    margin-bottom: 15px;
    text-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.projects-intro {
    color: #aaaaaa;
    font-size: 1.2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.project-card {
    background: rgba(30, 30, 30, 0.95);
    border-radius: 20px;
    padding: 30px;
    border: 2px solid rgba(255, 0, 0, 0.4);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.6s forwards;
}

.project-card:nth-child(1) { animation-delay: 0.5s; }
.project-card:nth-child(2) { animation-delay: 0.7s; }
.project-card:nth-child(3) { animation-delay: 0.9s; }

@keyframes cardAppear {
    0% { 
        opacity: 0;
        transform: translateY(30px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card:hover:not(.coming-soon) {
    border-color: #ff0000;
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 0, 0, 0.3);
}

.project-card.coming-soon {
    opacity: 0.9;
    border-color: rgba(255, 0, 0, 0.2);
}

.project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: white;
    text-align: left;
}

.project-content h3::after {
    left: 0;
    transform: none;
}

.project-description {
    color: #cccccc;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex: 1;
}

.project-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px;
    background: rgba(255, 0, 0, 0.2);
    color: white;
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 1rem;
    margin-top: auto;
}

.project-btn:hover:not(.disabled) {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.project-btn i {
    font-size: 1.2rem;
    color: #ff0000;
}

.project-btn.disabled {
    background: rgba(100, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.3);
    color: #aaaaaa;
    cursor: not-allowed;
}

.coming-soon-text {
    color: #ff0000;
    font-weight: 700;
    letter-spacing: 2px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.back-to-main {
    text-align: center;
    margin-top: 40px;
    opacity: 0;
    animation: fadeIn 0.8s 1.1s forwards;
}

.back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(255, 0, 0, 0.15);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 0, 0.4);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 700;
    font-size: 1.1rem;
    width: fit-content;
    margin: 0 auto;
}

.back-btn:hover {
    background: rgba(255, 0, 0, 0.3);
    border-color: #ff0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.4);
}

.back-btn i {
    font-size: 1.2rem;
    color: #ff0000;
}

@media (max-width: 768px) {
    .intro-title {
        font-size: 2rem;
    }
    
    .title-text {
        font-size: 2rem;
    }
    
    .profile-section {
        padding: 30px 20px;
        margin: 0 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-header h2 {
        font-size: 2.5rem;
    }
    
    .project-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .intro-title {
        font-size: 1.5rem;
    }
    
    .title-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .profile-section {
        padding: 25px 15px;
    }
    
    .projects-header h2 {
        font-size: 2rem;
    }
    
    .project-card {
        padding: 20px;
    }
    
    .logo {
        width: 120px;
        height: 120px;
    }
}