body {
    overflow-x: hidden;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease, width 0.2s ease, height 0.2s ease;
    transform: translate(-50%, -50%);
}

.custom-cursor.hover {
    width: 50px;
    height: 50px;
    background: rgba(255, 107, 53, 0.1);
}

@media (pointer: coarse) {
    .custom-cursor { display: none; }
}

.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-dropdown {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.nav-item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.project-card {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
    transform: translateY(-10px);
}

.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.skill-tag {
    transition: all 0.3s ease;
}

.skill-tag:hover {
    transform: scale(1.05) rotate(-2deg);
    box-shadow: 0 10px 30px -10px rgba(255, 107, 53, 0.3);
}

.whatsapp-float {
    animation: float 3s ease-in-out infinite;
    box-shadow: 0 10px 30px -5px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.1);
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.code-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.testimonial-card {
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.filter-btn.active {
    background-color: #ff6b35;
    color: white;
}

.blog-card {
    transition: all 0.4s ease;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

.form-input:focus {
    border-color: #ff6b35;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* Notification Toast Styles - Hidden by default */
.notification-toast {
    position: fixed;
    top: 100px;
    right: 30px;
    z-index: 9999;
    transform: translateX(150%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.35);
    max-width: 400px;
    width: calc(100% - 60px);
}

.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.notification-toast.hide {
    transform: translateX(150%);
    opacity: 0;
    pointer-events: none;
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    transform-origin: left;
}

.notification-progress.active {
    animation: progress 5s linear forwards;
}

@keyframes progress {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

.tech-stack-icon {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.tech-stack-icon:hover {
    transform: translateY(-5px) scale(1.15);
    color: var(--accent);
    filter: drop-shadow(0 5px 15px rgba(255, 107, 53, 0.2));
}

@media (max-width: 768px) {
    .code-window {
        transform: none !important;
        margin-top: 2rem;
    }
}
