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

:root {
    /* Dark theme colors */
    --bg-primary: #121212;
    --bg-secondary: #1e1e1e;
    --bg-tertiary: #2d2d2d;
    --text-primary: #f5f5f5;
    --text-secondary: #b3b3b3;
    --accent-color: #00b894;
    --accent-secondary: #009076;
    --error-color: #ff5252;
    --success-color: #4caf50;
    --text-light: #ffffff;
    /* Typography */
    --font-main: 'Segoe UI', 'Roboto', 'Arial', sans-serif;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 1s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

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

a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
}

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

.hidden {
    display: none;
}

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

/* Particles.js Background */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
    opacity: 0.4;
}

/* Header and Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform var(--transition-fast);
}

.logo h1 {
    font-size: 1.25rem;
    margin-left: 2rem;
    color: var(--accent-color);
    font-weight: 600;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.5rem;
}

nav ul li a {
    color: var(--text-primary);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-fast);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    margin-right: 2rem;
}

/* Main Content */
main {
    padding-top: 5rem;
    min-height: 100vh;
}

.section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-medium), transform var(--transition-medium);
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

/* About Section */
.about-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3rem;
}

.profile-image {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.profile-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-medium);
    mix-blend-mode: multiply;
}

.profile-image img:hover {
    transform: scale(1.03);
}

.bio {
    flex: 2;
    min-width: 300px;
}

.bio h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.bio p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* NEW: About Me List Styles */
.bio .highlight {
    font-weight: bold;
    color: var(--accent-color, #5D9BD3); /* Use accent color variable */
}

.bio-highlights {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.bio-highlights li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.bio-highlights i {
    color: var(--accent-color, #5D9BD3);
    margin-right: 0.8rem;
    font-size: 1.2em;
    width: 20px;
    text-align: center;
    padding-top: 0.2em;
}

.bio-highlights span {
    flex: 1;
    color: var(--text-secondary);
}

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

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--bg-tertiary);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    width: 100%;
}

.timeline-dot {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 184, 212, 0.6);
    z-index: 1;
}

.timeline-content {
    position: relative;
    width: calc(50% - 30px);
    padding: 1.5rem;
    background-color: var(--bg-secondary);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

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

.timeline-item:nth-child(even) .timeline-content {
    left: 50%;
    margin-left: 30px;
}

.timeline-content h3 {
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.timeline-content h4 {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.timeline-content p {
    color: var(--text-secondary);
}
/* Timeline responsive styles */
@media (max-width: 768px) {
    .timeline {
        margin: 0 auto 3rem;
        max-width: 100%;
    }

    /* Timeline line through the middle */
    .timeline::before {
        left: 50%;
        transform: translateX(-50%);
        width: 4px;
        background: linear-gradient(to bottom, transparent, var(--accent-color) 10%, var(--accent-color) 90%, transparent);
        z-index: 0; /* Timeline behind the cards */
        opacity: 0.5;
    }

    .timeline-item {
        margin-bottom: 4rem;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* Enhanced timeline nodes/circles */
    .timeline-dot {
        width: 24px;
        height: 24px;
        top: -30px;
        left: 50%;
        transform: translateX(-50%);
        /*background-color: var(--bg-secondary);*/
        border: 4px solid var(--accent-color);
        box-shadow: 0 0 15px rgba(0, 184, 212, 0.6);
        z-index: 2; /* Dots above everything */
        transition: all 0.3s ease;
    }

    .timeline-item:hover .timeline-dot {
        transform: translateX(-50%) scale(1.2);
    }

    /* Content cards that overlap the timeline */
    .timeline-content {
        width: 85%;
        margin: 12px 0 0 0 !important;
        left: 0 !important;
        padding: 1.5rem;
        border-radius: 8px;
        z-index: 1; /* Above timeline but below dots */
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        text-align: center;
        position: relative;
        background-color: var(--bg-secondary);
    }

    /* Reset positioning for all items */
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        left: 0;
        margin: 12px 0 0 0;
    }

    /* Create visual connector between dot and card */
    .timeline-content::before {
        content: '';
        position: absolute;
        top: -12px;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 12px;
        background-color: var(--accent-color);
    }

    /* Add arrow pointing up from card to dot */
    .timeline-content::after {
        content: '';
        position: absolute;
        top: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid var(--bg-secondary);
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }
}

/* For even smaller screens */
@media (max-width: 480px) {
    .timeline-content {
        width: 90%;
        padding: 1.2rem;
    }
}
/* Skills */
.skills {
    max-width: 800px;
    margin: 0 auto;
}

.skills h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

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

.skill {
    background-color: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-fast);
}

.skill:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.skill-name {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.skill-bar {
    height: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 5px;
    position: relative;
    width: 0;
    transition: width 1.5s ease-in-out;
}

/* Contact Section */
.contact-content {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact-form {
    flex: 1;
    min-width: 300px;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--bg-tertiary);
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    border-radius: 6px;
    font-family: var(--font-main);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-group .error-message {
    display: block;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.4rem;
    height: 1rem;
}

.submit-btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.submit-btn:hover {
    background-color: var(--accent-secondary);
}

#success-message {
    padding: 1rem;
    background-color: rgba(76, 175, 80, 0.1);
    border: 1px solid var(--success-color);
    border-radius: 6px;
    margin-top: 1rem;
    text-align: center;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.8rem 1.5rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.download-btn:hover {
    background-color: var(--accent-secondary);
    color: white;
    transform: translateY(-3px);
}

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

.social-link {
    font-size: 1.8rem;
    color: var(--text-primary);
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.social-link:hover {
    color: var(--accent-color);
    transform: translateY(-5px);
}

/* Footer */
footer {
    background-color: var(--bg-secondary);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: 2rem;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity var(--transition-medium);
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid var(--bg-tertiary);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .skill-container {
        grid-template-columns: 1fr;
    }
}

/* Logo Animation Styles */
.typewriter-text {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
    letter-spacing: 0.15em;
    position: relative;
    animation: typing 3.5s steps(30, end) infinite alternate;
}

.typewriter-text::after {
    content: '|';
    position: absolute;
    right: -8px;
    color: var(--accent-color);
    animation: blink-caret 0.75s step-end infinite;
}

.typewriter-text .logo-highlight {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 184, 212, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

/* Navigation links animation */
.nav-link {
    position: relative;
    overflow: hidden;
    text-shadow: 0 0 5px rgba(0, 184, 212, 0.2);
    transition: text-shadow var(--transition-fast);
}

.nav-link:hover {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 184, 212, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

.nav-link i {
    margin-right: 5px;
    animation: pulse 3s ease-in-out infinite;
}

.typewriter-text .logo-highlight {
    color: var(--accent-color);
    text-shadow: 0 0 8px rgba(0, 184, 212, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

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

@keyframes blink-caret {
    from, to {
        opacity: 0
    }
    50% {
        opacity: 1
    }
}

@keyframes pulse {
    0% {
        text-shadow: 0 0 8px rgba(0, 184, 212, 0.4);
    }
    50% {
        text-shadow: 0 0 15px rgba(0, 184, 212, 0.8);
    }
    100% {
        text-shadow: 0 0 8px rgba(0, 184, 212, 0.4);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .timeline::before {
        /*left: 30px;*/
    }

    .timeline-dot {
        /*left: 30px;*/
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: calc(100% - 60px);
        left: 60px;
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-secondary);
        height: 0;
        overflow: hidden;
        transition: height var(--transition-fast);
    }

    nav.active {
        height: auto;
    }

    nav ul {
        flex-direction: column;
        padding: 1rem 0;
    }

    nav ul li {
        margin: 0.5rem 0;
        text-align: center;
    }

    .about-content,
    .contact-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .container {
        width: 95%;
    }

    .skill-container {
        grid-template-columns: 1fr;
    }
}

/* Add to your CSS file */
.desktop-text {
    display: inline;
}

.mobile-text {
    display: none;
}

@media screen and (max-width: 1260px) {
    .desktop-text {
        display: none;
    }

    .mobile-text {
        display: inline;
    }

    .logo h1 {
        font-size: 1.5rem;
    }
}

/* Scroll animations */
.fade-in-section {
    opacity: 1;
}

.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-element.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Skill List Styling */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-category h4 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--accent-color, #00b8d4);
    position: relative;
    padding-left: 1rem;
}

.skill-category h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 16px;
    background-color: var(--accent-color, #00b8d4);
    border-radius: 3px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background-color: var(--bg-secondary, rgba(0, 184, 212, 0.1));
    color: var(--text-primary, #333);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--accent-color, #00b8d4);
}

.skill-tag:hover {
    background-color: var(--accent-color, #00b8d4);
    color: var(--text-light, #fff);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .skill-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.profile-circle {
    border: 0.5px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    object-fit: cover;
    padding: 0;
    display: block;
}

/* Add to styles.css */
@media (max-width: 768px) {
    .profile-circle {
        max-width: 200px;
        margin: 0 auto;
    }

    .profile-image {
        text-align: center;
    }
}

/* Add to styles.css */
@media (max-width: 576px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 12px; /* Larger touch targets */
    }

    .submit-btn {
        width: 100%; /* Full-width button on small screens */
        padding: 12px;
    }
}

/* Add to styles.css */
@media (max-width: 768px) {
    .section {
        padding: 3rem 0; /* Less vertical padding on mobile */
    }

    .section-title {
        margin-bottom: 2rem;
        font-size: 2rem;
    }

    .bio-highlights li {
        margin-bottom: 0.8rem;
    }
}

/* Add this to your existing media queries */
@media (max-width: 480px) {
    .container {
        width: 92%;
        padding: 1rem 0;
    }

    .section {
        padding: 2rem 0;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        padding: 1rem;
    }
}

/* Add to improve form usability on mobile */
@media (max-width: 576px) {
    .form-group input,
    .form-group textarea {
        font-size: 16px; /* Prevents iOS zoom on focus */
        padding: 1rem 0.8rem;
    }

    .submit-btn {
        width: 100%;
        padding: 1rem;
    }

    .social-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}


/* Language*/
/* Language selector styling */
.language-selector {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 80px;
    z-index: 100;
}

/* With this */
.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: none;
    min-width: 80px;
    z-index: 1001; /* Increased z-index */
}

.language-dropdown.active {
    display: block;
}

/* Add mobile-specific styles */
/* Language selector on the same line for mobile */
@media (max-width: 768px) {
    .language-selector .language-toggle {
        display: none; /* Hide the dropdown toggle completely */
    }

    .language-dropdown {
        position: static;
        display: flex !important; /* Always visible, overrides JS toggle */
        background: none;
        box-shadow: none;
        width: auto;
    }

    .language-dropdown li {
        display: inline-block;
        margin: 0 5px !important;
    }

    .language-dropdown a {
        padding: 0.5rem;
    }

    /* Ensure language section is properly aligned with other nav items */
    .language-selector {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .language-dropdown ul {
        display: flex;
        flex-direction: row;
        list-style: none;
        gap: 10px;
    }
}
