:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #1f2937;
    --light-text: #6b7280;
    --background: #ffffff;
    --light-background: #f3f4f6;
    --transition: all 0.3s ease;
    --header-blue: #2563eb;
}

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

body {
    font-family: 'Noto Sans TC', sans-serif;
    line-height: 1.8;
    color: var(--text-color);
}

/* Header & Navigation */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    background: var(--header-blue);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    max-width: 1200px;
    margin: 0 auto;
    height: 160px;
}

.logo {
    max-width: 400px;
    height: 100%;
    display: flex;
    align-items: center;
}

.logo img {
    height: auto;
    width: 100%;
    max-width: 400px;
    padding: 30px 0;
}

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

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

.nav-links a:hover {
    color: #bcd2ff;
}

.menu-toggle {
    display: none;
}

.menu-toggle span {
    background: white;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    background-attachment: fixed;
    margin-top: 160px;
}

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

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

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

.cta-button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

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

.services h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.service-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: var(--transition);
}

.service-card:hover .service-image {
    opacity: 0.15;
    transform: scale(1.1);
}

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

.service-card h3 {
    position: relative;
    font-size: 1.5rem;
    margin: 1rem 0;
    font-weight: 700;
}

.service-card p {
    position: relative;
    color: var(--light-text);
    line-height: 1.6;
}

/* Service Cards Updates */
.service-card:nth-child(1) .service-image {
    background-image: url('../images/web-dev.jpg');
}

.service-card:nth-child(2) .service-image {
    background-image: url('../images/mobile-dev.jpg');
}

.service-card:nth-child(3) .service-image {
    background-image: url('../images/network.jpg');
}

.service-card:nth-child(4) .service-image {
    background-image: url('../images/system.jpg');
}

/* About Section */
.about {
    padding: 5rem 1rem;
}

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

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--light-text);
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 1rem;
    background: var(--light-background);
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

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

.contact h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

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

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

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

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--secondary-color);
}

/* Contact Section Updates */
.contact-info {
    margin-bottom: 2rem;
    padding: 2rem;
    background: var(--light-background);
    border-radius: 10px;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 24px;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-section {
    padding: 0 1rem;
}

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

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

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

.social-links a:hover {
    color: var(--primary-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 (max-width: 768px) {
    .hero {
        height: 60vh;
        background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
                    url('../images/hero-bg.jpg');
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        color: white;
        padding: 0 1rem;
        background-attachment: fixed;
        margin-top: 120px;
    }



    .navbar {
        height: 120px;
        flex-direction: column;
        justify-content: center;
        gap: 10px;
    }
    
    .logo {
        max-width: 60%;
        justify-content: center;
    }
    
    .logo img {
        padding: 15px 0;
    }
    
    .menu-toggle {
        position: absolute;
        right: 5%;
        top: 50%;
        transform: translateY(-50%);
        display: block;
        cursor: pointer;
    }

    .menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 5px 0;
        transition: var(--transition);
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--header-blue);
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        display: flex;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.25rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .about-content, .portfolio-grid {
    animation: fadeIn 0.6s ease-out;
}

/* Tech Showcase Section */
.tech-showcase {
    padding: 5rem 1rem;
    background: var(--light-background);
}

.tech-showcase h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.tech-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.tech-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--light-background);
}

.tech-item h3 {
    font-size: 1.3rem;
    margin: 1rem;
    color: var(--text-color);
}

.tech-item p {
    margin: 0 1rem 1rem;
    color: var(--light-text);
} 