@import url('https://fonts.googleapis.com/css2?family=Lexend+Giga:wght@100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Rubik:ital,wght@0,300..900;1,300..900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root{
	--font1: 'Poppins';
	--font2: 'Rubik';
	--font3: 'Ubuntu';
	--font4: 'Lexend Giga';

	--color1: #131c25;
	--color2: #eee;
	--color3: #222;
	--color4: pink;
}

*{
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	list-style: none;
	outline: none;
}

html{
	font-size: 62.5%;
	scroll-behavior: smooth;
	/* border: 1px solid red; */
}

body {
    font-family: var(--font1), Arial, Helvetica, sans-serif;
    font-size: 1.5rem;
    position: relative;
    margin: 0;
    background: #222;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url("imgs/hero.jpg") no-repeat top center;
    background-size: cover;
    filter: blur(8px);
    z-index: -1;
}

img{
	display: block;
	width: 100%;
}


/* INFO */
main{
	width: 100%;
	max-width: 600px;
	box-shadow: 0 0 5px #bbb;
	border-radius: 20px;
	background: var(--color3);
	color: var(--color2);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 2.5rem;
	margin: 5rem auto;
}

.hero {
    position: relative;
    display: inline-block;
	margin-bottom: 2rem;
}

.hero img {
    display: block;
    width: 100%;
    height: auto;
	border-radius: 5px;
}

.info .logo-wrapper img{
	border-radius: 50%;
	margin-bottom: 1rem;
}

.name{
	display: flex;
	gap: 1rem;
	justify-content: center;
}

.name h1{
	font-size: 3rem;
	font-weight: 500;
}
.name img{
	display: block;
	width: 4rem;
	height: auto;
}

.desc{
	font-size: 1.5rem;
	margin-bottom: 1rem;
}

.socials{
	display: flex;
	justify-content: center;
	gap: 2rem;
	padding: 1.5rem 0;
	flex-wrap: wrap;
}

.socials i{
	font-size: 2.2rem;
	color: var(--color2);
	border-radius: 50%;
	border: 1.5px solid transparent;
	padding: .8rem;
}
.socials i:hover{
	color: pink;
	border: 1.5px solid pink;
	box-shadow: 0 0 5px pink;
}


/* NAV LINKS */
nav{
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	padding: 2.5rem 1.5rem 5rem;
}

.links .link{
	max-width: 600px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.5rem;
	margin: 0 auto;
	background: #eee;
	border: 1.5px solid var(--color2);
	border-radius: 5px;
	transition: .3s ease-in-out;
}
.links .link:hover{
	color: var(--color4);
	background: transparent;
	border-color: var(--color4);
	box-shadow: 0 0 5px var(--color4);
}

.links a{
	color: var(--color1);
	margin: 0;
	padding: 0;
}

.links p, .links i{
	font-size: 1.6rem;
	font-weight: 500;
}

.links .link img{
	width: 5rem;
	padding: 0;
	margin: 0;
	outline: none;
	border: none;
	border-radius: 50%;
}


/* LATEST */
.latest{
	width: 100%;
	text-align: left;
	padding: 0 0 5rem;
}
.latest .div{
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
	padding: 0 1rem;
}
.latest .div a{
	color: #eee;
	font-weight: 500;
}
.latest .div a:hover{
	opacity: .8;
}


/* 1. Create the 2-column Grid */
.socmed {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Forced 2 columns */
  gap: 20px;
  padding: 0 0 5rem;
}

/* 2. Style the Card Container */
.socmed .div {
  position: relative; /* This allows absolute positioning inside */
  border-radius: 12px;
  overflow: hidden; /* Clips the images to the rounded corners */
  aspect-ratio: 1 / 1; /* Keeps cards square (optional) */
  transition: .3s ease-in-out;
}
.socmed .div:hover{
	opacity: .8;
	transform: translateY(-5px);
}

/* 3. The Main Background Image */
.socmed .div img:not(.icon) {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the area without stretching */
  display: block;
}

/* 4. Position the Icon (Top Left) */
.socmed .icon {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px; /* Adjust size as needed */
  height: 30px;
  z-index: 2;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); /* Makes icon pop */
}

/* 5. Position the Text (Bottom Center) */
.socmed p {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%); /* Centers the element perfectly */
  margin: 0;
  color: white;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  padding: 5px 15px;
  border-radius: 20px;
  font-family: sans-serif;
  font-weight: bold;
  backdrop-filter: blur(4px); /* Modern frosted glass effect */
  z-index: 2;
}

/* 6. Responsive adjustment for very small screens */
/* @media (max-width: 480px) {
  .socmed {
    grid-template-columns: 1fr;
  }
} */


footer{
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	border-top: 1.5px solid #aaa;
	padding: 1.5rem 1rem 3.5rem;
}

footer img{
	width: 7rem;
	border-radius: 50%;
	margin: 2rem 0;
}

footer p{
	font-size: 1.2rem;
}