/* Custom CSS for gudjonsson.com */

:root {
    --primary-color: #00415a;
    --secondary-color: #0056b3;
    --accent-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
}

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

/* Header & Navigation */
.navbar-brand {
    font-weight: 600;
    letter-spacing: -0.5px;
}

.navbar {
    padding: 1rem 0;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 65, 90, 0.8), rgba(0, 65, 90, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 5rem 0;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

.profile-image {
    border-radius: 50%;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    max-width: 250px;
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
}

/* Section Styling */
.section-title {
    color: var(--primary-color);
    position: relative;
    margin-bottom: 2rem;
    font-weight: 600;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--accent-color);
    margin-top: 0.5rem;
}

/* Card Styling */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem;
}

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

.card-title {
    color: var(--primary-color);
    font-weight: 600;
}

.card-img-top {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    height: 200px;
    object-fit: cover;
}

/* Project Cards */
.project-card {
    height: 100%;
}

.project-card .card-body {
    display: flex;
    flex-direction: column;
}

.project-card .btn {
    margin-top: auto;
}

/* Browser Frame for Project Images */
.browser-frame {
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.browser-frame .browser-header {
    background-color: #f5f5f5;
    padding: 6px 12px; /* Redusert padding */
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
}

.browser-frame .browser-buttons {
    display: flex;
    margin-right: 15px;
}

.browser-frame .browser-button {
    width: 10px; /* Mindre knapper */
    height: 10px; /* Mindre knapper */
    border-radius: 50%;
    margin-right: 5px; /* Mindre mellomrom */
}

.browser-frame .browser-button.red {
    background-color: #ff5f57;
}

.browser-frame .browser-button.yellow {
    background-color: #ffbd2e;
}

.browser-frame .browser-button.green {
    background-color: #28c940;
}

.browser-frame .browser-address {
    flex-grow: 1;
    background-color: #ffffff;
    border-radius: 4px;
    height: 20px; /* Lavere høyde */
    font-size: 11px; /* Mindre tekst */
    color: #777;
    display: flex;
    align-items: center;
    padding: 0 8px; /* Mindre padding */
}

.browser-frame .browser-content img {
    width: 100%;
    display: block;
    height: 180px; /* Redusert høyde */
    object-fit: cover;
    object-position: top; /* Viser toppen av bildet */
}

/* Skills */
.skill-item {
    background-color: var(--light-color);
    border-radius: 30px;
    padding: 0.5rem 1.25rem;
    margin: 0.25rem;
    display: inline-block;
    font-weight: 500;
}

/* Timeline for CV */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--accent-color);
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--accent-color);
    border: 3px solid white;
}

.timeline-date {
    font-weight: 600;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

.social-icons a {
    transition: opacity 0.3s ease;
}

.social-icons a:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 3rem 0;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .profile-image {
        max-width: 200px;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .profile-image {
        max-width: 150px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
