/* Custom Cursor Styles - Simplified */
* {
    cursor: none !important;
}

.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.15s ease, opacity 0.15s ease;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px var(--accent);
}

.cursor-follower {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: all 0.2s ease;
    transform: translate(-50%, -50%);
    opacity: 0.6;
    background-color: rgba(0, 217, 255, 0.4);
}

/* Cursor hover states */
body.cursor-hover .cursor {
    transform: translate(-50%, -50%) scale(1.5);
}

body.cursor-hover .cursor-follower {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 0.8;
}

/* Cursor click state */
body.cursor-click .cursor {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Interactive Background Elements */
.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
}

.floating-shape.circle {
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
}

.floating-shape.square {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-secondary) 100%);
    opacity: 0.05;
}

.floating-shape.triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid var(--accent-secondary);
    opacity: 0.08;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(100px, -100px) rotate(90deg);
    }
    50% {
        transform: translate(200px, 50px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 100px) rotate(270deg);
    }
}


/* Modal Styles for Documents/Certifications */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 3rem;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: transparent;
    color: var(--accent);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: var(--accent);
    color: #000;
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.document-card {
    background: rgba(0, 217, 255, 0.05);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    cursor: pointer;
}

.document-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.document-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #000;
}

.document-title {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.document-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.document-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.document-link:hover {
    color: var(--accent-secondary);
    transform: translateX(5px);
}

/* Floating button to open modal */
.floating-docs-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient);
    border-radius: 50%;
    border: none;
    color: #000;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 25px rgba(0, 217, 255, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-docs-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 35px rgba(0, 217, 255, 0.6);
}

.floating-docs-btn i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Responsive - disable custom cursor on mobile */
@media (max-width: 768px) {
    * {
        cursor: auto !important;
    }
    
    .cursor,
    .cursor-follower {
        display: none !important;
    }
    
    .modal-content {
        padding: 2rem;
        width: 95%;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .floating-docs-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}