/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

i:hover {
    transform: scale(1.1);
}

/* Header/Hero section */
.hero {
    background-color: #fff;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 440px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0288a7; /* Match header background color */
    transform: skewY(-6deg); /* Adjust for diagonal effect */
    transform-origin: top left;
    /* z-index: 0; /* Place the shape behind the content */
}

.profile-container {
    flex: 1;
    position: relative;
    width: 50%;
    display: flex;
    justify-content: flex-end;
    }

.profile-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7), /* White glow */
                0 0 30px rgba(255, 255, 255, 0.5), /* Softer outer glow */
                0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
    transition: transform 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.02);
}

.about-card {
    flex: 1;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: space-between;
    z-index: 1;
    min-height: 90%;
}

.about-container > h2 {
    margin-bottom: 2rem;
}

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

a h3 {
    transition: all .25s ease-in-out;
}

a h3:hover {
    transform: scaleX(1.05);
    padding-bottom: .5rem;
    text-decoration: underline;
    text-underline-position: under;
}

/* Work section */
.work-section {
    padding: 4rem 2rem;
}

.work-header {
    margin-left: 2rem;
}

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

.project-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    padding: 1rem;
}

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

.project-image {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.page-screenshot {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.project-info {
    padding: 1.5rem;
}

.project-links {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
}

/* Contact section */
.contact-section {
    background-color: #00a0bc;
    padding: 4rem 2rem;
    display: flex;
    gap: 2rem;
    color: white;
}

.contact-content {
    flex: 1;
}

.contact-image {
    flex: 1;
}

.contact-image img {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.7), /* White glow */
                0 0 30px rgba(255, 255, 255, 0.5), /* Softer outer glow */
                0 4px 6px rgba(0, 0, 0, 0.1); /* Subtle drop shadow */
}

/* Social links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: flex-end;
}

.social-icon {
    color: #333;
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #e9ecef;
}

/* Responsive design */
@media (max-width: 950px) {
    .hero {
        flex-direction: column;
        height: auto;
    }

    .hero::before {
        transform: skewY(-20deg);
    }

    .about-card {
        width: 80%;
        margin-top: 1rem;
    }

    .project-image {
    height: 250px;
}

    .contact-section {
        flex-direction: column;
    }

    .contact-image {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero, .projects-grid {
        padding: 1rem;
    }

    .about-card {
        width: 100%;
    }
    
    .work-section, .contact-section {
        padding: 4rem 1rem;
    }

    .contact-image {
        width: 50%;
    }

    .contact-section {
        align-items: center;
    }
}

@media (max-width: 450px) {
    .projects-grid {
        padding: 1rem 0;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}
