/* ============================= */
/* Global Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

h1, h2, h3, h4 {
    margin: 0 0 10px 0;
    font-weight: bold;
}

p {
    margin: 0 0 15px 0;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================= */
/* Header & Navigation */
header {
    background-color: #222;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #00aaff;
}

/* ============================= */
/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 90vh;
    background: url('../img/hero-bg.jpg') no-repeat center center/cover;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero .btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #00aaff;
    color: #fff;
    border-radius: 5px;
    transition: background 0.3s;
}

.hero .btn:hover {
    background-color: #0088cc;
}

/* ============================= */
/* About Section */
.about {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.about p {
    max-width: 700px;
    margin: 0 auto 20px auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about img {
    max-width: 80%;
}

/* ============================= */
/* Portfolio Section */
.portfolio-section {
    padding: 60px 20px;
    background-color: #f1f1f1;
}

.section-title h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    text-align: center;
    margin-bottom: 40px;
    color: #555;
}

/* Portfolio container & cards */
.portfolio-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.portfolio-item {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    width: 300px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.portfolio-info h4 {
    font-size: 1.2rem;
    margin: 10px 0 5px 0;
}

.portfolio-info p {
    font-size: 0.9rem;
    color: #666;
}

.portfolio-info .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 15px;
    font-size: 0.9rem;
    border-radius: 5px;
    background-color: #00aaff;
    color: #fff;
    transition: background 0.3s ease;
}

.portfolio-info .btn:hover {
    background-color: #0088cc;
    text-decoration: none;
}

/* ============================= */
/* Skills Section */
.skills {
    padding: 60px 20px;
    background-color: #fff;
    text-align: center;
}

.skills h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.progress {
    position: relative;
    height: 25px;
    background: #e9ecef;
    border-radius: 5px;
    margin-bottom: 15px;
}

.progress span {
    position: absolute;
    left: 10px;
    top: 2px;
    font-weight: 600;
    color: #333;
}

.progress-bar {
    background: #0d6efd;
    height: 100%;
    width: 0;
    border-radius: 5px;
    transition: width 2s ease-in-out;
}

/* Skill graph variant */
.skill-bar-graph {
    margin-bottom: 20px;
}

.skill-bar-graph span {
    font-weight: 600;
    margin-bottom: 5px;
    display: inline-block;
    color: #333;
}

.skill-bar-graph .bar {
    height: 25px;
    background: #4caf50;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

/* ============================= */
/* Sliders (Achievements / Projects) */
.achievement-slider, .project-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    margin: 20px auto;
    width: 400px;
    height: 250px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateX(100%);
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
}

.slide.prev {
    transform: translateX(-100%);
}

/* ============================= */
/* Contact Section */
.contact {
    padding: 60px 20px;
    background-color: #222;
    color: #fff;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact p {
    margin-bottom: 15px;
}

.contact a {
    color: #00aaff;
    font-weight: bold;
}

.contact a:hover {
    text-decoration: underline;
}

/* ============================= */
/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #111;
    color: #fff;
}

/* ============================= */
/* Responsive Styles */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .portfolio-container {
        flex-direction: column;
        align-items: center;
    }

    .portfolio-item {
        width: 90%;
    }

    .progress span {
        font-size: 14px;
    }

    .achievement-slider, .project-slider {
        width: 80%;
        height: auto;
    }

    .slide {
        height: auto;
    }
}

@media (max-width: 480px) {
    .achievement-slider, .project-slider {
        width: 95%;
    }
}

/* Achievements Slider Section */
.achievements-section {
    padding: 60px 20px;
    background-color: #f9f9f9;
    text-align: center;
}

.achievements-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Slider Container */
.achievement-slider {
    width: 400px;
    height: 250px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Slides */
.achievement-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
    transform: translateX(100%);
}

.achievement-slider .slide.active {
    opacity: 1;
    transform: translateX(0);
}

.achievement-slider .slide.prev {
    transform: translateX(-100%);
}

/* Responsive */
@media (max-width: 768px) {
    .achievement-slider {
        width: 80%;
        height: auto;
    }

    .achievement-slider .slide {
        height: auto;
    }
}

@media (max-width: 480px) {
    .achievement-slider {
        width: 95%;
    }

    .achievement-slider .slide {
        height: auto;
    }
}
