/* Common styles for all pages */

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

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 40px;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo-image {
    height: 40px;
    width: auto;
}

.loader-logo {
    height: 80px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    flex: 0 0 auto;
    margin-left: auto;
}

.logo h1 {
    color: #212529;
    font-size: 32px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
}


.nav-menu a {
    text-decoration: none;
    color: #212529;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 14px;
    position: relative;
    transition: all 0.3s ease;
}

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

.nav-menu a:hover {
    color: #000000;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu .active {
    color: #00ffff !important;
    font-weight: 600;
}

/* Floating Contact Button */
.floating-contact-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-contact-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.floating-contact-button:active {
    transform: translateY(-2px);
}

/* Section Titles */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #212529;
    font-weight: 200;
    letter-spacing: 3px;
    text-transform: uppercase;
    position: relative;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #212529, transparent);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 80px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* Buttons */
.cta-button, .contact-button {
    background: linear-gradient(45deg, #00ffff, #0088ff);
    color: #000000;
    padding: 18px 50px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.cta-button:hover, .contact-button:hover {
    background: linear-gradient(45deg, #ffffff, #e6e6e6);
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 255, 255, 0.6);
}

.contact-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #000000;
    transition: all 0.3s ease;
    z-index: -1;
}

.contact-button:hover {
    color: #ffffff;
}

.contact-button:hover::before {
    left: 0;
}

/* Footer */
.footer {
    background-color: #212529;
    color: #ffffff;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    opacity: 0.8;
}

/* Page Layout */
.page-content {
    min-height: 100vh;
    padding-top: 80px;
}

.main-content {
    opacity: 0;
    transition: opacity 0.5s ease-in;
}

.main-content.show {
    opacity: 1;
}

/* Three.js Canvas Base Styles */
canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Page Transition Styles */
#page-transition-canvas {
    position: fixed !important;
    z-index: 10000 !important;
    pointer-events: none !important;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Smooth transition for page content */
body {
    transition: opacity 0.3s ease;
}

/* Page transition loading state */
.page-transitioning {
    overflow: hidden;
}

.page-transitioning * {
    pointer-events: none;
}

/* Enhanced link hover effects for transition preview */
a:not(.no-transition) {
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:not(.no-transition):hover {
    transform: translateY(-1px);
}

a:not(.no-transition)::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

a:not(.no-transition):hover::before {
    opacity: 1;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: 15px 0;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .nav-menu {
        gap: 20px;
    }
    
    .nav-menu a {
        font-size: 12px;
    }
    
    .section-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 60px;
    }
    
    .nav {
        flex-direction: column;
        gap: 20px;
        padding: 0 20px;
    }
    
    .nav-menu {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
}