
html {
    scroll-behavior: smooth;
}

body {
    height: 100vh; 
    margin: 0;
    padding: 0;
    background: linear-gradient(90deg, #1b1c1b, #1d1660);
    background-size: cover;
    background-attachment: fixed;
    color: #ffffff; 
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    min-width: 100%;
}


/*  _________________________________________________header section_______________________________________________ */

.top-section {
    width: 100%;
    padding: 50px;
    box-sizing: border-box;
    overflow: hidden;
}

header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#one {
    position: relative;
    left: 2cm;
    padding-left: 0;
    font-size: 50px;
    line-height: 1.5;
    color: #ffffff; 
    font-weight: 900; 
    -webkit-text-stroke: 0.5px #ffffff;
    text-shadow: 0 0 0.5px #ffffff, 0 0 1px #ffffff;
    -webkit-text-fill-color: #ffffff;
    animation: subtleGlow 2s ease-in-out infinite alternate;
    margin: 0;
    word-wrap: break-word;
}

@keyframes subtleGlow {
    from {
        text-shadow: 0 0 0.5px #ffffff, 0 0 1px #ffffff;
    }
    to {
        text-shadow: 0 0 0.7px #ffffff, 0 0 1.2px #ffffff;
    }
}

#three {
    position: relative;
    font-style: italic;
    font-weight: bold;
    right: 0.5cm;
    padding-right: 0;
    font-size: 20px;
    line-height: 0.6;
    text-align: right;
    color: #ffffff;        
    opacity: 0;            
    animation: fadeInLoop 5s ease-in-out infinite alternate;
    margin: 0;
    word-wrap: break-word;
}

@keyframes fadeInLoop {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}


/*  ________________________________________________main section______________________________________________________ */

main {
    display: flex;
    justify-content: space-between;  
    align-items: flex-start;
    padding: 50px 50px;
    flex-wrap: nowrap;               
}


.follower-content {
    max-width: 450px;
}


.follower-content h2 {
    font-size: 25px;
    color: cyan;
    margin-top: 0;
    margin-bottom: 15px;
}

.follower-content p {
    font-size: 18px;
    line-height: 1.5;
}

.follower-content a {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.follower-content a:hover {
    color: #00ffff;
}



.box {
    margin-left: auto;
}

.box {
    background: linear-gradient(135deg, #1f1f1f, #3533cd);  
    border: 2px solid #00ffff;      
    border-radius: 15px;            
    padding: 25px;
    width: 300px;
    color: #ffffff;                 
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);           
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4); 
}

.box h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    color: #00ffff; 
}

.box p {
    font-size: 18px;
    line-height: 1.5;
}

.box a {
    color: #ffffff;            
    font-weight: 700;          
    text-decoration: none;     
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.box a:hover {
    color: #00ffff;            
    text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff; 
}

main {
    margin-bottom: 50px;
}

/*  ___________________________________________________footer section___________________________________________________ */

.lastsection  {
    color: aliceblue;
    font-size:larger;
    font-weight: 600;
    padding: 20px;
}

.lastsection .social-links {
    display: flex;          
    justify-content: flex-end; 
    gap: 50px;              
    align-items: center;   
    flex-wrap: nowrap;
    overflow: visible;
    font-size: 16px;
}

.lastsection .social-links a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-weight: 600;
    text-decoration:underline;
    white-space: nowrap;
}

.inline-icon {
    vertical-align: middle; 
    margin-left: 8px;       
}

#last {
    text-align: right;
}


/* ------------------------------Book Cover Overlay------------------------------------------------ */
.book-cover {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    perspective: 2000px;
    pointer-events: none;
}

.book-left-page,
.book-right-page {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #16213e 50%, #0f3460 100%);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.5);
    transform-origin: center;
    transition: transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.book-left-page {
    left: 0;
    border-right: 2px solid rgba(255, 255, 255, 0.1);
    transform-origin: right center;
}

.book-right-page {
    right: 0;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
    transform-origin: left center;
}

/* Book Opening Animation */
.book-cover.opening .book-left-page {
    transform: rotateY(-180deg) translateX(-100%);
}

.book-cover.opening .book-right-page {
    transform: rotateY(180deg) translateX(100%);
}

/* Page Turn Effect - Right to Left */
.page-turn {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    pointer-events: none;
    perspective: 2000px;
    perspective-origin: right center;
}

.page-turn::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    transform-origin: right center;
    transform: rotateY(0deg);
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.6);
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.page-turn.turning::before {
    transform: rotateY(-180deg) translateX(100%);
}

/* Mini Page Flip for Anchor Links */
.mini-page-flip {
    position: fixed;
    top: 0;
    right: 0;
    width: 30%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
    perspective: 1500px;
}

.mini-page-flip::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    transform-origin: left center;
    transform: rotateY(0deg);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mini-page-flip.flipping::before {
    transform: rotateY(-90deg);
}

/* -----------------------------      End of Book Opening & Page Turn Animations ------------------------------ */

/* ============================================
   Mobile Responsiveness - Header Section
   ============================================ */

@media (max-width: 768px) {
    .top-section {
        padding: 15px;
    }

    #one {
        font-size: 32px;
        padding-left: 15px;
        line-height: 1.3;
        left: 0;
    }

    #three {
        font-size: 16px;
        padding-right: 15px;
        line-height: 1.3;
        right: 0;
        margin-top: 8px;
    }

    /* Mobile: Stack boxes vertically */
    main {
        flex-direction: column;
        align-items: stretch;
        padding: 30px 20px; /* Proper padding to prevent border from touching edges */
        gap: 30px;
        box-sizing: border-box;
    }

    .follower-content {
        max-width: 100%;
        width: 100%;
    }

    .box {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 26px; /* 15% reduction from 30px */
        border-radius: 13px; /* 15% reduction from 15px */
    }

    .box h2 {
        font-size: 20px; /* 15% reduction from 24px */
        margin-bottom: 17px; /* 15% reduction from 20px */
    }

    .box p {
        font-size: 15px; /* 15% reduction from 18px */
    }

    /* Footer mobile responsiveness */
    .lastsection {
        padding: 20px 20px;
        margin-top: 0 !important; /* Remove margin-top on mobile */
    }

    .lastsection .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-size: 14px;
    }

    .lastsection .social-links a {
        font-size: 14px;
        display: block;
        width: 100%;
        white-space: normal;
    }

    #last {
        text-align: left;
        font-size: 16px;
        margin-top: 10px;
    }
}

@media (max-width: 600px) {
    .top-section {
        padding: 12px;
    }

    #one {
        font-size: 28px;
        padding-left: 12px;
        line-height: 1.2;
        left: 0;
    }

    #three {
        font-size: 14px;
        padding-right: 12px;
        line-height: 1.2;
        right: 0;
        margin-top: 6px;
    }

    /* Mobile: Stack boxes vertically */
    main {
        flex-direction: column;
        align-items: stretch;
        padding: 25px 20px; /* Increased horizontal padding for better spacing */
        gap: 25px;
        box-sizing: border-box;
    }

    .follower-content {
        max-width: 100%;
        width: 100%;
    }

    .follower-content h2 {
        font-size: 22px;
    }

    .follower-content p {
        font-size: 16px;
    }

    .box {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 21px; /* 15% reduction from 25px */
        border-radius: 11px; /* 15% reduction from 13px */
    }

    .box h2 {
        font-size: 19px; /* 15% reduction from 22px */
        margin-bottom: 17px; /* 15% reduction from 20px */
    }

    .box p {
        font-size: 14px; /* 15% reduction from 16px */
    }

    /* Footer mobile responsiveness */
    .lastsection {
        padding: 20px 15px;
        margin-top: 0 !important; /* Remove margin-top on mobile */
    }

    .lastsection .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-size: 16px;
    }

    .lastsection .social-links a {
        font-size: 16px;
        display: block;
        width: 100%;
        white-space: normal;
    }

    #last {
        text-align: left;
        font-size: 16px;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .top-section {
        padding: 10px;
    }

    #one {
        font-size: 24px;
        padding-left: 10px;
        line-height: 1.2;
    }

    #three {
        font-size: 12px;
        padding-right: 10px;
        line-height: 1.2;
    }

    /* Mobile: Stack boxes vertically */
    main {
        flex-direction: column;
        align-items: stretch;
        padding: 20px 15px; /* Increased horizontal padding for better spacing */
        gap: 20px;
        box-sizing: border-box;
    }

    .follower-content {
        max-width: 100%;
        width: 100%;
    }

    .follower-content h2 {
        font-size: 20px;
    }

    .follower-content p {
        font-size: 15px;
    }

    .box {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 17px; /* 15% reduction from 20px */
        border-radius: 10px; /* 15% reduction from 12px */
    }

    .box h2 {
        font-size: 17px; /* 15% reduction from 20px */
        margin-bottom: 15px; /* 15% reduction from 17px */
    }

    .box p {
        font-size: 13px; /* 15% reduction from 15px */
    }

    /* Footer mobile responsiveness */
    .lastsection {
        padding: 18px 12px;
        margin-top: 0 !important; /* Remove margin-top on mobile */
    }

    .lastsection .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-size: 15px;
    }

    .lastsection .social-links a {
        font-size: 15px;
        display: block;
        width: 100%;
        white-space: normal;
    }

    #last {
        text-align: left;
        font-size: 15px;
        margin-top: 12px;
    }
}

@media (max-width: 360px) {
    #one {
        font-size: 20px;
        padding-left: 8px;
    }

    #three {
        font-size: 11px;
        padding-right: 8px;
    }

    /* Mobile: Stack boxes vertically */
    main {
        flex-direction: column;
        align-items: stretch;
        padding: 18px 10px;
        gap: 18px;
    }

    .follower-content {
        max-width: 100%;
        width: 100%;
    }

    .follower-content h2 {
        font-size: 18px;
    }

    .follower-content p {
        font-size: 14px;
    }

    .box {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 15px; /* 15% reduction from 18px */
        border-radius: 9px; /* 15% reduction from 10px */
    }

    .box h2 {
        font-size: 15px; /* 15% reduction from 18px */
        margin-bottom: 13px; /* 15% reduction from 15px */
    }

    .box p {
        font-size: 12px; /* 15% reduction from 14px */
    }

    /* Footer mobile responsiveness */
    .lastsection {
        padding: 15px 10px;
        margin-top: 0 !important; /* Remove margin-top on mobile */
    }

    .lastsection .social-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
        font-size: 14px;
    }

    .lastsection .social-links a {
        font-size: 14px;
        display: block;
        width: 100%;
        white-space: normal;
    }

    #last {
        text-align: left;
        font-size: 14px;
        margin-top: 15px;
    }
}


