/* Base Styles */
:root {
    --primary-color: #6e5bfa; /* Soft neon purple */
    --secondary-color: #121212;
    --background-color: #121212;
    --card-background: #1e1e1e;
    --text-color: #EAEAEA;
    --light-gray: #2a2a2a;
    --medium-gray: #333333;
    --dark-gray: #888888;
    --transition-speed: 0.3s;
    --neon-glow: 0 0 10px rgba(110, 91, 250, 0.5);
    --neon-glow-strong: 0 0 15px rgba(110, 91, 250, 0.8);
    --accent-color-blue: #5b8efa;
    --accent-color-green: #5bfaa5;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    background: linear-gradient(135deg, #121212 0%, #1a1a1a 100%);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Transition */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    z-index: -1;
    transform: translateY(100%);
    pointer-events: none;
    opacity: 0;
}

.page-transition.active {
    transform: translateY(0);
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color-blue);
    text-shadow: var(--neon-glow);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(110, 91, 250, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-speed) ease;
    box-shadow: var(--neon-glow);
}

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

.nav-link.active {
    color: var(--primary-color);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: transparent;
    transform: translateY(-3px);
    box-shadow: var(--neon-glow-strong);
    color: var(--primary-color);
}

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

.btn-secondary:hover {
    background-color: rgba(110, 91, 250, 0.1);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--neon-glow);
}

/* Sections */
.section {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    color: var(--text-color);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    box-shadow: var(--neon-glow);
}

/* Section Connectors */
.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    height: 100px;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.section.visible::before {
    opacity: 1;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 5px rgba(110, 91, 250, 0.3); }
    50% { box-shadow: 0 0 15px rgba(110, 91, 250, 0.7); }
    100% { box-shadow: 0 0 5px rgba(110, 91, 250, 0.3); }
}

/* Hero Section */
#hero {
    background-color: var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    min-height: 3rem;
}

.static-text {
    color: var(--text-color);
}

.typing-text {
    color: var(--primary-color);
    overflow: hidden;
    white-space: nowrap;
    display: inline-block;
}

.cursor {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 700;
    margin-left: 2px;
    animation: blink 0.7s infinite;
}

.highlight {
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.hero-text {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
}

/* Resume Preview */
.resume-container {
    width: 100%;
    margin-top: 2rem;
    perspective: 1000px;
}

.resume-preview {
    background-color: var(--card-background);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(110, 91, 250, 0.1);
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.resume-preview:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(110, 91, 250, 0.3);
    border: 1px solid rgba(110, 91, 250, 0.3);
}

.resume-section {
    padding: 1rem;
    border-radius: 6px;
    background-color: rgba(110, 91, 250, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.resume-section:hover {
    background-color: rgba(110, 91, 250, 0.1);
    transform: translateY(-5px);
    border: 1px solid rgba(110, 91, 250, 0.2);
    box-shadow: var(--neon-glow);
}

.resume-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.resume-section p {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.resume-actions {
    grid-column: span 3;
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

/* Resume Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-background);
    margin: 5% auto;
    padding: 2rem;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(110, 91, 250, 0.4);
    border: 1px solid rgba(110, 91, 250, 0.2);
    position: relative;
    animation: modalFadeIn 0.5s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--accent-color-blue);
    text-shadow: var(--neon-glow);
}

.resume-full-preview {
    margin-top: 1.5rem;
}

.resume-full-section {
    margin-bottom: 2rem;
}

.resume-full-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(110, 91, 250, 0.2);
}

.resume-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(110, 91, 250, 0.3);
}

.resume-item h4 {
    color: var(--text-color);
    margin-bottom: 0.3rem;
}

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

.resume-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.resume-skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.resume-skill-category ul {
    list-style-type: none;
    padding-left: 0;
}

.resume-skill-category li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.2rem;
}

.resume-skill-category li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
}

.resume-actions-full {
    text-align: center;
    margin-top: 2rem;
}

/* About Section */
.about-content {
    display: flex;
    justify-content: center;
}

.about-text {
    max-width: 800px;
    text-align: center;
}

/* Projects Section */
.projects-container {
    display: flex;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    perspective: 1000px;
}

.project-card {
    flex: 0 0 100%;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-speed) ease;
    transform: translateX(0) rotateY(0) rotateX(0);
    transform-style: preserve-3d;
    border: 1px solid rgba(110, 91, 250, 0.1);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(110, 91, 250, 0.3);
    border: 1px solid rgba(110, 91, 250, 0.3);
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    margin: 1rem 0;
}

.tech-stack span {
    background-color: var(--medium-gray);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(110, 91, 250, 0.2);
}

.carousel-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.carousel-btn {
    background-color: var(--light-gray);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    color: var(--text-color);
}

.carousel-btn:hover {
    background-color: var(--primary-color);
    color: white;
    box-shadow: var(--neon-glow);
}

/* Skills Section */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-category h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all var(--transition-speed) ease;
    padding: 1.5rem;
    background-color: var(--card-background);
    border-radius: 8px;
    transform-style: preserve-3d;
    perspective: 1000px;
    border: 1px solid rgba(110, 91, 250, 0.1);
    position: relative;
    overflow: hidden;
}

.skill-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(110, 91, 250, 0.3);
    border: 1px solid rgba(110, 91, 250, 0.3);
}

.skill-item i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    text-shadow: var(--neon-glow);
}

.skill-progress-container {
    width: 100%;
    height: 6px;
    background-color: var(--light-gray);
    border-radius: 10px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Initial width, will be animated with JS */
    background: linear-gradient(to right, var(--primary-color), var(--accent-color-blue));
    border-radius: 10px;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 8px var(--primary-color);
}

.skill-percentage {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-top: -5px;
    display: block;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--primary-color), transparent);
    box-shadow: var(--neon-glow);
}

.timeline-item {
    padding: 2rem 0;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--primary-color);
    z-index: 1;
    box-shadow: var(--neon-glow);
}

.timeline-content {
    background-color: var(--card-background);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    width: calc(50% - 50px);
    position: relative;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(110, 91, 250, 0.1);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 15px rgba(110, 91, 250, 0.3);
    border: 1px solid rgba(110, 91, 250, 0.3);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--card-background);
    transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px;
    width: 20px;
    height: 20px;
    background-color: var(--card-background);
    transform: rotate(45deg);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-gray);
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all var(--transition-speed) ease;
    border: 1px solid rgba(110, 91, 250, 0.1);
}

.social-link:hover {
    background-color: rgba(110, 91, 250, 0.1);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--neon-glow);
    border: 1px solid rgba(110, 91, 250, 0.3);
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--text-color);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(110, 91, 250, 0.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

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

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

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

.typed-cursor {
    opacity: 1;
    animation: blink 0.7s infinite;
}

.typing-effect {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 3px solid var(--primary-color);
    animation: typing 3.5s steps(40, end), blink 0.75s step-end infinite;
}

.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}

/* Utility Classes */
.hidden {
    opacity: 0;
    transform: translateY(20px);
}

.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 1s ease;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color-blue));
    z-index: 2000;
    transition: width 0.1s ease;
    box-shadow: var(--neon-glow);
}

/* Go Up Button */
.go-up-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    z-index: 1000;
}

.go-up-btn.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.go-up-btn:hover {
    background-color: var(--accent-color-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5), 0 0 15px var(--primary-color);
    transform: translateY(-5px);
} 