@import url('https://fonts.cdnfonts.com/css/poppins');
@import url('https://fonts.googleapis.com/css2?family=Qwitcher+Grypen:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

:root {
    --bg-color: #616161;
    --second-bg-color: #292929;
    --strong-color: #000000;
    --text-color: #ffffff;
    --cover-color: linear-gradient(45deg, #00abf0, #006e9a);
    --pages-color: linear-gradient(45deg, #fff, #ddd);
    --border: .125rem solid #00abf0;
    --box-shadow: 0 0 .6rem rgba(0, 0, 0, .2);
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
}

body {
    background: url(../img/bgimg.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
}

section {
    min-height: 100vh;
    padding: 10rem 9% 2rem;
}

/* Navigation Design */

.header {
    position: fixed; /* Make the header sticky */
    top: 0; /* Stick to the top */
    width: 100%;
    padding: 2rem 9%;
    background: #555454;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000; /* Ensure it stays on top of other elements */
    transition: background 0.3s, box-shadow 0.3s; /* Smooth transition for background and shadow */
    box-shadow: none; /* No shadow by default */
}

.header.sticky {
    background: rgba(0, 0, 0, 0.8); /* Darker background when sticky */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Add shadow when sticky */
}

.logo {
    font-size: 2.5rem;
    font-family: "Qwitcher Grypen", cursive;
    color: var(--text-color);
    font-weight: 600;
}

.navbar {
    position: relative;
}

.navbar a {
    font-size: 1.7rem;
    color: var(--text-color);
    font-weight: 500;
    margin-left: 3.5rem;
    transition: 500ms; /* Smooth color transition */
}

.navbar a:hover,
.navbar .active {
    border-radius: .5rem;
    color: var(--second-bg-color); /* Change color on hover or when active */
    background-color: var(--text-color);
    padding: 5px;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    cursor: pointer;
    display: none; /* Show only on mobile */
}


/* Home */

.home {
    display: flex;
    align-items: center;
    padding: 0 9%;
    padding-top: 5rem;
}

.home-content {
    z-index: 99;
    text-align: center;
    justify-content: center;
    align-items: center;
}

.home-content h1 {
    position: relative;
    display: inline-block;
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
}


.home-content h2 {
    position: relative;
    display: inline-block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content h1 span {
    color: var(--strong-color);
    font-family: "Qwitcher Grypen", cursive;
    font-size: 10rem;
}

.home-content .text-animate {
    position: relative;
}

.home-content .text-animate h3 {
    font-size: 3.2rem;
    font-weight: 700;
}

.home-content p {
    position: relative;
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
}

.keyboard-display1 button i, .keyboard-display2 button i, .keyboard-display3 button i, .keyboard-display4 button i  {
    position: relative;
    color: var(--text-color);
    text-transform: uppercase;
    font-size: 1.5rem;
}

.keyboard-display1 button, .keyboard-display3 button {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    padding: 20px;
    margin: .5rem;
    border-radius: 10px;
    background: linear-gradient(180deg, #282828, #202020);
    box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15),inset 0 -8px 8px rgba(0, 0, 0, 0.25), 0 0 2px rgba(0, 0, 0, 0.75), 10px 20px 25px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    animation: clickKeyboard 1s ease-in-out infinite;
    animation-delay: calc(.2s * var(--i));
}

@keyframes clickKeyboard {
    100% {
        box-shadow: 10px 10px 20px #131313, 10px 10px 20px #686868;
    }
}

.keyboard-display2 button {
    position: relative;
    display: inline-block;
    width: 70px;
    height: 70px;
    padding: 20px;
    margin: .5rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #202020, #282828);
    box-shadow: inset 0 -8px 8px rgba(0, 0, 0, 0.25),inset -8px 0 8px rgba(0, 0, 0, 0.15), 10px 20px 25px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    animation: clickKeyboard 1s ease-in-out infinite;
    animation-delay: calc(.2s * var(--i));
}

.keyboard-display4 button {
    position: relative;
    display: inline-block;
    width: 500px;
    height: 70px;
    padding: 20px;
    margin: .5rem;
    border-radius: 10px;
    background: linear-gradient(90deg, #202020, #282828);
    box-shadow: inset 0 -8px 8px rgba(0, 0, 0, 0.25),inset -8px 0 8px rgba(0, 0, 0, 0.15), 10px 20px 25px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.75);
    overflow: hidden;
    transition: 1500ms;
    animation: clickKeyboard 1s ease-in-out infinite;
    animation-delay: calc(.2s * var(--i));
}

.keyboard-display2 button:before, .keyboard-display4 button:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 12px;
    bottom: 14px;
    right: 4px;
    background: linear-gradient(180deg, #4a4a4a,#232323);
    border-radius: 10px;
    box-shadow: 10px 5px 10px rgba(0, 0, 0, 0.15), 10px -10px 10px rgba(255, 255, 255, 0.25);
    border-left: 1px solid #0004;
    border-bottom: 1px solid #0004;
    border-top: 1px solid #0009;
}

.keyboard-display1 button:before, .keyboard-display3 button:before {
    content: '';
    position: absolute;
    top: 3px;
    left: 4px;
    bottom: 14px;
    right: 12px;
    background: linear-gradient(90deg, #232323, #4a4a4a);
    border-radius: 10px;
    box-shadow: 10px -10px 10px rgba(255, 255, 255, 0.25), 10px 5px 10px rgba(0, 0, 0, 0.15);
    border-left: 1px solid #0004;
    border-bottom: 1px solid #0004;
    border-top: 1px solid #0009;
}

.keyboard-display1 button:active, .keyboard-display2 button:active, .keyboard-display3 button:active, .keyboard-display4 button:active {
    box-shadow: 10px 10px 20px #686868, 10px 10px 20px #131313;
}

.keyboard-display4 button:hover {
    color: var(--strong-color);
    transform: translateY(-10px);
    box-shadow: 0 0 10px #fafafa,
                0 0 20px #fafafa,
                0 0 40px #fafafa,
                0 0 80px #fafafa,
                0 0 100px #fafafa;
}

/*------ Home ------*/

.home-sci {
    position: relative;
    bottom: 4rem;
    display: flex;
    justify-content: space-between;
}

.home-sci a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: .2rem solid var(--text-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-color);
    z-index: 1;
    overflow: hidden;
    transition: 1500ms;
    /* background: linear-gradient(90deg, #232323, #4a4a4a);
    border-left: 1px solid #0004;
    border-bottom: 1px solid #0004;
    border-top: 1px solid #0009; */
}

.home-sci a:hover {
    color: var(--strong-color);
    transform: translateY(-15px);
    box-shadow: 0 0 10px #fafafa,
                0 0 20px #fafafa,
                0 0 40px #fafafa,
                0 0 80px #fafafa,
                0 0 100px #fafafa;
}

.home-sci a::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--text-color);
    color: var(--strong-color);
    z-index: -1;
    transition: .5s;
}

.home-sci a:hover::before {
    width: 100%;
}

.btn-box {
    display: flex;
    transition: .5s ease;
    /* position: absolute;
    display: flex;
    right: 0;
    justify-content: space-between;
     */
}

.btn-box .btn {
    position: relative;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    border: .2rem solid var(--text-color);
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: var(--text-color);
    z-index: 1;
    overflow: hidden;
    transition: 1500ms;
    /* background: linear-gradient(90deg, #232323, #4a4a4a);
    border-left: 1px solid #0004;
    border-bottom: 1px solid #0004;
    border-top: 1px solid #0009; */
}

.btn-box .btn:hover {
    color: var(--strong-color);
    /* transform: translateY(-15px); */
    /* box-shadow: 0 0 10px #fafafa,
                0 0 20px #fafafa,
                0 0 40px #fafafa,
                0 0 80px #fafafa,
                0 0 100px #fafafa; */
}

.btn-box .btn::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--text-color);
    z-index: -1;
    transition: .5s;
}

.btn-box .btn:hover::before {
    width: 100%;
}


/* About Section Design */
.about {
    display: flex;
    flex-direction: column;
    padding: 0 9%;
    background: url(../img/aboutimg.png) no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: grayscale(1);
    transition: 1500ms;
}

.about:hover {
    filter: grayscale(0) brightness(1.5);
}

/* Heading */
.heading {
    font-size: 4rem; /* reduced for better fit on smaller screens */
    margin-top: 6rem;
    text-align: center;
    color: var(--text-color);
    text-transform: uppercase;
}

/* About Container */
.about-container {
    display: flex;
    flex-wrap: wrap;
}

/* About Text */
.about-text {
    max-width: 700px; /* slightly wider for readability */
    margin-top: 3rem;
    margin-bottom: 7rem;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    text-align: justify;
    font-size: 1.4rem; /* main paragraph text size */
    line-height: 1.8; /* improved readability */
}

/* Subheading in about-text */
.about-text h3 {
    font-size: 2rem; /* slightly smaller than main heading */
    margin: 1.5rem 0;
    text-transform: uppercase;
    text-align: left;
}

/* Paragraphs */
.about-text p {
    margin: 1rem 0;
    font-size: 1.5rem;
}

/* Emphasized spans */
.about-text span {
    font-weight: 700;
    font-size: 1.5rem; /* slightly smaller than previous 1.7rem */
}

/* Project list */
.about-text ul {
    list-style-type: disc;
    padding-left: 1.5rem; /* standard indent */
}

.about-text li {
    margin-bottom: 1rem;
    font-size: 1.5rem; /* slightly smaller for list readability */
    line-height: 1.9rem;
}

/* Skills Section Design */

.skills .skills-row {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
    align-items: center;
}

.skills-row .skills-column {
    flex: 1 1 40rem;
}

.skills-column p {
    font-size: 1.5rem;
    align-items: center;
    text-align: justify;
    justify-content: center;
}

.skills-column .title {
    font-size: 2.5rem;
    margin: 1rem 0 0 ;
}

.skills-box .skills-content {
    position: relative;
    border: .2rem solid var(--strong-color);
    border-radius: 10px;
    padding: .5rem 1.5rem;
    z-index: 1;
    overflow: hidden;
    background: var(--second-bg-color);
}

.skills .heading {
    position: relative;
    font-size: 5rem;
    margin-top: -40px;
    text-align: center;
    text-transform: uppercase;
    color: var(--text-color);
}

.skills-row h3 {
    font-size: 2.6rem;
    align-items: center;
}

.skills-toolkits {
    position: relative;
    color: var(--text-color);
    align-items: center;
    text-align: justify;
    justify-content: space-evenly;
    max-width: 600px;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.skills-toolkits a {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.skills-row .skills-toolkits {
    flex: 1 1 40rem;
}

.skills-toolkits p {
    font-size: 1.5rem;
    align-items: center;
    justify-content: center;
}

.fa-html5 {
    color: #f06529;
}

.fa-css3 {
    color: #2965f1;
}

.fa-js {
    color: #F0DB4F;
}

.fa-php {
    color: #777BB3;
}

.fa-database {
    color: #ffa600;
}

.fa-wordpress-simple {
    color: #00749C;
}


/* .skills-toolkits i {
    font-size: 10rem;
    letter-spacing: 2rem;
    width: 200px;
    background: var(--second-bg-color);
} */

.skills-toolkits a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 170px;
    height: 100px;
    border-radius: 10px;
    font-size: 5rem;
    color: var(--strong-color);
    z-index: 1;
    overflow: hidden;
    transition: 1500ms;
    background: var(--text-color);
    
}

.skills-toolkits a:hover {
    transform:translateY(-8px);
    box-shadow: 1px 1px #3e3e3e, 2px 2px #3e3e3e, 3px 3px #3e3e3e, 4px 4px #3e3e3e, 5px 5px #3e3e3e, 6px 6px #3e3e3e, 7px 7px #3e3e3e, 8px 8px #3e3e3e;
}

/* Circular Bar */
.radial-bars {
    max-width: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* margin: 7%; */
}

.radial-bars .radial-circle {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 5%;
}

.radial-bars .radial-circle::before {
    content: '';
    position: relative;
    inset: 5px;
    border-radius: 50%;
}

.radial-bars .radial-circle::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--second-bg-color);
    border-radius: 50%;
}

.radial-bars .radial-circle .percentage {
    position: relative;
    color: var(--text-color);
    z-index: 10;
    line-height: 1em;
    font-size: 2em;

}

.radial-bars .radial-circle h4 {
    position: relative;
    color: var(--text-color);
    z-index: 10;
    font-weight: 500;
    font-size: 1em;
    text-transform: uppercase;
    line-height: 0.6em;
}
.radial-circle {
    opacity: 0; /* Start with opacity 0 to hide initially */
    transition: opacity 1s ease; /* Smooth transition when becoming visible */
}

.radial-circle.animated {
    opacity: 1; /* Make visible when animated class is added */
}

/* Portfolio Section Design */
.portfolio {
    background: var(--second-bg-color);
    padding: 2rem 1rem; /* Add some padding for spacing */
}

.portfolio .heading {
    margin-top: 40px;
    text-transform: uppercase;
    text-align: center; /* Center the heading */
    margin-bottom: 5rem;
}

.portfolio-container {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap onto the next line */
    justify-content: center;
    align-items: flex-start; /* Align items to the start */
    gap: 2rem;
}

.portfolio-container div {
    position: relative;
    text-decoration: none;
}

.portfolio-container div::before {
    background: var(--strong-color);
    content: "";
    inset: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s ease-in-out;
    z-index: -1;
    border-radius: 10px;
}

.portfolio-container div:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.portfolio-container h2 {
    font-size: 2em; 
    text-transform: uppercase;
    text-align: center;
}

.portfolio-container .heading {
    font-size: 3rem;
}

.portfolio-website-first-project {
    flex: 1 1 300px;
    max-width: 400px;
}

.portfolio-website-first-project video {
    width: 100%;
    height: auto;
}

.portfolio-website-first-project .portfolio-text {
    z-index: 222;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-align: justify;
}

.portfolio-text p {
    /* -webkit-text-stroke: .5px #131313; */
    font-size: 1.5rem;
    margin-bottom: .5rem;
}

/* Book Design Portfolio */
.graphic-designs {
    position: relative;
    top: -12rem;
}

.book-design {
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-row1 {
    /* background: red; */
    width: 100%;
    font-size: 1.5rem;
    text-align: justify;
    margin-bottom: 5rem;
    /* padding: 3rem; */
    /* align-items: center;
    justify-content: center; */
}

.book-row1 h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    text-align: center;
}

.graphics-software-logo-container {
    display: flex;
    padding: 5rem 0 0 0;
    width: 100%;
    /* background-color: green; */
    gap: 2rem;
}

.software-logo {
    cursor: pointer;
    transition: .5s;
}

.software-logo-img1 {
	background: url("../img/Graphics Software Logo/adobe.png") no-repeat center;
    background-size: cover;
    position: relative;
    background-size: cover;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid #fdfdfd;
    
}

.software-logo-img2 {
	background: url("../img/Graphics Software Logo/canva.png") no-repeat center;
    background-size: cover;
	position: relative;
	width: 100px;
	height: 100px;
    border-radius: 50%;
    border: 2px solid #fdfdfd;
}

.software-logo-img3 {
	background: url("../img/Graphics Software Logo/adobe-photoshop-express-editor-icon-free-png.png") no-repeat center;
    background-size: cover;
	position: relative;
	width: 100px;
	height: 100px;
    border-radius: 50%;
    border: 2px solid #fdfdfd;
}

.book-row2 {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
    gap: 1rem;
    /* background: greenyellow; */
    width: 100%;
    /* padding: 2rem; */
}

.book-row2-inside {
    display: flex;
    justify-content: space-between;
    padding-left: 12rem;
}

.book {
	width: 230px;
	height: 300px;
    margin-bottom: 2rem;
	position: relative;
	box-shadow: -20px 10px 30px rgba(0,0,0,0.4);
	transform-style: preserve-3d;
	transition: 1s;
}

.book:before {
	content: '';
	position: absolute;
	left: -20px;
	width: 20px;
	height: 100%;
	background: linear-gradient(90deg, skyblue, #111);
	transform: skewY(-3deg) rotateY(-50deg);
	transform-origin: right;
}

.book:hover {
	transform: rotate(-5deg);
}

.book-img1 {
	background: url("../img/Lola Nene's Logos/Lola Nene Front.png") no-repeat center;
    background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: perspective(2000px);
	transform-style: preserve-3d;
	transform-origin: left;
	transition: 1s;
}

.book-img2 {
	background: url("../img/Allgoods Web Designs/Allgoods Front.png") no-repeat center;
    background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: perspective(2000px);
	transform-style: preserve-3d;
	transform-origin: left;
	transition: 1s;
}

.book-img3 {
	background: url("../img/St. Vincetn Logos/St. Vincent Ferrer Logo Front.png") no-repeat center;
    background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: perspective(2000px);
	transform-style: preserve-3d;
	transform-origin: left;
	transition: 1s;
}

.book-img4 {
	background: url("../img/Rosemet Web Design/Rosemet Front.png") no-repeat center;
    background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	transform: perspective(2000px);
	transform-style: preserve-3d;
	transform-origin: left;
	transition: 1s;
}

.book:hover .book-img1, .book:hover .book-img2, .book:hover .book-img3, .book:hover .book-img4 {
	transform: perspective(2000px) rotateY(-140deg);
}

.text {
	width: 100%;
	height: 100%;
	padding: 10px;
    background: var(--text-color);
    color: var(--strong-color);
	display: flex;
	justify-content: center;
	align-items: center;
	text-align: center;
	flex-direction: column;
	border: 1px solid rgba(0,0,0,0.2);
	box-shadow: inset 350px 0 50px rgba(0,0,0,0.1);
	transition: 1s;
}

.book:hover .text {
	box-shadow: inset 20px 0 25px rgba(0,0,0,0.1);
}

.text h2 {
	font-size: 2rem;
	margin-bottom: 10px;
}

.text p {
	font-size: 1rem;
	color: #444;
	margin-bottom: 15px;
}

.text a {
	text-decoration: none;
	letter-spacing: 0.7px;
	font-size: 1.4rem;
}

.text a i {
	transition: 0.5s;
}

.text a:hover i {
	transform: translateX(10px);
}

/* Album Pages Style */
.album {
    display: grid;
    margin-top: -5rem;
    margin-bottom: 5rem;
    justify-content: center;
    align-items: center;
}

.design-discriptions {
    width: 450px;
    padding: 3rem;
    color: #ffffff;
    font-size: 1.5rem;
    text-align: justify;
}

.book-design {
    display: flex;
}

.flipbook {
    width: 900px;
    height: 600px;
    /* box-shadow: inset 0 -8px 8px rgba(0, 0, 0, 0.25),inset -8px 0 8px rgba(0, 0, 0, 0.15), 10px 20px 25px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.75); */
}

.flipbook .hard {
    /* background: #711c1c !important; */
    color: var(--strong-color);
    font-weight: bold;
    font-size: 2rem;
    color: var(--strong-color);
    box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15), 10px 20px 25px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.75);
    /* transform: translate3d(10deg); */
}

.flipbook .hard small{
    font-style: italic;
    font-weight: lighter;
    opacity: 0.7;
    font-size: 14px;
}

.flipbook .page {
    background: radial-gradient(#ffffff, #ffffff, #ffffff, #d5d0d0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: inset -8px 0 8px rgba(0, 0, 0, 0.15), 10px 20px 25px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.75);
}

.page img{
    object-fit: cover;
    position: absolute;
    width: 100%;
    height: 100%;
    margin: auto;
    justify-content: center;
    align-items: center;
    /* box-shadow: inset 0 -8px 8px rgba(0, 0, 0, 0.25),inset -8px 0 8px rgba(0, 0, 0, 0.15), 10px 20px 25px rgba(0, 0, 0, 0.4), 0 0 2px rgba(0, 0, 0, 0.75); */
}

.flipbook .page small{
    font-size: 14px;
    margin-bottom: 10px;
}

.flip-instruction i{
    font-size: 2.5rem;
    padding-left: 1rem;
}

/* BTN */
.btn-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.btn-web {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 120px;
    height: 40px;
    border-radius: 10px;
    border: 3px solid #feffff;
    transition: transform 500ms; /* Shorter transition time */
}

.btn-web a {
    color: var(--text-color);
    padding: .5rem;
}

.btn-click-web {
    font-size: 1.3rem;
    font-weight: 500;
}

.btn-web:hover {
    background: var(--second-bg-color);
    transform: translateX(10px); /* Slight hover effect */
}


/* Contact Section Design */
.contact h2 {
    margin-top: -40px;
    margin-bottom: 5rem;
    text-align: center; /* Center the heading for all screens */
    text-transform: uppercase;
}

.contact-container {
    position: relative;
    display: flex;
    width: 100%;
}

.contact-content {
    background: var(--second-bg-color);
    border-radius: 10px 0 0 10px;
    padding: 90px;
    flex: 1 1 100%; /* Use flex to allow responsiveness */
}

.contact-content h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.contact-content p {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-socmed {
    display: flex;
    gap: 2rem;
}

.contact-socmed a {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border: .2rem solid var(--text-color);
    border-radius: 50%;
    font-size: 20px;
    color: var(--text-color);
    z-index: 1;
    overflow: hidden;
    transition: 1500ms;
}

.contact-socmed a:hover {
    color: var(--strong-color);
    transform: translateY(-15px);
    box-shadow: 0 0 10px #fafafa,
                0 0 20px #fafafa,
                0 0 40px #fafafa,
                0 0 80px #fafafa,
                0 0 100px #fafafa;
}

.contact-socmed a::before {
    content: '';
    position: absolute;
    top: 0;
    width: 0;
    height: 100%;
    background: var(--text-color);
    z-index: -1;
    transition: .5s;
}

.contact-socmed a:hover::before {
    width: 100%;
}

.contact-img {
    flex: 1 1 40%; /* Use flex to allow responsiveness */
    overflow: hidden;
    padding-right: 250px;
    border-radius: 0 10px 10px 0;
}

.contact-img img {
    max-width: 400px;
    height: 100%;
    object-fit: cover;
    transition: 1500ms;
}

.contact-img img:hover {
    transform: scale(1.5);
}

/* Footer Design */
.footer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem 9%;
    margin-top: -60px;
    background: var(--strong-color);
}

.footer-text p {
    font-size: 1.6rem;
    color: var(--text-color);
}

/* BREAKPOINTS */
@media (max-width: 1200px){
    html {
        font-size: 55%;
    }

    .menu {
        grid-template-columns: repeat(3, 1fr);
    }

    .about {
        gap: 5rem;
    }

    .about .heading {
        font-size: 4.5rem;
    }

    .about-text {
        max-width: 500px;
        margin-top: 0;
    }

    .skills-column .title {
        margin: 0 0 0 1.5rem ;
    }

    .design-discriptions {
        width: 400px;
        padding: 2.5rem;
    }
    
    .flipbook {
        width: 700px;
        height: 450px;
    }

    .book-row2-inside {
        padding-left: 3rem;
    }
    
    .book {
        width: 210px;
        height: 280px;
    }

}

@media (max-width: 995px) {
    .header {
        padding: 2rem 4%;
    }
    
    section {
        padding: 10rem 4% 2rem;
    }
    .home {
        padding: 0 4%;
    }

    .keyboard-display1 button, .keyboard-display2 button, .keyboard-display3 button {
        width: 55px;
        height: 55px;
        border-radius: 7px;
    }

    .keyboard-display1 button:before, .keyboard-display2 button:before, .keyboard-display3 button:before {
        top: 2px;
        left: 3px;
        bottom: 9px;
        right: 7px;
        border-radius: 7px;
    }

    .keyboard-display4 button {
        width: 400px;
        height: 55px;
        border-radius: 7px;
    }

    .about-text {
        max-width: 400px;
    }

    .home-content h1 span {
        font-size: 9rem;
    }

    .design-discriptions {
        width: 350px;
        padding: 2rem;
    }
    
    .flipbook {
        width: 550px;
        height: 330px;
    }

    .book-row2-inside {
        padding-left: 3rem;
    }
    
    .book {
        width: 190px;
        height: 250px;
    }
    
}

@media (max-width: 732px) {
    .header {
        background: var(--bg-color);
    }

    .navbar a {
        font-size: 1.2rem;
    }

    .home {
        justify-content: center;
        padding-top: 5rem;
    }

    .home-content {
        display: flex;
        align-items: center;
        flex-direction: column;
        text-align: center; 
    }

    .home-content h1 {
        font-size: 5rem;
    }

    .home-sci {
        margin-top: 7rem;
        width: 160px;
    }

    .home-sci a {
        width: 40px;
        height: 40px;
    }

    .keyboard-display1 button, .keyboard-display2 button, .keyboard-display3 button {
        width: 45px;
        height: 45px;
        padding: 9px;
        margin: .3rem;
    }

    .keyboard-display4 button {
        width: 290px;
        height: 45px;
        border-radius: 7px;
    }

    .home-content h1 span {
        font-size: 8rem;
    }

    .graphics-software-logo-container {
        justify-content: center;
        align-items: center;
        padding-top: 3rem;
    }

    .book-design {
        display: flex;
        flex-direction: column;
    }

    .book-row2-inside {
        justify-content: center;
        gap: 5rem;
    }
    
    .design-discriptions {
        /* left: 20px; */
        width: 550px;
        padding: 2.5rem;
    }
    
    /* .design-discriptions {
        width: 320px;
        padding: 3rem;
    } */
    
    .flipbook {
        width: 500px;
        height: 300px;
    }

    .contact-content {
        padding: 40px; /* Reduce padding for smaller screens */
        border-radius: 10px; /* Remove border radius adjustments */
        flex: 1 1 100%; /* Stack vertically */
    }

    .contact-img {
        flex: 1 1 100%; /* Stack vertically */
        text-align: center; /* Center image */
        padding-right: 0;
        border-radius: 0 0 10px 10px;
    }

    .contact-img img {
        max-width: 100%; /* Ensure it doesn't exceed container */
        height: auto; /* Maintain aspect ratio */
        
    }

    .contact-container {
        flex-direction: column; /* Stack content and image */
        align-items: center; /* Center align items */
    }

    .contact-content {
        border-radius: 10px 10px 0 0;
    }

    .contact-content h3 {
        font-size: 1.5rem; /* Adjust font size */
    }

    .contact-content p {
        font-size: 1.2rem; /* Adjust font size */
    }

    .contact-socmed {
        flex-wrap: wrap; /* Allow social media icons to wrap */
        justify-content: center; /* Center icons */
    }

    .contact-socmed a {
        width: 40px; /* Adjust size for smaller screens */
        height: 40px;
        font-size: 18px; /* Adjust font size */
    }

    .footer {
        margin-top: 0px;
    }

    .footer-text p {
        font-size: 1.4rem; /* Adjust footer size */
    }

    
}

@media (max-width: 532px) {
    html {
        font-size: 50%;
    }

    .header a {
        font-size: 2rem;
    }

    .navbar a {
        font-size: 1rem;
    }

    .home-content h1 {
        display: flex;
        flex-direction: column;
    }

    .home-sci {
        width: 160px;
    }

    .home-sci a {
        width: 40px;
        height: 40px;
    }

    .keyboard-display1 button, .keyboard-display2 button, .keyboard-display3 button {
        width: 35px;
        height: 35px;
        padding: 7px;
        margin: .2rem;
    }

    .keyboard-display4 button {
        width: 250px;
        height: 35px;
        border-radius: 7px;
        padding: 7px;
        margin: .2rem;
    }
    
    .design-discriptions {
        width: 100%;
    }

    .book-row2-inside {
        align-items: center;
        gap: 5rem;
    }

    .book {
        width: 160px;
        height: 210px;
    }
    
    .flipbook {
        justify-content: center;
        align-items: center;
        width: 450px;
        height: 270px;
    }

    .footer-text p {
        font-size: 1.5rem;
    }

}

@media (max-width: 462px) {
    .home-content h1 {
        font-size: 4rem;
        padding: 0;
    }

    .home-content h1 span {
        font-size: 6rem;
    }

    .keyboard-display1 button, .keyboard-display2 button, .keyboard-display3 button {
        width: 30px;
        height: 30px;
        padding: 5px;
        margin: .1rem;
    }

    .keyboard-display4 button {
        width: 230px;
        height: 30px;
        border-radius: 6px;
        padding: 5px;
        margin: .1rem;
    }
    
    .design-discriptions {
        left: 15px;
        padding: 0;
    }
    
    .flipbook {
        width: 400px;
        height: 300px;
    }

    .footer-text p {
        font-size: 1.3rem;
    }
    
}

@media (max-width: 430px) {
    .keyboard-display1 button, .keyboard-display2 button, .keyboard-display3 button {
        width: 25px;
        height: 25px;
        padding: 3px;
        margin: .09rem;
    }

    .keyboard-display4 button {
        width: 215px;
        height: 25px;
        border-radius: 4px;
        padding: 3px;
        margin: .09rem;
    }

    .flipbook {
        width: 380px;
        height: 250px;
    }
}