/* Global Styles */
:root {
    --white: #FFFFFF;
    --soft-gray: #F5F5F5;
    --dark-gray: #333333;
    --muted-blue: #007BFF;
    --light-blue: #e6f2ff;
    --border-gray: #EEEEEE;
}

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

html {
    font-size: 120%; /* Increase everything by 20% */
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 1rem; /* Changed from 16px to 1rem for proper scaling */
}

.container {
    width: 85%;
    max-width: 1440px; /* Increased from 1200px by 20% */
    margin: 0 auto;
    padding: 0 1rem; /* Changed from 15px to 1rem */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    margin-bottom: 1.25rem; /* Changed from 20px to 1.25rem */
}

a {
    text-decoration: none;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--muted-blue);
}

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

/* Header and Navigation */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0; /* Changed from 20px to 1.25rem */
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-gray);
}

/* Add styling for logo when it's a link */
a.logo {
    text-decoration: none;
    color: var(--dark-gray);
}

a.logo:hover {
    color: var(--muted-blue);
}

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

.nav-links li {
    margin-left: 1.875rem; /* Changed from 30px to 1.875rem */
}

.nav-links a {
    font-weight: 400;
    position: relative;
}

.nav-links a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 0.125rem; /* Changed from 2px to 0.125rem */
    background: var(--muted-blue);
    bottom: -0.3125rem; /* Changed from -5px to -0.3125rem */
    left: 0;
}

.nav-links a:hover:after,
.nav-links a.active:after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 1.5625rem; /* Changed from 25px to 1.5625rem */
    height: 0.1875rem; /* Changed from 3px to 0.1875rem */
    background: var(--dark-gray);
    margin: 0.3125rem 0; /* Changed from 5px to 0.3125rem */
    border-radius: 0.125rem; /* Changed from 2px to 0.125rem */
}

/* Hero Section */
.hero {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 5rem; /* Changed from 80px to 5rem */
    background-color: var(--white);
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.9375rem; /* Changed from 15px to 0.9375rem */
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.875rem; /* Changed from 30px to 1.875rem */
}

.scroll-down {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

/* Fix for Full HD displays (1920x1080) */
@media screen and (min-width: 1920px), screen and (width: 1920px) and (height: 1080px) {
    .hero {
        padding-top: 3rem; /* Add padding to ensure content is visible */
        height: auto;
        min-height: 85vh; /* Increase minimum height to ensure content fits */
    }
    
    .hero-content {
        padding-top: 2rem; /* Add padding to the content container */
    }
}

/* Fix specifically for 1080p displays */
@media screen and (min-width: 1920px) and (max-width: 2048px), 
       screen and (min-width: 1080px) and (max-width: 1200px) {
    .hero {
        padding-top: 5rem;
        margin-top: 2rem;
    }
}

/* Universal desktop fix - ensures hero section displays properly on all desktop sizes */
@media screen and (min-width: 769px) {
    .hero {
        height: auto !important;
        min-height: 60vh !important;
        padding-top: 5.5rem !important;
        margin-top: 0 !important;
        padding-bottom: 1rem !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    
    .hero-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 1rem !important;
        margin-top: 0 !important;
    }
    
    .hero h1 {
        font-size: 2.8rem !important;
        margin-bottom: 1rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-tagline {
        font-size: 1.4rem !important;
        margin-bottom: 1rem !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-description {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Ensure any language-switch-related rendering issues are addressed */
    [data-i18n="hero_title"],
    [data-i18n="hero_tagline1"],
    [data-i18n="hero_tagline2"] {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Specific targeted fix for exactly 1920x1080 resolution (Full HD) */
@media screen and (width: 1920px) and (height: 1080px), 
       screen and (width: 1920px) {
    .hero {
        padding-top: 5.3rem !important;
        margin-top: 0 !important;
        height: auto !important;
        min-height: 60vh !important;
    }
    
    .hero-content {
        padding-top: 0 !important;
        margin-top: 0 !important;
        min-height: auto !important;
    }
    
    .hero h1 {
        margin-top: 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .hero-tagline {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Extra specific rule for Full HD - using class added by JavaScript */
body.fullhd-display .hero {
    padding-top: 5.3rem !important;
    margin-top: 0 !important;
    height: auto !important;
    min-height: 60vh !important;
}

body.fullhd-display .hero-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
    min-height: auto !important;
}

body.fullhd-display .hero h1 {
    margin-top: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.fullhd-display .hero-tagline {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Featured Work Section */
.featured-work {
    padding: 60px 0;
    background-color: var(--soft-gray);
}

.featured-work h2 {
    text-align: center;
    margin-bottom: 40px;
}

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

.gallery-item {
    background: var(--white);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.placeholder-img {
    height: 300px;
    background-color: var(--soft-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    overflow: hidden;
    position: relative;
    border-radius: 5px;
}

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

/* Custom rule for crypto trading bots images to show full image without zooming */
#crypto-trading-bots .placeholder-img img {
    object-fit: contain;
    background-color: white; /* Optional: adds a white background */
}

.gallery-item:hover .placeholder-img img {
    transform: scale(1.05);
}

.placeholder-img .loading {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: var(--soft-gray);
    color: var(--muted-blue);
    font-weight: 500;
    position: relative;
}

.placeholder-img .loading:after {
    content: '';
    width: 30px;
    height: 30px;
    border: 3px solid rgba(0, 123, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--muted-blue);
    animation: spin 1s ease-in-out infinite;
    position: absolute;
    top: calc(50% - 15px);
    left: calc(50% - 15px);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.placeholder-img .fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    height: 100%;
    background-color: var(--soft-gray);
    color: #777;
    font-size: 0.9rem;
    font-style: italic;
}

.placeholder-img .fallback .path {
    font-family: monospace;
    background: #f0f0f0;
    padding: 5px 10px;
    border-radius: 3px;
    margin-top: 8px;
    font-size: 0.8rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #ddd;
    color: #333;
    word-break: break-all;
    box-shadow: inset 0 0 2px rgba(0,0,0,0.1);
}

.placeholder-img .fallback .note {
    font-size: 0.75rem;
    color: #999;
    margin-top: 4px;
    font-style: italic;
}

.gallery-item h3 {
    padding: 15px;
    font-size: 1.2rem;
    text-align: center;
}

/* Skills Overview Section */
.skills-overview {
    padding: 80px 0;
    background-color: var(--white);
}

.skills-overview h2 {
    text-align: center;
    margin-bottom: 40px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}

.skill-card {
    background: var(--soft-gray);
    padding: 30px;
    border-radius: 5px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.skill-card i {
    font-size: 2.5rem;
    color: var(--muted-blue);
    margin-bottom: 20px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    margin-bottom: 20px;
    color: #666;
}

.btn-small {
    display: inline-block;
    padding: 0.5rem 0.9375rem; /* Changed from 8px 15px to 0.5rem 0.9375rem */
    background-color: var(--muted-blue);
    color: var(--white);
    border-radius: 0.1875rem; /* Changed from 3px to 0.1875rem */
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.btn-small:hover {
    background-color: #0069d9;
    color: var(--white);
}

/* Footer */
footer {
    background-color: var(--soft-gray);
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo h3 {
    margin-bottom: 0;
}

.footer-links a {
    margin-right: 20px;
}

.social-links a {
    font-size: 1.2rem;
    margin-left: 15px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
    font-size: 0.9rem;
    color: #777;
}

/* Responsive Design */
@media (max-width: 992px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 5rem; /* Changed from 80px to 5rem */
        left: -100%;
        width: 100%;
        height: calc(100vh - 5rem); /* Changed from 80px to 5rem */
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: left 0.5s ease;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.25rem 0; /* Changed from 20px to 1.25rem */
    }
    
    .hamburger {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-logo, .footer-links, .social-links {
        margin-bottom: 1.25rem; /* Changed from 20px to 1.25rem */
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Carousel Styles */
.simple-carousel {
    position: relative;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--soft-gray);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    height: 575px;
}

.carousel-slide {
    min-width: 100%;
    position: absolute;
    top: 0;
    transition: transform 0.5s ease;
}

.image-pair {
    display: flex;
    width: 100%;
    height: 100%;
}

.carousel-image-container {
    flex: 1;
    padding: 5px;
    height: 575px;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 20;
}

.carousel-control {
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: auto;
    z-index: 100;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.carousel-control i {
    font-size: 2rem;
}

.carousel-control:hover {
    background-color: rgba(0, 123, 255, 0.9);
    transform: scale(1.15);
    opacity: 1;
}

.carousel-control.prev {
    left: 20px;
    position: absolute;
}

.carousel-control.next {
    right: 20px;
    position: absolute;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: 8px 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 90;
    backdrop-filter: blur(2px);
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    margin: 0 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: scale(1.1);
}

.indicator.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.7);
}

.indicator::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .image-pair {
        flex-direction: column;
    }
    
    .carousel-track {
        height: 450px;
    }
    
    .carousel-image-container {
        height: 225px;
    }
    
    .carousel-slide img {
        height: 100%;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
}

.carousel-error {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #f8f8f8;
    color: #333;
    font-size: 1.2rem;
    text-align: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .image-pair {
        flex-direction: column;
    }
    
    .carousel-track {
        height: 450px;
    }
    
    .carousel-image-container {
        height: 225px;
    }
    
    .carousel-slide img {
        height: 100%;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
}

/* Language Switcher */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.language-switcher .lang-option {
    display: flex;
    align-items: center;
    margin-left: 10px;
    position: relative;
}

.language-switcher .lang-option:first-child {
    margin-left: 0;
}

.language-switcher img {
    width: 24px;
    height: 12px;
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.language-switcher .lang-option:hover img {
    transform: scale(1.1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.language-switcher .lang-option.active img {
    box-shadow: 0 0 0 2px var(--muted-blue);
}

@media (max-width: 768px) {
    .language-switcher {
        margin: 20px 0 0 0;
        justify-content: center;
    }
    
    .language-switcher .lang-option {
        margin: 0 10px;
    }
}

/* YouTube Video Gallery */
.video-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 1.875rem auto 2.5rem;
    max-width: 1200px;
}

.video-container-wrapper {
    width: 100%;
    text-align: center;
    background-color: var(--white);
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.15);
}

.video-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

.video-description {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: #666;
}

/* YouTube link styles */
.youtube-link-container {
    margin: 1rem auto;
    max-width: 100%;
}

.youtube-video-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.youtube-video-link:hover {
    transform: scale(1.02);
}

.custom-thumbnail {
    position: relative;
    width: 100%;
    /* padding-bottom: 56.25%; */ /* 16:9 aspect ratio - Removed to fit img */
    border-radius: 0.5rem;
    overflow: hidden;
    /* background-color: #333; */ /* Removed background */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.custom-thumbnail img {
    display: block; /* Ensure image takes up space */
    width: 100%;
    height: auto;
    border-radius: 0.5rem; /* Match container radius */
}

.english-thumbnail {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                #2c3e50; /* Fallback background color */
}

.slovenian-thumbnail {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                #34495e; /* Slightly different fallback for visual distinction */
}

/* Specific Video Thumbnails */
/*
#thumbnail-jlo21yTnKRA {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)), 
                url('https://img.youtube.com/vi/jlo21yTnKRA/hqdefault.jpg') center center / cover no-repeat;
}

#thumbnail-Vj4PAJ9Wplk {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                url('https://img.youtube.com/vi/Vj4PAJ9Wplk/hqdefault.jpg') center center / cover no-repeat;
}

#thumbnail---XQLOGYM3E {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                url('https://img.youtube.com/vi/--XQLOGYM3E/hqdefault.jpg') center center / cover no-repeat;
}

#thumbnail-8t_AWxEEsiM {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                url('https://img.youtube.com/vi/8t_AWxEEsiM/hqdefault.jpg') center center / cover no-repeat;
}

#thumbnail-Kvd62wwZOR0 {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5)),
                url('https://img.youtube.com/vi/Kvd62wwZOR0/hqdefault.jpg') center center / cover no-repeat;
}
*/

.play-button-large {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.play-button-large::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 55%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-width: 15px 0 15px 25px;
    border-color: transparent transparent transparent white;
}

.custom-thumbnail::after {
    content: 'YouTube Video';
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.english-thumbnail::after {
    content: 'Accounting Software Demo';
}

.slovenian-thumbnail::after {
    content: 'Predstavitev računovodstva';
}

.external-video-notice {
    text-align: center;
    margin-top: 1rem;
    color: var(--muted-blue);
    font-weight: 500;
    font-size: 0.9rem;
}

.external-video-notice i {
    margin-left: 5px;
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .video-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .video-container-wrapper {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .custom-thumbnail {
        border-radius: 0.375rem;
    }
    
    .video-container-wrapper {
        padding: 1rem;
    }
    
    .video-title {
        font-size: 1.1rem;
    }
    
    .play-button-large {
        width: 60px;
        height: 60px;
    }
    
    .play-button-large::before {
        border-width: 10px 0 10px 18px;
    }
}

/* Hot label for Accounting card */
.hot-label {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    overflow: hidden;
    z-index: 1;
}

.hot-label .hot-text {
    position: absolute;
    display: block;
    width: 120px;
    padding: 5px 0;
    background-color: #ff3b30;
    color: white;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    right: -30px;
    top: 15px;
    transform: rotate(45deg);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* ============================================
   PORTFOLIO SHOWCASE SECTION
   Modern, stunning portfolio display
   ============================================ */

.portfolio-showcase {
    margin: 3rem 0;
    padding: 2.5rem 0;
}

.portfolio-showcase-title {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--dark-gray);
    position: relative;
}

.portfolio-showcase-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--muted-blue), #00d4ff);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

.portfolio-showcase-subtitle {
    text-align: center;
    color: #666;
    font-size: 1rem;
    margin-bottom: 2.5rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.portfolio-card {
    position: relative;
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 123, 255, 0.08);
}

.portfolio-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 123, 255, 0.25),
        0 12px 24px -8px rgba(0, 0, 0, 0.15);
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--muted-blue), #00d4ff, #7c3aed);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover::before {
    opacity: 1;
}

/* Browser mockup for screenshot */
.portfolio-browser {
    background: linear-gradient(180deg, #e5e7eb 0%, #f3f4f6 100%);
    padding: 0.75rem 0.75rem 0;
    position: relative;
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 0.5rem;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    transition: background 0.3s ease;
}

.portfolio-card:hover .browser-dots span:nth-child(1) {
    background: #ef4444;
}

.portfolio-card:hover .browser-dots span:nth-child(2) {
    background: #f59e0b;
}

.portfolio-card:hover .browser-dots span:nth-child(3) {
    background: #22c55e;
}

.browser-url {
    background: #ffffff;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid #e5e7eb;
}

.browser-url i {
    color: #22c55e;
    font-size: 0.7rem;
}

.portfolio-screenshot {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .portfolio-screenshot {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.portfolio-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-name {
    color: var(--muted-blue);
}

.portfolio-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portfolio-badge.live {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
}

.portfolio-badge.live::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.portfolio-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.portfolio-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    color: var(--muted-blue);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
}

.portfolio-tag:hover {
    background: var(--muted-blue);
    color: white;
    transform: translateY(-2px);
}

.portfolio-tag i {
    font-size: 0.7rem;
}

.portfolio-actions {
    display: flex;
    gap: 0.75rem;
}

.portfolio-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.portfolio-btn.primary {
    background: linear-gradient(135deg, var(--muted-blue) 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(0, 123, 255, 0.35);
}

.portfolio-btn.primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #003d80 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.45);
    color: white;
}

.portfolio-btn.secondary {
    background: transparent;
    color: var(--dark-gray);
    border: 2px solid #e5e7eb;
}

.portfolio-btn.secondary:hover {
    border-color: var(--muted-blue);
    color: var(--muted-blue);
    background: rgba(0, 123, 255, 0.05);
}

/* Portfolio Stats Row */
.portfolio-stats {
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    margin: 1rem 0;
    border-top: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
}

.portfolio-stat {
    text-align: center;
}

.portfolio-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--muted-blue);
}

.portfolio-stat-label {
    font-size: 0.7rem;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Special card variants */
.portfolio-card.featured {
    grid-column: span 2;
}

.portfolio-card.featured .portfolio-screenshot {
    height: 280px;
    object-position: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-card.featured {
        grid-column: span 1;
    }
    
    .portfolio-card.featured .portfolio-screenshot {
        height: 200px;
    }
    
    .portfolio-showcase-title {
        font-size: 1.5rem;
    }
    
    .portfolio-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .portfolio-content {
        padding: 1rem;
    }
    
    .portfolio-name {
        font-size: 1.1rem;
    }
    
    .portfolio-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .portfolio-stat {
        flex: 1 1 40%;
    }
} 