/* ==============================
		päätiedosto
==============================*/

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

body {
	color: #cfd2d4;	
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
	line-height: 1.6;
	background: #0f1419;
	overflow-x: hidden;
}

blockquote {
	font-size:0.9rem;	
	font-style:italic;
	color: #b9bcbd;
	padding-left: 1rem;
	margin: 2rem 0;
	border-left: 1px solid rgb(255, 145, 73);
}

.container {
	display: flex;
	min-height: 100vh;
}

/* ==============================
		VASEN PUOLI - KUVA
==============================*/
.left-panel {
	position: fixed;
	left: 0;
	top: 0;
	width: 30%;
	height: 100vh;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
	z-index: 1;
	border-right: 2px solid #f59e0b;
}

.left-panel::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.0);
	z-index: 2;
}

.left-content {
	position: fixed;
	z-index: 3;
	top: 2rem;
	left: 0rem;				
	margin: 0 2rem;
	padding: 0 2rem;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}

/* ==============================
		NAVIGAATIO
==============================*/
.navigation {
	position: fixed;
	width: 30%;
	bottom: 0rem;
	left: 0rem;
	z-index: 4;
}

.nav-menu {
	display: flex;
	flex-direction: row;
	backdrop-filter: blur(15px);
	padding: 0;
	margin: 0;
	list-style: none;
}

.nav-menu li {
	position: relative;	
	flex: 0 1 auto;
	min-width: 0;
}

.nav-item {
	position: relative;	
	color: #fff;
	font-family: "Saira Semi Condensed", sans-serif;	
	font-size: 1.4rem;
	font-weight: 500;	
	text-align: center;	
	text-transform: uppercase;	
	text-decoration: none;
	text-align: center;
	padding: 0.8rem 0.8rem;	
	display: block;
	white-space: nowrap;
	overflow: visible;	
	transition: all 0.6s ease;
	border-top: 2px solid transparent; 
}

.nav-item i {
    font-size: 2rem;
    line-height: 2rem;
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.nav-item:hover, .nav-item.active {
	color: #fbbf24;
	background: rgba(0, 0, 0, 0.2);
	border-top: 2px solid #FF9149;
	text-shadow: 0px 0px 10px rgba(255, 145, 73, 0.8); 
}

/* ALAVALIKKO TYYLIT */
.submenu {
	position: absolute;
	width: 100%;	
	bottom: 100%;
	left: 0;
	padding: 0;
	margin: 0;
	background: rgba(181, 144, 120, 0.95);
	backdrop-filter: blur(15px);
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
	z-index: 5;
	list-style: none;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 15px 15px 0 0;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

/* Alavalikko näkyväksi hoverin aikana */
.nav-menu li:hover .submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.submenu-item {
	color: #000;
	font-family: "Saira Semi Condensed", sans-serif;
	font-size: 1rem;
	font-weight: 500;
	text-transform: uppercase;
	text-decoration: none;
	padding: 0.6rem 0.8rem;	
	display: block;
	transition: all 0.3s ease;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.submenu-item {
    color: #000;
    font-family: "Saira Semi Condensed", sans-serif;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.6rem 0.8rem;    
    display: block;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-item:hover {
    background: rgba(0, 0, 0, 0.3);
    color: #fbbf24;
    text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); 
    box-shadow: 0 2px 10px rgba(255, 145, 73, 0.2);
    border-radius: 0;
}

.submenu li:first-child .submenu-item:hover {
    border-radius: 15px 15px 0 0;
}

/* ==============================
		OIKEA PUOLI - SISÄLTÖ
==============================*/
.right-panel {
	margin-left: 30%;
	width: 70%;
	min-height: 100vh;
   background-image: url('img/tausta.jpg');
   background-repeat: no-repeat;
   background-attachment: fixed;
	background-position: top right;
	background-size: 70%;
   overflow: hidden;
	color: #e6e6e6;
	padding-bottom: 80px; /* Tilaa alapalkille */
}

/* Oikean puolen sisältö */
.content {
	padding: 3rem;
	margin-bottom: 80px;
}

.content p {
	margin-bottom: 1.5rem;
	font-size: 1rem;
	line-height: 1.7;
}

/* Logojen kontti */
.logos-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70%;
    margin: 1rem 0;
	 position: relative;
    padding: 1rem 1rem;
	 min-height: 120px; /* Minimikorkeus */
}

.logo-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    height: 100%;	 
}

.partner-logo {
    width: 90%;
	 height: auto;
    object-fit: contain;
    filter: grayscale(0%) opacity(1);
    transition: all 0.8s ease;
}

.partner-logo:hover {
    filter: grayscale(100%) opacity(0.7);
}

/* etusivun asettelu */
.etusivu {
	display: grid;
	grid-template-columns: 2fr 1fr;
	grid-template-areas:
		"header header"
		"intro widget"
		"logos logos";
	gap: 2rem;
	align-items: start;
	overflow: hidden;
	}

.etusivu h1 {
	grid-area: header;
	margin: 0 0 1rem 0;
	}

.intro { grid-area: intro; }
.widget { grid-area: widget; }
.logos-container { grid-area: logos; }

.logos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
	}
	
.widget img.mainos {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}	

.mainos {
	margin-left:1rem;
	width: 95%;
	height: 95%;
	object-fit: cover;	
	}


/* Oikean puolen alapalkki */
.right-footer {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 60px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid #78bbf5;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2rem;
}

.right-footer-content {
    color: #cbd5e1;
    text-align: center;
    font-size: 1rem;
	 text-shadow: 0px 0px 10px rgba(120, 174, 222, 0.5); 	 
}

.right-footer-content p {
    margin: 0;
    opacity: 0.8;
}

/* fa Icons tyylitys alapalkissa */
.right-footer-content i {
    color: #78aede;
    font-size: 1.2rem;
	 margin-left: 3rem;
	 padding-right: 0.2rem;
}

.social-media {
    display: flex;
    gap: 1rem;
	 margin-left:5rem;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #7cbbd9;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #78aede;
    color: #0f1419;
    border-radius: 50%;	 
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

@supports (-ms-ime-align: auto) {
	.content h2,
	.content h3 {
		/* Vaaleammat värit Edgelle */
		background: linear-gradient(0deg, red 0%, blue 100%) !important;
		text-shadow: 0 0 10px rgba(255, 255, 255, 0.9) !important; 
	}
	
	.bento-item h4 {
		/* Vaaleammat värit Edgelle */
		background: linear-gradient(180deg, #22d3ee, #67e8f9) !important;
	}
}

/* Webkit-tuki gradientille */
@supports (-webkit-background-clip: text) {
	.content h2 {
		-webkit-background-clip: text;
		-webkit-text-fill-color: transparent;
		background-clip: text;
		color: transparent;
	}
}

/* Jos gradientti ei toimi, käytä tavallista väriä */
@supports not (-webkit-background-clip: text) {
	.content h2 {
		color: #78bbf5 !important;
		background: none !important;
	}
}