/*
Theme Name: Amila Nilantha Blogs Portfolio
Author: Amila Nilantha
Description: Custom portfolio theme for amila nilantha blogs.
Version: 1.0
Text Domain: amila-portfolio
*/

:root {
    --primary: #0A66C2;
    --accent: #00C2CB;
    --dark-bg: #0D1117;
    --light-bg: #F9FAFB;
    --text-dark: #2D3748;
    --text-light: #718096;
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --container-width: 1140px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-light);
    line-height: 1.6;
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #084e96;
    color: #ffffff;
}

.btn-outline {
    border-color: var(--primary);
    color: var(--text-dark);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: #ffffff;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    font-size: 16px;
    margin-bottom: 50px;
    color: var(--text-light);
}

/* --- Navbar --- */
header {
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
}

.nav-links a {
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

/* --- Hero Section --- */
.hero {
    padding: 160px 0 100px;
    background-color: var(--light-bg);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-greeting {
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 5px;
    display: block;
}

.hero-name {
    font-size: 54px;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 10px;
}

.hero-titles {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-bio {
    font-size: 16px;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

/* Abstract Shapes */
.shape-wrapper {
    position: relative;
    width: 400px;
    height: 400px;
}

.shape-border {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--primary);
    border-radius: 30px;
    transform: rotate(45deg);
    z-index: 1;
}

.shape-border-dark {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid var(--text-dark);
    border-radius: 30px;
    transform: rotate(35deg);
    z-index: 0;
    opacity: 0.2;
}

.shape-image {
    position: absolute;
    top: 10%;
    left: 10%;
    width: 80%;
    height: 80%;
    background: #ccc;
    border-radius: 50%;
    z-index: 2;
    overflow: hidden;
    border: 5px solid #fff;
}

.shape-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- About Section --- */
.about {
    padding: 100px 0;
    background-color: #ffffff;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
}

.floating-card {
    position: absolute;
    background: #fff;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    z-index: 10;
    text-align: center;
    width: 160px;
}

.floating-card.top {
    top: 20px;
    right: -30px;
}

.floating-card.bottom {
    bottom: 40px;
    right: -50px;
}

.floating-card h4 {
    font-size: 14px;
    margin-bottom: 5px;
}

.floating-card p {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.floating-btn {
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    border: none;
}

.about-content {
    flex: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    background: var(--light-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
}

/* --- Services Section --- */
.services {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: rgba(10, 102, 194, 0.1);
    color: var(--primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

.service-card p {
    font-size: 14px;
}

/* --- Projects Section --- */
.projects {
    padding: 100px 0;
    background-color: #ffffff;
}

.project-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border: none;
    background: var(--light-bg);
    border-radius: 50px;
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary);
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--light-bg);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.project-img {
    width: 100%;
    height: 220px;
    background-color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0aec0;
    font-size: 40px;
    position: relative;
}

.project-content {
    padding: 25px;
}

.project-category {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.project-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-size: 11px;
    background: rgba(10, 102, 194, 0.1);
    color: var(--primary);
    padding: 4px 10px;
    border-radius: 4px;
}

/* --- Testimonials Section --- */
.testimonials {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    display: flex;
    gap: 20px;
}

.testimonial-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #e2e8f0;
    flex-shrink: 0;
}

.testimonial-content h4 {
    margin-bottom: 5px;
    font-size: 18px;
}

.testimonial-content span {
    font-size: 12px;
    color: var(--primary);
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.stars {
    color: #F59E0B;
    font-size: 12px;
    margin-bottom: 10px;
}

.testimonial-content p {
    font-size: 14px;
    font-style: italic;
}

/* --- Contact Section --- */
.contact {
    padding: 100px 0;
    background-color: #ffffff;
}

.contact-form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--light-bg);
    padding: 40px;
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--primary);
}

textarea.form-control {
    height: 150px;
    resize: none;
}

.contact-btn {
    width: 100%;
    text-align: center;
    border: none;
    font-size: 16px;
    padding: 15px;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-bg);
    color: #ffffff;
    padding: 40px 0 20px;
    text-align: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-socials a {
    color: #fff;
    font-size: 20px;
    transition: color 0.3s;
}

.footer-socials a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 13px;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container, .about-container {
        flex-direction: column;
        text-align: center;
    }
    .hero-buttons {
        justify-content: center;
    }
    .social-links {
        justify-content: center;
    }
    .nav-links {
        display: none; 
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .hero-name {
        font-size: 40px;
    }
    .shape-wrapper {
        width: 300px;
        height: 300px;
    }
}