﻿html {
    font-size: 14px;
}
html, body {
    overflow-x: hidden; /* Fix horizontal scrollbar during animations */
    scrollbar-gutter: stable; /* Prevent vertical scrollbar flicker */
}


@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

ul {
    margin-bottom: 0 !important;
    padding-left: 0 !important;
}

:root {
    --primary: #2c3e50;
    --secondary: #3498db;
    --accent: #e74c3c;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --text: #333;
    --text-light: #777;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    line-height: 1.6;
    color: var(--text);
    background-color: #f9f9f9;
}

a {
    text-decoration: none;
    color: var(--secondary);
    transition: all 0.3s ease;
}

    a:hover {
        color: var(--accent);
    }

.custom-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .btn:hover {
        background: var(--primary);
        color: white;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

    .btn-outline:hover {
        background: var(--secondary);
        color: white;
    }

section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

    .section-title h2 {
        font-size: 36px;
        color: var(--primary);
        margin-bottom: 15px;
        position: relative;
        display: inline-block;
    }

        .section-title h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 70px;
            height: 4px;
            background: var(--secondary);
        }

    .section-title p {
        color: var(--text-light);
        font-size: 18px;
    }

/* Header */

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary);
}

    .logo span {
        color: var(--secondary);
    }

.nav-links {
    display: flex;
    list-style: none;
}

    .nav-links li {
        margin-left: 30px;
    }

    .nav-links a {
        color: var(--dark);
        font-weight: 600;
        font-size: 16px;
    }

        .nav-links a:hover {
            color: var(--secondary);
        }
.menu-toggle {
    display: none; /* hidden by default */
    font-size: 1.8rem;
    color: #333;
    cursor: pointer;
    z-index: 99999 !important; /* higher than header */
    position: relative; /* so it's clickable */
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 100px;
    background: linear-gradient(135deg, var(--primary) 0%, #2c3e50 100%);
    color: white;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--light);
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
}

/* About Section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-img {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

    .about-img img {
        width: 100%;
        height: auto;
        display: block;
    }

.about-text {
    flex: 1;
}

    .about-text h3 {
        font-size: 28px;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .about-text p {
        margin-bottom: 15px;
        color: var(--text-light);
    }

.skills {
    margin-top: 30px;
}

.skill-item {
    margin-bottom: 15px;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.skill-bar {
    height: 10px;
    background: #e9e9e9;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: var(--secondary);
    border-radius: 10px;
}

/* Services Section */
.services {
    background: #f5f5f5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .service-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.service-icon {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-light);
}

/* Projects Section */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

    .project-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

.project-img {
    height: 200px;
    overflow: hidden;
}

    .project-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.5s ease;
    }

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 20px;
}

    .project-info h3 {
        font-size: 20px;
        margin-bottom: 10px;
        color: var(--primary);
    }

    .project-info p {
        color: var(--text-light);
        margin-bottom: 15px;
    }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.project-tag {
    padding: 5px 10px;
    background: #f0f0f0;
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-light);
}

/* Contact Section */
.contact {
    background: #f5f5f5;
}

.contact-content {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

    .contact-info h3 {
        font-size: 24px;
        margin-bottom: 20px;
        color: var(--primary);
    }

    .contact-info p {
        margin-bottom: 20px;
        color: var(--text-light);
    }

.contact-details {
    margin-top: 30px;
}

.contact-detail {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.contact-form {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

textarea.form-control {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

    .footer-col h4 {
        font-size: 18px;
        margin-bottom: 20px;
        position: relative;
    }

        .footer-col h4::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 0;
            width: 40px;
            height: 3px;
            background: var(--secondary);
        }

    .footer-col ul {
        list-style: none;
    }

        .footer-col ul li {
            margin-bottom: 10px;
        }

            .footer-col ul li a {
                color: #ccc;
            }

                .footer-col ul li a:hover {
                    color: white;
                    padding-left: 5px;
                }

.social-links {
    display: flex;
    gap: 15px;
}

    .social-links a {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        transition: all 0.3s ease;
    }

        .social-links a:hover {
            background: var(--secondary);
            transform: translateY(-5px);
        }

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        z-index: 1050;
    }

        .nav-links.active {
            left: 0;
        }

        .nav-links li {
            margin: 15px 0;
        }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 18px;
    }

    .section-title h2 {
        font-size: 30px;
    }
}


/* Timeline container */
.timeline {
    position: relative;
    padding: 2rem 0;
}

    .timeline::before {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        left: 50%;
        width: 3px;
        background: #dee2e6;
        transform: translateX(-50%);
    }

/* Timeline item */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 1.5rem 2rem;
}

    .timeline-item:nth-child(odd) {
        left: 0;
        text-align: right;
    }

    .timeline-item:nth-child(even) {
        left: 50%;
    }

    .timeline-item .timeline-content {
        background: #fff;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.08);
        position: relative;
        z-index: 2;
    }

        .timeline-item .timeline-content h4 {
            color: #212529;
        }

        .timeline-item .timeline-content span {
            display: block;
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

/* Timeline icons */
.timeline-icon {
    position: absolute;
    top: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 3;
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -25px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -25px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 4rem;
        text-align: left !important;
    }

        .timeline-item:nth-child(odd),
        .timeline-item:nth-child(even) {
            left: 0;
        }

        .timeline-item .timeline-icon {
            left: 0 !important;
        }
}