:root {
    --bg-color: #0a0a0a;
    /* Deep black */
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #3b82f6;
    /* Electric blue */
    --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --card-bg: #171717;
    --border-color: #333333;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow Effect */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: transform 0.1s ease;
}

/* Typography */
h1,
h2,
h3,
.logo {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 40px;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.dot {
    color: var(--accent-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    z-index: 10;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Sections */
.section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* Work Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-image-placeholder {
    height: 250px;
    width: 100%;
    background-size: cover;
    background-position: center;
}

.gradient-1 {
    background: linear-gradient(45deg, #1e1e2e, #2d2b55);
}

.gradient-2 {
    background: linear-gradient(45deg, #0f2027, #203a43, #2c5364);
}

.project-content {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-secondary);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tags {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.8rem;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: var(--text-secondary);
}

.project-link {
    font-weight: 500;
    color: var(--accent-color);
    margin-top: auto;
}

.project-link:hover {
    text-decoration: underline;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: auto;
    align-items: center;
}

.github-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.github-link:hover {
    color: var(--text-primary);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: center;
}

.team-member {
    padding: 40px;
    background: var(--card-bg);
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.avatar-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    margin: 0 auto 20px;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 3px solid transparent;
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    /* Focus on faces, hides bottom watermark */
    /* border: 3px solid var(--card-bg);  Removed to let container border show */
    transition: transform 0.5s ease;
    transform: scale(1.25);
    /* Zoom in by default */
    filter: grayscale(20%);
}

.avatar.position-center {
    object-position: center center;
    /* Fix for Dhiaa */
}

.team-member:hover .avatar-container {
    border-color: var(--accent-color);
    box-shadow: 0 0 25px rgba(59, 130, 246, 0.6);
    transform: scale(1.05);
}

.team-member:hover .avatar {
    transform: scale(1.35);
    /* Zoom more on hover */
    filter: grayscale(0%);
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member .role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Contact */
.contact {
    text-align: center;
}

.contact p {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Footer */
.footer {
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Ayaat Card Enhancement */
.ayaat-card {
    border-color: rgba(244, 211, 94, 0.1);
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(13, 27, 42, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.ayaat-card:hover {
    border-color: rgba(244, 211, 94, 0.4);
    box-shadow: 0 10px 40px rgba(13, 27, 42, 0.5);
}

.project-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.github-icon-link {
    color: var(--text-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.github-icon-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.ayaat-card .github-icon-link {
    color: rgba(244, 211, 94, 0.7);
    background: rgba(244, 211, 94, 0.1);
}

.ayaat-card .github-icon-link:hover {
    color: #F4D35E;
    background: rgba(244, 211, 94, 0.2);
}

.project-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.ayaat-card h3 {
    margin-bottom: 0;
    color: #F4D35E;
    /* Gold accent */
}

.ayaat-card .tag {
    background: rgba(244, 211, 94, 0.1);
    color: #F4D35E;
}

.ayaat-card .project-link {
    color: #F4D35E;
}

.project-image-container {
    height: 250px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ayaat-card:hover .project-image {
    transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 20px;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now, could add hamburger */
    }
}