/**
 * Digitaalinen kaksonen - Päätyylit
 * Yhdistetty CSS-tiedosto, joka sisältää kaikki sivuston tyylit
 */

/* CSS-muuttujat */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --link-color: #1e90ff;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --card-bg: #ffffff;
    --dark-bg: #1a2530;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --section-bg-color: #f7f7f7;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Typografia */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
    font-weight: 500;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Ruudukko */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.row.g-0 {
    margin-right: 0;
    margin-left: 0;
}

.row.g-0 > [class*="col-"] {
    padding-right: 0;
    padding-left: 0;
}

[class*="col-"] {
    padding-right: 15px;
    padding-left: 15px;
    width: 100%;
}

.col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
}

@media (min-width: 768px) {
    .col-md-6 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    padding: 15px 20px;
    transition: all var(--transition-speed) ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar ul li {
    position: relative;
}

.navbar ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    font-size: 0.95em;
    transition: all var(--transition-speed) ease;
    border-radius: var(--border-radius);
}

.navbar ul li a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.9);
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9em;
}

.dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.3s ease-out;
}

.menu-toggle {
    display: none;
    color: white;
    font-size: 1.5em;
    cursor: pointer;
}

.breadcrumb {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85em;
    margin-left: auto;
    padding-left: 20px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

.breadcrumb a:hover {
    color: white;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    color: white;
    padding: 70px 20px 20px;
    overflow-y: auto;
    overflow-x: hidden;
}

.hero-header {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    max-width: 800px;
    width: 100%;
}

.hero-title {
    font-size: 2.8em;
    margin-bottom: 0.2em;
    animation: fadeInUp 1s ease-out;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1em;
    margin-bottom: 0.5em;
    animation: fadeInUp 1.2s ease-out;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Twin Diagram */
.twin-diagram {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    gap: 15px;
}

.twin-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.twin-box {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 1;
    max-width: 800px;
}

.twin-box h3 {
    font-size: 1.1em;
    margin-bottom: 10px;
    text-align: center;
    padding: 5px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
}

.twin-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.twin-content.vertical {
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.twin-content.vertical .twin-item {
    width: 100%;
    min-width: 100%;
}

.twin-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 12px;
    width: calc(33.33% - 10px);
    min-width: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.twin-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.twin-item i {
    font-size: 1.8em;
    margin-bottom: 8px;
}

.twin-item span {
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.twin-item small {
    font-size: 0.75em;
    opacity: 0.8;
}

.twin-item.wide {
    width: 100%;
    flex-direction: row;
    text-align: left;
    padding: 15px;
    flex-wrap: wrap;
}

.twin-item.wide i {
    font-size: 2em;
    margin-right: 15px;
    margin-bottom: 0;
}

.twin-item.wide span {
    font-size: 1.1em;
    margin-right: auto;
}

.twin-item.wide p {
    width: 100%;
    margin: 10px 0;
    padding-left: 40px;
    font-size: 0.9em;
    line-height: 1.4;
}

.twin-item.wide .read-more-btn {
    margin-left: 40px;
}

/* Physical, Connection, Digital boxes */
.twin-box.physical {
    border-color: rgba(76, 175, 80, 0.4);
}

.twin-box.connection {
    border-color: rgba(33, 150, 243, 0.4);
}

.twin-box.digital {
    border-color: rgba(156, 39, 176, 0.4);
}

.twin-box.about-me {
    border-color: rgba(255, 152, 0, 0.4);
    background: rgba(255, 255, 255, 0.15);
}

/* Read More Button */
.read-more-btn {
    display: inline-block;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.75em;
    transition: all var(--transition-speed) ease;
    margin-top: 5px;
}

.read-more-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Mobile Tech Navigation */
.mobile-tech-nav {
    display: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
    padding: 0 15px;
    width: 100%;
}

.tech-button {
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.8em;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.tech-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Architecture Container */
.architecture-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    gap: 15px;
    overflow-y: auto;
}

.architecture-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.arch-column {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arch-column h3 {
    margin-bottom: 5px;
    font-size: 1.1em;
    text-align: center;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: var(--border-radius);
}

.arch-box {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 180px;
    overflow-y: auto;
}

.arch-box:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

.arch-box .icon-title {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.arch-box .icon-title i {
    font-size: 1.3em;
    margin-right: 8px;
}

.arch-box .icon-title span {
    font-size: 1.1em;
    font-weight: 600;
}

.arch-box .details {
    text-align: left;
    margin-top: 8px;
    margin-bottom: 10px;
    flex: 1;
    font-size: 0.9em;
}

.arch-box h4 {
    margin-top: 8px;
    margin-bottom: 4px;
    font-size: 0.95em;
}

.arch-box ul {
    list-style-type: none;
    padding-left: 8px;
    margin: 0;
}

.arch-box ul li {
    margin-bottom: 3px;
    font-size: 0.85em;
}

/* About Me Container */
.about-me-container {
    width: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
}

.arch-box.full-width {
    max-width: 100%;
    background: rgba(255, 255, 255, 0.15);
    max-height: 150px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.details-grid .details-column h4 {
    font-size: 0.95em;
    margin-bottom: 5px;
}

.details-grid .details-column p,
.details-grid .details-column ul {
    font-size: 0.85em;
}

/* Tech Sections */
.tech-section {
    padding: 120px 0 60px;
    background: var(--section-bg-color);
    color: var(--text-color);
    scroll-margin-top: 100px;
}

.tech-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.tech-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Tech Card */
.tech-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    cursor: pointer;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-top: 4px solid var(--primary-color);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.tech-card[data-target="embedded"] {
    border-top-color: #4CAF50;
}

.tech-card[data-target="automation"] {
    border-top-color: #FF5722;
}

.tech-card[data-target="iot"] {
    border-top-color: #2196F3;
}

.tech-card[data-target="azure-iot"] {
    border-top-color: #0078D4;
}

.tech-card[data-target="aws-iot"] {
    border-top-color: #FF9900;
}

.tech-card[data-target="ai-machinelearning"] {
    border-top-color: #9C27B0;
}

.tech-card[data-target="pilvipalvelut"] {
    border-top-color: #607D8B;
}

.tech-card[data-target="grafana"] {
    border-top-color: #F05A28;
}

.tech-card[data-target="vr"] {
    border-top-color: #673AB7;
}

.icon-title {
    display: flex;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.icon-title i {
    font-size: 2em;
    margin-right: 15px;
    color: var(--primary-color);
}

.tech-card[data-target="embedded"] .icon-title i {
    color: #4CAF50;
}

.tech-card[data-target="automation"] .icon-title i {
    color: #FF5722;
}

.tech-card[data-target="iot"] .icon-title i {
    color: #2196F3;
}

.tech-card[data-target="azure-iot"] .icon-title i {
    color: #0078D4;
}

.tech-card[data-target="aws-iot"] .icon-title i {
    color: #FF9900;
}

.tech-card[data-target="ai-machinelearning"] .icon-title i {
    color: #9C27B0;
}

.tech-card[data-target="pilvipalvelut"] .icon-title i {
    color: #607D8B;
}

.tech-card[data-target="grafana"] .icon-title i {
    color: #F05A28;
}

.tech-card[data-target="vr"] .icon-title i {
    color: #673AB7;
}

.icon-title span {
    font-size: 1.2em;
    font-weight: 600;
}

.details {
    padding: 15px 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.details-column {
    flex: 1;
}

.details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.details li {
    margin-bottom: 10px;
    position: relative;
}

.details li:last-child {
    margin-bottom: 0;
}

.details a {
    color: var(--text-color);
    text-decoration: none;
    display: block;
    padding: 8px 10px;
    border-radius: var(--border-radius);
    transition: all var(--transition-speed) ease;
    font-size: 0.95em;
}

.details a:hover {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 15px;
    color: var(--primary-color);
}

.details a::before {
    content: '→';
    margin-right: 8px;
    color: var(--primary-color);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.details a:hover::before {
    opacity: 1;
}

/* Content Page */
.content-page {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: none;
    scroll-margin-top: 120px;
}

.content-page.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.content-page h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5em;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    position: relative;
}

.content-page h3::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--secondary-color);
}

.content-page h4 {
    margin-top: 25px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.2em;
    font-weight: 600;
}

.content-page p {
    margin-bottom: 15px;
    line-height: 1.6;
    color: var(--text-color);
}

.content-page a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    font-weight: 500;
}

.content-page a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.content-page ul, .content-page ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-page ul {
    list-style-type: none;
    padding-left: 0;
}

.content-page ul li {
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
}

.content-page ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2em;
    line-height: 1;
}

.content-page ol {
    counter-reset: item;
    list-style-type: none;
    padding-left: 0;
}

.content-page ol li {
    margin-bottom: 12px;
    line-height: 1.5;
    position: relative;
    padding-left: 30px;
    counter-increment: item;
}

.content-page ol li::before {
    content: counter(item) ".";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 600;
}

.content-page li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.content-page table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

.content-page th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
}

.content-page td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.content-page tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.02);
}

.content-page tr:last-child td {
    border-bottom: none;
}

.content-page tr:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.content-page img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 20px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.content-page .image-container {
    margin: 25px 0;
    text-align: center;
}

.content-page .image-caption {
    font-size: 0.9em;
    color: #666;
    margin-top: 8px;
    text-align: center;
    font-style: italic;
}

.content-page .highlight-box {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content-page .info-box {
    background-color: rgba(33, 150, 243, 0.05);
    border-left: 4px solid #2196F3;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content-page .warning-box {
    background-color: rgba(255, 152, 0, 0.05);
    border-left: 4px solid #FF9800;
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.content-page pre {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin: 20px 0;
    font-family: monospace;
    line-height: 1.4;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.content-page code {
    font-family: monospace;
    background-color: #f5f5f5;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #e91e63;
}

.content-page .two-column {
    display: flex;
    gap: 30px;
    margin: 30px 0;
}

.content-page .column {
    flex: 1;
}

@media (max-width: 768px) {
    .content-page .two-column {
        flex-direction: column;
    }
}

/* About Section */
#about {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 80px 0;
}

#about h2 {
    color: white;
}

#about h2::after {
    background: white;
}

.about-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 30px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.about-content h3 {
    margin-bottom: 20px;
    font-size: 1.5em;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-content ul {
    list-style: none;
    padding-left: 0;
}

.about-content ul li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.about-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Tietoa minusta -osion linkit */
#about a {
    font-weight: 700;
    color: #154973;
}

#about a:hover {
    text-decoration: underline;
    color: #0d2d47;
}

/* Full Width Cards */
.full-width-card {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 20px;
    display: none;
    animation: fadeInUp 0.3s ease-out;
    position: relative;
    padding: 30px;
    line-height: 1.6;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.full-width-card.active {
    display: block;
}

.full-width-card p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.full-width-card h3 {
    margin-top: 1.5em;
    margin-bottom: 0.8em;
    font-size: 1.4em;
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.3em;
    display: inline-block;
}

.full-width-card h4 {
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    font-size: 1.2em;
    color: var(--primary-color);
}

.full-width-card ul, 
.full-width-card ol {
    margin-left: 1.5em;
    margin-bottom: 1.5em;
    padding-left: 1em;
}

.full-width-card li {
    margin-bottom: 0.5em;
}

.full-width-card .close-button {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--primary-color);
    transition: color var(--transition-speed) ease;
}

.full-width-card .close-button:hover {
    color: var(--accent-color);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.card-grid-item {
    background-color: var(--light-bg);
    border-radius: var(--border-radius);
    padding: 15px;
    box-shadow: var(--box-shadow);
}

.card-grid-item h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Content Styles */
.content-page {
    padding: 20px;
    background-color: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.content-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-bg);
}

.content-body {
    margin-bottom: 20px;
}

.content-section {
    margin-bottom: 30px;
}

.content-media {
    margin: 20px 0;
    text-align: center;
}

.content-media img {
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.content-media figcaption {
    margin-top: 10px;
    font-style: italic;
    color: var(--text-color);
}

.content-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--light-bg);
}

.related-content {
    margin-bottom: 20px;
}

.navigation-links {
    display: flex;
    justify-content: space-between;
}

.prev-link, .next-link {
    padding: 10px 15px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    transition: background-color var(--transition-speed) ease;
}

.prev-link:hover, .next-link:hover {
    background-color: var(--secondary-color);
    color: white;
}

/* Footer */
footer {
    background-color: #222;
    color: white;
    padding: 60px 0 30px;
}

footer h3 {
    color: white;
    margin-bottom: 20px;
    font-size: 1.5em;
    position: relative;
    padding-bottom: 10px;
}

footer h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary-color);
}

footer p {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    display: inline-block;
}

.footer-links a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-links a i {
    margin-right: 8px;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    transition: all var(--transition-speed) ease;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9em;
}

.copyright a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
}

.copyright a:hover {
    color: white;
}

/* Animaatiot */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Responsiivisuus */
@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2.2em;
    }
    
    .hero-subtitle {
        font-size: 1em;
    }
    
    .twin-item {
        width: calc(50% - 10px);
    }
}

@media (max-width: 992px) {
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .hero-title {
        font-size: 2em;
    }
    
    .hero-subtitle {
        font-size: 0.9em;
    }
    
    .hero {
        padding: 60px 15px 30px;
    }
    
    .twin-row {
        flex-direction: column;
        align-items: center;
    }
    
    .twin-box {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 10px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .nav-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    #nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    #nav-menu.active {
        display: flex;
    }
    
    .navbar ul li {
        width: 100%;
    }
    
    .navbar ul li a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        background-color: rgba(0, 0, 0, 0.1);
    }
    
    .dropdown.active .dropdown-content {
        display: block;
    }
    
    /* Hero section */
    .hero {
        height: auto;
        min-height: 100vh;
        padding-top: 60px;
        padding-bottom: 30px;
    }
    
    .hero-title {
        font-size: 1.8em;
    }
    
    .hero-subtitle {
        font-size: 0.9em;
    }
    
    /* Twin Diagram */
    .twin-diagram {
        display: none;
    }
    
    .mobile-tech-nav {
        display: flex;
    }
    
    /* Tech Grid */
    .tech-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5em;
    }
    
    .tech-section h2 {
        font-size: 1.8em;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Lisätään luokat eri korkeuksille */
.height-120 {
    min-height: 120px;
    height: 120px;
}

.height-190 {
    min-height: 190px;
    height: 190px;
}

.height-280 {
    min-height: 280px;
    height: 280px;
}

.height-350 {
    min-height: 350px;
    height: 350px;
}

/* Sisäkkäiset listat */
.content-page ul ul, 
.content-page ol ol,
.content-page ul ol,
.content-page ol ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.content-page ul ul li::before {
    content: '◦';
}

.content-page ul ul ul li::before {
    content: '▪';
    font-size: 0.8em;
}
