/* ===================================
   COMMON STYLES FOR ALL PAGES
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100;200;300;400;500;600;700;800;900&display=swap');

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

body {
    font-family: "Roboto", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   HEADER NAVIGATION (COMMON TO ALL PAGES)
   =================================== */
header {
    position: fixed;
    top: 10px;
    right: 40px;
    z-index: 1000;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}

nav {
    display: flex;
    gap: 40px;
    align-items: center;
    
    padding: 15px 30px;
    transition: all 0.3s ease;
}

/*nav:hover {
    background: rgba(0, 0, 0, 0.7);
}*/

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
    white-space: nowrap;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

/*nav a:hover {
    color: rgba(255, 255, 255, 0.7);
}
*/
nav a:hover::after {
    width: 100%;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    width: 25px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ===================================
   MODAL STYLES (COMMON TO ALL PAGES)
   =================================== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 350px;
    padding: 10px 10px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        30px 100%,
        0 calc(100% - 30px)
    );
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

/* ===== MODAL CLOSE BUTTON WITH ROTATION ===== */
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 35px;
    height: 35px;
    color: white;
    border: none;
    background: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}

/* Rotate on hover */
.modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: #fff;
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.modal-header h2 {
    font-size: 12px;
    font-weight: 400;
    margin: 0 0 10px 0;
    color: #000;
    font-family: "Roboto", sans-serif;
    text-transform: uppercase;
}

.modal-header p {
    font-size: 12px;
    margin: 0;
    color: #666;
}

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

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

.form-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px dashed #9D9688;
    font-size: 12px;
    font-family: "Roboto", sans-serif;
    transition: background 0.3s ease;
    color: #000;
    caret-color: #000;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}

.form-input:focus {
    outline: none;
    background: #ebebeb;
}

.form-input::placeholder {
    color: #999;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

.modal-submit {
    width: auto;
    padding: 16px 50px;
    background: #000;
    color: white;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.3s ease;
    display: block;
    margin: 0 auto;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        10px 100%,
        0 calc(100% - 10px)
    );
}

.modal-submit:hover {
    background: #333;
}

.modal-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.modal-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Loading spinner */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
    display: none;
    text-align: center;
    padding: 20px;
}

.success-message.active {
    display: block;
}

.success-icon {
    font-size: 60px;
    color: #4CAF50;
    margin-bottom: 20px;
}

.success-message h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #000;
}

.success-message p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ===================================
   FLOATING FOOTER (COMMON TO ALL PAGES)
   =================================== */
.tf-footer {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 20%;
    max-width: 300px;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        15px 100%,
        0 calc(100% - 15px)
    );
}

.floating-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 5px;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.floating-bar img {
    height: 40px;
    width: auto;
}

.floating-text {
    color: #000;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.floating-btn {
    padding: 12px 30px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    clip-path: polygon(
        0 0,
        100% 0,
        100% 100%,
        8px 100%,
        0 calc(100% - 8px)
    );
}

.floating-btn:hover {
    background: #000;
    color: #fff;
    transform: scale(1.05);
}

/* ===================================
   RESPONSIVE (COMMON TO ALL PAGES)
   =================================== */
@media (max-width: 768px) {
    header {
        top: 20px;
        right: 20px;
    }

    .menu-toggle {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 12px 20px;
    }

    nav a {
        font-size: 11px;
    }

    .tf-footer {
        bottom: 15px;
        width: 90%;
    }

    .floating-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }

    .floating-bar img {
        height: 30px;
    }

    .floating-text {
        font-size: 12px;
    }

    .floating-btn {
        padding: 10px 25px;
        font-size: 12px;
    }

    .modal-content {
        padding: 40px 30px;
    }

    .modal-header h2 {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .tf-footer {
        bottom: 10px;
        width: 95%;
    }

    .floating-bar {
        padding: 12px 15px;
        gap: 12px;
    }

    .floating-text {
        font-size: 11px;
    }

    .floating-btn {
        padding: 8px 20px;
        font-size: 11px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    nav {
        gap: 15px;
        padding: 10px 15px;
    }

    nav a {
        font-size: 10px;
    }
}

/* Additional responsive for tablet/mobile */
@media (max-width: 768px) {
    .tf-footer {
        bottom: 15px;
        width: calc(100% - 30px);
        max-width: 200px;
    }

    .floating-bar {
        flex-direction: row;
        justify-content: space-between;
        padding: 8px 12px;
        gap: 8px;
    }

    .floating-bar img {
        height: 32px;
    }

    .floating-text {
        font-size: 9px;
        padding: 8px 12px;
    }

    .floating-btn {
        padding: 8px 16px;
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .floating-bar {
        padding: 6px 10px;
        gap: 6px;
    }

    .floating-bar img {
        height: 28px;
    }

    .floating-text {
        font-size: 8px;
        padding: 6px 10px;
    }

    .floating-btn {
        padding: 6px 14px;
        font-size: 8px;
    }
}

/* Tablet View (481px - 768px) */
@media (max-width: 1580px) and (min-width: 481px) {
    header {
        top: 20px;
        right: 20px;
    }

    .menu-toggle {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        gap: 20px;
        padding: 12px 20px;
    }

    nav a {
        font-size: 11px;
    }

    .tf-footer {
        bottom: 20px;
        width: calc(100% - 80px);
        max-width: 250px;
    }

    .floating-bar {
        flex-direction: row;
        justify-content: space-between;
        padding: 10px 15px;
        gap: 15px;
    }

    .floating-bar img {
        height: 36px;
    }

    .floating-text {
        font-size: 11px;
        padding: 0;
    }

    .floating-btn {
        padding: 10px 24px;
        font-size: 11px;
    }

    .modal-content {
        padding: 40px 30px;
    }

    .modal-header h2 {
        font-size: 28px;
    }
}

/* Mobile View (up to 480px) */
@media (max-width: 480px) {
    header {
        top: 20px;
        right: 20px;
    }

    .menu-toggle {
        display: none;
    }

    nav {
        display: flex;
        flex-direction: row;
        gap: 15px;
        padding: 10px 15px;
    }

    nav a {
        font-size: 10px;
    }

    .tf-footer {
        bottom: 10px;
        width: 95%;
    }

    .floating-bar {
        padding: 6px 10px;
        gap: 6px;
    }

    .floating-bar img {
        height: 28px;
    }

    .floating-text {
        font-size: 12px;
        padding: 6px 10px;
    }

    .floating-btn {
        padding: 5px 14px;
        font-size: 12px;
    }

    .modal-content {
        padding: 20px 20px;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}