:root {
    --background-primary: #ffffff;
    --background-secondary: #f0f5ff;
    --background-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #5a6474;
    --accent-color: #0052ff;
    --accent-hover: #0041cc;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-primary);
    color: var(--text-primary);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 600;
}

.logo {
    height: 40px;
    margin-right: 10px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 0;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(0, 82, 255, 0.05), transparent 60%);
    z-index: -1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-title .highlight {
    color: var(--accent-color);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 30px;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: var(--accent-hover);
}

/* Sections */
.services, .portfolio, .contact {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.section-title {
    font-size: 36px;
    margin-bottom: 50px;
}

/* Bluish Sections */
.services, .contact {
    background-color: var(--background-secondary);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: left;
}

.service-card {
    background-color: var(--background-card);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 82, 255, 0.1);
}

.service-card h3 {
    margin-top: 0;
    font-size: 22px;
    color: var(--text-primary);
}

/* Portfolio Section */
.portfolio {
    background-color: var(--background-primary);
}

.portfolio::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -20%;
    width: 80%;
    height: 80%;
    background-image: radial-gradient(circle, rgba(0, 82, 255, 0.05), transparent 70%);
    z-index: -1;
    transform: rotate(45deg);
}

.filter-buttons {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.filter-btn:hover {
    background-color: var(--accent-hover);
    color: #fff;
    border-color: var(--accent-hover);
}

.filter-btn.active {
    background-color: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

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

.portfolio-item-detailed {
    background-color: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-bottom: 0;
}

.portfolio-item-detailed:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 82, 255, 0.1);
}

.portfolio-details h3 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.portfolio-details p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.portfolio-details h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.portfolio-details ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.portfolio-details ul li {
    padding-left: 1.4em;
    text-indent: -1.4em;
    margin-bottom: 5px;
}

.portfolio-details ul li::before {
    content: '✓';
    color: var(--accent-color);
    margin-right: 10px;
}

.tech-stack-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.tech-stack-logos img {
    height: 30px;
    transition: transform 0.3s ease;
}

.tech-stack-logos img:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 40px 0;
    background-color: var(--background-primary);
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .portfolio-image-placeholder {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Simple hiding for now, can be replaced with a burger menu */
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 32px;
    }

    .portfolio-details h3 {
        font-size: 24px;
    }
}
