:root {
    --primary-color: #4BB6E8;
    --secondary-color: #333333;
    --accent-color: #1e73be;
    --text-light: #f8f9fa;
    --text-dark: #2c3e50;
    --card-shadow: 0 20px 40px rgba(75, 182, 232, 0.15);
}
/* Hero Section Styles for Programming Portfolio */
.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)),
        url("https://images.pexels.com/photos/3861972/pexels-photo-3861972.jpeg");
    background-size: cover;
    background-position: center;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.hero-content p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

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

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

@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 400px;
    }
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 300px;
    }
    .hero-content h1 {
        font-size: 32px;
    }
}


/* iMac Mockup */
.project-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    height: 100%;
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(75, 182, 232, 0.15);
}


.imac-mockup {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 2rem;
    cursor: pointer;
}

.imac-screen {
    background: #1a1a1a;
    border-radius: 15px 15px 8px 8px;
    border: 8px solid #2c2c2c;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.screen-content {
    width: 100%;
    position: absolute;
    top: 0;
    transition: top 15s linear;
    border-radius: 8px;
}

.imac-base {
    width: 120px;
    height: 15px;
    background: linear-gradient(to bottom, #666, #444);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    position: relative;
}

.imac-stand {
    width: 40px;
    height: 60px;
    background: linear-gradient(to bottom, #888, #666);
    margin: 0 auto;
    border-radius: 6px;
    position: relative;
}

.imac-stand::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 20px;
    background: linear-gradient(to bottom, #999, #777);
    border-radius: 10px;
}

/* Project Info */
.project-info {
    text-align: center;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.project-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tech-tag {
    background: var(--primary-color);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    display: block;
}

.stat-label {
    font-size: 1rem;
    opacity: 0.8;
    margin-top: 0.5rem;
}

/* Loading Animation */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Logo Overlay */
.logo-overlay {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 50px;
    height: auto;
    opacity: 0.95;
    z-index: 3;
    pointer-events: none;
}

/* Adjust for 2 cards per row */
.programming-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 1200px) {
    .programming-portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .programming-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .project-card {
        padding: 1.5rem;
    }
}

.image-slider-controls button {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    margin: 0 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}
.image-slider-controls button:hover {
    background: var(--accent-color);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: background 0.2s;
}
.slider-arrow:hover {
    background: var(--primary-color);
}
.slider-arrow-left {
    left: 10px;
}
.slider-arrow-right {
    right: 10px;
}
.image-slider-controls { display: none; }

.image-counter {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 10;
    direction: ltr;
}
