:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --text-color: #333;
    --bg-color: #ecf0f1;
}

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

/* Accessibility: Visually hidden but available to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

section.container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
}

section.container > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

main {
    position: relative;
    z-index: 1;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    filter: 
        drop-shadow(0 0 15px rgba(255,255,255,0.8))
        drop-shadow(0 0 30px rgba(255,255,255,0.5))
        drop-shadow(0 0 45px rgba(255,255,255,0.3));
    animation: logoGlow 2s ease-in-out infinite alternate;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px;
}

.logo-img:hover {
    filter: drop-shadow(0 0 12px rgba(255,255,255,0.9));
    transform: scale(1.05);
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--accent-color);
}

.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #9b59b6);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 80px 20px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23ffffff" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
    animation: backgroundShift 20s linear infinite;
}

@keyframes backgroundShift {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-brand {
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f39c12, #fff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
}

.hero-description {
    font-size: 1.15rem;
    max-width: 850px;
    margin: 0 auto 1.5rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

#services {
    background-color: white;
    padding: 80px 0;
}

#skills {
    background-color: var(--bg-color);
    padding: 80px 0;
}

#contact {
    padding: 80px 0 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #f39c12);
    border-radius: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.service-item, .skill-item {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    border-left: 4px solid var(--accent-color);
    transform: perspective(1000px) rotateY(5deg);
    transition: all 0.3s ease;
}

.service-item:hover, .skill-item:hover {
    transform: perspective(1000px) rotateY(0deg) translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.services-grid, .skills-grid {
    perspective: 1000px;
}

.service-item h3, .skill-item h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
    font-weight: 600;
}

.service-item p, .skill-item p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 0.95rem;
    flex-grow: 1;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #2980b9;
}

footer {
    background-color: var(--secondary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: 50vh;
        padding: 60px 20px;
    }

    .hero-brand {
        font-size: 2.5rem;
        letter-spacing: 1px;
        margin-bottom: 1rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 1.25rem;
    }

    .hero-description {
        font-size: 1rem;
        line-height: 1.6;
    }

    .section-title {
        font-size: 1.8rem;
        margin-bottom: 35px;
    }

    section {
        padding: 60px 0;
    }

    #contact {
        padding: 60px 0 80px 0;
    }

    /* Stack services grid on mobile */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .service-item, .skill-item {
        padding: 25px;
    }

    nav ul {
        margin: 0;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 10px;
    }

    .logo-img {
        height: 32px;
    }

    nav {
        justify-content: center;
        text-align: center;
    }
}