/* ============================================
   MODERN CV STYLES - Clean & Responsive
   ============================================ */

/* === VARIABLES === */
:root {
    --primary-color: #2c3e50;
    --gold: #E5B455;
    --gold-light: rgba(229, 180, 85, 0.1);
    --text-dark: #000;
    --text-light: #666;
    --bg-light: #f8f8f8;
    --white: #ffffff;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* === LOGIN OVERLAY === */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.85);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.login-overlay.hidden {
    display: none;
}

/* Blur main content when login overlay is visible */
body:has(.login-overlay:not(.hidden)) .main-content {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

body:has(.login-overlay:not(.hidden)) footer {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

/* Fallback blur class for browsers without :has() support */
.content-blurred {
    filter: blur(10px);
    pointer-events: none;
    user-select: none;
}

.login-box {
    background: var(--white);
    padding: 40px 50px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 400px;
    width: 90%;
}

.login-icon {
    width: 70px;
    height: 70px;
    background: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.login-icon i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.login-box h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 500;
}

.login-box > p {
    color: var(--text-light);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.login-form {
    display: flex;
    gap: 10px;
}

.password-wrapper {
    flex: 1;
    position: relative;
    display: flex;
}

.login-form input {
    flex: 1;
    padding: 12px 16px;
    padding-right: 45px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--gold);
}

.toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-light);
    transition: color 0.3s;
}

.toggle-password-btn:hover {
    color: var(--gold);
}

.login-btn {
    padding: 12px 20px;
    background: var(--gold);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.login-btn:hover {
    background: #d4a43f;
    transform: scale(1.05);
}

.login-btn i {
    color: var(--primary-color);
    font-size: 1.1rem;
}

.login-error {
    color: #e74c3c;
    margin-top: 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 1.6;
    color: var(--text-dark);
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* === LANGUAGE SWITCHER === */
.language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    background: rgba(30, 40, 50, 0.9);
    padding: 10px 16px;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.lang-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: transparent;
    padding: 4px;
    transition: var(--transition);
    opacity: 0.6;
}

.lang-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.lang-btn.active {
    opacity: 1;
    background: var(--gold-light);
    box-shadow: 0 0 0 2px var(--gold);
}

.lang-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* === HEADER === */
.header {
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.9) 0%, rgba(5, 10, 20, 0.95) 100%), url('../images/hinter.png');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 60px 20px 40px;
    position: relative;
    overflow: hidden;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 30px;
    row-gap: 2px;
    align-items: start;
}

.header-top {
    display: contents;
}

.header-title {
    display: contents;
}

.header-title h1 {
    grid-column: 2;
    grid-row: 1;
    align-self: end;
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.clover-wrapper {
    position: relative;
    display: inline-block;
}

.clover-icon {
    font-size: 2.4rem;
    color: #2ecc71;
}

.clover-pulse {
    font-size: 2.4rem;
    color: #2ecc71;
    position: absolute;
    top: 55%;
    left: 45%;
    transform: translate(-50%, -50%);
    animation: cloverPulse 2s ease-out infinite;
}

@keyframes cloverPulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.7;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.header-title .job-title {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
    margin-top: 2px;
    font-size: 1.3rem;
}

.header-title .location {
    grid-column: 2;
    grid-row: 3;
    align-self: start;
    margin-top: 5px;
    font-size: 1rem;
    color: var(--white);
    opacity: 0.8;
}

.header-title .location i {
    margin-right: 5px;
}

.profile-image-wrapper {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    grid-row: 1 / 4;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 40% center;
}

.profile-column .btn {
    width: 120px;
    justify-content: center;
    padding: 10px 15px;
    font-size: 0.85rem;
    margin-top: auto;
}

.header-info {
    display: flex;
    flex-direction: column;
}

.header-info h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.3px;
}

.job-title {
    font-size: 1.15rem;
    color: var(--gold);
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 12px;
}

/* Contact Grid */
.contact-grid {
    grid-column: 2;
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 15px;
    padding: 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    padding: 0;
    border-radius: 0;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(3px);
}

.contact-item i {
    color: var(--gold);
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
    opacity: 0.9;
}

.contact-item span,
.contact-item a {
    color: rgba(255,255,255,0.9);
    transition: var(--transition);
    font-size: 1.1rem;
}

.contact-item a:hover {
    color: var(--gold);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 6px;
    font-family: inherit;
    font-weight: 400;
    font-size: 0.95rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--gold);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: #d4a43f;
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.btn-special {
    background: transparent;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.6);
}

.btn-special:hover {
    border-color: #2e7d32;
    background: rgba(46, 125, 50, 0.15);
}

/* === MAIN CONTENT === */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Section */
.section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

.section-header i {
    color: var(--gold);
    font-size: 1.8rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.section-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.section-content p {
    margin-bottom: 15px;
    line-height: 1.7;
    color: var(--text-dark);
    font-size: 1rem;
}

.section-content p:last-of-type {
    margin-bottom: 20px;
}

.about-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.about-buttons .btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.about-buttons .btn:hover,
.about-buttons .btn:active {
    background: var(--gold);
    color: var(--white);
    border-color: var(--gold);
}

.about-buttons .btn-special {
    color: #2e7d32;
    border-color: rgba(46, 125, 50, 0.6);
}

.about-buttons .btn-special:hover,
.about-buttons .btn-special:active {
    background: #2e7d32;
    color: var(--white);
    border-color: #2e7d32;
}

.btn-separator {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.15);
    align-self: center;
}

/* === TIMELINE === */
.timeline {
    position: relative;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline-marker {
    position: absolute;
    left: -36px;
    top: 0;
    width: 14px;
    height: 14px;
    background: var(--gold);
    border-radius: 50%;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gold);
}

.timeline-date {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
    line-height: 14px;
    display: block;
}

.timeline-item h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.ongoing-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 16px;
    background: var(--gold);
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 8px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        background: var(--gold);
        color: var(--primary-color);
    }
    50% {
        background: var(--primary-color);
        color: var(--gold);
    }
}

.timeline-content h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.company {
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.location-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.flag-item {
    position: relative;
    cursor: pointer;
}

.flag-item img {
    width: 28px;
    height: 19px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: var(--transition);
}

.flag-item:hover img {
    transform: scale(1.15);
}

.flag-item::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 1rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    margin-bottom: 5px;
}

.flag-item:hover::after {
    opacity: 1;
}

.achievement-list {
    margin-top: 15px;
}

.achievement-list li {
    position: relative;
    padding-left: 24px;
    margin-left: -20px;
    margin-bottom: 10px;
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 1rem;
}

.achievement-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-weight: bold;
}

/* Image Gallery */
.image-gallery {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.gallery-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-img:hover {
    border-color: var(--gold);
    transform: scale(1.05);
}

/* === SKILLS GRID === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.skill-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.skill-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.skill-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-icon {
    color: var(--gold);
    font-size: 1.1rem;
    width: 22px;
    text-align: center;
}

.skill-card ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 1rem;
}

.skill-card ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--gold);
    font-size: 0.9rem;
}

/* === EDUCATION === */
.education-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 3px solid var(--gold);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.education-item:last-child {
    margin-bottom: 0;
}

.edu-date {
    color: var(--gold);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.education-item h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 8px;
    font-weight: 600;
}

.edu-institution {
    color: var(--text-light);
    font-style: italic;
    font-size: 1.1rem;
}

/* === PROJECTS === */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-btn:hover {
    background: #d4a43f;
    transform: translateY(-50%) scale(1.15);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.projects-carousel {
    display: flex;
    gap: 25px;
    padding: 10px 5px;
    width: max-content;
}

.project-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    transition: var(--transition);
    min-width: 300px;
    max-width: 350px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--gold);
}

.project-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

.project-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.project-info p {
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 600;
}

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

.project-link {
    display: inline-block;
    color: var(--gold);
    font-weight: 500;
    font-size: 0.85rem;
}

.project-card.coming-soon {
    opacity: 0.7;
}

/* === FOOTER CTA === */
.footer-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a2530 100%);
    color: var(--white);
    padding: 60px 20px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--gold);
    color: var(--primary-color);
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: var(--transition);
}

.btn-cta:hover {
    background: #d4a43f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 180, 85, 0.4);
}

/* === MODALS === */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: var(--white);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
}

.modal-close:hover {
    color: var(--gold);
}

.modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.modal-content-box {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-content-box .modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}

.modal-content-box .modal-close:hover {
    color: #2e7d32;
}

.modal-content-box h2 {
    color: #2e7d32;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.modal-content-box p {
    color: #2e7d32;
    font-size: 0.95rem;
}

.modal-content-box .error-message {
    color: #e74c3c;
}

.modal-content-box form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.special-password-wrapper {
    position: relative;
    display: flex;
    width: 100%;
}

.special-password-wrapper input {
    width: 100%;
}

.special-password-wrapper .toggle-password-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-light);
}

.special-password-wrapper .toggle-password-btn:hover {
    color: #2e7d32;
}

.modal-content-box input {
    padding: 10px;
    padding-right: 40px;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 100%;
    font-size: 0.95rem;
    font-family: inherit;
}

.modal-content-box button {
    padding: 10px;
    background: #2e7d32;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.modal-content-box button:hover {
    background: #1b5e20;
}

.error-message {
    color: #d32f2f;
    font-size: 0.9rem;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .language-switcher {
        bottom: 15px;
        right: 15px;
    }
    
    .header {
        padding: 40px 20px 50px;
    }
    
    .header-container {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .header-top {
        display: flex !important;
        align-items: center;
        gap: 15px;
    }
    
    .profile-image-wrapper {
        width: 90px;
        height: 90px;
        flex-shrink: 0;
        grid-row: unset;
        border-width: 3px;
    }
    
    .header-title {
        display: flex !important;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    
    .header-title h1 {
        grid-column: unset;
        grid-row: unset;
        font-size: 1.8rem;
        margin-bottom: 2px;
        align-self: unset;
    }
    
    .header-title .job-title {
        grid-column: unset;
        grid-row: unset;
        font-size: 1rem;
        margin-bottom: 0 !important;
        margin-top: 0;
        align-self: unset;
        white-space: nowrap;
    }
    
    .header-title .location {
        grid-column: unset;
        grid-row: unset;
        font-size: 0.8rem;
        margin-top: 3px;
        align-self: unset;
    }
    
    .job-title {
        margin-bottom: 0 !important;
    }
    
    .contact-grid {
        grid-column: unset;
        grid-row: unset;
        display: flex;
        flex-wrap: nowrap;
        gap: 15px;
        justify-content: flex-start;
    }
    
    .contact-item {
        font-size: 0.75rem;
        white-space: nowrap;
    }
    
    .contact-item i {
        width: 14px;
        font-size: 0.7rem;
    }
    
    .action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }
    
    .action-buttons .btn:first-child {
        grid-column: 1 / -1;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        font-size: 0.85rem;
    }
    
    .main-content {
        padding: 30px 15px;
    }
    
    .section {
        margin-bottom: 35px;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .section-content {
        padding: 20px;
    }
    
    .timeline {
        padding-left: 25px;
    }
    
    .timeline-marker {
        left: -31px;
    }
    
    .timeline-content {
        padding: 15px;
    }
    
    .timeline-content h3 {
        font-size: 1.1rem;
    }
    
    .about-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .about-buttons .btn {
        padding: 10px 15px;
    }
    
    .btn-separator {
        display: none;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .carousel-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .projects-carousel {
        gap: 15px;
    }
    
    .project-card {
        min-width: 280px;
        flex: 0 0 280px;
    }
    
    .carousel-btn {
        display: none;
    }
    
    .carousel-prev {
        left: 0;
    }
    
    .carousel-next {
        right: 0;
    }
    
    .image-gallery {
        gap: 8px;
    }
    
    .gallery-img {
        width: calc(33.333% - 6px);
        height: 80px;
    }
    
    .modal-close {
        right: 20px;
        font-size: 30px;
    }
    
    .modal-content-box {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .profile-info h1 {
        font-size: 1.5rem;
    }
    
    .section-header h2 {
        font-size: 1.3rem;
    }
    
    .section-header i {
        font-size: 1.5rem;
    }
    
    .modal-content-box {
        padding: 25px 15px;
        width: 95%;
        max-width: none;
    }
    
    .modal-content-box h2 {
        font-size: 1.3rem;
        margin-top: 20px;
    }
    
    .modal-content-box p {
        font-size: 0.9rem;
    }
    
    .modal-content-box input {
        font-size: 1rem;
        padding: 10px;
        padding-right: 40px;
    }
    
    .modal-content-box button {
        padding: 10px;
        font-size: 0.95rem;
    }
    
    .modal-content-box .modal-close {
        top: 10px;
        right: 12px;
        font-size: 28px;
    }
}
