body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #1a1e23;
    color: #e0e0e0;
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* NAVBAR */
.navbar {
    background: rgba(26, 30, 35, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    left: 0;
    right: 0;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    max-width: 1400px;
    position: relative;
}

.navbar-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    padding: 0;
}

.navbar .brand {
    height: auto;
    display: block;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    padding: 0.75rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    display: block;
    height: 2px;
    width: 0;
    background: #00d1b2;
    transition: width 0.3s ease;
    position: absolute;
    left: 0;
    top: 25px;
}

.nav-link:hover {
    color: #00d1b2;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-text {
    position: relative;
    display: block;
    overflow: hidden;
}

.nav-text .layer1 span {
    display: inline-block;
    transform: translateY(0);
    transition: transform 0.2s ease-out;
}

.nav-text .layer2 {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
}

.nav-text .layer2 span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 0.2s ease-out;
}

.nav-link:hover .layer1 span:nth-child(1) { transition-delay: 0s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(2) { transition-delay: 0.02s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(3) { transition-delay: 0.04s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(4) { transition-delay: 0.06s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(5) { transition-delay: 0.08s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(6) { transition-delay: 0.1s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(7) { transition-delay: 0.12s; transform: translateY(-100%); }
.nav-link:hover .layer1 span:nth-child(8) { transition-delay: 0.14s; transform: translateY(-100%); }

.nav-link:hover .layer2 span:nth-child(1) { transition-delay: 0s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(2) { transition-delay: 0.02s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(3) { transition-delay: 0.04s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(4) { transition-delay: 0.06s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(5) { transition-delay: 0.08s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(6) { transition-delay: 0.1s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(7) { transition-delay: 0.12s; transform: translateY(0); }
.nav-link:hover .layer2 span:nth-child(8) { transition-delay: 0.14s; transform: translateY(0); }

.layer1 span, .layer2 span {
    transition: transform 0.25s ease;
}

/* FOOTER */
.footer {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(26, 30, 35, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.12);
}

.footer-left {
    display: flex;
    align-items: center;
    position: absolute;
    left: 30px;
}

.footer-center {
    text-align: center;
}

.footer-links a {
    color: #c7c7c7;
    text-decoration: none;
    margin: 0 10px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #00d1b2;
}

.copyright {
    display: block;
    margin-top: 10px;
    font-size: 0.9em;
    color: #c4c4c4;
}

/* INDEX PAGE */
section {
    padding-bottom: 2rem;
}

.about-section {
    position: relative;
    z-index: 10;
}

.about-content {
    background: #242931;
    border-radius: 8px;
    padding: 10px 32px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.about-text {
    max-width: 900px;
    margin: 2rem auto;
    text-align: center;
}

.about-text .lead {
    font-size: 1.75rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 2rem 0;
}

.about-text .description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #b8b8b8;
    margin: 0 0 3rem 0;
}

.about-text .values {
    display: flex;
    justify-content: center;
    gap: 4rem;
    /*margin-top: 3rem;*/
    /*padding-top: 3rem;*/
    /*border-top: 1px solid rgba(255, 255, 255, 0.1);*/
}

.values a {
    text-decoration: none;
    color: white;
    font-size: 24px;
}

.cards-grid {
    list-style: none;
    display: flex;
    padding-left: 0;
    justify-content: center;
    gap: 2rem;
}

.cards-grid .card {
    max-width: 30%;
    width: 30%;
    background: #1f2429;
    border-radius: 8px;
    padding: 10px 35px;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cards-grid .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 209, 178, 0.2);
}

.cards-grid .card h3 {
    margin-top: 10px;
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 600;
}

.cards-grid .card p {
    margin: 0;
    color: #b8b8b8;
    line-height: 1.6;
}

.project-grid {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    align-items: start;
}

.project-card {
    padding: 25px 30px !important;
    flex: 0 0 calc((100% - 3rem) / 3);
    min-width: 260px;
    max-width: 420px;
    scroll-snap-align: center;
}

.project-card h3 {
    margin-top: 20px !important;
}

.project-card .view-project-btn {
    margin-top: 20px;
    text-align: center;
    background-color: #a48e62;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    color: white;
}

.project-card img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    height: 100%;
    width: 100%;
}

/* CONTACT PAGE */
.contact-section {
    margin-top: 2rem;
}

.contact-form {
    display: flex;
    padding: 1rem;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.form-split {
    display: flex;
    gap: 2rem;
    width: 60%;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 60%;
}

.form-group label {
    margin-bottom: 0.5rem;
    color: #c7c7c7;
    font-weight: 500;
}

.form-group input, .form-group textarea {
    padding: 12px;
    font-size: 15px;
    border-radius: 8px;
    color: #c7c7c7;
    background-color: #1a1e23;
    border: 1px solid #2e2b2b;
    transition: all 0.3s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #a48e62;
    outline: none;
}

.btn-contact {
    width: 60% !important;
    margin-top: 1rem;
    padding: 0.5rem 2.5rem !important;
    background-color: #a48e62;
    color: white;
    font-weight: normal !important;
    letter-spacing: 0.2px;
}

.btn-contact:hover {
    cursor: pointer;
}

/* ERROR PAGE */
.error-animation {
    width: 400px;
    height: 400px;
}

.error-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.error-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.error-text h1 {
    font-size: 6rem;
    margin-bottom: 0;
    margin-top: 0;
    color: #ff6b6b;
}

/* MISC */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

#main-content {
    transition: opacity 240ms ease;
    opacity: 1;
}
#main-content.fade-out {
    opacity: 0;
}
#main-content.fade-in {
    opacity: 0;
    animation: fadeIn 240ms forwards ease;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

[data-aos] {
    pointer-events: auto;
}

@media (max-width: 768px) {
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
    }
}

.w-50 {
    width: 50% !important;
}

.justify-center {
    justify-content: center !important;
}

.align-center {
    align-items: center !important;
}

.flex {
    display: flex !important;
}

.flex-column {
    flex-direction: column !important;
}

.min-vh-100 {
    min-height: 100vh !important;
}

.content {
    flex-grow: 1 !important;
    display: flex;
    flex-direction: column;
}

.carousel {
    position: relative;
    margin: 0 -1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #2a3c46;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    opacity: 0.95;
}

.carousel-btn:disabled { opacity: 0.35; cursor: default; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }

/* HERO SECTION */
.hero-section {
    min-height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-bottom: 6rem;
    background: #1f2429;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 0;
    right: 0;
    width: 100%;
    height: 100px;
    background: #1f2429;
    clip-path: ellipse(60% 100% at 50% 0%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 2;
    margin-top: 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    color: #a48e62;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #b0b0b0;
    margin: 0;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    width: 130px;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn::before {
    display: none;
}

.btn-primary {
    background: #00d1b2;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    background: #00b89c;
}

.btn-secondary {
    background: transparent;
    color: #00d1b2;
    border: 2px solid #00d1b2;
}

.btn-secondary:hover {
    background: rgba(0, 209, 178, 0.1);
    transform: translateY(-2px);
}

/* PROJECT PAGE */
.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
    align-items: start;
}

.project-image-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-image {
    width: 100%;
    height: auto;
    display: block;
}

.project-description h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
}

.project-description p {
    color: #b8b8b8;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.tech-tag {
    background: #2a3c46;
    color: #00d1b2;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid rgba(0, 209, 178, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(0, 209, 178, 0.1);
    border-color: rgba(0, 209, 178, 0.4);
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* FAQ SECTION */
.faq-content {
    background: #242931;
    border-radius: 8px;
    padding: 2rem !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.faq-item {
    background: #1f2429;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 209, 178, 0.15);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    color: #42b7d0;
    background: #2a3c46;
}

.faq-question-text {
    flex: 1;
    padding-right: 1rem;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #42b7d0;
    transition: transform 0.3s ease;
    min-width: 24px;
    text-align: center;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
    overflow: hidden;
}

.faq-answer-content {
    overflow: hidden;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    margin: 0;
    padding: 1.5rem 1.25rem;
    color: #b0b0b0;
    line-height: 1.6;
    font-size: 1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #a48e62;
    font-weight: 600;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-title span {
    font-size: 16px;
    font-weight: 400;
    color: #b0b0b0;
    margin-top: 0.5rem;
    width: 60%;
}

/* RESPONSIVE */
@media(max-width: 480px) {
    .error-text h1 {
        font-size: 4rem;
    }

    .error-animation {
        width: 300px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-content {
        margin-top: 50px;
    }

    .cards-grid {
        flex-direction: column;
        gap: 1rem;
    }

    .cards-grid .card {
        max-width: 100%;
        width: 100%;
        padding: 10px 20px;
    }

    .container {
        padding: 0 1rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .about-content {
        padding: 10px 16px !important;
    }

    .faq-content {
        padding: 1rem !important;
    }

    section {
        padding-left: 0;
        padding-right: 0;
    }

    .footer-links {
        display: none;
    }

    .footer-left {
        display: flex;
        align-items: center;
        position: relative;
        left: 0 !important;
    }

    .footer {
        justify-content: space-between;
        padding: 0 30px;
    }

    .about-text .lead {
        font-size: 1.3rem;
    }

    .about-text .description {
        font-size: 1rem;
    }

    .about-text .values {
        gap: 2rem;
        padding-top: 2rem;
    }

    section:not(.hero-section) {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 100%;
        flex-direction: column;
        background: linear-gradient(135deg, #2a3c46, #1f2a30);
        padding: 5rem 2rem 2rem;
        gap: 0;
        transition: all 0.3s ease;
        margin: 0;
        transform: translateX(100%);
    }

    .navbar-menu.active {
        right: 0;
        transform: translateX(0);
    }

    .navbar-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-menu li:last-child {
        border-bottom: none;
    }

    .nav-link {
        display: block;
        padding: 1rem 0;
        width: 100%;
    }

    .nav-link::after {
        display: none;
    }

    .faq-question {
        font-size: 1rem;
        padding: 1rem;
    }

    .faq-answer p {
        padding: 1rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .cards-grid {
        flex-direction: column;
        gap: 1rem;
        padding: 0;
    }

    .cards-grid .card {
        max-width: 100%;
        width: 100%;
        padding: 10px 20px;
        box-sizing: border-box;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.3rem;
    }

    .hero-section {
        padding: 2rem 1rem;
    }

    .container {
        padding: 0 1rem;
        box-sizing: border-box;
    }

    .about-content {
        padding: 10px 20px !important;
        box-sizing: border-box;
    }

    .faq-content {
        padding: 1.5rem !important;
        box-sizing: border-box;
    }

    .footer-left {
        left: 20px;
    }

    .hero-cta {
        gap: 1rem;
    }

    .btn {
        width: auto;
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    section {
        padding-left: 0;
        padding-right: 0;
    }

    .about-section, .projects-section, .services-section, .faq-section {
        overflow-x: hidden;
    }

    .hero-section::after {
        display: none;
    }

    .about-section {
        margin-top: 2rem;
    }

    .hero-content {
        margin-top: 0;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-description h3 {
        font-size: 1.5rem;
    }

    .tech-stack {
        gap: 0.75rem;
    }

    .tech-tag {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .about-text .lead {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .about-text .description {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .about-text .values {
        gap: 3rem;
        margin-top: 2rem;
        padding-top: 2rem;
    }

    .form-split {
        width: 90%;
    }

    .form-group {
        width: 90%;
    }

    .btn-contact {
        width: 90% !important;
    }
}

@media (max-width: 800px) {
    .error-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .error-container .w-50 {
        width: auto !important;
    }

    .error-animation {
        height: 240px;
    }
}

@media (max-width: 878px) {
    .form-split {
        flex-direction: column;
    }

    .form-split .form-group {
        width: 100%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .cards-grid .card {
        max-width: 45%;
        width: 45%;
    }

    .cards-grid {
        flex-wrap: wrap;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .container {
        padding: 0 1.5rem;
    }
}
