:root {
    /* Adjusted orange for better contrast (WCAG AA Compliant) */
    --orange: #e65100;
    --dark: #222;
    --light: #f4f4f4;
    --white: #ffffff;
}

body {
    font-family: 'Helvetica', sans-serif;
    margin: 0;
    color: #333;
    line-height: 1.6;
}

/* Layout */
.container {
    padding: 60px 10%;
}

.dark-bg {
    background: linear-gradient(180deg, #f9f9f9 0%, #ffffff 100%);
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.5rem;
}

h3 {
    font-size: 1.2rem;
}

p {
    font-size: 1.3rem;
}

/* Header */
header {
    padding: 20px 10%;
    background: var(--white);
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--orange);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* Hero Section */
#hero {
    padding: 80px 10%;
    background: var(--dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

/* Architectural Notched Frame */
.hero-frame {
    width: 350px;
    height: 350px;
    flex-shrink: 0;
    clip-path: polygon(15% 0%, 100% 0%, 100% 85%, 85% 100%, 0% 100%, 0% 15%);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.hero-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-frame:hover {
    transform: scale(1.02);
}

/* Buttons */
.btn {
    background: var(--orange);
    color: white;
    font-weight: bold;
    padding: 12px 30px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    border-radius: 5px;
    transition: 0.3s;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.btn:hover {
    transform: scale(1.05);
    background: #bf4200;
}

/* Skills Section & Accessibility Fixes */
.instruction {
    font-size: 1rem;
    color: #444;
    /* Darker for accessibility */
    margin-bottom: 20px;
    font-style: italic;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.skill-card {
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid #888;
    /* Darker border for clarity */
    border-radius: 5px;
    text-decoration: none;
    color: #222;
    /* Darker text */
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.skill-card:hover {
    border-color: var(--orange);
    color: var(--dark);
    background: #fff5ef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Cards & Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.card,
.carousel-card {
    padding: 25px;
    background: white;
    border-left: 4px solid var(--orange);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover,
.carousel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Carousel */
.carousel {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    flex-wrap: nowrap;
}

.carousel-card {
    min-width: 280px;
    max-width: 280px;
    flex: 0 0 auto;
}

/* Contact */
.contact-form {
    display: flex;
    flex-direction: column;
    max-width: 500px;
    margin-top: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #aaa;
    border-radius: 5px;
}

.contact-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    justify-content: space-around;
}

.contact-links a:hover {
    transform: translateY(-5px);
    transition: 0.3s;
}

/* Footer */
footer {
    padding: 40px 10%;
    background: var(--dark);
    color: white;
    text-align: center;
}

/* Animations & Responsive */
main section {
    animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    #hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-frame {
        width: 250px;
        height: 250px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    .container {
        padding: 40px 5%;
    }
}
