@import url('https://fonts.googleapis.com/css2?family=Dancing+Script:wght@400;500;600&display=swap');

        *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            
        }
        body{
            width: 100%;
            height: 100%;
        }
        .maincard{
            background-color: #0e0e0d;
            display: flex;
            justify-content: center;
            flex-direction: column;
            align-items: center;
            padding: 40px;
            padding-top: 60px;
            padding-bottom: 60px;

        }
        .seccard{
            background-color: #20201e;
            width: 85%;
            display: flex;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            border-radius: 10px;
            box-shadow: #8b8575 0px 5px 15px;
        }
        #head {
            width: 100%;
            display: flex;
            flex-direction: row;
            align-items: center;
            justify-content: space-around;
            padding: 0 40px;
            color: white;
            margin-top: 20px;
        }

        #titlehead {
            font-size: 2rem;
            white-space: nowrap;
            text-align: center;
            font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        }

        .nav-list {
            display: flex;
            flex-direction: row;
            align-items: center;
            gap: 5rem;
            list-style: none;
        }

        .nav-list li{
            list-style: none;
        }
        .link{
            text-decoration: none;
            color: white;
            font-style: italic;
            font-weight: 500;
            font-size: 1.2rem;
        }
        .link:hover{
            color: blue;
        }
        .Gallery{
            background-color:#332d1f;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }
        .Gallery h1{
            margin-top: 30px;
            font-size: 40px;
            color: #8b8575;
        }
        .container{
            width: 100%;
            height: 100%;
            display: grid;
            gap: 2rem;
            padding: 4rem;
            grid-template-columns: 1fr 1fr;
        }
        .items{
            perspective: 1000px;
            cursor: pointer;
            width: clamp(280px, 40vw, 400px);
  height: clamp(280px, 40vw, 400px);
            border: 2px solid #8b8575;
            position: relative;
            overflow: hidden;
            display: block;
            place-self: center;
            border-radius: 20px; 
        }
        /*inner wrpper for front/back */
        .card-inner{
            position: relative;
            width: 100%;
            height: 100%;
            transition: transform 0.8s;
            transform-style: preserve-3d;
        }
        /*the flip action:when input is checked*/
        .item-container input:checked + label .card-inner{
            transform: rotateY(180deg);
        }

        /*font and back*/
        .card-front, .card-back{
            position: absolute;
            width: 100%;
            height: 100%;
            backface-visibility: hidden;
            border-radius: 20px;
            overflow: hidden;
        }
        .card-front img{
            width: 100%;
            height: 100%;
            border-radius: 20px;
        }

        .card-back{
            background-color: #20201e;
            color:#d8d0bd ;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 20px;
            font-style: italic;
            font-size: 1.1rem;
            border: 2px solid #8b8575;
            transform: rotateY(180deg);
        }

        .card-front p{
            color: black;
            font-size: 1rem;
            font-weight: bold;
        }
        
        .quote-text{
            position: absolute;
            left: 50%;
            top: 50%;
            opacity: 0;
            transform: translate(-50%,-50%);
            transition: opacity 0.3s ease;
            font-size: 1.1rem;
            color: white;
            z-index: 2;
            text-align: center;
            line-height: 1.5;
            width: 80%;
        }
        .items .overlay{
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            background-color: #a0946eb1;
            display: flex;
            justify-content: center;
            align-items: center;
            border-radius: 20px;
            opacity: 1;
            transition: opacity 0.3s ease,transform 0.3s ease;
        }
        .overlay p{
            font-size: 1.5rem;
        }
        .item-container input{
            display: none;/*checkbox to get hidden*/
        }
        .items:hover .overlay{
            opacity: 0;
            transform: scale(2);
        }
        .items:hover img{
            opacity: 0.5;
        }
        .items:hover .quote-text{
            opacity: 1;
        }
        .side-img {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 300px;
            height: 380px;
            object-fit: cover;
            opacity: 0.8;
            z-index: 0;
        }
        #img1right {
            top: 0;
            right: 48px;
            transform: translateY(0);
        }
        #img2left {
            left: 48px;
            top: 45%;
            transform: translateY(0);
        }
        .heading {
            position: relative;
            display: flex;
            width: 80vw;
            height: 600px;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            background: linear-gradient(188deg, rgba(62, 66, 62, 1) 0%, rgba(15, 15, 15, 1) 100%);
            color: white;
            font-style: italic;
            /*i want to use media but this is better hehe*/
            /* flex:1;
            min-width: 1200px; */

        }

        .headoverlay {
            position: relative;
            z-index: 2;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .heading h1 {
            font-size: 2.4rem;
            margin: 10px;
        }

        .heading p {
            padding: 10px;
            margin: 10px;
            max-width: 85%;
            font-size: 22px;
        }
        .quote{
            background-color: #d8d0bd;
            height: 300px;
            text-align: center;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .quote span{
            font-size: 3rem;
            font-style: italic;
            font-family:'Dancing script', cursive;
        }
        /*glowy effectttttt*/
        .card-back p.joy { text-shadow: 0 0 10px #FFD36E, 0 0 20px #FFC300; }
        .card-back p.calm { text-shadow: 0 0 10px #8FE3FF, 0 0 20px #59C1FF; }
        .card-back p.chaos { text-shadow: 0 0 10px #FF6F6F, 0 0 20px #FF1E1E; }
        .card-back p.hope { text-shadow: 0 0 10px #A0FF9F, 0 0 20px #5EF15E; }
        .card-back p.anger { text-shadow: 0 0 10px #FF5F5F, 0 0 20px #FF0000; }
        .card-back p.nostalgia { text-shadow: 0 0 10px #FFB6C1, 0 0 20px #FF8FA3; }
        .card-back p.sad { text-shadow: 0 0 10px #A3B9FF, 0 0 20px #6E8EFF; }
        .card-back p.nothing { text-shadow: 0 0 10px #E0E0E0, 0 0 20px #AFAFAF; }

        .emotion-button{
            display: inline-block;
            padding: 10px 20px;
            margin-top: 40px;
            border: 2px solid #8b8575;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            font-style: italic;
            color: #d8d0bd;
            background-color: transparent;
            box-shadow: 0 0 8px rgba(139, 133, 117, 0.5);
        }
        .emotion-button:hover {
            transform: scale(1.07);
            box-shadow: 0 0 15px rgba(139, 133, 117, 0.6);
        }
        .joy-btn {
            border-color: #FFD36E;
            color: #FFD36E;
            box-shadow: 0 0 10px #FFD36E, 0 0 20px #FFC300;
        }
        .calm-btn{
            border-color: #8FE3FF;
            color: #8FE3FF;
            box-shadow: 0 0 10px #8FE3FF, 0 0 20px #59C1FF;
        }
        .chaos-btn{
            border-color: #FF6F6F;
            color: #FF6F6F;
            box-shadow: 0 0 10px #FF6F6F, 0 0 20px #FF1E1E;
        }
        .anger-btn{
            border-color: #FF5F5F;
            color: #FF5F5F;
            box-shadow:  0 0 10px #FF5F5F, 0 0 20px #FF0000;;
        }
        .hope-btn{
            border-color: #A0FF9F;
            color: #A0FF9F;
            box-shadow: 0 0 10px #A0FF9F, 0 0 20px #5EF15E;;
        }
        .sad-btn{
            border-color: #A3B9FF;
            color: #A3B9FF;
            box-shadow: 0 0 10px #A3B9FF, 0 0 20px #6E8EFF; 
        }
        .nothing-btn{
            border-color: #E0E0E0;
            color: #E0E0E0;
            box-shadow:  0 0 10px #E0E0E0, 0 0 20px #AFAFAF;;
        }
        .nostalgia-btn{
            border-color: #FFB6C1;
            color: #FFB6C1;
            box-shadow:  0 0 10px #FFB6C1, 0 0 20px #FF8FA3;
        }

        /* lets see mediaaa */
        @media (max-width: 1100px) {
            #head {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
                padding: 0 20px;
            }

            #titlehead {
                font-size: 1.8rem;
                margin: 10px 0;
                white-space: normal; /* allows wrapping */
            }

            .nav-list {
                flex-wrap: wrap;
                justify-content: center;
                gap: 1rem;
            }
            .heading {
                height: auto;
                padding: 40px 20px;
            }

            .heading h1 {
                font-size: 2rem; /* smaller than default */
            }

            .heading p {
                font-size: 1.1rem;
                line-height: 1.4;
            }

            #img1right, #img2left {
                display: none; /* already handled */
            }
            .maincard{
                padding: 0;
                margin: 0;
            }
            .seccard{
                padding: 0;
                margin: 0;
            }
        }
        @media (max-width: 700px) {
            .heading h1 {
                font-size: 1.5rem;
            }
            .heading p {
                font-size: 1rem;
            }
            .maincard{
                padding: 0;
                margin: 0;
                
            }
            .seccard{
                padding: 0;
                margin: 0;
                
            }
        }

        .heading h1 {
            font-size: clamp(1.5rem, 4vw, 2.4rem);
        }

        .heading p {
            font-size: clamp(1rem, 2vw, 1.4rem);
        }
        .desc{
            background-color: #20201e;
            align-items: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
        }
        .desc h1{
            color: #7e7d79;
            top: 30px;
            text-align: center;
            margin-top: 20px;
            font-size: 40px;
        }
        .refl-section {
            position: relative;
            width: 100%;
            height: 400px;
            background-size: 90%;
            background-position: center;
            background-repeat: no-repeat;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 20px;

        }

        .ref-overlay {
            background-color: rgba(0, 0, 0, 0.5); 
            color: #f0f0f0;
            text-align: center;
            padding: 40px;
            border-radius: 10px;
            width: 80%;
            font-size: 1.1rem;
            line-height: 1.6;
        }

        /* individual emotion background images */
        .joy-reflect {
            background-image: url('/images/joy1.jpeg');
            
        }
        .calm-reflect {
            background-image: url('/images/calm.jpeg');
        }
        .chaos-reflect{
            background-image: url('/images/chaos1.jpeg');
        }
        .sad-reflect{
            background-image: url('/images/sad1.jpeg');
        }
        .nostalgia-reflect{
            background-image: url('/images/nostalgia2.jpeg');
        }
        .anger-reflect{
            background-image: url('/images/anger1.jpeg');
        }
        .hope-reflect{
            background-image: url('/images/hope1.jpeg');
        }
        .nothing-reflect{
            background-image: url('/images/nothing1.jpeg');
        }
        
        .about-section {
            background-color: #332d1f;
            padding: 80px 10%;
            display: flex;
            flex-direction: row; /* 👈 key: horizontal layout */
            justify-content: space-between;
            align-items: center;
            gap: 50px;
        }

        .about-left {
            flex: 1;
        }

        .about-left h1 {
            font-family: 'Dancing Script', cursive;
            font-size: 3em;
            margin-bottom: 20px;
            color: #9c8f72;
        }

        .about-left p {
            font-size: 1.1em;
            margin-bottom: 20px;
            line-height: 1.6;
            color: #c0af8b;
        }

        .learn-more-btn {
            background-color: #c0af8b;
            color: #332d1f;
            border: none;
            padding: 10px 20px;
            font-size: 1em;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            
        }

        .learn-more-btn:hover {
            box-shadow: 0 0 20px rgba(255, 123, 84, 0.6);
            transform: scale(1.05);
        }

        .about-right {
            flex: 1;
            text-align: right;
        }

        .about-right img {
            width: 100%;
            max-width: 450px;
            border-radius: 20px;
            box-shadow: 0 0 20px rgba(0,0,0,0.15);
        }

        /* Responsive layout for mobile */
        @media (max-width: 768px) {
            .about-section {
                flex-direction: column-reverse;
                text-align: center;
            }

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

            .about-right img {
                max-width: 300px;
            }
        }

        .contact-section{
           padding: 100px 15%;
           position: relative;
           text-align: left;
           font-family: 'Caveat',cursive;
           color: #3a2f1f;
           background: #f5f0e6 url('images/parchment-texture.jpeg') center/cover no-repeat;
        }
        .letter{
            background: rgba(255, 255, 255, 0.8);
            padding: 60px 50px;
            border-radius: 15px;
            box-shadow: 0 0 25px rgba(0,0,0,0.1);
            max-width: 700px;
            margin: auto;
            font-size: 1.3em;
            line-height: 1.7;
            position: relative;
            border: 1px solid rgba(0,0,0,0.05);
        }
        /* Greeting */
        .letter h2 {
            font-family: 'Dancing Script', cursive;
            font-size: 2.8em;
            margin-bottom: 20px;
            color: #5a4630;
        }

        /* Paragraphs */
        .letter p {
            margin-bottom: 20px;
            color: #3a2f1f;
        }

        /* Links inside the letter */
        .letter a {
            color: #6b5336;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .letter a:hover {
            color: #a88b5b;
            text-decoration: underline;
        }

        /* Signature block */
        .signature {
            text-align: right;
            margin-top: 40px;
            font-size: 1.4em;
        }

        .signature span {
            font-family: 'Dancing Script', cursive;
            font-size: 1.8em;
            color: #8a6b42;
        }
        /* subtle decorative wax seal or stamp */
        .contact-section::after {
            content: "";
            background:url('/images/waxseal1.1.png') no-repeat center/100px;
            border-radius: 90px;
            position: absolute;
            bottom: 40px;
            right: 15%;
            width: 100px;
            height: 100px;
            opacity: 0.7;
            pointer-events: none;
        }

        /* faint fold lines for paper realism */
        .letter::before {
            content: "";
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: rgba(0,0,0,0.05);
        }

        /* Responsive design */
        @media (max-width: 768px) {
            .contact-section {
                padding: 70px 10%;
            }

            .letter {
                padding: 40px 25px;
                font-size: 1.1em;
            }

            .signature {
                font-size: 1.2em;
            }
        }
        @keyframes fadeInLetter {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .letter {
            animation: fadeInLetter 1.2s ease-out both;
        }
