/* Theme CSS - Light and Dark Mode Styles */

/* Theme Variables */
:root {
    /* Light Theme (Default) */
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --accent-color: #7209b7;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --gradient-start: #4361ee;
    --gradient-mid: #3a0ca3;
    --gradient-end: #7209b7;
    --btn-text: #ffffff;
    --btn-hover: #3a56d4;
    --btn-outline-text: #4361ee;
    --btn-outline-hover: #4361ee;
    --highlight-bg: rgba(67, 97, 238, 0.1);
    --section-bg: #f8f9fa;
    --section-alt-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.95);
    --nav-text: #333;
    --logo-color: #4361ee;
    --timeline-bg: #ffffff;
    --timeline-border: #dee2e6;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Dark Theme */
html[data-theme="dark"] {
    --primary-color: #4cc9f0;
    --primary-dark: #3a86ff;
    --accent-color: #f72585;
    --text-color: #e2e8f0;
    --text-light: #a0aec0;
    --bg-color: #121212;
    --card-bg: #1e1e1e;
    --border-color: #2d3748;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --gradient-start: #4cc9f0;
    --gradient-mid: #3a86ff;
    --gradient-end: #f72585;
    --btn-text: #f8f9fa;
    --btn-hover: #3a86ff;
    --btn-outline-text: #4cc9f0;
    --btn-outline-hover: #4cc9f0;
    --highlight-bg: rgba(76, 201, 240, 0.1);
    --section-bg: #121212;
    --section-alt-bg: #1e1e1e;
    --nav-bg: rgba(18, 18, 18, 0.95);
    --nav-text: #e2e8f0;
    --logo-color: #4cc9f0;
    --timeline-bg: #1e1e1e;
    --timeline-border: #2d3748;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

/* Base Elements Styling */
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Navigation */
.navbar {
    background-color: var(--nav-bg);
    transition: background-color 0.5s ease;
}

.logo {
    color: var(--logo-color) !important;
    transition: color 0.5s ease;
}

.nav-link {
    color: var(--nav-text) !important;
    transition: color 0.5s ease, transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-toggle span {
    background-color: var(--nav-text);
    transition: background-color 0.5s ease;
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.about-image {
    flex: 1;
    min-width: 300px;
    transition: all 0.3s ease;
}

.about-text {
    flex: 2;
    min-width: 300px;
    color: var(--text-color);
    line-height: 1.8;
    transition: color 0.5s ease;
}

/* Skills Section */
.skills-category {
    margin-bottom: 3rem;
}

.skills-category h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    transition: color 0.5s ease;
}

.skills-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 3px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.skill-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.skill-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.skill-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.5s ease;
}

.skill-item:hover .skill-icon {
    transform: scale(1.1);
}

.skill-item h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    transition: color 0.5s ease;
}

.skill-progress-container {
    margin-top: 1rem;
}

.skill-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.skill-progress-label,
.skill-progress-value {
    font-size: 0.875rem;
    color: var(--text-light);
    transition: color 0.5s ease;
}

.skill-progress-bar {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

html[data-theme="dark"] .skill-progress-bar {
    background-color: rgba(255, 255, 255, 0.1);
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 4px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Experience Section */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--card-bg);
    border: 4px solid var(--primary-color);
    top: 15px;
    right: -17px;
    border-radius: 50%;
    z-index: 2;
    transition: background-color 0.5s ease;
}

.timeline-item:nth-child(odd)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: var(--timeline-bg);
    position: relative;
    border-radius: 15px;
    border: 1px solid var(--timeline-border);
    box-shadow: var(--card-shadow);
    width: calc(50% - 40px);
    transition: all 0.3s ease, background-color 0.5s ease, border-color 0.5s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
    float: right;
}

.timeline-content::before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--timeline-border) transparent transparent;
    top: 15px;
    left: -10px;
    transition: border-color 0.5s ease;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    right: -10px;
    left: auto;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--timeline-border);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-content .date {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.timeline-content h3 {
    margin: 10px 0;
    color: var(--text-color);
    font-size: 1.4rem;
    transition: color 0.5s ease;
}

.timeline-content h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: color 0.5s ease;
}

.timeline-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    transition: color 0.5s ease;
}

@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
    }
    
    .timeline-item::after {
        left: 19px !important;
    }
    
    .timeline-content {
        width: calc(100% - 70px);
        float: right !important;
    }
    
    .timeline-content::before {
        left: -10px !important;
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent var(--timeline-border) transparent transparent !important;
    }
}

/* Make sure all content is visible in dark mode */
html[data-theme="dark"] .about-text,
html[data-theme="dark"] .skill-item h4,
html[data-theme="dark"] .timeline-content h3,
html[data-theme="dark"] .timeline-content p {
    color: var(--text-color);
}

/* Fix for section background colors */
.section.bg-light {
    background-color: var(--section-bg);
}

/* Theme Toggle */
.theme-toggle-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

#themeToggle {
    width: 60px;
    height: 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    position: relative;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    transition: all 0.3s ease;
    overflow: hidden;
}

#themeToggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    opacity: 0.2;
    z-index: -1;
    border-radius: 30px;
}

#themeToggle i {
    font-size: 14px;
    color: var(--text-color);
    transition: all 0.3s ease;
    z-index: 2;
}

#themeToggle .fa-sun {
    opacity: 1;
}

#themeToggle .fa-moon {
    opacity: 0.3;
}

#themeToggle.dark-mode .fa-sun {
    opacity: 0.3;
}

#themeToggle.dark-mode .fa-moon {
    opacity: 1;
}

.toggle-track {
    position: absolute;
    top: 2px;
    left: 2px;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    border-radius: 25px;
    display: flex;
    align-items: center;
    z-index: 1;
}

.toggle-indicator {
    width: 22px;
    height: 22px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateX(0);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

#themeToggle.dark-mode .toggle-indicator {
    transform: translateX(26px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-color);
    transition: all 0.5s ease;
}

/* Particles Background */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

.hero-text-wrapper {
    position: relative;
    margin-bottom: 2rem;
}

/* Light Mode Shapes */
.light-mode-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
}

.shape-1 {
    top: -100px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.2), rgba(114, 9, 183, 0.2));
    animation: float 8s ease-in-out infinite;
}

.shape-2 {
    bottom: -80px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, rgba(114, 9, 183, 0.2), rgba(67, 97, 238, 0.2));
    animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
    top: 50%;
    left: -100px;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.15), rgba(114, 9, 183, 0.15));
    animation: float 9s ease-in-out infinite;
}

.shape-4 {
    top: 20%;
    right: -70px;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, rgba(114, 9, 183, 0.15), rgba(67, 97, 238, 0.15));
    animation: float 7s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Dark Mode Elements */
.dark-mode-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    display: none; /* Hidden by default, shown in dark mode */
}

.glow-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(76, 201, 240, 0.2) 0%, rgba(58, 134, 255, 0.1) 50%, transparent 70%);
    filter: blur(20px);
}

.neon-line {
    position: absolute;
    top: 70%;
    left: 0;
    width: 0%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    filter: blur(1px);
    box-shadow: 0 0 10px var(--accent-color), 0 0 20px var(--accent-color);
}

.pulse-dot {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    filter: blur(20px);
    opacity: 0.5;
}

.pulse-dot:nth-child(1) {
    top: 20%;
    left: 10%;
}

.pulse-dot:nth-child(2) {
    top: 70%;
    right: 15%;
}

.cyber-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(76, 201, 240, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(76, 201, 240, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

/* Glitch Effect */
.glitch-effect {
    position: relative;
    color: var(--text-color);
    font-size: 3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-shadow: 0 0 5px rgba(var(--primary-color), 0.3);
    margin-bottom: 1rem;
    display: inline-block;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
}

.glitch-effect::before {
    color: var(--primary-color);
    z-index: -1;
}

.glitch-effect::after {
    color: var(--accent-color);
    z-index: -2;
}

.glitch-effect.active::before {
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
    animation-delay: 0.1s;
}

.glitch-effect.active::after {
    animation: glitch-anim 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both;
    animation-delay: 0.15s;
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
        opacity: 0.8;
    }
    20% {
        transform: translate(-5px, 5px);
        opacity: 0.6;
    }
    40% {
        transform: translate(-5px, -5px);
        opacity: 0.8;
    }
    60% {
        transform: translate(5px, 5px);
        opacity: 0.6;
    }
    80% {
        transform: translate(5px, -5px);
        opacity: 0.8;
    }
    100% {
        transform: translate(0);
        opacity: 0;
    }
}

/* Hero Title and Subtitle Styles */
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    display: inline-block;
    transition: all 0.3s ease;
}

html[data-theme="dark"] .hero-title {
    text-shadow: 0 0 15px rgba(76, 201, 240, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-color);
    opacity: 0.9;
    margin-bottom: 2rem;
}

.typed-text {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.typed-text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Button Styles */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-primary {
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    color: var(--btn-text);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--btn-outline-text);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--btn-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    margin-left: 0.5rem;
    font-size: 0.875rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-color);
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator span {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.scroll-indicator i {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* About Section Enhancements */
.image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

.image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-wrapper:hover img {
    transform: scale(1.05);
}

.image-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 20px;
    border-image: linear-gradient(135deg, var(--gradient-start), var(--gradient-end)) 1;
    pointer-events: none;
    z-index: 1;
}

/* Section Enhancements */
.section {
    padding: 5rem 0;
    background-color: var(--section-bg);
    transition: background-color 0.5s ease;
}

.section:nth-child(even) {
    background-color: var(--section-alt-bg);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    border-radius: 2px;
}

/* Media Queries */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .shape {
        opacity: 0.5;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .theme-toggle-wrapper {
        top: 10px;
        right: 10px;
    }
    
    #themeToggle {
        width: 50px;
        height: 26px;
    }
    
    #themeToggle.dark-mode .toggle-indicator {
        transform: translateX(20px);
    }
} 