/* Global Styles */
:root {
    --primary-color: #8a2be2;
    --secondary-color: #00ffff;
    --dark-bg: #0a192f;
    --darker-bg: #060c18;
    --light-text: #e6f1ff;
    --gray-text: #8892b0;
    --border-color: #233554;
    --card-bg: rgba(17, 34, 64, 0.7);
    --transition: all 0.3s ease;
    --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
    --neon-glow: 0 0 10px rgba(138, 43, 226, 0.8), 0 0 20px rgba(138, 43, 226, 0.6), 0 0 30px rgba(138, 43, 226, 0.4);
    --cyan-glow: 0 0 10px rgba(0, 255, 255, 0.8), 0 0 20px rgba(0, 255, 255, 0.6), 0 0 30px rgba(0, 255, 255, 0.4);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(30, 30, 60, 0.3) 0%, rgba(10, 10, 26, 0.5) 100%);
    z-index: -1;
}

a {
    text-decoration: none;
    color: var(--light-text);
    transition: var(--transition);
}

ul {
    list-style: none;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}

.highlight {
    color: var(--primary-color);
}

section {
    padding: 5rem 2rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    z-index: -1;
}

.btn:hover::before {
    width: 100%;
}

.primary {
    background: var(--primary-color);
    color: var(--darker-bg);
    box-shadow: 0 0 15px rgba(11, 231, 121, 0.5);
}

.primary:hover {
    box-shadow: 0 0 25px rgba(11, 231, 121, 0.7);
    transform: translateY(-3px);
}

.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary:hover {
    background: rgba(11, 231, 121, 0.1);
    box-shadow: 0 0 15px rgba(11, 231, 121, 0.3);
    transform: translateY(-3px);
}

.btn.small {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(5, 5, 16, 0.8);
    backdrop-filter: blur(10px);
}

.logo a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
    overflow: hidden;
}

.logo-image {
    width: 50px;
    height: 50px;
    z-index: 2;
    position: relative;
    transition: var(--transition);
    filter: drop-shadow(0 0 10px rgba(138, 43, 226, 0.5));
}

.logo-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.4) 0%, rgba(0, 255, 255, 0.3) 30%, rgba(138, 43, 226, 0.2) 60%, transparent 100%);
    border-radius: 50%;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
    box-shadow: 0 0 20px rgba(138, 43, 226, 0.3);
}

.logo a:hover .logo-background {
    width: 150px;
    height: 150px;
    animation: logo-grow 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 40px rgba(138, 43, 226, 0.5), 0 0 60px rgba(0, 255, 255, 0.3);
}

.logo a:hover .logo-image {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8));
}

@keyframes logo-grow {
    0% {
        width: 0;
        height: 0;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    30% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.8);
    }
    60% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        width: 150px;
        height: 150px;
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Additional pulse effect for the logo */
.logo a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: logo-pulse 3s infinite;
    z-index: 0;
}

@keyframes logo-pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.6);
        opacity: 0;
    }
}

/* Enhanced hover effects */
.logo a:hover::before {
    animation: logo-pulse 1.5s infinite;
    border-color: var(--secondary-color);
}

.logo a:hover .logo-background {
    background: radial-gradient(circle, rgba(138, 43, 226, 0.5) 0%, rgba(0, 255, 255, 0.4) 25%, rgba(138, 43, 226, 0.3) 50%, rgba(0, 255, 255, 0.2) 75%, transparent 100%);
    box-shadow: 0 0 50px rgba(138, 43, 226, 0.4), 0 0 80px rgba(0, 255, 255, 0.2);
}

/* Add a second pulse ring for more dramatic effect */
.logo a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 1px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0;
    animation: logo-pulse-2 4s infinite;
    z-index: 0;
}

@keyframes logo-pulse-2 {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.logo a:hover::after {
    animation: logo-pulse-2 2s infinite;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

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

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    margin: 5px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(11, 231, 121, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 231, 121, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    perspective: 1000px;
    transform-style: preserve-3d;
    animation: grid-animation 20s linear infinite;
}

@keyframes grid-animation {
    0% {
        transform: rotateX(60deg) translateZ(-100px) translateY(-100px);
    }
    100% {
        transform: rotateX(60deg) translateZ(-100px) translateY(0);
    }
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-text);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Glitch Effect */
.glitch {
    position: relative;
    color: var(--light-text);
    animation: glitch 5s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    color: var(--primary-color);
    z-index: -1;
    animation: glitch-effect 3s infinite;
}

.glitch::after {
    color: var(--secondary-color);
    z-index: -2;
    animation: glitch-effect 2s infinite reverse;
}

@keyframes glitch-effect {
    0% {
        transform: translate(0);
    }
    20% {
        transform: translate(-3px, 3px);
    }
    40% {
        transform: translate(-3px, -3px);
    }
    60% {
        transform: translate(3px, 3px);
    }
    80% {
        transform: translate(3px, -3px);
    }
    100% {
        transform: translate(0);
    }
}

/* Typewriter Effect */
.typewriter {
    overflow: hidden;
    border-right: 2px solid var(--primary-color);
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: 0.1em;
    animation: 
        typing 3.5s steps(40, end),
        blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: var(--primary-color) }
}

/* Code Snippet */
.code-snippet {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    max-width: 400px;
    opacity: 0.7;
    display: none;
}

.code-snippet pre {
    background: rgba(5, 5, 16, 0.8);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--primary-color);
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--gray-text);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.code-snippet code {
    color: var(--light-text);
}

/* About Section */
.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-image {
    flex: 1;
    position: relative;
    max-width: 300px;
    margin: 0 auto;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    filter: grayscale(100%);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.profile-image:hover img {
    filter: grayscale(0%);
}

.profile-image::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    z-index: -1;
    transition: var(--transition);
}

.profile-image:hover::after {
    top: 10px;
    left: 10px;
    right: -10px;
    bottom: -10px;
}

.about-text {
    flex: 2;
}

.about-text p {
    margin-bottom: 1.5rem;
    color: var(--gray-text);
}

.status {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(11, 231, 121, 0.1);
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.status::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
    margin-right: 0.5rem;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.education-experience {
    margin-top: 3rem;
}

.education-experience h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
}

.education-item,
.experience-item {
    margin-bottom: 2rem;
    position: relative;
    padding-left: 2rem;
}

.education-item::before,
.experience-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(11, 231, 121, 0.5);
}

.education-item::after,
.experience-item::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1rem;
    bottom: -1rem;
    width: 2px;
    background: var(--primary-color);
    opacity: 0.3;
}

.education-item:last-child::after,
.experience-item:last-child::after {
    display: none;
}

.education-item h4,
.experience-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.education-item p,
.experience-item p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

.date {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Skills Section */
.skills-container {
    max-width: 1200px;
    margin: 0 auto;
}

.skill-category {
    margin-bottom: 3rem;
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--light-text);
    position: relative;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

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

.skill-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.skill-name span {
    font-weight: 500;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-animation 2s linear infinite;
}

@keyframes progress-animation {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Projects Section */
.projects-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(110, 91, 250, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.project-description {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tag {
    padding: 0.3rem 0.8rem;
    background: rgba(110, 91, 250, 0.1);
    color: var(--secondary-color);
    border-radius: 30px;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.project-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Contact Section */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.contact-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.contact-text p, .contact-text a {
    color: var(--gray-text);
    transition: var(--transition);
}

.contact-text a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.form-control {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--light-text);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(11, 231, 121, 0.3);
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--darker-bg);
    padding: 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.footer-links a {
    color: var(--gray-text);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

/* Landing Page Styles */
.landing-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: 2rem;
}

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

.landing-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.landing-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 5px;
}

.landing-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 3rem;
}

.section-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    width: 100%;
    max-width: 1000px;
}

.section-link {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-align: center;
}

.section-link:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.section-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-link h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.section-link p {
    font-size: 0.9rem;
    color: var(--gray-text);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }
    
    .profile-image {
        margin-bottom: 2rem;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .projects-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .code-snippet {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--darker-bg);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1000;
    }
    
    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skill-grid {
        grid-template-columns: 1fr;
    }
    
    .section-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .projects-container {
        grid-template-columns: 1fr;
    }
}

/* Import Modern Home Styles */
@import url('modern-home.css');
