/* Global Styles */
:root {
    --primary-color: #4e73df;
    --secondary-color: #1cc88a;
    --dark-color: #2e3951;
    --light-color: #f8f9fc;
    --danger-color: #e74a3b;
    --warning-color: #f6c23e;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
}

.section-title {
    position: relative;
    margin-bottom: 30px;
    font-weight: 700;
    color: var(--dark-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    margin-top: 10px;
}

.text-center .section-title::after {
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(46, 57, 81, 0.9), rgba(46, 57, 81, 0.9)), url('https://source.unsplash.com/random/1920x1080/?coding') no-repeat center center/cover;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About Section */
.skill-bars {
    margin-top: 20px;
}

.skill {
    margin-bottom: 20px;
}

.skill-name {
    margin-bottom: 5px;
    font-weight: 600;
}

.progress {
    height: 10px;
    border-radius: 5px;
}

/* Services Section */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Portfolio Section */
.portfolio-item {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

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

/* Progress Section */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 3px;
    background-color: #e9ecef;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
}

.timeline-badge {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    text-align: center;
    line-height: 50px;
    color: white;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-badge i {
    font-size: 20px;
}

.timeline-panel {
    position: relative;
    width: calc(50% - 40px);
    float: left;
    padding: 20px;
    border-radius: 10px;
    background-color: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-item:nth-child(even) .timeline-panel {
    float: right;
}

.timeline-item:after {
    content: "";
    display: table;
    clear: both;
}

/* Contact Section */
.contact-info {
    padding: 30px;
    background-color: #f8f9fc;
    border-radius: 10px;
    height: 100%;
}

.social-links a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--dark-color);
}

/* Blog Content Styles */
.blog-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
    color: var(--dark-color);
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
}

.blog-content h1 {
    font-size: 2.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.blog-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 0.3rem;
}

.blog-content h3 {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.blog-content h4 {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.blog-content p {
    margin-bottom: 1.5rem;
}

.blog-content ul,
.blog-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.blog-content li {
    margin-bottom: 0.5rem;
}

.blog-content blockquote {
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 10px 10px 0;
    font-style: italic;
}

.blog-content code {
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--danger-color);
    font-family: 'Courier New', monospace;
}

.blog-content pre {
    background-color: var(--dark-color);
    color: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content pre code {
    background-color: transparent;
    padding: 0;
    color: #fff;
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-content table th {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.blog-content table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.blog-content table tbody tr:hover {
    background-color: var(--light-color);
}

.blog-content table tbody tr:last-child td {
    border-bottom: none;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 1.5rem 0;
}

.blog-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px dotted var(--primary-color);
    transition: all 0.3s ease;
}

.blog-content a:hover {
    color: var(--dark-color);
    border-bottom-style: solid;
}

.blog-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    margin: 2rem 0;
    border-radius: 1px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
}

footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .hero-section p {
        font-size: 1.2rem;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-badge {
        left: 40px;
    }

    .timeline-panel {
        width: calc(100% - 90px);
        float: right;
    }

    .timeline-item:nth-child(even) .timeline-panel {
        float: right;
    }
}

@media (max-width: 768px) {
    .hero-section {
        height: 80vh;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

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

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
}

/* Error Pages Styles (404, 500) */
/* Common styles for error pages */
.error-hero {
    padding: 100px 0 50px;
    color: white;
    text-align: center;
}

.error-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.error-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.error-section {
    padding: 80px 0;
    background-color: #f8f9fc;
    text-align: center;
}

.error-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 50px;
    max-width: 800px;
    margin: 0 auto;
}

.error-icon {
    font-size: 150px;
    margin-bottom: 30px;
}

.error-message {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 20px;
}

.error-text {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.error-home-btn {
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.error-home-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.error-illustration {
    margin-top: 40px;
    font-size: 1.1rem;
    color: #6c757d;
    font-style: italic;
}

/* 404 Page Specific Styles */
.error-404-hero {
    background: linear-gradient(rgba(46, 57, 81, 0.9), rgba(46, 57, 81, 0.9)), url('https://source.unsplash.com/random/1920x1080/?maze') no-repeat center center/cover;
}

.error-404-icon {
    color: var(--primary-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* 500 Page Specific Styles */
.error-500-hero {
    background: linear-gradient(rgba(46, 57, 81, 0.9), rgba(46, 57, 81, 0.9)), url('https://source.unsplash.com/random/1920x1080/?server') no-repeat center center/cover;
}

.error-500-icon {
    color: var(--danger-color);
    animation: shake 2s infinite;
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    2% {
        transform: rotate(3deg);
    }
    4% {
        transform: rotate(-3deg);
    }
    6% {
        transform: rotate(3deg);
    }
    8% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(0deg);
    }
}

/* Roadmap Page Styles */
.roadmap-hero {
    background: linear-gradient(rgba(46, 57, 81, 0.9), rgba(46, 57, 81, 0.9)), url('https://source.unsplash.com/random/1920x1080/?development') no-repeat center center/cover;
    padding: 100px 0 50px;
    color: white;
    text-align: center;
}

.roadmap-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.roadmap-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.roadmap-section {
    padding: 80px 0;
    background-color: #f8f9fc;
}

.roadmap-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.roadmap-filter {
    margin-bottom: 30px;
}

.roadmap-filter .btn {
    margin: 0 5px 10px;
    border-radius: 30px;
    padding: 8px 20px;
    background-color: var(--dark-color);
    color: white;
    border: none;
    transition: all 0.3s ease;
}

.roadmap-filter .btn:hover,
.roadmap-filter .btn.active {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.roadmap-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.roadmap-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.roadmap-card .card-header {
    background-color: #f8f9fc;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
}

.roadmap-card .card-body {
    padding: 20px;
}

.roadmap-date {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.roadmap-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.roadmap-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.status-completed {
    background-color: #d4edda;
    color: #155724;
}

.status-in-progress {
    background-color: #cce5ff;
    color: #004085;
}

.status-planned {
    background-color: #f8f9fa;
    color: #6c757d;
}

.roadmap-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.roadmap-table th {
    background-color: var(--dark-color);
    color: white;
    padding: 15px;
    text-align: left;
}

.roadmap-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
}

.roadmap-table tr:hover {
    background-color: #f8f9fc;
}

.view-toggle {
    margin-bottom: 20px;
}

.view-toggle .btn {
    border-radius: 0;
}

.view-toggle .btn:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.view-toggle .btn:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

/* Privacy Policy Page Styles */
.privacy-hero {
    background: linear-gradient(rgba(46, 57, 81, 0.9), rgba(46, 57, 81, 0.9)), url('https://source.unsplash.com/random/1920x1080/?privacy') no-repeat center center/cover;
    padding: 100px 0 50px;
    color: white;
    text-align: center;
}

.privacy-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.privacy-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.privacy-section {
    padding: 80px 0;
    background-color: #f8f9fc;
}

.privacy-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.privacy-article {
    margin-bottom: 40px;
}

.privacy-article h2 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.privacy-article h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.privacy-article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.privacy-article ul, .privacy-article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.privacy-article li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.privacy-toc {
    background-color: #f8f9fc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.privacy-toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.privacy-toc ul {
    list-style-type: none;
    padding-left: 0;
}

.privacy-toc li {
    margin-bottom: 8px;
}

.privacy-toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-toc a:hover {
    text-decoration: underline;
}

.privacy-date {
    text-align: right;
    margin-top: 40px;
    color: #6c757d;
    font-style: italic;
}

/* Terms Page Styles */
.terms-hero {
    background: linear-gradient(rgba(46, 57, 81, 0.9), rgba(46, 57, 81, 0.9)), url('https://source.unsplash.com/random/1920x1080/?document') no-repeat center center/cover;
    padding: 100px 0 50px;
    color: white;
    text-align: center;
}

.terms-hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.terms-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.terms-section {
    padding: 80px 0;
    background-color: #f8f9fc;
}

.terms-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.terms-article {
    margin-bottom: 40px;
}

.terms-article h2 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.terms-article h3 {
    color: var(--dark-color);
    font-size: 1.3rem;
    margin-top: 25px;
    margin-bottom: 15px;
}

.terms-article p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.terms-article ul, .terms-article ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.terms-article li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.terms-toc {
    background-color: #f8f9fc;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.terms-toc h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.terms-toc ul {
    list-style-type: none;
    padding-left: 0;
}

.terms-toc li {
    margin-bottom: 8px;
}

.terms-toc a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-toc a:hover {
    text-decoration: underline;
}

.terms-date {
    text-align: right;
    margin-top: 40px;
    color: #6c757d;
    font-style: italic;
}
