/* Navigation Styles */

/* Base body styles */
body {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-size: 15px;
    letter-spacing: 0.05em;
    line-height: 2em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.5);
    background-color: #1b1c1d;
    padding-top: 60px; /* Keep this to account for fixed nav */
    overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Navigation container */
.nav {
    background-color: #1b1c1d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(27, 28, 29, 0.95);
}

.nav-links {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: capitalize;
    line-height: 1em;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0.5em 1em;
    flex-wrap: wrap;
    gap: 0.5em;
}

/* Navigation items */
.nav-link {
    display: inline-block;
    vertical-align: middle;
    margin: 0 0.3em;
    padding: 0.5em 0;
    color: #dbdbdb;
    transition: color 170ms ease-in-out, background-color 170ms ease-in-out;
    text-decoration: none;
    white-space: nowrap;
}

.nav-link:hover {
    color: #ffffff;
}

/* Link styles */
a {
    color: inherit;
    text-decoration: none;
    background-color: transparent;
    transition: color 170ms ease-in-out;
}

a:hover {
    color: #ffffff;
}

/* Ensure all images scale properly */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Content area */
.content {
    padding: 2em;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* Hero section */
.hero {
    text-align: center;
    padding: 0.5em 0 4em;
    margin-bottom: 4em;
}

.hero .name {
    font-size: 5em;
    background: linear-gradient(45deg, #4a90e2, #357abd, #4a90e2);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient 3s ease infinite;
    margin-bottom: 0.2em;
    line-height: 1;
    letter-spacing: 0.02em;
    text-shadow: 0 0 30px rgba(74, 144, 226, 0.3);
    font-weight: bold;
}

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

.hero .hero-title {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.hero .subheadline {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 2em;
    color: rgba(255, 255, 255, 0.7);
}

/* Button styles */
.button {
    display: inline-block;
    padding: 0.8em 1.6em;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 170ms ease-in-out;
    margin: 0 0.5em;
    box-sizing: border-box;
    white-space: nowrap;
    text-align: center;
}

.button.primary {
    background-color: #4a90e2;
    color: #ffffff;
}

.button.primary:hover {
    background-color: #357abd;
}

.button.secondary {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.button.secondary:hover {
    border-color: #ffffff;
}

/* Section styles */
section {
    margin-bottom: 6em;
}

section h2 {
    font-size: 2em;
    color: #ffffff;
    margin-bottom: 1em;
    text-align: center;
}

/* About section */
.achievements {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.achievements li {
    margin-bottom: 1em;
    padding-left: 1.5em;
    position: relative;
}

.achievements li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4a90e2;
}

/* Portfolio section */
#portfolio {
    scroll-margin-top: 80px;
}

.carousel-wrapper {
    position: relative;
    max-width: 1600px;
    margin: 0 auto 2em;
    padding: 0 20px; /* Reduced padding for mobile */
    width: 100%;
    box-sizing: border-box;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.project-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 1em;
}

.project-card {
    flex: 0 0 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5em;
    border-radius: 8px;
    transition: transform 170ms ease-in-out;
    box-sizing: border-box;
    width: 100%; /* Ensure full width on mobile */
}

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

.project-card h3 {
    color: #ffffff;
    margin-bottom: 1em;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(74, 144, 226, 0.2);
    border: none;
    color: #ffffff;
    width: 40px; /* Smaller buttons on mobile */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: all 170ms ease-in-out;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button:hover:not(:disabled) {
    background: rgba(74, 144, 226, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-button:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
}

.carousel-button.prev {
    left: 0;
}

.carousel-button.next {
    right: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5em;
    margin-bottom: 2em;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background-color 170ms ease-in-out;
}

.carousel-dot.active {
    background: #4a90e2;
}

/* Why Me section */
.qualities {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2em;
    text-align: center;
}

.quality h3 {
    color: #ffffff;
    margin-bottom: 0.5em;
}

/* Connect section */
.connect {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 4em 2em;
    border-radius: 8px;
}

/* Time limited section */
.time-limited {
    text-align: center;
    padding: 3em 1em;
    background: linear-gradient(45deg, #4a90e2, #357abd);
    border-radius: 8px;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.time-limited h2,
.time-limited p {
    color: #ffffff;
    max-width: 800px;
    margin: 0 auto;
}

.stats-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1em;
    margin: 2em auto;
    max-width: 800px;
    width: 100%;
    box-sizing: border-box;
}

.deadline-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5em;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    box-sizing: border-box;
}

.deadline-date.offers {
    background: rgba(255, 255, 255, 0.15);
}

.date-label {
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5em;
    color: rgba(255, 255, 255, 0.8);
}

.date {
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

[data-auto-update="job-offers-count"] {
    font-size: 3em;
}

@media (max-width: 600px) {
    .stats-container {
        grid-template-columns: 1fr;
    }
}

/* Text link styles */
.text-link {
    color: #4a90e2;
    display: inline-flex;
    align-items: center;
}

.text-link:hover {
    color: #357abd;
}

/* CTA buttons container */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
} 

.project-image {
    max-width: 100%;
    width: 100%;
    height: auto;
    margin: 2rem auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    display: block;
    box-sizing: border-box;
}

/* Add a container for project images */
.project-content {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 80px; /* Increased to account for two-line nav */
        font-size: 14px;
    }

    .nav-links {
        height: auto;
        min-height: 50px;
        padding: 0.5em;
        gap: 0.3em;
    }

    .nav-link {
        margin: 0 0.2em;
        padding: 0.3em 0;
        font-size: 14px;
    }

    .hero {
        padding: 0.5em 0 2em;
        margin-bottom: 2em;
    }

    .hero .name {
        font-size: 3.5em;
    }

    .hero .hero-title {
        font-size: 2em;
    }

    .hero .subheadline {
        font-size: 1.1em;
        padding: 0 1em;
    }

    .content {
        padding: 1em;
    }

    .carousel-wrapper {
        padding: 0 40px;
    }

    .project-card {
        width: calc(100% - 2em);
        padding: 1.5em;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
        font-size: 1.2em;
    }

    .qualities {
        grid-template-columns: 1fr;
        gap: 1.5em;
    }

    .button {
        padding: 0.6em 1.2em;
        font-size: 14px;
        margin: 0 0.3em;
        width: auto;
        min-width: 0;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1em;
        padding: 0 1em;
    }

    .cta-buttons .button {
        width: 100%;
        text-align: center;
        margin: 0;
    }

    .time-limited {
        padding: 2em 1em;
    }

    .stats-container {
        gap: 0.8em;
        padding: 0 0.5em;
    }

    .deadline-date {
        padding: 1.2em;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 90px; /* Further increased for very small screens */
        font-size: 13px;
    }

    .nav-links {
        padding: 0.3em;
    }

    .nav-link {
        margin: 0 0.15em;
        padding: 0.2em 0;
        font-size: 13px;
    }

    .hero .name {
        font-size: 2.8em;
    }

    .hero .hero-title {
        font-size: 1.6em;
    }

    .hero .subheadline {
        font-size: 1em;
    }

    section {
        margin-bottom: 3em;
    }

    section h2 {
        font-size: 1.6em;
    }

    .achievements li {
        padding-left: 1.2em;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.8em;
    }

    .deadline-date {
        padding: 1em;
    }

    .button {
        padding: 0.5em 1em;
        font-size: 13px;
    }
}

/* Add viewport meta tag to HTML template */ 

/* Responsive Design */
@media (min-width: 768px) {
    .carousel-wrapper {
        padding: 0 40px; /* Increased padding for tablets */
    }
    .project-carousel {
        gap: 2em;
    }
    .project-card {
        flex: 0 0 calc(50% - 1em);
        padding: 2em;
    }
    .carousel-button {
        width: 50px;
        height: 50px;
        font-size: 1.3em;
    }
}
@media (min-width: 1024px) {
    .carousel-wrapper {
        padding: 0 60px; /* Full padding for desktop */
    }
    .project-card {
        flex: 0 0 calc(33.333% - 1.33em);
    }
    .carousel-button {
        width: 60px;
        height: 60px;
        font-size: 1.5em;
    }
}

.project {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2em;
}

.project-header {
    margin-bottom: 2em;
    text-align: center;
}

.project-header h1 {
    font-size: 2.5em;
    color: #ffffff;
    margin-bottom: 0.5em;
}

.project-meta {
    font-size: 1.2em;
    color: rgba(255, 255, 255, 0.7);
}

.project-content {
    max-width: 800px;
    margin: 0 auto;
}

.project-content h2 {
    font-size: 2em;
    color: #ffffff;
    margin: 2em 0 1em;
    text-align: left;
}

.project-content p {
    margin-bottom: 1.5em;
    line-height: 1.8;
}

.project-content ul {
    margin-bottom: 1.5em;
    padding-left: 1.5em;
}

.project-content li {
    margin-bottom: 0.5em;
} 