/* 
Theme name: Filip Portfolio
Author: Filip Jotic
Author URI: https:filipjotic.dev
Description: Custom WordPress tema
Version: 1.0
*/

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

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

body {
    font-family: "JetBrains Mono", monospace!important;
    scroll-behavior: smooth;
    font-size: 16px;
}

.project1 {
	 margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea, #764ba2);
}

/* Nav */

nav {
    background-color: #0f172a;
}

.nav-item a {
	font-size: 1rem;
    color: #fff;
}

.nav-item a:hover {
    color: #38bdf8;
}

/* End of Nav */

/* Logo */

.portfolio-logo {
    color: #fff!important;
    font-weight: 700;
    font-size: 1.2rem!important;
	font-family: "JetBrains Mono", monospace;
}

.portfolio-logo:hover {
    color: #38bdf8;
}

/* End of Logo */

/* Hero */
.code-editor {
    background-color: #0f172a;
    border-radius: 10px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    color: #eee;
    overflow: hidden;
}

.editor-header {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    background-color: #2d2d2d;
    border-bottom: 1px solid #444;
}

.circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.red {
    background-color: #ff5f56;
}

.yellow {
    background-color: #ffbd2e;
}

.green {
    background-color: #27c93f;
}

.filename {
    margin-left: auto;
    color: #eee;
    font-size: 14px;
}

.editor-body {
    padding: 15px;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: auto;
}

.editor-body code {
    white-space: pre-wrap;
}

.keyword {
    color: #569cd6;
}

.value {
    font-family: "JetBrains Mono", monospace;
    color: rgb(52, 242, 0);
}

.editor-footer {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px;
    background-color: #2d2d2d;
    border-top: 1px solid #444;
    font-size: 12px;
    color: #eee;
    font-family: "JetBrains Mono", monospace;
}

.hero {
    background: url('img/hero.jpg') no-repeat bottom center;
    background-size: cover;
    height: 100vh;
    position: relative;
    color: white;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.7);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    padding-top: 120px;
    z-index: 2;
    text-align: center;
}

.logo-icon {
    font-family: 'JetBrains', monospace;
    font-weight: 900;
    color: white;
    padding: 0.4rem 0.7rem;
    border-radius: 0.3rem;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    width: 60px;
    height: 50px;
}

/* Hero end */

/* About */
#about {
    background-color: #eee;
    padding: 80px;
}

#about .txt {
	
}

.about-icon {
    font-size: 2rem;
    color: #0d6efd;
}

/* End of About */

/* Skills */
#skills-wrapper {
    background-color: #0f172a;
    color: #fff;
}

#skills {
    padding: 50px;
    max-width: 900px;
    margin: auto;
    text-align: center;
}

#skills h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 60px;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.skill-item {
    width: 100px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.skill-item img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: 600;
}

/* End of Skills */

/* Projects */
#projects-wrapper {
    width: 100%;
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    padding: 100px;
}

#projects {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    color: #eee;
}

#projects h2 {
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: #000;
}

.project-images img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.project-card img {
    width: 100%;
/*     height: 300px; */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
    filter: brightness(0.9);
}

.project-card h3 {
    margin: 10px 0 8px;
    color: #000;
}

.project-card p {
    color: #000;
    font-size: 0.95rem;
}

.project-details h1 {
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    font-size: 2.4rem;
    color: #fff;
}

.project-details p {
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.6;
    font-size: 1.1rem;
    color: #ccc;
    text-align: center;
}

.projects_one {
    padding: 70px;
}

.back-link {
    display: inline-block;
    text-decoration: none;
    color: #007BFF;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 20px;
}

/* End of Projects */

/* Blog */
.blog-post-wrapper {
  max-width: 800px;
  margin: 100px auto;
  padding: 0 20px;
  color: #222;
  line-height: 1.6;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.post-header {
  border-bottom: 2px solid #f0f0f0;
  padding-bottom: 15px;
  margin-top:100px;
  margin-bottom: 30px;
}

.post-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  margin-top: 50px;
  color: #222;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
}

.post-meta .author,
.post-meta .date {
  margin: 0 5px;
}

.post-image img {
  width: 100%;
  height: auto;
  margin-top: 25px;
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.post-content {
  font-size: 1rem;
  color: #333;
  margin-bottom: 40px;
}

.post-footer {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.post-tags {
  font-style: italic;
  color: #555;
  margin-bottom: 20px;
}

.post-comments {
  margin-top: 30px;
}

.wp-block-heading {
	margin: 50px auto;
}

.form-submit #submit {
	margin-bottom: 50px;
}

/* Responsive */
@media (max-width: 768px) {
  .blog-post-wrapper {
    padding: 0 15px;
  }

  .post-title {
    font-size: 2rem;
  }
}



.blog-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #333;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-content {
    padding: 20px;
}

.blog-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #222;
}

.blog-excerpt {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 15px;
}

.read-more {
    text-decoration: none;
    color: #6a11cb;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #2575fc;
}

/* End of Blog */

/* Contact */
#contact {
    background: linear-gradient(135deg, #f3f4f6 0%, #ffffff 100%);
    padding: 100px 20px;
}

#contact>div {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 50px;
}

#left-side {
    flex: 1 1 400px;
    min-width: 300px;
}

#left-side h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

#left-side p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
}

/* End of Contact */

/* Footer */
.footer {
    background-color: #0f172a;
    color: #fff;
    padding: 40px;
	font-size: 1rem;
}

.footer nav a {
	font-size: 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-left p {
    margin: 0;
}

.footer-right a {
	margin-left: 15px;
    color: #cbd5e1;
    font-size: 1.3rem;
    transition: color 0.3s;
}

.footer-center .footer-nav a {
    margin: 0 15px;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-center .footer-nav a:hover {
    color: #38bdf8;
}

.footer-right a:hover {
    color: #38bdf8;
}

/* End of Footer */

#comments {
  margin-top: 60px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

#reply-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  background: #f9f9f9;
  box-sizing: border-box;
}

.comment-form input[type="submit"] {
  background-color: #0073aa;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
  background-color: #005f8d;
}

.comment-list {
  list-style: none;
  padding-left: 0;
  margin-top: 40px;
}

.comment {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f7f7f7;
  border-radius: 8px;
  border-left: 4px solid #0073aa;
}

.comment .comment-author {
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.comment .comment-meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 10px;
}

.comment .comment-content {
  font-size: 1rem;
  color: #444;
}

/* End of Forms */

.page-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  text-align: center;
}

.page-article img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.1);
  display: block;
  margin: 0 auto;
}

.page-article .row {
  align-items: center;
}

.page-article .col-md-6 {
  padding: 15px;
}

@media (max-width: 767.98px) {
  .page-article .row {
    flex-direction: column;
  }
  .page-article .col-md-6 {
    padding: 0 0 20px 0;
  }
}



/* =========================
   Responsive
========================= */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .navbar .navbar-brand {
        flex-direction: column;
        align-items: flex-start;
    }

    .portfolio-logo {
        font-size: 1rem!important;
        padding-left: 5px;
    }

    .logo-icon {
        display: none;
    }

    .hero-content {
        text-align: center;
        padding: 40px 20px;
    }

    .hero-content img {
        width: 150px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

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

    .hero-content .btn {
        margin: 8px 0;
    }

    #about {
        padding: 0;
    }

    #about .row {
        flex-direction: column-reverse;
    }

    .code-editor {
        margin-bottom: 70px!important;
        overflow-x: auto;
    }

    .about-txt h2 {
        padding-top: 40px;
        font-size: 1.5rem;
        text-align: center;
    }

    .about-txt p {
        font-size: 0.8rem;
		text-align:justify;
    }

    .about-txt .row .col-6 {
        width: 100%;
		padding: 20px 10px;
    }

    /* Skills grid */
    .skills-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 50px;
    }

    .skill-item {
        width: 80px;
        text-align: center;
    }
	
	.skill-item img {
    width: 40px!important;
    height: 40px!important;
    margin-bottom: 8px;
	}

    #skills h2 {
        font-size: 1.5rem;
    }

    #projects-wrapper {
        padding: 0px;
    }

    .projects-container {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .project-card img {
        width: 100%;
        height: auto;
    }

    .project-card h3 {
        font-size: 1.7rem;
    }

    #projects h2 {
		font-size: 1.8rem!important;
        padding-top: 50px;
    }

    .blog-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .blog-card img {
        width: 100%;
        height: auto;
    }

    .blog-title {
        text-align: center;
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .blog-excerpt {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    #contact>div {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 20px;
    }

    #left-side {
        width: 100%;
    }

    #left-side h2 {
        text-align: center;
		font-size: 1.7rem;
    }

    #left-side div,
    #left-side p {
        font-size: 0.95rem;
    }

    #contact {
        padding: 0;
    }

    #contact img {
        width: 100%;
        height: auto;
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-nav a {
        display: inline-block;
		margin: 5px 10px;
		font-size: 0.8rem!important;

    }
	
	.footer-left p {
		font-size: 0.8rem;
	}

    .footer-right a {
        font-size: 20px;
        margin: 0 8px;
    }
}

@media (max-width: 1024px) and (min-width: 601px) {

    #about .col-lg-6 {
        max-width: 100%;
    }

    #about .code-editor {
        margin-bottom: 30px;
    }

    #about .editor-body pre {
        white-space: pre-wrap;
        word-break: break-word;
    }

    #about .about-txt {
        text-align: center;
        padding: 0 15px;
    }

    #about .about-txt h2 {
        font-size: 28px;
    }

    #about .about-txt .row>div {
        justify-content: center;
        text-align: left;
    }
}