/* Global Styles */
:root {
    --primary-color: #0d253f;
    /* Deep Navy Blue */
    --secondary-color: #536dfe;
    /* Vibrant Blue Accent */
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a1a;
    --white: #ffffff;
    --silver: #e0e0e0;
    --font-main: 'Noto Sans TC', sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 10px 20px rgba(0, 0, 0, 0.15);
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1400px;
    /* Increased from 1200px to accommodate larger header */
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.3;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.2rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #304ffe;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(83, 109, 254, 0.4);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

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

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 25px 0;
    /* Increased from 15px */
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.25rem;
    /* Increased from 1.5rem */
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 15px;
    /* Increased gap */
    white-space: nowrap;
    /* Prevent wrapping */
}

.logo img {
    height: 90px;
    /* 新 logo 為正方形含英文字,稍微放大讓字看得清楚 */
    width: auto;
    object-fit: contain;
}

.en-name {
    font-size: 0.6em;
    margin-left: 5px;
    font-weight: 500;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    /* Increased gap */
    align-items: center;
}

.main-nav a {
    font-weight: 500;
    font-size: 1.25rem;
    /* Increased font size */
    color: var(--primary-color);
    position: relative;
    white-space: nowrap;
    /* Prevent wrapping */
}

.main-nav a:not(.cta-nav)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.main-nav a:not(.cta-nav):hover::after {
    width: 100%;
}

.cta-nav {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 12px 30px;
    /* Increased padding */
    border-radius: 4px;
}

.cta-nav:hover {
    background-color: var(--secondary-color);
}

/* Language Switcher Button */
.lang-switch {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border: 1.5px solid var(--silver);
    border-radius: 20px;
    font-size: 0.9rem !important;
    font-weight: 600;
    color: var(--primary-color);
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.lang-switch::before {
    content: '🌐';
    margin-right: 5px;
    font-size: 0.95em;
}

.lang-switch:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white) !important;
    transform: translateY(-1px);
}

.lang-switch::after {
    display: none !important;
    content: none !important;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    background:
        linear-gradient(135deg, rgba(13, 37, 63, 0.92) 0%, rgba(13, 37, 63, 0.78) 50%, rgba(83, 109, 254, 0.55) 100%),
        radial-gradient(circle at 20% 30%, rgba(83, 109, 254, 0.25), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08), transparent 40%),
        var(--primary-color);
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    align-items: center;
    color: var(--white);
    text-align: center;
}

.hero-overlay {
    width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-section h2 {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* About Section */
.about-section {
    padding: 100px 0 90px;
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 40px;
    right: -120px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(83, 109, 254, 0.08), transparent 70%);
    pointer-events: none;
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 4px;
    color: var(--secondary-color);
    margin-bottom: 14px;
}

.about-title {
    font-size: 2.4rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    letter-spacing: 2px;
}

.about-divider {
    display: inline-block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    border-radius: 2px;
}

.about-content {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-content p {
    color: #444;
    font-size: 1.05rem;
    line-height: 2;
    margin-bottom: 22px;
    text-align: justify;
    text-justify: inter-ideograph;
}

.about-content p strong {
    color: var(--primary-color);
    font-weight: 700;
}

.about-lead {
    font-size: 1.15rem !important;
    color: var(--primary-color) !important;
    line-height: 1.9 !important;
}

.about-quote {
    margin: 40px auto 0;
    padding: 28px 32px;
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(90deg, rgba(83, 109, 254, 0.06), transparent 80%);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--primary-color);
    letter-spacing: 1px;
    border-radius: 0 8px 8px 0;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-section {
        padding: 70px 0 60px;
    }

    .about-title {
        font-size: 1.9rem;
    }

    .about-content p {
        font-size: 1rem;
        line-height: 1.9;
    }

    .about-lead {
        font-size: 1.08rem !important;
    }

    .about-quote {
        font-size: 1.05rem;
        padding: 22px 24px;
    }
}

/* Advantages Section */
.advantages-section {
    padding: 80px 0;
    background-color: var(--white);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid transparent;
}

.advantage-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--secondary-color);
}

.icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
}

/* SVG Icon Styling (replaces emoji icons) */
.icon-svg {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(83, 109, 254, 0.12), rgba(83, 109, 254, 0.04));
    border-radius: 16px;
    color: var(--secondary-color);
    transition: var(--transition);
}

.icon-svg svg {
    width: 32px;
    height: 32px;
}

.advantage-item:hover .icon-svg {
    background: var(--secondary-color);
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
}

/* Products Section */
.products-section {
    padding: 80px 0;
    background-color: var(--light-bg);
    text-align: center;
}

.products-section h2 {
    color: var(--primary-color);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding: 40px 30px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    /* Ensure consistent height */
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--secondary-color);
    transform: scaleX(0);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card h3 {
    margin-bottom: 12px;
    color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
    border-radius: 8px;
    overflow: hidden;
}

.product-image img {
    max-height: 90%;
    max-width: 90%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-spec {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Stats Banner */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a5c 100%);
    padding: 60px 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(83, 109, 254, 0.25), transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

@media (max-width: 1100px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 36px;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.stat-item {
    padding: 10px;
}

.stat-number {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #ffffff 0%, #b8c6ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number::after {
    content: '+';
    font-size: 0.6em;
    margin-left: 4px;
    -webkit-text-fill-color: #b8c6ff;
}

.stat-item:last-child .stat-number::after,
.stat-number--text::after {
    content: '';
}

.stat-unit {
    font-size: 0.5em;
    margin-left: 6px;
    -webkit-text-fill-color: #b8c6ff;
    font-weight: 500;
}

.stat-label {
    font-size: 1rem;
    color: #c8d3ff;
    letter-spacing: 1px;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Floating Contact Buttons */
.floating-contacts {
    position: fixed;
    right: 20px;
    bottom: 90px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.float-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 50px;
    color: var(--white) !important;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    text-decoration: none;
    font-size: 0.95rem;
}

.float-line {
    background-color: #06C755;
}

.float-line:hover {
    background-color: #05a847;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(6, 199, 85, 0.4);
}

.float-phone {
    background-color: #0d253f;
}

.float-phone:hover {
    background-color: #536dfe;
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(83, 109, 254, 0.4);
}

.float-label {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .floating-contacts {
        right: 12px;
        bottom: 80px;
        gap: 10px;
    }

    .float-btn {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        justify-content: center;
    }

    .float-label {
        display: none;
    }

    .stat-number {
        font-size: 2.4rem;
    }
}

/* Capability Section */
.capability-section {
    padding: 80px 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.capability-content ul {
    margin: 30px 0;
}

.capability-content li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.icon-check {
    color: var(--secondary-color);
    margin-right: 10px;
    font-weight: bold;
}

.icon-check::before {
    content: '✓';
}

.cert-thumbnail {
    width: 100%;
    max-width: 300px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    border: 4px solid var(--white);
}

.cert-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--white);
}

.contact-section h2 {
    margin-bottom: 20px;
}

.contact-section p {
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-intro {
    color: #c8d3ff;
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: start;
}

/* === Inquiry Form === */
.contact-form-wrap {
    background: var(--white);
    border-radius: 14px;
    padding: 40px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    color: var(--text-color);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.contact-form .form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.contact-form .required {
    color: #e53935;
    margin-left: 2px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #d8dde6;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    color: var(--text-color);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(83, 109, 254, 0.15);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input[type="file"] {
    padding: 8px;
    background: #f5f7fb;
    border: 1.5px dashed #c0c8d8;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
}

.contact-form input[type="file"]:hover {
    border-color: var(--secondary-color);
    background: #eef1ff;
}

.form-hint {
    color: #777;
    font-size: 0.82rem;
    margin-top: 6px;
}

.btn-block {
    display: block;
    width: 100%;
    margin-top: 8px;
    font-weight: 700;
    letter-spacing: 1px;
}

.form-note {
    text-align: center;
    color: #888;
    font-size: 0.82rem;
    margin-top: 14px;
    margin-bottom: 0;
}

/* === Contact Info Card === */
.contact-info-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 35px 30px;
    color: var(--white);
    backdrop-filter: blur(6px);
}

.contact-info-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-list li:last-child {
    border-bottom: none;
}

.contact-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(83, 109, 254, 0.25);
    color: #b8c6ff;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.contact-list li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.contact-label {
    font-size: 0.8rem;
    color: #c8d3ff;
    letter-spacing: 1px;
}

.contact-list a {
    color: var(--white);
    word-break: break-word;
}

.contact-list a:hover {
    color: #b8c6ff;
    text-decoration: underline;
}

.qr-block {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.qr-block p {
    color: #c8d3ff;
    font-size: 0.9rem;
    margin: 12px 0 0;
    opacity: 1;
}

.line-qrcode {
    width: 110px;
    height: 110px;
    border-radius: 6px;
    border: 3px solid var(--white);
    background: var(--white);
}

@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrap {
        padding: 30px 22px;
    }

    .contact-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Footer */
.main-footer {
    background-color: var(--dark-bg);
    color: #aaa;
    padding: 60px 0 20px;
}

.main-footer h4 {
    color: var(--white);
    margin-bottom: 20px;
}

.main-footer ul li {
    margin-bottom: 10px;
}

.main-footer a:hover {
    color: var(--secondary-color);
}

.copyright {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
        /* Reduce padding on mobile */
    }

    .logo {
        font-size: 1.5rem;
        /* Smaller logo text */
        gap: 10px;
    }

    .logo img {
        height: 56px;
        /* 手機版稍微放大,正方形 logo 內含英文字 */
    }

    .menu-toggle {
        display: block;
        color: var(--primary-color);
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
        /* Stack all grids */
    }

    .container {
        padding: 0 15px;
    }
}

/* Back to Top Button */
#backToTop {
    display: none;
    /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: var(--secondary-color);
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s, transform 0.3s;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 20px;
}

#backToTop:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s;
}

.modal-content {
    margin: 5% auto;
    display: block;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--secondary-color);
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8)
    }

    to {
        transform: scale(1)
    }
}

@media only screen and (max-width: 700px) {
    .modal-content {
        width: 95%;
    }
}

/* Portfolio Section */
.portfolio-section {
    padding: 80px 0;
    background-color: var(--white);
    text-align: center;
}

.portfolio-section h2 {
    color: var(--primary-color);
}

.portfolio-gallery {
    margin-top: 40px;
    grid-template-columns: repeat(3, 1fr);
}

.portfolio-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    height: 250px;
    /* Fixed height for consistency */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.portfolio-item:hover img {
    transform: scale(1.1);
}