@import url('https://fonts.googleapis.com/css2?family=Anek+Gujarati:wght@100..800&display=swap');

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

body {
    font-family: 'Anek Gujarati', sans-serif;
    font-weight: 300;
    background-color: #F5F5F5;
    color: #000000;
    line-height: 1.6;
}

/* =============================================
   PAGE HEADER
============================================= */

.page-header {
    background-color: #FFFFFF;
    padding: 60px;
    text-align: center;
    box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 400;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.page-header p {
    font-size: 18px;
    font-weight: 200;
    color: #5C5C5C;
    margin-top: 10px;
}

/* =============================================
   SECTION LAYOUT
============================================= */

.section {
    padding: 80px 120px;
}

.section:nth-child(odd) {
    background-color: #EBEBEB;
}

.section:nth-child(even) {
    background-color: #FFFFFF;
}

.section-label {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #5C5C5C;
    margin-bottom: 8px;
}

.section h2 {
    font-size: 32px;
    font-weight: 300;
    margin-bottom: 10px;
}

.section-desc {
    font-size: 16px;
    font-weight: 200;
    color: #5C5C5C;
    margin-bottom: 50px;
}

.demo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

/* =============================================
   1. BUTTON ROLLOVER TRANSITIONS
============================================= */

.btn {
    display: inline-block;
    padding: 20px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Anek Gujarati', sans-serif;
    font-size: 18px;
    font-weight: 300;
    cursor: pointer;
    border: none;
}

.btn-fill {
    background-color: #D9D9D9;
    color: #000000;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-fill:hover {
    background-color: #5C5C5C;
    color: #FFFFFF;
}

.btn-outline {
    background-color: transparent;
    color: #000000;
    border: 2px solid #000000;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-outline:hover {
    background-color: #000000;
    color: #FFFFFF;
}

.btn-grow {
    background-color: #D9D9D9;
    color: #000000;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-grow:hover {
    transform: scale(1.08);
    box-shadow: 0px 10px 25px rgba(0,0,0,0.2);
}

/* =============================================
   2. IMAGE HOVER EFFECTS
============================================= */

.img-card {
    width: 240px;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 5px solid #FFFFFF;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
    position: relative;
}

/* Each card uses a <div class="img-fill"> as the "image" layer.
   filter and transform are applied here so they work correctly. */

.img-fill {
    width: 100%;
    height: 100%;
    display: block;
}

/* grayscale → color */
.img-card.grayscale .img-fill {
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.img-card.grayscale:hover .img-fill {
    filter: grayscale(0%);
}

/* zoom */
.img-card.zoom .img-fill {
    transition: transform 0.4s ease;
}

.img-card.zoom:hover .img-fill {
    transform: scale(1.15);
}

/* overlay reveal */
.img-card.overlay {
    cursor: pointer;
}

.img-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.img-card.overlay:hover .img-overlay {
    opacity: 1;
}

.img-overlay span {
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* placeholder background colors */
.img-fill.scene-warm {
    background: linear-gradient(160deg, #C8B8A2 40%, #A0886A 100%);
}

.img-fill.scene-cool {
    background: linear-gradient(160deg, #B8C8D8 40%, #7A9AB8 100%);
}

.img-fill.scene-neutral {
    background: linear-gradient(160deg, #D8C8B8 40%, #A08050 100%);
}

/* =============================================
   3. TEXT EFFECTS
============================================= */

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

/* underline slide-in */
.text-underline {
    font-size: 28px;
    font-weight: 300;
    text-decoration: none;
    color: #000000;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

.text-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 2px;
    background-color: #5C5C5C;
    transition: width 0.4s ease;
}

.text-underline:hover::after {
    width: 100%;
}

/* letter-spacing shift */
.text-color {
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.4s ease, letter-spacing 0.4s ease;
    display: inline-block;
}

.text-color:hover {
    color: #5C5C5C;
    letter-spacing: 6px;
}

/* fade-up entrance */
.text-fadein {
    font-size: 28px;
    font-weight: 300;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   4. CARD LIFT (PORTFOLIO-STYLE)
============================================= */

.project-card {
    width: 260px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #FFFFFF;
    box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 18px 40px rgba(0,0,0,0.2);
}

.project-card-img {
    width: 100%;
    height: 180px;
    display: block;
}

.project-card-info {
    padding: 16px 20px;
}

.project-card-info h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 4px;
}

.project-card-info p {
    font-size: 14px;
    font-weight: 200;
    color: #5C5C5C;
}

/* =============================================
   5. KEYFRAME ANIMATIONS (LOOPING)
============================================= */

/* spinning loader ring */
.spin-ring {
    width: 70px;
    height: 70px;
    border: 4px solid #D9D9D9;
    border-top-color: #5C5C5C;
    border-radius: 50%;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* pulsing dot */
.pulse-dot {
    width: 50px;
    height: 50px;
    background-color: #5C5C5C;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.4); opacity: 0.5; }
}

/* bouncing bars */
.bounce-bar {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 60px;
}

.bounce-bar span {
    width: 10px;
    background-color: #5C5C5C;
    border-radius: 3px;
    animation: bounce 1s ease-in-out infinite;
}

.bounce-bar span:nth-child(1) { height: 30px; animation-delay: 0s; }
.bounce-bar span:nth-child(2) { height: 50px; animation-delay: 0.15s; }
.bounce-bar span:nth-child(3) { height: 40px; animation-delay: 0.3s; }
.bounce-bar span:nth-child(4) { height: 55px; animation-delay: 0.45s; }
.bounce-bar span:nth-child(5) { height: 35px; animation-delay: 0.6s; }

@keyframes bounce {
    0%, 100% { transform: scaleY(1); }
    50%       { transform: scaleY(0.3); }
}

/* sliding pill */
.slide-track {
    width: 220px;
    height: 40px;
    background-color: #D9D9D9;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

.slide-block {
    width: 40px;
    height: 40px;
    background-color: #5C5C5C;
    border-radius: 50%;
    position: absolute;
    left: 0;
    animation: slide 1.8s ease-in-out infinite alternate;
}

@keyframes slide {
    from { left: 0; }
    to   { left: 180px; }
}

/* =============================================
   CODE NOTE + FOOTER
============================================= */

.code-note {
    font-family: monospace;
    font-size: 12px;
    color: #5C5C5C;
    background-color: #D9D9D9;
    border-radius: 6px;
    padding: 12px 16px;
    margin-top: 30px;
    display: inline-block;
}

.page-footer {
    background-color: #000000;
    color: #FFFFFF;
    text-align: center;
    padding: 40px;
    font-size: 14px;
    font-weight: 200;
    letter-spacing: 2px;
}
