/* ============================================
   Pages Common Styles
   Consolidated styles for all page templates
   ============================================ */

/* Base HTML & Body Styles */
html {
    scroll-behavior: smooth;
}

body {
    background-color: #1a2639;
    color: #d4d4dc;
    animation: fadeIn 1s ease-in;
    transition: background-color 0.3s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes skillFill {
    from { width: 0; }
    to { width: 100%; }
}

/* Typography */
h1, h2, h3, .titleabout {
    color: #3e8989;
}

h2, h3 {
    animation: slideIn 0.8s ease-out;
}

/* Layout Containers */
.content-container {
    padding: 0 5%;
    margin: 100px auto 0;
    max-width: 1400px;
    min-height: auto;
    width: 100%;
}

.page-container {
    padding: 0 5%;
    margin: 100px auto 0;
    max-width: 1400px;
    min-height: auto;
    width: 100%;
}

/* Mobile styles now in modern.css */

/* Links */
a {
    text-decoration: none;
    color: #84a9ac;
    transition: color 0.3s ease;
    position: relative;
}

a:hover {
    color: #e8e8e8;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #84a9ac;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

a:hover::after {
    transform: scaleX(1);
}

body p a {
    text-decoration: none;
    color: #84a9ac;
    padding: 0;
    position: relative;
}

body p a:hover {
    color: #e8e8e8;
}

body p a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #84a9ac;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

body p a:hover::after {
    transform: scaleX(1);
}

p a {
    text-decoration: none;
    color: #84a9ac;
    padding: 0;
    position: relative;
}

p a:hover {
    color: #e8e8e8;
}

p a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #84a9ac;
    transform: scaleX(0);
    transition: transform 0.3s ease-out;
}

p a:hover::after {
    transform: scaleX(1);
}

/* Tables */
table {
    table-layout: fixed;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    border-collapse: separate;
    border-spacing: 10px;
    display: table;
}

th {
    text-align: center;
    width: 33.33%;
    padding: 10px;
}

td {
    text-align: center;
    width: 33.33%;
    padding: 20px;
    vertical-align: top;
}

/* Box Element */
box {
    font-size: 15px;
    padding: 7px 10px 7px 10px;
    margin: 0px 5px 0px 5px;
    height: 29px;
    text-align: center;
}

/* Skills & Progress Bars */
.container {
    width: 80%;
    margin-left: 10%;
    margin-top: 5px;
    margin-bottom: 5px;
    background-color: #2c3e50;
    transition: background-color 0.3s ease;
}

.skills {
    text-align: right;
    padding: 5px;
    color: white;
    animation: skillFill 2s ease-out;
    transition: background-color 0.3s ease;
}

.fluent {
    width: 100%;
    background-color: #3498db;
}

.good {
    width: 67%;
    background-color: #2980b9;
}

.familiar {
    width: 33%;
    background-color: #1f618d;
}

/* Staggered animation delays for skill bars */
.container:nth-child(1) .skills { animation-delay: 0.1s; }
.container:nth-child(2) .skills { animation-delay: 0.2s; }
.container:nth-child(3) .skills { animation-delay: 0.3s; }

/* Tooltips */
.tooltip {
    position: relative;
    display: inline-block;
    border-bottom: 1px dotted #d4d4dc;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #34495e;
    color: #FFFFFF;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    top: -5px;
    left: 110%;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #34495e transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Skill Icons */
#skillicon {
    color: #EEEEEE;
    margin: 5px;
    transition: transform 0.3s ease;
}

#skillicon:hover {
    color: #FFFFFF;
    transform: rotate(10deg);
}

/* Portfolio Items - hover effects now in modern.css */

/* Images */
img {
    max-width: 100%;
    height: auto;
    margin: 10px auto;
    display: block;
}

.card img {
    width: 100%;
    height: auto;
    margin: 1rem 0;
}

/* Blog Styles */
* {
    box-sizing: border-box;
}

.header {
    padding-top: 100px;
    padding-bottom: 30px;
    font-size: 36px;
    text-align: center;
    color: #3e8989;
}

.leftcolumn {
    float: left;
    width: 30%;
}

.rightcolumn {
    float: left;
    width: 70%;
    padding-left: 20px;
}

.card {
    background-color: #2c3e50;
    color: #d4d4dc;
    padding: 20px;
    margin-top: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card h2 {
    color: #3e8989;
}

.card a {
    color: #84a9ac;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card a:hover {
    color: #e8e8e8;
}

.row:after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive Blog Layout */
@media screen and (max-width: 800px) {
    .leftcolumn,
    .rightcolumn {
        width: 100%;
        padding: 0;
    }
}

/* Center-aligned text utility */
.text-center {
    text-align: center;
}

/* Image utilities */
.img-float-right {
    width: 35%;
    border: 0;
    float: right;
    margin: 20px;
}

.img-width-70 {
    width: 70%;
    margin: 10px;
}

.img-width-50 {
    width: 50%;
}

.img-width-30 {
    width: 30%;
}

.img-width-27 {
    width: 27%;
}

.img-width-22 {
    width: 22%;
}

.img-width-20 {
    width: 20%;
    border: 0;
}

.img-width-40 {
    width: 40%;
    border: 0;
}

