* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #00ff88;
    --success-color: #00ff88;
    --error-color: #ff4757;
    --warning-color: #ffa502;
    --bg-dark: #0a0a0a;
    --bg-light: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-color: #ffffff;
    --neon-glow: 0 0 20px var(--primary-color);
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-radius: 15px;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.5;
    }
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 1;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

/* Main Card Container */
.card-container {
    position: relative;
    z-index: 10;
    max-width: 400px;
    width: 90%;
    margin: 20px;
}

.digital-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    border: 2px solid;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    padding: 30px;
    text-align: center;
    box-shadow:
        0 15px 35px rgba(0, 212, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.digital-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent,
            rgba(0, 212, 255, 0.1),
            transparent);
    animation: shimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.digital-card:hover {
    transform: translateY(-5px);
    box-shadow:
        0 25px 50px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Profile Section */
.profile-section {
    margin-bottom: 30px;
    position: relative;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--bg-dark);
    box-shadow: var(--neon-glow);
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.avatar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: avatarShine 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes avatarShine {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.name {
    font-family: 'Orbitron', monospace;
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 10px var(--primary-color));
    }

    to {
        filter: drop-shadow(0 0 20px var(--accent-color));
    }
}

.title {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-weight: 300;
}

/* Skills Section */
.skills-section {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.skill-item {
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    padding: 15px 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.3), transparent);
    transition: all 0.3s ease;
}

.skill-item:hover::before {
    left: 100%;
}

.skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.3);
    border-color: var(--accent-color);
}

.skill-item i {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
}

.skill-item span {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Contact Form */
.contact-section {
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    transition: all 0.3s ease;
}

.form-group.success .form-input {
    border-bottom-color: var(--success-color);
}

.form-group.error .form-input {
    border-bottom-color: var(--error-color);
}

.form-input {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--text-secondary);
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-bottom-color: var(--primary-color);
}

.form-input:focus+.form-label,
.form-input:not(:placeholder-shown)+.form-label {
    transform: translateY(-25px);
    font-size: 14px;
    color: var(--primary-color);
}

.form-label {
    position: absolute;
    top: 15px;
    color: var(--text-secondary);
    font-size: 16px;
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-group label {
    display: block;
    margin-bottom: 5%;
    margin-right: 60%;
    font-weight: 500;
    color: var(--text-color);
    font-size: 1.1em;
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
    padding-top: 15px;
}

.character-count {
    position: absolute;
    bottom: -20px;
    right: 0;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.character-count.warning {
    color: var(--warning-color);
}

.character-count.error {
    color: var(--error-color);
}

.error-message {
    color: var(--error-color);
    font-size: 0.9em;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.error-message.show {
    opacity: 1;
    transform: translateY(0);
}

.submit-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--bg-dark);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: all 0.3s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Social Links */
.social-section {
    margin-top: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: all 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
    color: var(--bg-dark);
}

.social-link i {
    position: relative;
    z-index: 1;
}

/* Loading Animation */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 212, 255, 0.3);
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: var(--border-radius);
    padding: 15px 20px;
    color: var(--text-primary);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.3);
    z-index: 1001;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-color: var(--success-color);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.3);
}

.notification.error {
    border-color: var(--error-color);
    box-shadow: 0 15px 35px rgba(255, 71, 87, 0.3);
}

.notification i {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .card-container {
        max-width: 350px;
    }

    .digital-card {
        padding: 20px;
    }

    .name {
        font-size: 24px;
    }

    .avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
        gap: 10px;
    }

    .social-links {
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .card-container {
        max-width: 300px;
    }

    .digital-card {
        padding: 15px;
    }

    .name {
        font-size: 20px;
    }

    .avatar {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
}