/* 
  PORTFOLIO WEBSITE STYLES
  Learning CSS? Comments explain what each part does!
*/


/* ===== RESET & BASE STYLES ===== */


/* Remove default margins/paddings */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* Basic body styles */

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}


/* Container for consistent width */

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Section spacing */

section {
    padding: 80px 0;
}


/* Section titles */

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #2d3436;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, #00b894, #0984e3);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}


/* ===== BUTTON STYLES ===== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.primary-btn {
    background: linear-gradient(to right, #00b894, #0984e3);
    color: white;
}

.secondary-btn {
    background: transparent;
    border: 2px solid #00b894;
    color: #00b894;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.primary-btn:hover {
    background: linear-gradient(to right, #00a085, #0877c9);
}

.secondary-btn:hover {
    background: #00b894;
    color: white;
}


/* ===== NAVIGATION BAR ===== */

header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3436;
    text-decoration: none;
}

.logo i {
    color: #00b894;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #00b894;
}

.menu-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}


/* ===== HERO SECTION ===== */

.hero {
    padding: 150px 0 100px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    text-align: center;
}

.tagline {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.highlight {
    color: #00b894;
}

.hero h2 {
    font-size: 1.8rem;
    color: #636e72;
    margin-bottom: 30px;
}

.description {
    font-size: 1.2rem;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn i {
    margin-right: 8px;
}


/* ===== ABOUT SECTION ===== */

.about {
    background: white;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.about-text p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #00b894;
}

.info-item i {
    color: #00b894;
    font-size: 1.5rem;
    margin-top: 5px;
}

.info-item strong {
    display: block;
    margin-bottom: 5px;
    color: #2d3436;
}

.info-item p {
    color: #666;
    margin: 0;
}


/* ===== SKILLS SECTION ===== */

.skills {
    background: #f8f9fa;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.skill-category h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #2d3436;
    display: flex;
    align-items: center;
    gap: 10px;
}

.skill-category h3 i {
    color: #00b894;
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.skill-bar {
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
}

.skill-level {
    height: 100%;
    background: linear-gradient(to right, #00b894, #0984e3);
    border-radius: 5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #e3f2fd;
    color: #0984e3;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}


/* ===== 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: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-header {
    padding: 25px 25px 15px;
    background: linear-gradient(to right, #00b894, #0984e3);
    color: white;
    text-align: center;
}

.project-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 1.4rem;
}

.project-body {
    padding: 25px;
}

.project-body p {
    color: #555;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tech-used {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-used span {
    background: #e0f7fa;
    color: #00695c;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.project-links {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 15px;
}

.project-links a {
    text-decoration: none;
    color: #0984e3;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s;
}

.project-links a:hover {
    color: #00b894;
}


/* ===== CONTACT SECTION ===== */

.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 50px;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2d3436;
}

.contact-info p {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-item i {
    color: #00b894;
    font-size: 1.5rem;
    margin-top: 5px;
}

.contact-item h4 {
    margin-bottom: 5px;
    color: #2d3436;
}

.contact-item a,
.contact-item p {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #00b894;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f0f9ff;
    color: #0984e3;
    border-radius: 50%;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.social-links a:hover {
    background: #0984e3;
    color: white;
    transform: translateY(-5px);
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 25px;
    color: #2d3436;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00b894;
}

.form-group textarea {
    resize: vertical;
}


/* ===== FOOTER ===== */

footer {
    background: #2d3436;
    color: white;
    padding: 50px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo i {
    color: #00b894;
}

.footer-text {
    color: #b2bec3;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.copyright {
    color: #95a5a6;
    font-size: 0.9rem;
}


/* ===== RESPONSIVE DESIGN ===== */


/* For tablets and smaller screens */

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .tagline {
        font-size: 2.2rem;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    .nav-links.active {
        display: flex;
    }
    .menu-btn {
        display: block;
    }
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}


/* For mobile phones */

@media (max-width: 480px) {
    .hero {
        padding: 120px 0 60px;
    }
    .tagline {
        font-size: 1.8rem;
    }
    section {
        padding: 60px 0;
    }
    .info-grid {
        grid-template-columns: 1fr;
    }
}