/* Base Styles */
:root {
    --primary-color: #00c3ff; /* Bright cyan for AI tech feel */
    --secondary-color: #0a0a16; /* Deep blue-black */
    --background-color: #0a0a16;
    --card-background: #12121f;
    --text-color: #EAEAEA;
    --light-gray: #1a1a2a;
    --medium-gray: #252538;
    --dark-gray: #888888;
    --transition-speed: 0.3s;
    --neon-glow: 0 0 10px rgba(0, 195, 255, 0.5);
    --neon-glow-strong: 0 0 15px rgba(0, 195, 255, 0.8);
    --accent-color-blue: #5b8efa;
    --accent-color-green: #00ffaa;
    --accent-color-purple: #a45bfa;
    --grid-color: rgba(0, 195, 255, 0.1);
    --ai-gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color-purple));
    --ai-glow: 0 0 20px rgba(0, 195, 255, 0.4);
    --hologram-color: rgba(0, 195, 255, 0.05);
}

* {
    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, #0a0a16 0%, #12121f 100%);
    position: relative;
}

/* AI Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.2;
    z-index: -1;
    pointer-events: none;
}

/* Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    background: var(--ai-gradient);
    animation: floatAnimation 20s infinite alternate ease-in-out;
}

.circle-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    left: -200px;
    animation-delay: -5s;
}

.circle-3 {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: -10s;
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
    }
    100% {
        transform: translate(-30px, -50px) scale(0.9);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* 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(10, 10, 22, 0.8);
    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(0, 195, 255, 0.1);
}

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

.logo::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    filter: blur(15px);
    opacity: 0.5;
    z-index: -1;
    animation: pulseLogo 2s infinite alternate;
}

@keyframes pulseLogo {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }
    100% {
        opacity: 0.7;
        transform: scale(1.5);
    }
}

.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;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ai-gradient);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 195, 255, 0.3);
}

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

.btn-primary:hover::before {
    opacity: 0.1;
}

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

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

.btn-secondary:hover::before {
    opacity: 0.05;
}

/* Card Styles */
.project-card, .skill-item, .resume-preview, .timeline-content {
    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;
    border: 1px solid rgba(0, 195, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.project-card::before, .skill-item::before, .resume-preview::before, .timeline-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--ai-gradient);
    z-index: -1;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover::before, .skill-item:hover::before, .resume-preview:hover::before, .timeline-content:hover::before {
    opacity: 1;
}

.project-card::after, .skill-item::after, .resume-preview::after, .timeline-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--card-background);
    z-index: -1;
    border-radius: 8px;
    margin: 1px;
}

.card-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(circle at 50% 50%, var(--hologram-color) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.project-card:hover .card-glow, .skill-item:hover .card-glow {
    opacity: 1;
}

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

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 2;
}

/* Holographic effect for hero */
.hero-hologram {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle at center, var(--hologram-color) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(20px);
    opacity: 0.7;
    animation: pulse 4s infinite alternate ease-in-out;
    z-index: 1;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

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

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100px;
    height: 3px;
    background: var(--ai-gradient);
    box-shadow: var(--ai-glow);
}

.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;
    text-shadow: var(--neon-glow);
}

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

.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: 95%;
    max-width: 1200px;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5), 0 0 20px var(--primary-color);
    border: 1px solid rgba(0, 195, 255, 0.2);
    position: relative;
    animation: modalFadeIn 0.5s ease;
    max-height: 90vh;
    min-height: 70vh;
    overflow-y: auto;
}

.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);
}

.cv-container {
    padding: 1rem;
}

.cv-container h2 {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-shadow: var(--neon-glow);
}

.cv-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: rgba(0, 195, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(0, 195, 255, 0.1);
    transition: all 0.3s ease;
}

.cv-section:hover {
    background-color: rgba(0, 195, 255, 0.08);
    border-color: rgba(0, 195, 255, 0.2);
    box-shadow: var(--neon-glow);
}

.cv-section h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid rgba(0, 195, 255, 0.2);
    padding-bottom: 0.5rem;
}

.cv-item {
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(0, 195, 255, 0.3);
}

.cv-item:last-child {
    margin-bottom: 0;
}

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

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

.cv-location {
    color: var(--accent-color-blue);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.cv-item ul {
    list-style-type: none;
    padding-left: 1rem;
}

.cv-item ul li {
    margin-bottom: 0.5rem;
    position: relative;
}

.cv-item ul li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
    top: 0;
}

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

.cv-skill-category h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

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

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

.cv-skill-category ul li::before {
    content: '→';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
}

.modal-actions {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(0, 195, 255, 0.1);
}

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

@media (max-width: 768px) {
    .cv-skills-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }
}

/* 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 {
    color: var(--primary-color) !important;
    background: rgba(0, 195, 255, 0.08) !important;
    border: 1px solid var(--primary-color) !important;
    border-radius: 12px;
    padding: 2px 10px;
    margin-right: 6px;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    display: inline-block;
}

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

.carousel-btn {
    background: rgba(0, 195, 255, 0.08) !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1.5rem;
}

.carousel-btn:hover {
    color: #fff !important;
    background-color: var(--primary-color) !important;
}

/* 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;
}

/* Specific styling for the programming skills grid to center 3 items */
.skill-category:nth-child(2) .skills-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.skill-category:nth-child(2) .skills-grid .skill-item {
    min-width: 220px;
}

@media (max-width: 992px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skill-category:nth-child(2) .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .skills-grid, 
    .skill-category:nth-child(2) .skills-grid {
        grid-template-columns: 1fr;
    }
}

.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);
    position: relative;
    z-index: 2;
}

.skill-progress-container {
    width: 100%;
    height: 6px;
    background: linear-gradient(to right, #e4e5f1, #d2d3db);
    border-radius: 10px;
    margin: 10px 0;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
}

.skill-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0; /* Initial width, will be animated with JS */
    background: var(--primary-color);
    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;
    text-align: center;
}

/* 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: var(--ai-gradient);
    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: var(--ai-gradient);
    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; }
}

.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: var(--ai-gradient);
    z-index: 2000;
    transition: width 0.1s ease;
    box-shadow: var(--neon-glow);
}

/* Go Up Button */
.go-up-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, background 0.2s, color 0.2s, box-shadow 0.2s;
    z-index: 1999;
}

.go-up-btn.visible {
    opacity: 1;
    pointer-events: auto;
}

.go-up-btn:hover {
    background: var(--secondary-color);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

@media (max-width: 600px) {
    .go-up-btn {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }
}

/* 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); }
}

/* Data visualization elements */
.data-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.data-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background-color: var(--primary-color);
    border-radius: 50%;
    opacity: 0.5;
    animation: floatParticle 15s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    50% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) translateX(20px);
        opacity: 0;
    }
}

/* Languages Section */
.languages-container {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background-color: var(--card-background);
    border-radius: 8px;
    border: 1px solid rgba(0, 195, 255, 0.1);
    transition: all 0.3s ease;
}

.language-item:hover {
    background-color: rgba(0, 195, 255, 0.05);
    border-color: rgba(0, 195, 255, 0.2);
    box-shadow: var(--neon-glow);
    transform: translateY(-3px);
}

.language-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

.language-dots {
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot.filled {
    background-color: var(--primary-color);
    box-shadow: 0 0 5px var(--primary-color);
}

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

@media (max-width: 768px) {
    .language-item {
        padding: 0.6rem 1rem;
    }
    
    .language-name {
        font-size: 1rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* View CV Button Styling */
.view-cv-btn {
    min-width: 180px;
    font-size: 1.1rem;
    padding: 1rem 2.2rem;
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0,255,204,0.12);
}

/* Certificates Section Styling */
.certificates-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.certificate-item {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.certificate-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 255, 204, 0.1), transparent 70%);
    z-index: 0;
}

.certificate-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 204, 0.2);
}

.certificate-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.certificate-title {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.certificate-issuer {
    color: var(--accent-color);
    font-size: 1rem;
    margin-bottom: 5px;
}

.certificate-date {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: inline-block;
    background-color: rgba(106, 0, 255, 0.2);
    color: var(--primary-color);
    padding: 2px 12px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.certificate-skills {
    color: var(--text-color);
    font-size: 0.95rem;
    line-height: 1.5;
}

.certificate-skills .in-progress {
    color: var(--primary-color);
    font-style: italic;
}

.certificate-skills .skills-gained {
    color: var(--accent-color);
    font-weight: 600;
    letter-spacing: 0.2px;
    text-shadow: 0 0 8px rgba(255,0,255,0.15);
}

.certificate-image {
    margin-top: 15px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.certificate-image:hover {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.3);
}

.certificate-thumbnail {
    width: 100%;
    height: auto;
    display: block;
}

/* Currently Learning Section Styling */
.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.learning-card {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 255, 204, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.learning-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 255, 204, 0.1), transparent 70%);
    z-index: 0;
}

.learning-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3), 0 0 15px rgba(0, 255, 204, 0.2);
}

.learning-icon-container {
    width: 60px;
    height: 60px;
    background: rgba(0, 255, 204, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(0, 255, 204, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.2);
}

.learning-icon {
    font-size: 1.8rem;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.learning-title {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.learning-progress {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.learning-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    position: relative;
    transition: width 0.5s ease;
}

.learning-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite linear;
}

.learning-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

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

/* Responsive adjustments for new sections */
@media (max-width: 768px) {
    .certificates-container,
    .learning-grid {
        grid-template-columns: 1fr;
    }

    .certificate-item,
    .learning-card {
        padding: 20px;
    }

    .learning-icon-container {
        width: 50px;
        height: 50px;
    }

    .learning-icon {
        font-size: 1.5rem;
    }
}

/* Image Preview Modal Styling */
.image-preview-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    overflow: auto;
    backdrop-filter: blur(5px);
}

.image-preview-modal .modal-content {
    background-color: transparent;
    margin: 5% auto;
    padding: 2rem;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
    position: relative;
}

.image-preview-modal .modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.3);
}

.image-preview-modal .close-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: var(--primary-color);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

.image-preview-modal .close-modal:hover {
    color: var(--accent-color-blue);
    text-shadow: var(--neon-glow);
    transform: scale(1.1);
}

/* Show Certificate Button Styling */
.show-certificate-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 10px rgba(0, 195, 255, 0.5);
    border: 1px solid rgba(0, 195, 255, 0.3);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color-blue, #00c3ff) 100%);
    color: var(--bg-color);
    margin-top: 1rem;
    margin-left: auto;
    margin-right: 0;
}

.show-certificate-btn i {
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.show-certificate-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 195, 255, 0.8);
    background: linear-gradient(135deg, var(--accent-color-blue, #00c3ff) 0%, var(--primary-color) 100%);
}

.show-certificate-btn:hover i {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .show-certificate-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        margin-right: 0;
    }
}

[data-theme="light"] {
    --background-color: #fafafa;
    --card-background: #e4e5f1;
    --primary-color: #484b6a;
    --secondary-color: #9394a5;
    --text-color: #484b6a;
    --text-secondary: #9394a5;
    --border-color: #d2d3db;
    --accent-color-blue: #484b6a;
    --accent-color-green: #9394a5;
    --accent-color-purple: #e4e5f1;
    --ai-gradient: linear-gradient(135deg, #484b6a, #9394a5);
    --ai-glow: 0 0 20px rgba(72, 75, 106, 0.12);
    --hologram-color: rgba(72, 75, 106, 0.05);
    --grid-color: rgba(72, 75, 106, 0.08);
}
[data-theme="light"] body {
    background: var(--background-color) !important;
    color: var(--text-color) !important;
}
[data-theme="light"] nav {
    background-color: rgba(250, 250, 250, 0.95) !important;
    box-shadow: 0 2px 10px rgba(147, 148, 165, 0.08) !important;
    border-bottom: 1px solid var(--border-color) !important;
}
[data-theme="light"] .logo {
    color: var(--primary-color) !important;
    text-shadow: none !important;
}
[data-theme="light"] .nav-link {
    color: var(--text-color) !important;
}
[data-theme="light"] .nav-link.active {
    color: var(--primary-color) !important;
}
[data-theme="light"] .section-title {
    color: var(--primary-color) !important;
}
[data-theme="light"] .section {
    background: var(--background-color) !important;
}
[data-theme="light"] .project-card,
[data-theme="light"] .resume-preview,
[data-theme="light"] .modal-content,
[data-theme="light"] .cv-section,
[data-theme="light"] .certificate-item,
[data-theme="light"] .learning-card {
    background: var(--card-background) !important;
    color: var(--text-color) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 2px 8px rgba(147, 148, 165, 0.08) !important;
}
[data-theme="light"] .modal {
    background-color: rgba(250,250,250,0.95) !important;
    backdrop-filter: blur(5px);
}
[data-theme="light"] .btn-primary {
    background-color: var(--primary-color) !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
}
[data-theme="light"] .btn-secondary {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
    border: 1px solid var(--secondary-color) !important;
}
[data-theme="light"] .card-glow {
    background: radial-gradient(circle at 50% 50%, var(--hologram-color) 0%, transparent 70%) !important;
}
[data-theme="light"] .social-link {
    background-color: var(--card-background) !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--border-color) !important;
}
[data-theme="light"] .social-link:hover {
    background-color: var(--secondary-color) !important;
    color: #fff !important;
}
[data-theme="light"] footer {
    background: var(--card-background) !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-color) !important;
}
[data-theme="light"] .page-transition {
    background-color: var(--background-color) !important;
}
[data-theme="light"] .bg-elements .bg-circle {
    background: var(--ai-gradient) !important;
    opacity: 0.08 !important;
}
[data-theme="light"] .modal-content {
    background: var(--card-background) !important;
    color: var(--text-color) !important;
}
[data-theme="light"] .cv-container h2,
[data-theme="light"] .cv-section h3,
[data-theme="light"] .cv-skill-category h4 {
    color: var(--primary-color) !important;
}
[data-theme="light"] .cv-item h4 {
    color: var(--text-color) !important;
}
[data-theme="light"] .cv-date {
    color: var(--primary-color) !important;
}
[data-theme="light"] .cv-location {
    color: var(--secondary-color) !important;
}
[data-theme="light"] .cv-item ul li::before {
    color: var(--primary-color) !important;
}
[data-theme="light"] .view-cv-btn {
    background: var(--primary-color) !important;
    color: #fff !important;
    border: 1px solid var(--primary-color) !important;
}
.theme-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    background: var(--card-background);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(72, 75, 106, 0.08);
}
@media (max-width: 600px) {
    .theme-toggle {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
}
.theme-toggle-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.5s;
}
.theme-toggle:hover .theme-toggle-icon {
    transform: rotate(180deg);
}

[data-theme="light"] .skill-progress-container {
    background: linear-gradient(90deg, #e4e5f1 0%, #d2d3db 100%) !important;
    border: none;
}