/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111111;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 4px;
    border: 1px solid #222;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(45deg, #00cccc, #0066cc);
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 25% 25%, #001122 0%, #000000 50%, #001100 100%);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 
        100px 200px #00ffff,
        300px 100px #0080ff,
        500px 300px #00ffff,
        700px 150px #0080ff,
        900px 250px #00ffff,
        200px 400px #0080ff,
        600px 450px #00ffff,
        800px 350px #0080ff;
    animation: sparkle 3s ease-in-out infinite alternate;
}

.particles::after {
    animation-delay: 1.5s;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

@keyframes sparkle {
    0% { opacity: 0.3; }
    100% { opacity: 1; }
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 24px;
    font-weight: 900;
    position: relative;
}

.logo .dragon {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.logo .dev {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

.logo .domain {
    position: absolute;
    bottom: -8px;
    right: -5px;
    font-size: 8px;
    color: #8a2be2;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(138, 43, 226, 0.8);
    font-weight: bold;
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #00ffff;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-family: 'Orbitron', monospace;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    margin-bottom: 20px;
    position: relative;
}

.dragon-text {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.dev-text {
    color: #00ffff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    position: relative;
}

.domain-text {
    position: absolute;
    bottom: -15px;
    right: 10px;
    font-size: clamp(0.6rem, 1.5vw, 1rem);
    color: #8a2be2;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 10px rgba(138, 43, 226, 0.8);
    font-weight: bold;
    letter-spacing: 1px;
}

.hero-subtitle {
    margin-bottom: 40px;
}

.bio {
    font-size: 1.5rem;
    color: #cccccc;
    font-weight: 300;
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ffff, #0080ff);
    color: #000000;
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.5);
}

.btn-secondary {
    background: transparent;
    color: #00ffff;
    border: 2px solid #00ffff;
}

.btn-secondary:hover {
    background: #00ffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.3);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-family: 'Orbitron', monospace;
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: #00ffff;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #cccccc;
}

.skills {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.skill {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #00ffff;
    transition: all 0.3s ease;
}

.skill:hover {
    background: rgba(0, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Projects Section */
.projects-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.project-card {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.project-card:hover::before {
    left: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: #00ffff;
    box-shadow: 0 15px 30px rgba(0, 255, 255, 0.2);
}

.project-banner {
    text-align: center;
    margin-bottom: 20px;
}

.project-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: #000000;
}

.project-title {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    color: #00ffff;
    margin-bottom: 15px;
    text-align: center;
}

.project-description {
    color: #cccccc;
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: rgba(0, 128, 255, 0.2);
    color: #0080ff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    border: 1px solid rgba(0, 128, 255, 0.3);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ffff;
    font-weight: 600;
    justify-content: center;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    border-color: #00ffff;
    box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00ffff, #0080ff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #000000;
}

.contact-info h3 {
    font-family: 'Orbitron', monospace;
    color: #00ffff;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.contact-info a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #00ffff;
}

.contact-info span {
    color: #cccccc;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    padding: 40px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-left p {
    color: #cccccc;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00ffff;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav {
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .projects-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .domain-text {
        bottom: -10px;
        right: 5px;
        font-size: 0.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding-top: 120px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .project-card,
    .contact-item {
        padding: 20px;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}
