:root {
    --drop-shadow-color: rgb(70, 100, 160, 1);
    --highlight-color: rgb(241, 161, 113);
    --background-color: rgb(81, 176, 211);
    --secondary-color: rgb(70, 100, 160, 1);
    --text-color: white;
    --contact-color: rgb(39, 60, 103);
    --footer-color: black;
}

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

@font-face {
    font-family: Borsok;
    src: url('media/borsok-font/borsok-font.otf') format('opentype'),
        url('media/borsok-font/borsok.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', 'Courier New', monospace;
    line-height: 1.6;
    letter-spacing: 0.05rem;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: linear-gradient(to bottom, rgba(81, 176, 211, 0.5), var(--secondary-color)),
                        url("media/white-cloud-blue-sky-sea.jpg");
    background-size: cover;
    position: relative;
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: right;
    background-repeat: no-repeat;
    pointer-events: none;
    z-index: 1000;
    opacity: 1.0; /* Adjust this value to control the overlay opacity */
}

/* Navigation */
.navbar {
    backdrop-filter: blur(4px);
    position: fixed;
    width: 100%;
    background-color: transparent;
    box-shadow: 0 5px 5px rgba(0,0,0,0.1);
    z-index: 1000;
}

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

.logo {
    font-family: Borsok;
    font-size: 1.5rem;
    transform: translateX(2.5rem) translateY(0.3rem) scale(1.5);
    color: rgb(255, 204, 0);
    text-shadow: 2px 2px 2px rgb(217, 41, 82);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    text-shadow: 2px 2px 2px var(--drop-shadow-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-color);
}

.banner {
    height: 10rem;
    position: relative;
}

/* Hero Section */
.hero {
    height: 20rem;
    display: flex;
    padding: 5rem;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#video-background {
    position: absolute;
    object-fit: cover;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 125%;
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-color);
    text-shadow: 4px 4px 4px var(--drop-shadow-color);
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 1.0;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 2rem;
}

.projects {
    color: var(--text-color);
    padding-bottom: 3rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.project-card {
    background: white;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
    max-width: 400px;
}

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

.project-card.with-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.project-content {
    font-family: Borsok;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    text-shadow: 2px 2px 2px var(--drop-shadow-color);
}

.project-content h3 {
    color: var(--drop-shadow-color);
    margin-bottom: 0.5rem;
}

.project-date {
    color: #e1f1ff;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.project-tech {
    color: var(--highlight-color);
    font-weight: 750;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.project-details {
    margin: 1rem 0;
    padding-left: 1.2rem;
    flex-grow: 1;
}

.project-iframe {
    width: 100%;
    height: 200px;
    border-radius: 10px;
    margin: 1rem 0;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-iframe:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.project-details li {
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.5;
}

.preview-link {
    display: inline-flex;
    align-items: center;
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.hover-text {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease;
    padding: 1rem;
}

.hover-text h2 {
    line-height: 1.25;
    margin-bottom: 1rem;
}

.preview-link:hover .hover-text {
    opacity: 0.75;
}

.project-link {
    display: inline-flex;
    align-items: center;
    color: var(--highlight-color);
    text-decoration: none;
    font-weight: 500;
    margin-top: auto;
    transition: color 0.3s ease;
}

.project-link i {
    margin-left: 0.5rem;
    font-size: 0.8em;
}

.project-link:hover {
    color: var(--drop-shadow-color);
}

.project-preview {
    background: #f8f9fa;
    border-left: 1px solid #eee;
    display: flex;
    flex-direction: column;
    position: relative;
}

.preview-header {
    height: 40px;
    background: #f1f3f4;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.preview-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 6px;
}

.preview-dot.red { background-color: #ff5f56; }
.preview-dot.yellow { background-color: #ffbd2e; }
.preview-dot.green { background-color: #27c93f; }

.preview-iframe-container {
    flex-grow: 1;
    overflow: hidden;
    position: relative;
}

.preview-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .preview-image {
    transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 992px) {
    .project-card.with-preview {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }
    
    .project-preview {
        border-left: none;
        border-top: 1px solid #eee;
        height: 300px;
    }
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
    background-color: var(--contact-color);
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.social-icon {
    font-size: 1.5rem;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: var(--highlight-color);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--footer-color);
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
}
