/* Base Styles */
:root {
    --primary-color: #121212;
    --secondary-color: #1e1e1e;
    --accent-color: #4d4d4d;
    --highlight-color: #64ffda;
    --text-color: #e0e0e0;
    --text-secondary: #a0a0a0;
    --transition: all 0.3s ease;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

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

button,
.btn {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 16px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 4px;
}

.btn-primary {
    background-color: var(--highlight-color);
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
}

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

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--text-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
    background-color: var(--text-color);
    color: var(--primary-color);
}

.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 15px;
    position: relative;
}

.underline {
    height: 3px;
    width: 70px;
    background-color: var(--highlight-color);
    margin: 0 auto;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(18, 18, 18, 0.9);
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

#navbar.scrolled {
    padding: 15px 0;
    box-shadow: var(--shadow);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.logo a {
    font-size: 24px;
    font-weight: 700;
    color: var(--highlight-color);
}

.nav-links {
    display: flex;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight-color);
    transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
    white-space: nowrap;
}

.language-switcher a {
    margin: 0 2px;
    font-weight: 600;
    font-size: 14px;
}

.language-switcher a.active {
    color: var(--highlight-color);
}

.language-switcher a:hover {
    color: var(--highlight-color);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(100, 255, 218, 0.1), transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
}

.hero-content h1 {
    font-size: 60px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.hero-content h2 {
    font-size: 32px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 600px;
}

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

.hero-buttons {
    margin-bottom: 30px;
}

.hero-buttons .btn {
    margin-right: 15px;
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    font-size: 22px;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--highlight-color);
    transform: translateY(-3px);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    align-items: start;
}

.profile-img {
    width: 100%;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.about-text p {
    margin-bottom: 20px;
}

.skills {
    margin-top: 30px;
}

.skills h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

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

.skill-tag {
    background-color: var(--secondary-color);
    color: var(--highlight-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
    border: 1px solid var(--accent-color);
}

/* Timeline (Studies & Experience) */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    left: 0;
    margin-bottom: 30px;
}

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

.timeline-content {
    padding: 25px;
    background-color: var(--secondary-color);
    border-radius: 6px;
    box-shadow: var(--shadow);
    position: relative;
}

.timeline-content::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--highlight-color);
    border-radius: 50%;
    top: 25px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-content::after {
    right: -50px;
}

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

.timeline-content h3 {
    margin-bottom: 5px;
    font-size: 22px;
}

.timeline-content h4 {
    color: var(--highlight-color);
    margin-bottom: 10px;
    font-size: 18px;
}

.timeline-date {
    color: var(--text-color);
    font-style: italic;
    margin-bottom: 15px;
}

/* Work Details List */
.work-details {
    margin-top: 15px;
    padding-left: 5px;
}

.work-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.work-details li::before {
    content: '•';
    color: var(--highlight-color);
    position: absolute;
    left: 0;
    top: 0;
}

/* Projects Section */
.projects-filter {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 10px;
}

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

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

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

.project-card {
    background-color: var(--secondary-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.project-img {
    height: auto;
    padding: 30px;
}

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

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

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    font-size: 18px;
}

.project-links a:hover {
    color: var(--highlight-color);
}

/* Contact Section */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 24px;
    color: var(--highlight-color);
    margin-right: 20px;
    margin-top: 5px;
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 20px;
}

.contact-social {
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--primary-color);
    border: 1px solid var(--accent-color);
    border-radius: 4px;
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}

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

.form-group textarea {
    height: 150px;
    resize: none;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    padding: 30px 0;
    text-align: center;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease forwards;
}

.modal-content {
    position: relative;
    background: var(--secondary-color);
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 1200px;
    height: 75%;
    min-height: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes popIn {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.gallery img {
    width: 100%;
    margin: 10px 0;
}

.close {
    border-radius: 50%;
    float: right;
    font-size: 24px;
    width: 35px;
    height: 35px;
    cursor: pointer;
}

#closeIcon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.close:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
}

/* Carousel */
.carousel-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
    margin: 16px 0 0 0;
    height: 100%;
}

.carousel-slide {
    flex: 1 1 0%;
    text-align: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 500px;
    display: block;
    margin: 0 auto 16px auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

#carousel-title {
    margin: 12px 0 6px 0;
    text-align: center;
}

#carousel-desc {
    text-align: center;
    color: #a0a0a0;
}


.carousel-btn {
    position: absolute;
    top: 30%;
    transform: translateY(-50%);
    background: var(--accent-color);
    color: var(--text-color);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 10;
}

#carousel-prev {
    left: 5px;
}

#carousel-next {
    right: 5px;
}

.carousel-arrow {
    width: 26px;
    height: 26px;
    display: block;
    margin: auto;
}

.carousel-arrow-left {
    transform: scaleX(-1);
}

.carousel-btn:hover {
    background: var(--highlight-color);
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1200px) {

    .hero-content h1 {
        font-size: 50px;
    }

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

    .about-image {
        max-width: 400px;
        margin: 0 auto;
    }

    .timeline::after {
        left: 30px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0;
        left: 0;
    }

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

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        left: -50px;
    }

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

    .nav-links {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--secondary-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: var(--shadow);
        padding: 20px 0;
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
        margin-left: 15px;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .language-switcher {
        margin-left: auto;
        padding-right: 10px;
    }

}

@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .section {
        padding: 70px 0;
    }

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

    .modal-content {
        top: 80px;
        height: 95%;
        width: 100%;
    }

    .carousel-container {
        display: block;
        position: relative;
    }

    .carousel-btn {
        position: absolute;
        top: 15%;
        transform: translateY(-50%);
        opacity: 0.75;
    }
    
    #carousel-prev {
        left: 0;
    }
    
    #carousel-next {
        right: 0;
    }

    .carousel-slide img {
        max-width: 100%;
        max-height: 500px;
        display: block;
        margin: 0 auto 16px auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    }
}