/* --- Common Styles (Copied from pages.css/contact.css) --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    font-family: 'Science Gothic', sans-serif;
}

h3 {
    font-family: 'Science Gothic', sans-serif;
}

p {
    font-family: 'PT Serif', serif;
}

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to bottom, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 19px 40px;
    background: rgba(42, 42, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 86px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-svg {
    display: flex;
    align-items: center;
    gap: 86px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo-text-left,
.logo-text-right {
    font-family: 'Science Gothic', sans-serif;
    font-size: 19px;
    font-weight: bold;
    color: #5ebb47;
}

.logo-text-left {
    margin-right: -28px;
    margin-left: 28px;
}

.logo-text-right {
    margin-left: 15px;
    margin-right: 10px;
}

.contact {
    margin-left: auto;
    z-index: 2000;
}

.contact a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.contact a:hover {
    color: #7CFC00;
}

.hero {
    font-family: 'Science Gothic', sans-serif;
    background: linear-gradient(135deg, #404fa2 0%, #404fa4 50%, #404fa2 100%);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    z-index: 1000;
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    background-image: url("images/logo%20white.svg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.9;
    mask-image: linear-gradient(to left, transparent 50%, black);
    scale: 2;
}

.hero::before {
    left: 90px;
    top: 65%;
    transform: translateY(-50%);
}

.hero::after {
    right: 90px;
    top: 65%;
    transform: translateY(-50%) scaleX(-1);
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 200px;
    margin: 0 auto;
    z-index: 1;
}

.hero-links a {
    z-index: 2000;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s;
}

.hero-links a:hover {
    transform: translateX(10px);
}

.cta-button {
    font-family: 'Science Gothic', sans-serif;
    font-weight: bold;
    white-space: nowrap;
    width: fit-content;
    display: block;
    background: #5ebb47;
    color: #1a1a1a;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    transition: transform 0.3s, box-shadow 0.3s;
    margin: 40px auto 0 auto;
    text-align: center;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(124, 252, 0, 0.4);
}

footer {
    background: #5ebb47;
    padding: 60px 40px;
    text-align: center;
    color: #1a1a1a;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.footer-links div {
    text-align: left;
}

.footer-links h4 {
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
}

.footer-links a {
    display: block;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 12px;
    margin-bottom: 5px;
}

.footer-bottom {
    margin-top: 40px;
    font-size: 12px;
    color: #333;
}

/* --- Portfolio Page Specific Styles --- */

.portfolio-section {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    text-align: center;
}

.section-title {
    font-size: 48px;
    color: #5ebb47;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 18px;
    color: #ccc;
    margin-bottom: 50px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    text-decoration: none;
    color: inherit;
    background: #2d2d2d;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.project-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s;
}

.project-card:hover .project-image {
    opacity: 0.8;
}

.project-info {
    padding: 20px;
    text-align: left;
}

.project-info h3 {
    font-size: 22px;
    color: white;
    margin-bottom: 5px;
}

.project-tag {
    font-family: 'PT Serif', serif;
    font-size: 14px;
    color: #5ebb47;
}

/* Media Queries for Responsiveness */
@media (min-width: 768px) {
    .hero {
        padding: 25px 80px;
    }
    
    .hero-links {
        flex-direction: row;
        max-width: 100%;
        gap: 150px;
        justify-content: center;
    }
    
    .hero::before,
    .hero::after {
        width: 120px;
        height: 120px;
        scale: .5;
        top: 50%;
        transform: translateY(-100%);
    }

    .hero::before {
        left: 90px;
    }

    .hero::after {
        right: 90px;
        transform: translateY(-100%) scaleX(-1);
    }
}
@media (max-width: 400px) {
    .section-title {
        font-size: 36px;
    }
    .portfolio-section {
        padding: 0 20px;
    }
}