/* Base styles */
:root {
    --primary-bg: #023549;
    --accent-color: #f47b67;
    --text-color: #ffffff;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
header {
    text-align: center;
    padding: 2rem 0;
}

.logo {
    height: 17.28rem;
    margin-bottom: 2rem;
    filter: none;
}

/* Grid Layout */
.grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    padding: 0 1rem;
}

@media (min-width: 1024px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Profile Section */
.profile-section {
    text-align: center;
}

.profile-image-container {
    aspect-ratio: 1;
    max-width: 28rem;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.5);
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.profile-info {
    margin-top: 2rem;
}

.profile-info h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-info .title {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-links a {
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
}

/* Content Section */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-self: start;
}

h3 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.about-section p,
.services-section p {
    font-size: 1.125rem;
    font-weight: 300;
}

/* Services Grid */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    align-items: start;
    gap: 1.5rem;
}

.service-icon {
    width: 3rem;
    height: 3rem;
    background-color: rgba(244, 123, 103, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.service-item:hover .service-icon {
    transform: scale(1.1);
}

.accent-icon {
    color: var(--accent-color);
    width: 1.5rem;
    height: 1.5rem;
}

/* Projects Section */
.projects-section {
    grid-column: 1 / -1;
    margin: 2rem 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    display: block;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(244, 123, 103, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-4px);
    background-color: rgba(255, 255, 255, 0.08);
}

.project-card:hover::before {
    opacity: 1;
}

.project-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 2;
}

.project-title {
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 600;
}

.project-link-icon {
    color: var(--accent-color);
    width: 1.25rem;
    height: 1.25rem;
    opacity: 0.8;
    transition: all 0.3s;
}

.project-card:hover .project-link-icon {
    opacity: 1;
    transform: translateX(2px);
}

.project-description {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

/* Contact Section */
.contact-section {
    grid-column: 1 / -1;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.corner-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background-color: rgba(244, 123, 103, 0.1);
    border-bottom-left-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(15%, -15%);
    box-shadow: -5px 5px 30px rgba(244, 123, 103, 0.1);
}

.corner-decoration i {
    color: var(--accent-color);
    width: 2rem;
    height: 2rem;
    transform: translate(-30%, 30%);
}

.contact-content {
    position: relative;
}

.contact-details {
    margin-top: 1rem;
}

.contact-details p {
    font-size: 1.125rem;
    font-weight: 300;
    line-height: 1.8;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    font-size: 0.875rem;
    opacity: 0.5;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .logo {
        height: 12rem;
    }

    .grid {
        gap: 3rem;
    }

    .profile-image-container {
        max-width: 20rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}