@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
.michroma-regular {
font-family: "Michroma", sans-serif;
font-weight: 400;
font-style: normal;
}


/* CSS Custom Properties */
@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: true;
}

.our-projects {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    overflow-x: hidden;
    margin-top: 0;
  
}

img {
    max-width: 100%;
}

/* Hide radio buttons */
input[type="radio"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
    position: relative;
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 80px;
}

.header h1 {
    font-family: 'Michroma', sans-serif;
    font-size: 4rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.header .projects {
    color: #FFD700;
    font-weight: 700;
}

/* Main Content Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 100px;
}

/* Card System */
.cards {
    --img-w: 200px;
    --duration: 300ms;
    --img-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    --cards-grid-cols: auto;
    --cards-grid-rows: var(--img-w) auto;
    --cards-grid-gap: 2rem;
    --cards-footer-justify: center;
    
    width: min(100% - 4rem, 800px);
    margin-inline: auto;
    display: grid;
    counter-reset: my-counter;
}

.card {
    grid-area: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: -1;
    cursor: pointer;
}

/* Card Image */
.card-img {
    width: 30vw;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    margin-bottom: 10px;
    rotate: var(--angle, 0deg);
    border-radius: 10px;
    border: 3px solid #FFF;
    overflow: hidden;
    transform-origin: center;
    object-fit: cover;
    box-shadow: 0 0 5px 3px rgba(0, 0, 0, 0.05);
}

/* Card Footer Navigation */
.card-data > footer {
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.card-data > footer label {
    cursor: pointer;
    pointer-events: var(--card-events, none);
    opacity: var(--data-opacity, 0);
    transition: background-color 300ms ease-in-out, color 300ms ease-in-out;
    color: var(--label-clr-txt, #000);
    background-color: var(--label-clr-bg, #EEE);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    aspect-ratio: 1/1;
    display: grid; 
    place-content: center;
    margin-top: 50px;
}

input:checked:focus-visible + .card > .card-data > footer label,
.card-data > footer label:hover {
    --label-clr-txt: #FFF;
    --label-clr-bg: steelblue;
}

/* Card Interactions */
input:checked + .card {
    --data-opacity: 1;
    --data-y: 0;
    --data-delay: var(--duration);
    --card-events: auto;
    z-index: 10 !important;
    transition: z-index;
    transition-delay: 300ms;
}

input:checked + .card > .card-img {
    animation: reveal-img calc(var(--duration) * 2) forwards;
}

/* Z-index stacking for cards */
.card:has(+ input:checked) { z-index: 9; }
.card:has(+ input + .card + input:checked) { z-index: 8; }
.card:has(+ input + .card + input + .card + input:checked) { z-index: 7; }
.card:has(+ input + .card + input + .card + input + .card + input:checked) { z-index: 6; }
.card:has(+ input + .card + input + .card + input + .card + input + .card + input:checked) { z-index: 5; }

/* Image Animations */
input:nth-of-type(1):checked + .card ~ .card > .card-img,
input:nth-of-type(2):checked + .card ~ .card > .card-img,
input:nth-of-type(3):checked + .card ~ .card > .card-img,
input:nth-of-type(4):checked + .card ~ .card > .card-img,
input:nth-of-type(5):checked + .card ~ .card > .card-img,
input:nth-of-type(6):checked + .card ~ .card > .card-img,
input:nth-of-type(7):checked + .card ~ .card > .card-img {
    animation: straighten-img calc(var(--duration) * 2) forwards;
    animation-timing-function: var(--img-easing);
}

@keyframes straighten-img {
    50% { --angle: 0deg; }
}

@keyframes reveal-img {
    50% {
        translate: -150% 0;
        --angle: 0deg;
    }
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-left: 20px;
}

.main-heading {
    font-family: 'Michroma', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.5;
    margin-bottom: 20px;
}


.description {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    /* margin-bottom: 40px; */
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    /* margin-bottom: 40px; */
}

.feature h3, .feature h4 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 15px;
    color: white;
}

.feature h3 {
    top: -110px;
    left: 400px;
    position: relative;
}

.feature p {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    width: 310px;
}

/* Buttons */
.buttons {
    margin-top: -100px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid;
}

.btn-primary {
    background: #333;
    color: white;
    border-color: #333;
}

.btn-secondary {
    background: #FFD700;
    color: #000;
    border-color: #FFD700;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
}

/* Stats Section */
.stats-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 100px;
    text-align: center;
}

.stat-number1, .stat-number2 {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    margin-bottom: 10px;
    color: #ffffff;
}
.stat-number2 {
    position: relative;
    top:-200px;
    left:850px;
}

.stat-label {
    position: relative;
    top:-200px;
    left:900px;
    font-size: 18px;
    color: #666;
}

.stat-description {
    font-size: 14px;
    color: #444;
    margin-top: 20px;
    line-height: 1.5;
}
@media (max-width: 1200px) {
    .our-projects {
        margin-bottom: -100px;
    }
    .main-content {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-left: 5px;
    }

    .content-section {
        padding-left: 0;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }
    .stat-number2 {
        position: relative;
        top:-200px;
        left:-30px;
    }

}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
        gap: 60px;
        margin-left: 5px;
    }

    .content-section {
        padding-left: 0;
    }

    .stats-section {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 900px) {
    .stat-number2 {
        position: relative;
        top:-190px;
        left:120px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 2.5rem;
    }

    .main-heading {
        font-size: 2.5rem;
    }

    .card-img {
        width: 200px;
        height: 280px;
    }

    .cards {
        height: 350px;
    }

    .buttons {
        justify-content: center;
    }
    .stat-number2 {
        display: none;
    }
}
@media (max-width: 670px) {
    .container {
        padding: 40px 20px;
    }

    .header h1 {
        font-size: 2.2rem;
    }

    .main-heading {
        font-size: 2rem;
        margin-top: 60px;
        text-align: center;
    }

    .card-img {
        width: 180px;
        height: 260px;
    }

    .cards {
        height: 280px;
    }

    .buttons {
        justify-content: center;
    }
    .feature h3{
        display: none;
    }
    .feature h4{
        text-align: center;
    }
    .feature p{
        position: center;
        margin-bottom: 60px;
        text-align: center;
    }
    
}

@media (max-width: 435px) {
    .container {
        padding: 20px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .main-heading {
        margin-top: 60px;
        font-size: 1.3rem;
        text-align: center;
    }

    .card-img {
        width: 150px;
        height: 250px;
    }

    .cards {
        height: 250px;
    }

    .stat-number2 {
        display: none;
    }
    .stat-label {
        display: none;
    }
    .stat-description {
        display: none;
    }

   
}

@media (max-width: 375px) {
    .container {
        padding: 20px;
    }
    .header h1 {
        font-size: 1.5rem;
    }
    .content-section {
        padding-right: 20px;
    }
    .main-heading {
        margin-top: 60px;
        font-size: 1.1rem;
        text-align: center;
    }
    .description {
        font-size: 12px;
    }
    .card-img {
        width: 100px;
        height: 200px;
    }
    .cards {
        height: 200px;
    }
    .buttons {
        justify-content: center;
    }
    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
    .btn-primary {
        font-size: 12px;
    }
    .btn-secondary {
        font-size: 12px;
    }
    .stat-number2 {
        display: none;
    }
    .stat-label {
        display: none;
    }
    .stat-description {
        display: none;
    }
    
}