/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    background-color: #0A0A0A;
    color: #FFFFFF;
    height: 100%;
    overflow-x: hidden;
    font-family: 'Inter', sans-serif;
}

/* Hero Layout */
#hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Animated Dots Background */
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 35px 35px;
    animation: drift 5s linear infinite;
    z-index: 1;

    -webkit-mask-image: radial-gradient(circle at center, transparent 20%, black 75%);
    mask-image: radial-gradient(circle at center, transparent 20%, black 75%);
}

@keyframes drift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 35px 35px;
    }
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

/* Heading */
h1 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -.03em;
    margin-bottom: 8px;
    min-height: 1.2em;

    display: flex;
    align-items: center;
    justify-content: center;
}

#morph-text {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease-in-out;
}

.highlight-yellow {
    color: #F0C040;
}

/* H1 Arrows */
.h1-arrow {
    width: .7em;
    height: .7em;
    margin: 0 16px;
    vertical-align: middle;
}

.arrow-grey {
    color: #999999;
    border-radius: 15px;
}

.arrow-yellow {
    color: #aba16e;
}

/* Text */
.subheadline {
    font-size: 1.25rem;
    color: #D1D5DB;
    line-height: 1.6;
    max-width: 600px;
}

.micro-copy {
    font-size: .95rem;
    font-weight: 500;
    color: #9CA3AF;
    margin-top: -4px;
}

/* Buttons */
.cta-container {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.btn {
    font-family: 'Plus Jakarta Sans', sans-serif;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 12px 25px;
    border-radius: 9px;

    text-decoration: none;
    font-size: 1.2em;
    font-weight: 600;

    transition: all .3s cubic-bezier(.4,0,.2,1);
}

.btn-primary {
    background: #F0C040;
    color: #0A0A0A;
    border: 2px solid #F0C040;
}

.btn-primary:hover {
    background: #e5b638;
    border-color: #e5b638;
    transform: translateY(-2px);
    box-shadow: 0px 7px 15px rgba(240,192,64,.2);
}

.btn-secondary {
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background: rgba(255,255,255,.05);
    transform: translateY(-2px);
}

/* Button Arrow */
.btn-arrow {
    width: 20px;
    height: 20px;
    margin-left: 8px;
    transition: transform .2s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Responsive */
@media (max-width:768px) {
    h1 {
        font-size: 3rem;
    }

    .h1-arrow {
        margin: 0 10px;
    }

    .subheadline {
        font-size: 1.1rem;
    }
}

@media (max-width:600px) {

    h1 {
        font-size: 2.2rem;
        flex-wrap: wrap;
    }

    #morph-text {
        flex-wrap: wrap;
        text-align: center;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .btn {
        width: 100%;
    }
}

/* =========================================
   Section 2: Services
   ========================================= */

#services {
    background-color: #1f1f1f; /* Dark surface as requested */
    padding: 100px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.services-container {
    max-width: 1200px;
    width: 100%;
}

.eyebrow {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: #9CA3AF;
    margin-bottom: 32px;
    text-transform: uppercase;
}

/* 4-Column Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Card Base Styling */
.service-card {
    background-color: #161616; /* Slight contrast against the #111111 background */
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: default;
}

/* Hover Effect: Glow & Lift */
.service-card:hover {
    transform: translateY(-6px);
    border-color: #F0C040;
    box-shadow: 0 8px 24px rgba(240, 192, 64, 0.15), 0 0 0 1px #F0C040 inset;
}

/* Yellow Icons */
.card-icon {
    width: 32px;
    height: 32px;
    color: #F0C040;
    margin-bottom: 8px;
}

.card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Typography inside cards */
.service-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.3;
}

.service-card p {
    font-size: 0.95rem;
    color: #9CA3AF;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    #services {
        padding: 70px 20px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr; /* 1 column on mobile */
    }
}

/* =========================================
   Section 3: Selected Work
   ========================================= */

#work {
    background-color: #0A0A0A; /* Matches Hero */
    padding: 100px 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.work-container {
    max-width: 1200px;
    width: 100%;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Project Card Layout */
.project-card {
    background-color: #161616;
    border: 1px solid #2A2A2A;
    border-radius: 16px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.project-card:hover {
    border-color: #3A3A3A;
}

.project-card.reverse {
    flex-direction: row-reverse;
}

/* Image Section */
.project-image {
    flex: 1.2;
    background-color: #1A1A1A;
    min-height: 300px;
    border-right: 1px solid #2A2A2A;
    position: relative;
    overflow: hidden;
}

.project-card.reverse .project-image {
    border-right: none;
    border-left: 1px solid #2A2A2A;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.03); /* Subtle zoom on hover */
}

/* Content Section */
.project-content {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.project-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}

.project-tags {
    font-size: 0.85rem;
    font-weight: 500;
    color: #A0A0A0;
    background-color: #222222;
    padding: 6px 14px;
    border-radius: 7px;
    border: 1px solid #333333;
    display: inline-flex;
    align-self: flex-start;
}

.project-content p {
    font-size: 1.05rem;
    color: #D1D5DB;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Project Links */
.project-link {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #F0C040;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    align-self: flex-start;
    padding-bottom: 2px;
}

.project-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #F0C040;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.project-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.link-icon {
    width: 18px;
    height: 18px;
}

.project-links-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.link-separator {
    color: #555555;
    font-weight: 600;
}

/* Scroll Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Responsive Adjustments */
@media (max-width: 992px) {
    .project-card, .project-card.reverse {
        flex-direction: column;
    }

    .project-image {
        min-height: 250px;
        border-right: none;
        border-bottom: 1px solid #2A2A2A;
    }
    
    .project-card.reverse .project-image {
        border-left: none;
        border-bottom: 1px solid #2A2A2A;
    }

    .project-content {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    #work {
        padding: 70px 20px;
    }

    .project-content h3 {
        font-size: 1.5rem;
    }
}

/* =========================================
   Section 5: Contact / Footer
   ========================================= */

#contact {
    background-color: #111111; /* Alternating slightly from the #0A0A0A work section */
    padding: 120px 20px 100px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

#contact h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 8px;
}

/* Mailto Text Button */
.email-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #F0C040;
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* Yellow Underline Animation */
.email-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: #F0C040;
    transform: scaleX(1);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.email-link:hover::after {
    transform: scaleX(0);
    transform-origin: left;
}

/* Social Icon Row */
.social-links {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}

.social-links a {
    color: #9CA3AF; /* Muted grey */
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a svg {
    width: 100%;
    height: 100%;
}

.social-links a:hover {
    color: #FFFFFF;
    transform: translateY(-4px);
}

/* 4-Point Star Graphic */
.footer-decoration {
    position: absolute;
    bottom: 40px;
    right: 50px;
    width: 60px;
    height: 60px;
    color: #333333;
    z-index: 1;
    transition: color 0.5s ease;
}

.footer-decoration:hover {
    color: #555555;
}

/* Responsive Adjustments */
@media (max-width: 900px) {
    #contact h2 { font-size: 3rem; }
    .email-link { font-size: 2.2rem; }
}

@media (max-width: 600px) {
    #contact { padding: 100px 20px 80px; }
    #contact h2 { font-size: 2.2rem; }
    .email-link { font-size: 1.5rem; }
    .email-link::after { height: 3px; }
    .social-links { gap: 24px; margin-top: 24px; }
    .social-links a { width: 28px; height: 28px; }
    
    .footer-decoration { 
        bottom: 20px; 
        right: 20px; 
        width: 40px; 
        height: 40px; 
    }
}

/* =========================================
   Section 5: Contact / Footer
   ========================================= */

#contact {
    background-color: #111111; 
    /* Reduced padding to make the section height smaller */
    padding: 100px 20px 80px; 
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated Dots Background matching the Hero section */
#contact::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1.5px, transparent 1.5px);
    background-size: 35px 35px;
    animation: drift 5s linear infinite;
    z-index: 1;

    -webkit-mask-image: radial-gradient(circle at center, transparent 20%, black 75%);
    mask-image: radial-gradient(circle at center, transparent 20%, black 75%);
}

.contact-container {
    position: relative; /* Added to ensure it sits above the background dots */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    z-index: 2;
}

/* Include all previous contact CSS below here without changes */