/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body styling */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #e0e0e0;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    line-height: 1.8;
    scroll-behavior: smooth;
}

/* Header styling */
header {
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Navigation styling */
nav ul {
    list-style: none;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
}

nav ul li a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Intro Section styling */
#intro {
    text-align: center;
    padding: 120px 20px 80px;
    max-width: 1000px;
    margin: 0 auto;
}

#intro h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

#intro h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #b0b0b0;
    font-weight: 400;
}

#intro p {
    font-size: 1.05rem;
    margin-bottom: 35px;
    color: #c0c0c0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

/* Button styles */
.btn {
    display: inline-block;
    padding: 12px 28px;
    margin: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Section styling */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section h3 {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* About Section */
#about {
    text-align: left;
}

#about h3 {
    text-align: center;
}

#about p {
    color: #b0b0b0;
    line-height: 1.9;
    font-size: 1.05rem;
    max-width: 900px;
    margin: 0 auto;
}

/* Experience and Project Items - Modern Card Design */
.experience-item, .project-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: left;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.experience-item:hover, .project-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.experience-item h4, .project-item h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.experience-item p, .project-item p {
    color: #b0b0b0;
    line-height: 1.8;
    font-size: 1rem;
}

.experience-item a, .project-item a {
    display: inline-block;
    margin: 10px 0;
    color: #6ba3ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.experience-item a:hover, .project-item a:hover {
    color: #94bdff;
    text-decoration: underline;
}

ul {
    list-style-type: none;
    padding: 0;
}

ul li {
    margin-bottom: 10px;
}

/* Skills Section */
.skills-category {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.skills-category:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.skills-category h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 600;
}

.skills-category ul {
    text-align: left;
}

.skills-category ul li {
    color: #b0b0b0;
    line-height: 1.9;
    padding-left: 20px;
    position: relative;
}

.skills-category ul li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #6ba3ff;
    font-weight: bold;
}

.skills-category strong {
    color: #e0e0e0;
    font-weight: 600;
}

/* Contact Section styling */
#contact {
    text-align: center;
}

#contact a {
    color: #6ba3ff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #94bdff;
    text-decoration: underline;
}

#contact p {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

footer {
    text-align: center;
    padding: 30px 0;
    background: rgba(17, 17, 17, 0.95);
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
    font-size: 0.95rem;
    color: #b0b0b0;
}

/* Language toggle button */
#lang-toggle {
    position: fixed;
    top: 65px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

#lang-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Form and input field styling */
form input, form textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    outline: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 16px;
    margin-bottom: 18px;
    color: #fff;
    font-size: 16px;
    border-radius: 10px;
    display: block;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

form input:focus, form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}

/* Styling for both Send and Download CV buttons */
.btn2, .btn3 {
    padding: 14px 40px;
    font-size: 17px;
    margin-top: 10px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    color: #000 !important;
    border: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-block;
    text-decoration: none;
}

/* Add a border to the Download CV button */
.btn3 {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.btn2:hover {
    background: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.btn3:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

/* Add space between Send and Download CV button */
#download-cv {
    margin-top: 15px;
}

/* Adjust spacing in the form */
form .btn2 {
    margin-bottom: 20px;
}

#cv-language-note {
    margin-top: 16px;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Certificate Grid styling */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Certificate Item styling */
.certificate-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.certificate-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.certificate-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 18px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.certificate-item:hover img {
    opacity: 0.95;
    transform: scale(1.02);
}

.certificate-item p {
    color: #e0e0e0;
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

/* Responsive adjustments for certificates */
@media (max-width: 768px) {
    .certificate-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 15px 0;
    }

    .certificate-item {
        padding: 20px;
    }
}

/* Clickable certificate cursor */
.certificate-clickable {
    cursor: pointer;
}

/* Modal/Lightbox styling */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: zoomIn 0.3s;
}

@keyframes zoomIn {
    from { transform: translate(-50%, -50%) scale(0.5); }
    to { transform: translate(-50%, -50%) scale(1); }
}

.close {
    position: absolute;
    top: 30px;
    right: 50px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}

.close:hover,
.close:focus {
    color: #bbb;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.2rem;
}

/* Responsive modal adjustments */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
        max-height: 75vh;
    }

    .close {
        top: 15px;
        right: 25px;
        font-size: 35px;
    }

    #caption {
        font-size: 0.95rem;
        bottom: 15px;
    }

    /* Mobile navigation improvements */
    header {
        padding: 0.8rem 0;
    }

    nav ul {
        padding: 8px 10px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    nav ul li {
        display: inline-block;
        margin: 4px 6px;
    }

    nav ul li a {
        font-size: 13px;
        padding: 6px 12px;
        display: inline-block;
        white-space: nowrap;
    }

    /* Adjust intro section for mobile */
    #intro {
        padding: 80px 20px 60px;
    }

    #intro h1 {
        font-size: 2.2rem;
    }

    #intro h2 {
        font-size: 1.3rem;
    }

    #intro p {
        font-size: 1rem;
    }

    /* Adjust section headings for mobile */
    section {
        padding: 50px 20px;
    }

    section h3 {
        font-size: 2rem;
        margin-bottom: 35px;
    }

    /* Mobile cards adjustments */
    .experience-item, .project-item {
        padding: 25px;
        margin-bottom: 25px;
    }

    .experience-item h4, .project-item h4 {
        font-size: 1.25rem;
    }

    .skills-category {
        padding: 20px;
        margin-bottom: 20px;
    }

    .skills-category h4 {
        font-size: 1.2rem;
    }

    /* Mobile buttons */
    .btn {
        padding: 10px 24px;
        font-size: 14px;
        margin: 8px;
    }

    .btn2, .btn3 {
        padding: 12px 32px;
        font-size: 16px;
    }

    /* Language toggle for mobile */
    #lang-toggle {
        top: 60px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
}
