
/* Main Stylesheet for Mudassir Kamal's Website */

/* Color palette and design tokens */
:root {
    --primary-color: #0f3460; /* deep navy */
    --secondary-color: #1a508b; /* dark blue */
    --accent-color: #e94560; /* bright coral */
    --accent-hover: #f16975; /* lighter coral for hover states */
    --bg-dark: #0d1b2a; /* dark background */
    --bg-medium: #1b263b; /* medium-dark background */
    --bg-light: #415a77; /* lighter panels */
    --text-light: #e0e1dd; /* light text */
    --text-dark: #0d1b2a; /* dark text for light sections */
    --nav-height: 70px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

header {
    background-color: var(--bg-medium);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    color: var(--text-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

header .logo img {
    height: 45px;
    width: auto;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

main {
    padding: 20px;
}

/* Hero section */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    text-align: center;
    border-radius: 0 0 40px 40px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.hero img {
    max-width: 260px;
    border-radius: 50%;
    margin: 20px;
    border: 4px solid var(--accent-color);
    animation: fadeIn 1s ease forwards;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: slideUp 1s ease forwards;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    animation: slideUp 1.2s ease forwards;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 10px;
    background-color: var(--accent-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Service sections */
.service-section {
    padding: 40px 30px;
    margin: 30px 0;
    background-color: var(--bg-medium);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    animation: fadeIn 1s ease forwards;
}

.service-section h2 {
    margin-bottom: 10px;
    color: var(--accent-color);
    font-size: 1.8rem;
}

.service-section p {
    margin-bottom: 20px;
}

/* Form styling */
form {
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-medium);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

form h2 {
    color: var(--accent-color);
    margin-bottom: 20px;
    font-size: 1.8rem;
}

form .form-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-dark);
    border: 1px solid var(--bg-light);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 20px;
    transition: border-color 0.3s ease;
}

form .form-group:focus-within {
    border-color: var(--accent-color);
}

form .form-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

form .form-icon img {
    width: 22px;
    height: 22px;
    filter: invert(90%) sepia(10%) saturate(300%) hue-rotate(180deg);
}

form input,
form select,
form textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-light);
    font-size: 1rem;
    padding: 8px 0;
}

form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="%23e0e1dd" d="M31.5 192h257c17.8 0 26.7 21.6 14.1 34.3l-128.5 128c-7.8 7.8-20.5 7.8-28.3 0l-128.5-128C4.8 213.6 13.8 192 31.5 192z"/></svg>');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 12px;
}

form textarea {
    resize: vertical;
    min-height: 140px;
}

form button {
    padding: 12px 24px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

form button:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

footer {
    background-color: var(--bg-medium);
    color: var(--text-light);
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--bg-light);
}

footer p {
    margin: 8px 0;
    font-size: 0.9rem;
}

footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        padding: 60px 20px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
        background-color: var(--bg-medium);
        padding: 10px;
        border-radius: 0 0 12px 12px;
    }
    nav ul li {
        margin: 10px 0;
    }
}

/* Responsive header and hamburger menu */
header {
    position: relative;
}
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 8px;
}
.menu-toggle img {
    width: 28px;
    height: 28px;
    filter: invert(90%);
}
@media (max-width: 768px) {
    nav {
        display: none;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        background-color: var(--bg-medium);
        padding: 10px 0 20px;
        border-radius: 0 0 12px 12px;
        z-index: 1000;
    }
    nav.open {
        display: flex;
    }
    nav ul {
        flex-direction: column;
        width: 100%;
    }
    nav ul li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: block;
    }
    header {
        flex-wrap: wrap;
    }
}
