﻿/* Base Styles */
:root {
    --primary-color: #1e40af;
    --secondary-color: #3b82f6;
    --accent-color: #60a5fa;
    --text-light: #f3f4f6;
    --text-gray: #9ca3af;
    --dark-bg: #000000;
    --card-bg: rgba(255, 255, 255, 0.05);
    --border-color: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at center, var(--primary-color), var(--dark-bg));
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1;
}

.content {
    position: relative;
    z-index: 2;
}

/* Navigation */
.custom-navbar {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.brand-text {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

    .nav-link:hover {
        color: var(--accent-color) !important;
    }

    .nav-link::after {
        content: "";
        position: absolute;
        bottom: -5px;
        left: 50%;
        width: 0;
        height: 2px;
        background: var(--accent-color);
        transition: all 0.3s ease;
        transform: translateX(-50%);
    }

    .nav-link:hover::after {
        width: 100%;
    }

/* Typography */
.gradient-text {
    background: linear-gradient(135deg, var(--text-light), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
}

/* Hero Section */
.hero-section {
    padding: 100px 0 50px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border: none;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
    }

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
}

    .btn-outline-light:hover {
        background: var(--text-light);
        color: var(--dark-bg);
        transform: translateY(-2px);
    }

/* Hero Graphics */
.hero-graphic {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-card {
    position: absolute;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.card-1 {
    width: 120px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    width: 100px;
    height: 100px;
    top: 60%;
    right: 20%;
    animation: float 6s ease-in-out infinite 2s;
}

.card-3 {
    width: 80px;
    height: 120px;
    bottom: 20%;
    left: 30%;
    animation: float 6s ease-in-out infinite 4s;
}

.center-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0.8;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }
}

/* Page Header */
.page-header {
    padding: 150px 0 50px;
    text-align: center;
}

/* Service Cards */
.services-section {
    padding: 80px 0;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    backdrop-filter: blur(10px);
}

    .service-card:hover {
        transform: translateY(-10px);
        border-color: var(--accent-color);
        box-shadow: 0 20px 40px rgba(96, 165, 250, 0.1);
    }

.service-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
}

.service-card h4 {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.service-card p {
    color: var(--text-gray);
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-gray);
    font-size: 1.1rem;
    margin: 0;
}

/* Skills Section */
.skill-item {
    margin-bottom: 1.5rem;
}

.skill-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 2s ease-in-out;
}

/* About Features */
.about-features {
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
}

/* Portfolio */
.portfolio-filters {
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-light);
    padding: 10px 20px;
    margin: 0 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .filter-btn:hover,
    .filter-btn.active {
        border-color: var(--accent-color);
        background: var(--accent-color);
        color: var(--dark-bg);
    }

.portfolio-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

    .portfolio-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }

.portfolio-image {
    position: relative;
    overflow: hidden;
}

    .portfolio-image img {
        width: 100%;
        height: 250px;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 64, 175, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-content {
    text-align: center;
    padding: 2rem;
}

    .portfolio-content h4 {
        color: white;
        margin-bottom: 1rem;
    }

    .portfolio-content p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 1rem;
    }

.portfolio-category {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    color: white;
}

/* Blog */
.blog-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

    .blog-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-color);
    }

.blog-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.blog-category {
    background: var(--secondary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.blog-date,
.blog-read-time {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.blog-title {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-weight: 600;
}

.blog-excerpt {
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.blog-read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

    .blog-read-more:hover {
        color: var(--secondary-color);
        text-decoration: none;
    }

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.text-gray-300 {
    color: var(--text-gray);
}

.text-gray-400 {
    color: #6b7280;
}

.text-gray-600 {
    color: #4b5563;
}

.border-gray-600 {
    border-color: #4b5563 !important;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    color: var(--text-gray);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

    .social-link:hover {
        color: var(--accent-color);
        transform: translateY(-2px);
    }

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-graphic {
        height: 300px;
        margin-top: 2rem;
    }

    .floating-card {
        display: none;
    }

    .center-circle {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .blog-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Portfolio Details Styles */
.breadcrumb {
    margin-bottom: 2rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--text-gray);
}

.project-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-info-card,
.technologies-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.info-item {
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--secondary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.gallery-item img {
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Blog Details Styles */
.blog-meta-header {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

    .blog-meta-header .blog-category {
        background: var(--secondary-color);
        color: white;
        padding: 6px 15px;
        border-radius: 15px;
        font-size: 0.9rem;
        font-weight: 500;
    }

    .blog-meta-header .blog-date,
    .blog-meta-header .blog-read-time {
        color: var(--text-gray);
        font-size: 1rem;
    }

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.author-avatar .avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.article-image img {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.lead-paragraph {
    font-size: 1.2rem;
    line-height: 1.7;
    padding: 1.5rem;
    background: var(--card-bg);
    border-left: 4px solid var(--accent-color);
    border-radius: 0 10px 10px 0;
}

.article-body {
    line-height: 1.8;
    font-size: 1.1rem;
}

    .article-body h3 {
        color: var(--text-light);
        margin-top: 2rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }

    .article-body p {
        margin-bottom: 1.5rem;
    }

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.article-tag {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .article-tag:hover {
        border-color: var(--accent-color);
        background: var(--accent-color);
        color: var(--dark-bg);
    }

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .share-buttons .share-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        color: var(--text-light);
        text-decoration: none;
        transition: all 0.3s ease;
    }

        .share-buttons .share-btn:hover {
            background: var(--accent-color);
            border-color: var(--accent-color);
            color: var(--dark-bg);
            transform: translateY(-2px);
        }

.related-post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

    .related-post-card:hover {
        transform: translateY(-5px);
        border-color: var(--accent-color);
    }

    .related-post-card h5 a:hover {
        color: var(--accent-color) !important;
    }

/* Responsive adjustments for details pages */
@media (max-width: 768px) {
    .blog-meta-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .author-info {
        flex-direction: column;
        text-align: center;
    }

    .share-buttons {
        margin-bottom: 1rem;
    }

    .tech-tags {
        justify-content: center;
    }
}
