/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a237e 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

@keyframes float {
    from {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    to {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

/* Button Styles */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: linear-gradient(45deg, #1976d2, #64b5f6);
    color: white;
    box-shadow: 0 10px 30px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(25, 118, 210, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #64b5f6;
    border: 2px solid #64b5f6;
    margin-top: 20px;
    width: 100%;
}

.btn-secondary:hover {
    background: rgba(100, 181, 246, 0.1);
    transform: translateY(-2px);
}

/* Loading overlay styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    animation: fadeIn 0.3s ease-out;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 3px solid rgba(100, 181, 246, 0.2);
    border-top-color: #64b5f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

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

.loading-overlay p {
    color: #64b5f6;
    font-size: 1.2em;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Login page styles */
.login-container {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-box {
    background: rgba(26, 35, 126, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.8s ease-out;
    transition: all 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    background: linear-gradient(45deg, #64b5f6, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.subtitle {
    color: #b3c5ff;
    margin-bottom: 40px;
    font-size: 1.1em;
    font-weight: 300;
}

.password-form {
    margin-bottom: 30px;
}

.input-group {
    position: relative;
    margin-bottom: 30px;
}

input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    transition: all 0.3s ease;
}

input[type="password"]:focus {
    outline: none;
    border-color: #64b5f6;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px rgba(100, 181, 246, 0.3);
}

input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.error-message {
    color: #ff6b6b;
    margin-top: 15px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #0d1127, #1a237e);
    margin: 2% auto;
    padding: 30px;
    border-radius: 20px;
    width: 95%;
    max-width: 1200px;
    height: 90vh;
    max-height: 90vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: modalFadeIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #fff;
}

/* Contact Sidebar */
.contact-sidebar {
    position: fixed;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    background: rgba(26, 35, 126, 0.3);
    backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 35px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    min-width: 320px;
    max-width: 350px;
}

.contact-sidebar:hover {
    transform: translateY(-50%) translateX(8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    background: rgba(26, 35, 126, 0.4);
}

.contact-content {
    text-align: left;
}

.contact-title {
    color: #64b5f6;
    font-size: 1.4em;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    background: linear-gradient(45deg, #64b5f6, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.contact-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.contact-link:hover::before {
    left: 100%;
}

.email-link:hover {
    background: rgba(100, 181, 246, 0.15);
    border-color: rgba(100, 181, 246, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(100, 181, 246, 0.25);
}

.linkedin-link:hover {
    background: rgba(14, 118, 168, 0.15);
    border-color: rgba(14, 118, 168, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(14, 118, 168, 0.25);
}

.contact-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.email-link .contact-icon {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    color: white;
    box-shadow: 0 8px 20px rgba(100, 181, 246, 0.3);
}

.linkedin-link .contact-icon {
    background: linear-gradient(135deg, #0e76a8, #004182);
    color: white;
    box-shadow: 0 8px 20px rgba(14, 118, 168, 0.3);
}

.contact-link:hover .contact-icon {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 0 12px 30px rgba(100, 181, 246, 0.4);
}

.linkedin-link:hover .contact-icon {
    box-shadow: 0 12px 30px rgba(14, 118, 168, 0.4);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #64b5f6;
    margin-bottom: 4px;
}

.contact-value {
    font-size: 15px;
    font-weight: 600;
    color: #e3f2fd;
    line-height: 1.4;
    word-break: break-word;
}

.email-link:hover .contact-label {
    color: #ffffff;
}

.linkedin-link:hover .contact-label {
    color: #ffffff;
}

.email-link:hover .contact-value {
    color: #ffffff;
}

.linkedin-link:hover .contact-value {
    color: #ffffff;
}

/* Back to Main Button */
.back-to-main-container {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-to-main-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    text-decoration: none;
    color: #e3f2fd;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
}

.back-to-main-btn:hover {
    background: rgba(100, 181, 246, 0.15);
    border-color: rgba(100, 181, 246, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
}

.back-icon {
    font-size: 14px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-2px);
    }
    60% {
        transform: translateY(-1px);
    }
}

/* Public Demoreel Section */
.public-demoreel-section {
    margin-top: 40px;
    text-align: center;
}

.section-divider {
    position: relative;
    margin: 30px 0;
    text-align: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(100, 181, 246, 0.3), transparent);
}

.divider-text {
    background: rgba(26, 35, 126, 0.8);
    padding: 0 20px;
    color: #64b5f6;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
}

.public-title {
    color: #e3f2fd;
    font-size: 1.3em;
    margin-bottom: 8px;
    font-weight: 600;
}

.public-subtitle {
    color: #b3c5ff;
    font-size: 0.9em;
    margin-bottom: 25px;
    opacity: 0.8;
}

.btn-public {
    background: linear-gradient(45deg, #7b1fa2, #e1bee7);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    text-transform: none;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(123, 31, 162, 0.3);
    width: 100%;
    justify-content: center;
}

.btn-public::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-public:hover::before {
    left: 100%;
}

.btn-public:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(123, 31, 162, 0.4);
    background: linear-gradient(45deg, #8e24aa, #f3e5f5);
}

.btn-icon {
    font-size: 18px;
    animation: bounce 2s infinite;
}

.btn-arrow {
    font-size: 14px;
    transition: transform 0.3s ease;
}

.btn-public:hover .btn-arrow {
    transform: translateX(5px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-3px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Modal header */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    color: #64b5f6;
    margin: 0;
    font-size: 1.8em;
}

.modal-header-buttons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-back {
    background: rgba(100, 181, 246, 0.2);
    color: #64b5f6;
    border: 2px solid #64b5f6;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.btn-back:hover {
    background: rgba(100, 181, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(100, 181, 246, 0.3);
}

/* Modal body for iframe */
.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.modal-body iframe {
    border: none;
    border-radius: 10px;
    width: 100%;
    height: 100%;
    min-height: 600px;
    background: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal-content {
        width: 98%;
        height: 95vh;
        margin: 1% auto;
        padding: 20px;
    }
    
    .modal-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .modal-header-buttons {
        justify-content: space-between;
        width: 100%;
    }
    
    .modal-header h2 {
        font-size: 1.4em;
        text-align: center;
    }
    
    .btn-back {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .close {
        font-size: 24px;
    }
    
    /* Contact sidebar responsive */
    .contact-sidebar {
        position: fixed;
        left: 15px;
        right: 15px;
        top: auto;
        bottom: 25px;
        transform: none;
        max-width: none;
        min-width: auto;
        padding: 20px;
    }
    
    .contact-sidebar:hover {
        transform: translateY(-3px);
    }
    
    .contact-links {
        flex-direction: row;
        justify-content: space-around;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .contact-link {
        flex-direction: column;
        text-align: center;
        padding: 15px 10px;
        gap: 12px;
        flex: 1;
    }
    
    .contact-info {
        align-items: center;
    }
    
    .contact-value {
        font-size: 12px;
    }
    
    .contact-title {
        font-size: 1.2em;
        margin-bottom: 18px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .back-to-main-container {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .back-to-main-btn {
        font-size: 12px;
        padding: 8px 12px;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .contact-sidebar {
        left: 30px;
        min-width: 300px;
        max-width: 320px;
    }
}

/* Additional responsive for header buttons */
@media (max-width: 768px) {
    .header-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .btn-back-main,
    .btn-back-home {
        font-size: 12px;
        padding: 6px 12px;
    }
}