/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f6fa;
    --white: #ffffff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    opacity: 0;
    transition: opacity 2s ease;
}
body.page-fade-in {
    opacity: 1;
}

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    opacity: 0;
    transition: opacity 2s ease 0.5s;
}
header.header-fade-in {
    opacity: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('https://source.unsplash.com/random/1600x900/?webdesign');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 1rem;
}

.hero-content {
    max-width: 800px;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #2980b9;
}

/* Services Section */
.services {
    padding: 5rem 1rem;
    background-color: var(--light-bg);
}

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 1rem;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* About Section */
.about {
    padding: 5rem 1rem;
    background-color: var(--light-bg);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 5rem 1rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

#contactForm {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.submit-button {
    display: block;
    width: 100%;
    padding: 1rem;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 3rem 1rem 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: 0;
        height: 92vh;
        top: 8vh;
        background-color: var(--white);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }

    .nav-links li {
        margin: 2rem 0;
    }

    .burger {
        display: block;
    }

    .nav-active {
        transform: translateX(0%);
    }

    .hero h2 {
        font-size: 2rem;
    }
}

/* Animation for burger menu */
.toggle .line1 {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.toggle .line2 {
    opacity: 0;
}

.toggle .line3 {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Membership Form Styles */
.membership-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"] {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.radio-group {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.radio-group input[type="radio"] {
    margin-right: 0.5rem;
}

.radio-group label {
    margin-bottom: 0;
}

.form-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.print-button,
.submit-button,
.reset-button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.print-button {
    background-color: #3498db;
    color: white;
}

.submit-button {
    background-color: #2ecc71;
    color: white;
}

.reset-button {
    background-color: #e74c3c;
    color: white;
}

.print-button:hover {
    background-color: #2980b9;
}

.submit-button:hover {
    background-color: #27ae60;
}

.reset-button:hover {
    background-color: #c0392b;
}

/* Responsive adjustments for the form */
@media screen and (max-width: 768px) {
    .membership-form-container {
        padding: 1rem;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .print-button,
    .submit-button,
    .reset-button {
        width: 100%;
    }
} 

/* Webapp Access Styles */
.webapp-access {
    background-color: #2c3e50;
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 2rem;
}

.webapp-access h3 {
    color: white;
    margin-bottom: 1rem;
}

.password-form {
    max-width: 400px;
    margin: 0 auto;
}

.password-form input[type="password"] {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 5px;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.password-form button {
    width: 100%;
    padding: 1rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.password-form button:hover {
    background-color: #2980b9;
}

.error-message {
    color: #e74c3c;
    margin-top: 1rem;
    display: none;
}

.success-message {
    color: #27ae60;
    margin-top: 1rem;
    display: none;
}

.webapp-links {
    display: none;
    margin-top: 2rem;
}

.webapp-links a {
    display: inline-block;
    margin: 0.5rem;
    padding: 1rem 2rem;
    background-color: #27ae60;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.webapp-links a:hover {
    background-color: #219a52;
    color: white;
}

/* Morphing Portal Styles */
.portal-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
}

.portal-content.active {
    opacity: 1;
    transform: scale(1);
}

.portal-content.hidden {
    display: none;
}

.portal-header {
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    transform: translateY(-30px);
    opacity: 0;
    transition: all 0.6s ease 0.3s;
}

.portal-content.active .portal-header {
    transform: translateY(0);
    opacity: 1;
}

.portal-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.portal-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.credentials-form {
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease 0.5s;
}

.portal-content.active .credentials-form {
    transform: translateY(0);
    opacity: 1;
}

.form-container {
    background: rgba(255,255,255,0.1);
    padding: 3rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    min-width: 400px;
}

.form-container input[type="password"] {
    width: 100%;
    padding: 1.2rem;
    border: none;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    background: rgba(255,255,255,0.9);
    color: #333;
}

.form-container button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.form-container button:hover {
    transform: translateY(-2px);
}

.portal-links {
    margin-top: 2rem;
    transform: translateY(30px);
    opacity: 0;
    transition: all 0.6s ease;
}

.portal-links.active {
    transform: translateY(0);
    opacity: 1;
}

.portal-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    width: 100%;
}

.portal-block {
    background: rgba(200, 180, 220, 0.8);
    border-radius: 20px;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 200px;
}

.portal-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.portal-block h3 {
    color: white;
    margin: 0 0 2rem 0;
    font-size: 1.4rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.portal-button {
    background: linear-gradient(45deg, #27ae60, #2ecc71);
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.portal-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
    color: white;
}

.error-message {
    color: #ff6b6b;
    margin-top: 1rem;
    display: none;
}

.success-message {
    color: #51cf66;
    margin-top: 1rem;
    display: none;
}

/* Hide landing page when portal is active */
body.portal-active .hero {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

body.portal-active header {
    opacity: 0;
    transform: translateY(-100%);
}

@media (max-width: 768px) {
    .portal-header h1 {
        font-size: 2rem;
    }
    
    .form-container {
        min-width: 300px;
        padding: 2rem;
    }
    
    .portal-grid-2x2 {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 1.5rem;
    }
    
    .portal-block {
        padding: 2rem 1.5rem;
        min-height: 150px;
    }
    
    .portal-block h3 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .portal-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Dialog Styles */
.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.dialog-overlay.hidden {
    display: none;
}

.dialog-box {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 400px;
    width: 90%;
    animation: dialogSlideIn 0.3s ease-out;
}

@keyframes dialogSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dialog-box h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.dialog-box p {
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.dialog-button {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dialog-button:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
} 