/* Base Styles & Variables */
:root {
    --primary-color: #6c63ff;
    --secondary-color: #4d44db;
    --dark-color: #2f2e41;
    --light-color: #f8f9fa;
    --text-color: #333;
    --text-light: #777;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    --glass-blur: blur(10px);
}

[data-theme="dark"] {
    --primary-color: #7b68ee;
    --secondary-color: #5f4bdb;
    --dark-color: #121212;
    --light-color: #1e1e1e;
    --text-color: #f8f9fa;
    --text-light: #adb5bd;
    --glass-bg: rgba(30, 30, 30, 0.5);
    --glass-border: rgba(255, 255, 255, 0.05);
}

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

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

/* Animated Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);*/
    background: linear-gradient(-45deg, #ee7752, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    z-index: -2;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Particles.js */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Main Container */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

/* Glass Morphism Effect */
.glass-nav, .glass-footer, .project-card, .skill-card, .info-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-radius: 10px;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1400px;
    padding: 15px 25px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 700;
    font-size: 1.5rem;
}

.logo-icon {
    margin-right: 10px;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.nav-link i {
    margin-right: 8px;
    font-size: 0.9rem;
}

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

.mobile-menu-btn {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-color);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--glass-border);
    z-index: 1001;
    padding: 80px 20px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    right: 0;
}

.mobile-link {
    color: var(--text-color);
    text-decoration: none;
    padding: 15px 0;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
}

.mobile-link i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Hero Section */
.hero-section {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    padding: 100px 5% 80px;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.greeting {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.name {
    display: block;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: black;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    position: relative;
    max-width: 500px;
}


/* Company Logos Section */
.company-logos {
    flex: 1;
    max-width: 500px;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 15px;
}

.logo-container {
    width: 100%;
    aspect-ratio: 1/1; /* Makes containers square */
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-container:hover {
    background: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.logo-container:hover .logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

.logo-caption {
    text-align: center;
    font-size: 0.9rem;
    color: black;
    /*font-style: italic;*/
    margin-top: 10px;
}

.image-container {
    position: relative;
}

.main-image {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.tech-icons {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.tech-icons i {
    position: absolute;
    font-size: 2.5rem;
    animation: float 6s ease-in-out infinite;
}

.tech-icons .html {
    color: #e34f26;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.tech-icons .css {
    color: #2965f1;
    top: 70%;
    left: 15%;
    animation-delay: 0.5s;
}

.tech-icons .js {
    color: #f7df1e;
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.tech-icons .python {
    color: #3776ab;
    bottom: 10%;
    right: 20%;
    animation-delay: 1.5s;
}

.tech-icons .react {
    color: #61dafb;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* Skills Section */
.skills-section {
    padding: 10px 5%;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition);
}

.skill-card:hover {
    transform: translateY(-10px);
}

.skill-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.skill-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.skill-card p {
    color: var(--text-light);
}

/* Projects Section */
.featured-projects {
    padding: 10px 5%;
}

.projects-slider {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    /*padding: 20px 0;*/
    scroll-snap-type: x mandatory;
}

.projects-slider::-webkit-scrollbar {
    height: 8px;
}

.projects-slider::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.projects-slider::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

.project-card {
    flex: 0 0 400px;
    scroll-snap-align: start;
    overflow: hidden;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

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

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

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    font-size: 2rem;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    height: 100px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: rgba(108, 99, 255, 0.1);
    color: var(--primary-color);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 500;
}

.section-cta {
    text-align: center;
    margin-top: 40px;
}

/* About Page */
.about-page {
    padding: 100px 5% 80px;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}

.about-image {
    flex: 1;
    position: relative;
}

.image-wrapper {
    position: relative;
    max-width: 400px;
}

.about-image img {
    width: 100%;
    border-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.image-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 5px solid var(--primary-color);
    border-radius: 20px;
    top: 5px;
    left: 5px;
    z-index: 0;
}

.image-dots {
    position: absolute;
    width: 100px;
    height: 100px;
    background-image: radial-gradient(var(--primary-color) 2px, transparent 2px);
    background-size: 15px 15px;
    bottom: -5px;
    right: -5px;
    z-index: 1;
}

.about-content {
    flex: 1;
}

.about-content .section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 20px;
    font-weight: 400;
}

.about-text {
    margin-bottom: 15px;
    color: var(--dark-color);
    text-align: justify;
}

.about-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 30px 0;
}

.detail-item {
    display: flex;
}

.detail-label {
    font-weight: 600;
    margin-right: 10px;
    min-width: 100px;
}

.detail-value {
    color: black;
}

.about-buttons {
    display: inline-flex;
    gap: 15px;
    margin-top: 30px;
}

/* Timeline */
.timeline-section {
    /*padding: 80px 5%;*/
}

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

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 0px; /* Adjusted to align with date */
    /*margin-left: -1px;*/
}

.timeline-item {
    padding: 20px 0;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    min-height: 120px; /* Ensure consistent height */
}

.timeline-date {
    /*width: 120px;*/
    padding: 20px 20px;
    background: var(--primary-color);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    height: fit-content;
    position: relative;
    /*top: 10px; /* Adjust vertical alignment */
    /*left: -20px; /* Position to the left */
    /*margin-right: 40px;*/
}

.timeline-content {
    padding: 15px;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 10px;
    box-shadow: var(--glass-shadow);
    flex: 1;
    margin-left: 15px; /* Space for date + line */
    position: relative;
}

.timeline-content h3 {
    margin-bottom: 5px;
    color: var(--primary-color);
}

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

.timeline-content p {
    font-size: 0.8rem;
    color: var(--text-light);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    top: 35px;
    left: -10px; /* Align with timeline line */
}

/* Projects Page */
.projects-page {
    padding: 100px 5% 80px;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-subtitle {
    color: var(--dark-color);
    font-size: 1.1rem;
}

.projects-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: white;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.project-item {
    transition: var(--transition);
}

.project-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 10px;
    overflow: hidden;
}

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

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

.project-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(108, 99, 255, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    color: white;
    text-align: center;
    padding: 20px;
}

.project-item:hover .project-hover {
    opacity: 1;
}

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

.project-hover h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.project-view {
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    transition: var(--transition);
}

.project-view i {
    margin-right: 8px;
}

.project-view:hover {
    background: white;
    color: var(--primary-color);
}

.project-details {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    margin-bottom: 10px;
}

.project-details p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex: 1;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.github-link {
    color: var(--text-color);
    font-size: 1.2rem;
    transition: var(--transition);
}

.github-link:hover {
    color: var(--primary-color);
    transform: scale(1.2);
}

/* Contact Page */


.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: var(--primary-color);
    background-color: transparent;
    text-align: center;
}

.alert-error {
    color: #a94442;
    background-color: transparent;
    ext-align: center;
}

.contact-page {
    padding: 100px 5% 80px;
}

.contact-header {
    text-align: center;
    margin-bottom: 50px;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    padding: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    transition: var(--transition);
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(108, 99, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-content h3 {
    margin-bottom: 5px;
    color: var(--text-light);
}

.info-content p {
    color: white;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.info-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.info-content a:hover {
    text-decoration: underline;
}

.contact-form {
    position: relative;
}

.form-container {
    width: 100%;
}

.form-group {
    position: relative;
    margin-bottom: 30px;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text-color);
    border: none;
    border-bottom: 1px solid var(--text-light);
    outline: none;
    background: transparent;
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    font-size: 1rem;
    color: var(--text-light);
    pointer-events: none;
    transition: var(--transition);
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:valid ~ label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary-color);
}

.form-highlight {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.form-group input:focus ~ .form-highlight,
.form-group input:valid ~ .form-highlight,
.form-group textarea:focus ~ .form-highlight,
.form-group textarea:valid ~ .form-highlight {
    width: 100%;
}

.contact-map {
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

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

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-small {
    padding: 8px 15px;
    font-size: 0.8rem;
}

/* Footer */
.glass-footer {
    padding: 30px 5%;
    margin-top: 10px;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

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

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

.copyright {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.theme-switcher {
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.theme-switcher:hover {
    background: var(--primary-color);
    color: white;
}

/* Project Detail Page */
.project-detail {
    max-width: 1200px;
    margin: 100 auto;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.project-detail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text {
        margin-bottom: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-container {
        flex-direction: column;
    }

    .timeline::before {
        left: 0px;
    }

    .timeline-item {
        width: 100%;
    }

    .timeline-item::after {
        left: -10px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .about-image {
        margin-bottom: 30px;
    }

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

    .timeline::before {
        left: 0px;
    }

    .timeline-item {
        flex-direction: column;
        min-height: auto;
    }

    .timeline-date {
        width: auto;
        margin-bottom: 15px;
        left: 0;
        top: 0;
        margin-right: 0;
    }

    .timeline-content {
        margin-left: 0;
    }

    .timeline-item::after {
        left: -10px;
        top: 35px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-details {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}