@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--accent-color);
    animation: 
        typewriter 4s steps(40) 1s forwards,
        blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Navbar Responsiveness */
@media (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--glass-bg);
        backdrop-filter: blur(10px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* Tech Stack Responsiveness */
@media (max-width: 1200px) {
    .tech-stack {
        gap: 0.7rem;
    }
    
    .tech-stack span {
        font-size: 0.8rem;
        padding: 0.3rem 0.7rem;
    }

    .contact-grid {
        gap: 2rem;
    }
    
    .contact-info-card,
    .contact-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .tech-stack {
        gap: 0.6rem;
    }
    
    .tech-stack span {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }

    .contact-section {
        padding: 4rem 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-card,
    .contact-form-container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-stack span {
        font-size: 0.7rem;
        padding: 0.2rem 0.5rem;
    }

    .contact-section {
        padding: 2rem 0;
    }
    
    .contact-grid {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .contact-info-card,
    .contact-form-container {
        padding: 1rem;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cloud {
        filter: blur(60px);
    }
    
    .cloud-1 {
        width: 300px;
        height: 300px;
    }
    
    .cloud-2 {
        width: 250px;
        height: 250px;
    }
    
    .cloud-3 {
        width: 200px;
        height: 200px;
    }
    
    .cloud-4 {
        width: 280px;
        height: 280px;
    }
}
/* Responsive adjustments */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-section ul li {
        margin-bottom: 0.8rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
    
    .credits {
        font-size: 0.75rem;
    }
}