* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Professional Color Palette */
    --primary-color: #4f46e5;    /* Indigo */
    --secondary-color: #7c3aed;  /* Purple */
    --accent-color: #06b6d4;     /* Cyan */
    --success-color: #10b981;    /* Emerald */
    --warning-color: #f59e0b;    /* Amber */
    --text-color: #f8fafc;       /* Slate 50 */
    --dark-bg: #0f172a;          /* Slate 900 */
    --darker-bg: #020617;        /* Slate 950 */
    --card-bg: rgba(30, 41, 59, 0.7); /* Slate 800 with opacity */
    
    /* Enhanced Shadows and Effects */
    --card-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --hover-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --neon-glow: 0 0 10px rgba(79, 70, 229, 0.5);
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --accent-gradient: linear-gradient(135deg, var(--accent-color), var(--success-color));
    --glass-gradient: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.05)
    );
}

body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(76, 0, 255, 0.1), transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(255, 0, 255, 0.1), transparent 40%);
    cursor: none; /* Hide default cursor */
}

nav {
    background: rgba(10, 10, 46, 0.8);
    backdrop-filter: blur(10px);
    color: var(--text-color);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--cosmic-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background: rgba(0, 255, 255, 0.1);
    color: var(--primary-color);
}

section {
    padding: 5rem 2rem;
}

#home {
    min-height: 100vh;
    background: var(--darker-bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.space-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, var(--primary-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, var(--secondary-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, var(--accent-color), rgba(0,0,0,0)),
        radial-gradient(2px 2px at 80px 120px, var(--primary-color), rgba(0,0,0,0));
    background-repeat: repeat;
    animation: space-float 20s linear infinite;
}

.hero-container {
    width: 100%;
    max-width: 1200px;
    padding: 2rem;
    z-index: 2;
}

.hero-content {
    text-align: center;
    transform-style: preserve-3d;
    animation: content-float 6s ease-in-out infinite;
}

.glowing-circle {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto 3rem;
}

.circle-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--primary-gradient);
    opacity: 0.1;
    animation: ripple 2s ease-out infinite;
}

.circle-core {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-gradient);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.tech-ring {
    position: absolute;
    width: 150%;
    height: 150%;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    animation: rotate 20s linear infinite;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
    margin: 0;
    z-index: 1;
}

.hero-text-container {
    margin-top: 2rem;
}

.hero-subtitle {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.primary-btn, .secondary-btn {
    position: relative;
    padding: 1rem 2rem;
    border: none;
    background: var(--primary-gradient);
    color: var(--text-color);
    font-weight: 600;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.secondary-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
}

.btn-content {
    position: relative;
    z-index: 1;
}

.btn-glitch {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.primary-btn:hover .btn-glitch,
.secondary-btn:hover .btn-glitch {
    transform: rotate(45deg) translate(100%, 100%);
}

.social-links-container {
    margin-top: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.social-link {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass-gradient);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.social-hover {
    position: absolute;
    bottom: -30px;
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateZ(20px);
    background: var(--primary-gradient);
}

.social-link:hover .social-hover {
    opacity: 1;
    transform: translateY(0);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-color);
    animation: bounce 2s infinite;
}

.mouse {
    display: block;
    width: 26px;
    height: 46px;
    border: 2px solid var(--text-color);
    border-radius: 13px;
    margin: 0 auto 10px;
    position: relative;
}

.wheel {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel 2s infinite;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes content-float {
    0%, 100% { transform: translateY(0) translateZ(0); }
    50% { transform: translateY(-20px) translateZ(30px); }
}

@keyframes wheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .glowing-circle {
        width: 200px;
        height: 200px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .social-links {
        flex-wrap: wrap;
    }
}

#services {
    padding: 8rem 4rem;
    background: var(--darker-bg);
}

#services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    border-image: var(--cosmic-gradient) 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.service-card ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-card ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.btn {
    position: relative;
    padding: 1rem 2rem;
    background: var(--glass-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transform: perspective(1000px) translateZ(0);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: transform 0.6s ease;
}

.btn:hover {
    transform: perspective(1000px) translateZ(20px);
    box-shadow: var(--hover-shadow);
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover::after {
    transform: rotate(45deg) translate(100%, 100%);
}

#contact {
    padding: 8rem 4rem;
    background: var(--darker-bg);
    position: relative;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-card {
    background: var(--glass-gradient);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: perspective(1000px) translateZ(20px);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 2rem;
}

.contact-header h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
}

.designation {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: perspective(1000px) translateZ(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(79, 70, 229, 0.3));
}

.contact-text h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.contact-text p {
    color: var(--text-color);
    opacity: 0.8;
}

.contact-social {
    text-align: center;
}

.contact-social h4 {
    color: var(--text-color);
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    transform-style: preserve-3d;
}

.social-item:hover {
    transform: perspective(1000px) translateZ(20px);
}

.social-item i {
    font-size: 1.2rem;
}

.social-item span {
    font-weight: 500;
}

/* Social Media Brand Colors */
.social-item.facebook:hover {
    background: #1877f2;
}

.social-item.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.social-item.twitter:hover {
    background: #1da1f2;
}

.social-item.linkedin:hover {
    background: #0077b5;
}

.social-item.github:hover {
    background: #333;
}

.social-item.whatsapp:hover {
    background: #25d366;
}

/* 3D Floating Effect */
@keyframes contact-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.contact-card {
    animation: contact-float 6s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    #contact {
        padding: 4rem 1.5rem;
    }

    .contact-card {
        padding: 2rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-item {
        padding: 0.8rem;
    }
}

/* Add glowing orbs in background */
.contact-container::before,
.contact-container::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.1;
    z-index: -1;
}

.contact-container::before {
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation: orb-float 8s ease-in-out infinite;
}

.contact-container::after {
    background: var(--secondary-color);
    bottom: -100px;
    right: -100px;
    animation: orb-float 8s ease-in-out infinite reverse;
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(30px, -30px);
    }
}

footer {
    background: var(--darker-bg);
    color: white;
    text-align: center;
    padding: 2rem;
    border-top: 1px solid rgba(0, 255, 255, 0.1);
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-links {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    #services {
        padding: 4rem 2rem;
    }

    .services-grid {
        gap: 1.5rem;
    }

    .contact-info {
        margin: 0 1rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .service-card, .contact-info {
    animation: fadeIn 1s ease-out;
}

#about {
    padding: 8rem 4rem;
    background: var(--darker-bg);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 0 2rem;
}

.about-content {
    animation: fadeIn 1s ease-out;
}

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.skills {
    margin-bottom: 2rem;
}

.skills h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.skill-tags span {
    background: rgba(13, 13, 48, 0.7);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-tags span::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--cosmic-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: rotate(45deg);
}

.skill-tags span:hover::before {
    opacity: 0.1;
}

.about-image {
    position: relative;
    animation: fadeIn 1s ease-out 0.3s;
}

.about-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: 1rem;
    z-index: -1;
    box-shadow: var(--neon-glow);
}

.about-btn {
    margin-top: 1rem;
}

@media (max-width: 768px) {
    #about {
        padding: 4rem 2rem;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-image {
        order: -1;
    }

    .about-image::before {
        display: none;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .skill-tags {
        gap: 0.5rem;
    }
}

.typed-text {
    position: relative;
    background: linear-gradient(
        45deg,
        var(--primary-color),
        var(--secondary-color),
        #fff,
        var(--primary-color)
    );
    background-size: 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 8s linear infinite;
}

.cursor {
    position: relative;
    background: linear-gradient(
        to bottom,
        var(--primary-color),
        var(--secondary-color)
    );
    box-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--secondary-color),
        0 0 30px var(--primary-color);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 300% 50%;
    }
}

#credentials {
    padding: 8rem 4rem;
    background: var(--dark-bg);
}

.credentials-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.credential-box {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--card-shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.credential-box:hover {
    border-image: var(--cosmic-gradient) 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.credential-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-shadow: var(--neon-glow);
}

.credential-box h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.credential-content h4 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.credential-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
}

.skills-showcase {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.skills-showcase h3 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
}

.skill-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.skill-badge {
    background: var(--card-bg);
    padding: 1rem 1.5rem;
    border-radius: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.skill-badge:hover {
    border-image: var(--cosmic-gradient) 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    transform: translateY(-5px);
}

.skill-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
    text-shadow: var(--neon-glow);
}

.skill-badge span {
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    #credentials {
        padding: 4rem 2rem;
    }

    .credentials-container {
        gap: 1.5rem;
    }

    .skill-badges {
        gap: 1rem;
    }

    .skill-badge {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
}

@keyframes glow {
    0% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.5);
    }
}

/* Add star background animation */
@keyframes move-twinkle {
    from { transform: translateY(0); }
    to { transform: translateY(-1000px); }
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%;
    pointer-events: none;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 40px 70px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 50px 160px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 80px 120px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 110px 130px, white, rgba(0,0,0,0)),
        radial-gradient(1px 1px at 140px 80px, white, rgba(0,0,0,0));
    background-repeat: repeat;
    animation: move-twinkle 50s linear infinite;
}

/* Cosmic Glow Animation */
@keyframes cosmic-pulse {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 0, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.5); }
}

.hero-title, .hero-subtitle {
    animation: cosmic-pulse 3s infinite;
}

/* Enhanced Section Backgrounds */
#about, #services, #credentials, #contact {
    position: relative;
    overflow: hidden;
}

#about::before, #services::before, #credentials::before, #contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(76, 0, 255, 0.1), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 0, 255, 0.1), transparent 40%);
    pointer-events: none;
}

/* Add these new keyframe animations */
@keyframes space-float {
    0% {
        transform: translateZ(0) rotate(0deg);
    }
    100% {
        transform: translateZ(0) rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateZ(0);
    }
    50% {
        transform: translateZ(30px);
    }
}

@keyframes profile-rotate {
    0% {
        transform: rotateY(0deg) translateZ(0);
    }
    100% {
        transform: rotateY(360deg) translateZ(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

@keyframes holographic {
    0% {
        background-position: 0%;
    }
    100% {
        background-position: 200%;
    }
}

/* Add a cosmic dust effect */
.cosmic-dust {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.4), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, rgba(255, 255, 255, 0.5), rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 80px 120px, rgba(255, 255, 255, 0.3), rgba(0, 0, 0, 0));
    background-repeat: repeat;
    animation: dust-float 20s linear infinite;
    pointer-events: none;
}

@keyframes dust-float {
    from {
        transform: translateY(0) rotate(0deg);
    }
    to {
        transform: translateY(-100%) rotate(360deg);
    }
}

/* 3D Card Enhancement */
.service-card, .credential-box, .skill-badge {
    transform-style: preserve-3d;
    perspective: 1000px;
    background: var(--glass-gradient);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover, .credential-box:hover, .skill-badge:hover {
    transform: perspective(1000px) translateZ(30px) rotateX(5deg);
}

/* 3D Section Headers */
section h2 {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    transform: scaleX(0.3);
    transform-origin: left;
    transition: transform 0.3s ease;
}

section:hover h2::after {
    transform: scaleX(1);
}

/* Enhanced 3D Social Links */
.social-links a {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: perspective(1000px) translateZ(30px) scale(1.1);
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--primary-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-links a:hover::before {
    opacity: 1;
}

/* 3D Skill Tags */
.skill-tags span {
    transform-style: preserve-3d;
    transition: all 0.3s ease;
}

.skill-tags span:hover {
    transform: perspective(1000px) translateZ(20px);
    background: var(--primary-gradient);
    color: var(--text-color);
}

/* Enhanced Section Backgrounds with 3D Depth */
section {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1000px;
}

section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(79, 70, 229, 0.1), transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.1), transparent 40%);
    transform: translateZ(-50px);
    pointer-events: none;
}

/* 3D Image Containers */
.profile-img, .about-image img {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.profile-img:hover, .about-image:hover img {
    transform: perspective(1000px) rotateY(10deg);
}

/* Animated Background Elements */
@keyframes float-3d {
    0%, 100% {
        transform: translateZ(0) translateY(0);
    }
    50% {
        transform: translateZ(20px) translateY(-20px);
    }
}

.floating-element {
    animation: float-3d 6s ease-in-out infinite;
}

.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary-gradient);
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.1;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 50%;
}

/* Update contact header spacing */
.contact-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    padding-top: 2rem;
}

.contact-header h3 {
    font-size: 2.2rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: var(--neon-glow);
}

/* Remove unused image-related styles */
.profile-img,
.about-image,
.contact-profile {
    display: none;
}

/* Add enhanced visual elements to compensate for removed images */
.contact-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-gradient);
    border-radius: 2px;
    box-shadow: var(--neon-glow);
}

/* Enhance section transitions */
section {
    position: relative;
    overflow: hidden;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to top, var(--darker-bg), transparent);
    pointer-events: none;
}

/* Custom Cursor Styles */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out, border-color 0.3s ease-out, background-color 0.3s ease-out;
    backdrop-filter: blur(2px);
    mix-blend-mode: difference;
}

.cursor-dot {
    width: 4px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s ease-out;
    mix-blend-mode: difference;
}

/* Cursor hover effects */
a:hover ~ .custom-cursor,
button:hover ~ .custom-cursor,
.service-card:hover ~ .custom-cursor {
    transform: scale(1.5);
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--secondary-color);
}

/* Enhanced Responsive Design */
/* Extra small devices (phones, 360px and down) */
@media only screen and (max-width: 360px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .glowing-circle {
        width: 180px;
        height: 180px;
    }

    .social-links {
        gap: 0.8rem;
    }

    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .cta-buttons {
        padding: 0 1rem;
    }

    .service-card {
        padding: 1.5rem;
    }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 361px) and (max-width: 600px) {
    nav {
        padding: 0.8rem;
    }

    .nav-links {
        gap: 0.5rem;
    }

    .nav-links a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .hero-container {
        padding: 1rem;
    }

    .service-card {
        margin: 0 1rem;
    }

    .contact-card {
        padding: 1.5rem;
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 601px) and (max-width: 768px) {
    .hero-container {
        padding: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .credentials-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 769px) and (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 993px) {
    .container {
        max-width: 1400px;
    }
}

/* Orientation specific styles */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .hero-container {
        padding-top: 4rem;
    }

    .glowing-circle {
        width: 150px;
        height: 150px;
        margin-bottom: 1rem;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor,
    .cursor-dot {
        display: none;
    }

    body {
        cursor: auto;
    }

    .service-card:hover,
    .social-link:hover,
    .btn:hover {
        transform: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ffffff;
        --text-color: #ffffff;
        --dark-bg: #000000;
        --card-bg: rgba(0, 0, 0, 0.9);
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* Ensure cursor is hidden on touch devices */
@media (hover: none) {
    .custom-cursor,
    .cursor-dot {
        display: none !important;
    }
} 