/* ===== CSS Variables ===== */
:root {
    --primary-color: #4a7c59;
    --primary-dark: #3d6649;
    --primary-light: #6b9b73;
    --accent-color: #8b6f47;
    --accent-light: #a88b64;
    --secondary-color: #5c7c6a;
    --text-color: #2d3a2f;
    --text-light: #6b7a6f;
    --bg-color: #fafcfb;
    --bg-alt: #f0f5f1;
    --border-color: #d4e0d6;
    --shadow: 0 2px 8px -1px rgba(45, 58, 47, 0.08), 0 1px 2px -1px rgba(45, 58, 47, 0.05);
    --shadow-md: 0 8px 24px -4px rgba(45, 58, 47, 0.12), 0 4px 8px -2px rgba(45, 58, 47, 0.06);
    --shadow-lg: 0 16px 48px -8px rgba(45, 58, 47, 0.15), 0 8px 16px -4px rgba(45, 58, 47, 0.08);
    --shadow-xl: 0 24px 64px -12px rgba(45, 58, 47, 0.18), 0 12px 24px -6px rgba(45, 58, 47, 0.1);
    --shadow-glow: 0 0 40px rgba(74, 124, 89, 0.25);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --max-width: 1200px;
    --island-width: fit-content;
    --island-height: 56px;
    --island-height-expanded: 72px;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Skip Link (Accessibility) */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 1rem;
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

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

a:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Dynamic Island Navigation ===== */
.dynamic-island {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease,
                width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    width: var(--island-width);
    min-width: 240px;
}

.dynamic-island.hidden {
    transform: translateX(-50%) translateY(-150%);
}

.island-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 9999px;
    padding: 0.6rem 1.25rem;
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    border: 1px solid rgba(226, 232, 240, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.island-container:hover {
    box-shadow: 
        0 10px 15px -3px rgba(0, 0, 0, 0.15),
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

/* Island Logo */
.island-logo {
    flex-shrink: 0;
    padding: 0.25rem;
    border-radius: 50%;
    transition: var(--transition);
}

.island-logo img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.island-logo:hover {
    transform: scale(1.05);
}

/* Island Navigation Links */
.island-nav-links {
    display: flex;
    list-style: none;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
    padding: 0 0.5rem;
}

.island-nav-links a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    position: relative;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.island-nav-links a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    border-radius: 9999px;
    transition: opacity 0.2s ease;
    z-index: -1;
}

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

.island-nav-links a:hover::before {
    opacity: 0.08;
}

.island-nav-links a.active {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    gap: 0.25rem;
}

.dropdown-toggle::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
    transition: transform 0.2s ease;
}

.has-dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-toggle:hover,
.has-dropdown.open .dropdown-toggle,
.has-dropdown:focus-within .dropdown-toggle {
    color: var(--primary-color);
    background: rgba(74, 124, 89, 0.08);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    list-style: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 170px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.dropdown-menu a {
    display: block;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
}

.dropdown-menu a:hover,
.dropdown-menu a.active {
    color: var(--primary-color);
    background: rgba(74, 124, 89, 0.08);
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Island Toggle Button */
.island-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 9999px;
    transition: var(--transition);
    flex-shrink: 0;
}

.island-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.island-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.island-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.island-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.island-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero Section ===== */
.hero {
    padding: 10rem 0 4rem;
    background: linear-gradient(135deg, #e8f0e9 0%, #fafcfb 50%, #f5ebe0 100%);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn:hover::before {
    opacity: 1;
}

.btn:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(74, 124, 89, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 124, 89, 0.45), var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(74, 124, 89, 0.04);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.125rem 2.75rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

/* ===== Sections ===== */
section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===== Featured Projects ===== */
.featured-projects {
    background: linear-gradient(180deg, #f0f5f1 0%, #fafcfb 100%);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

/* When there are exactly 2 items, display them side by side */
.projects-grid:has(:first-child:nth-last-child(2)) {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
}

.projects-grid:has(:only-child) {
    max-width: 380px;
}

.project-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafcfb 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid rgba(212, 224, 214, 0.6);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2rem;
    min-height: 220px;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: rgba(74, 124, 89, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    transition: transform 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.project-card:hover .project-icon {
    transform: scale(1.15) rotate(5deg);
}

.project-info {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.project-info h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    text-align: center;
    line-height: 1.3;
}

.project-image {
    height: 200px;
    background: var(--bg-alt);
}

.placeholder-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3f 100%);
    color: white;
    font-weight: 600;
    font-size: 1.25rem;
}

.project-info {
    padding: 1.5rem;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.project-info p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.project-link {
    color: var(--primary-color);
    font-weight: 600;
}

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

/* ===== About Preview ===== */
.about-preview {
    background: linear-gradient(180deg, #fafcfb 0%, #f5ebe0 100%);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.about-image .placeholder-image {
    height: 400px;
    border-radius: 12px;
}

/* ===== Contact CTA ===== */
.contact-cta {
    background: linear-gradient(135deg, #4a7c59 0%, #2d5a3f 100%);
    color: white;
    text-align: center;
    padding: 5rem 0;
}

.contact-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-cta .btn-primary {
    background: white;
    color: var(--primary-color);
}

.contact-cta .btn-primary:hover {
    background: var(--bg-alt);
}

/* ===== Footer ===== */
.footer {
    background: #1a251f;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
}

.footer-links h4,
.footer-social h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.social-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.username-display {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    padding: 1rem;
    background: rgba(74, 124, 89, 0.05);
    border-radius: 12px;
    margin-top: 1rem;
    letter-spacing: 1px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    opacity: 0.8;
}

/* ===== Contact Modal ===== */
.modal {
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-color);
    padding: 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    box-shadow: var(--shadow-xl);
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: translateY(0) scale(1);
}

/* ===== Subagent Modal ===== */
.subagent-modal .modal-content {
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    padding: 3rem 3.5rem;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-alt);
    background: linear-gradient(180deg, #ffffff 0%, #fafcfb 100%);
    border: 1px solid rgba(212, 224, 214, 0.8);
    position: relative;
}

/* Modern Scrollbar for Webkit */
.subagent-modal .modal-content::-webkit-scrollbar {
    width: 8px;
}

.subagent-modal .modal-content::-webkit-scrollbar-track {
    background: var(--bg-alt);
    border-radius: 8px;
    margin: 2px;
}

.subagent-modal .modal-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-light) 0%, var(--primary-color) 100%);
    border-radius: 8px;
    border: 2px solid var(--bg-alt);
}

.subagent-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.subagent-modal h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.75rem;
    color: var(--text-color);
    letter-spacing: -0.03em;
    line-height: 1.2;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subagent-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(212, 224, 214, 0.5);
}

.subagent-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.subagent-section h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary-color);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.subagent-section h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 1.25rem 0 0.75rem;
    letter-spacing: -0.01em;
}

.subagent-section p {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1rem;
}

.subagent-section ul,
.subagent-section ol {
    margin-left: 1.5rem;
    color: var(--text-light);
    line-height: 1.9;
    font-size: 0.975rem;
}

.subagent-section li {
    margin-bottom: 0.65rem;
    position: relative;
}

.subagent-section ul li::marker {
    color: var(--primary-color);
}

.subagent-section ol li::marker {
    color: var(--primary-dark);
    font-weight: 600;
}

.capability-group {
    background: linear-gradient(145deg, #f8faf9 0%, #f0f5f1 100%);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid rgba(212, 224, 214, 0.5);
    transition: var(--transition);
}

.capability-group:hover {
    border-color: rgba(74, 124, 89, 0.3);
    box-shadow: var(--shadow);
    transform: translateX(4px);
}

.capability-group h4 {
    margin-top: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.capability-group ul {
    margin-left: 1.25rem;
}

.identifier-section {
    background: linear-gradient(145deg, rgba(74, 124, 89, 0.06) 0%, rgba(74, 124, 89, 0.1) 100%);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(74, 124, 89, 0.15);
}

.agent-identifier {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-color);
    padding: 0.875rem 1.5rem;
    border-radius: 10px;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Courier New', monospace;
    font-size: 1rem;
    color: var(--primary-dark);
    border: 1px solid rgba(74, 124, 89, 0.25);
    margin-top: 0.75rem;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.agent-identifier::before {
    content: '#';
    color: var(--primary-light);
    opacity: 0.6;
}

.when-to-call-section {
    background: linear-gradient(145deg, #f8faf9 0%, #f0f5f1 100%);
    padding: 1.5rem 1.75rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 224, 214, 0.6);
}

.when-to-call-section .not-call {
    margin-top: 1.25rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
}

.add-to-trae-section {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(212, 224, 214, 0.6);
}

.add-to-trae-section .btn-primary {
    min-width: 280px;
    box-shadow: 0 4px 20px rgba(74, 124, 89, 0.4);
}

.add-to-trae-section .btn-primary:hover {
    box-shadow: 0 8px 32px rgba(74, 124, 89, 0.5), var(--shadow-glow);
}
    font-size: 1.1rem;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.btn-large {
    padding: 1.125rem 2.75rem;
    font-size: 1.1rem;
    border-radius: 14px;
}

.close-modal {
    color: var(--text-light);
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2.25rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: transparent;
    border: none;
    padding: 0;
    z-index: 10;
}

.close-modal:hover {
    color: var(--primary-color);
    background: rgba(74, 124, 89, 0.08);
}

.modal h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.modal p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.email-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
    transition: transform 0.2s ease;
}

.email-link:hover {
    transform: scale(1.05);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .dynamic-island {
        top: 0.75rem;
        width: calc(100% - 1.5rem);
        max-width: 400px;
    }

    .island-toggle {
        display: flex;
    }

    .island-nav-links {
        position: absolute;
        top: calc(100% + 0.5rem);
        left: 50%;
        transform: translateX(-50%) translateY(-10px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 0.75rem;
        gap: 0.25rem;
        border-radius: 16px;
        box-shadow: var(--shadow-xl);
        border: 1px solid rgba(226, 232, 240, 0.6);
        opacity: 0;
        visibility: hidden;
        width: calc(100% + 1rem);
        max-width: 380px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .island-nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .island-nav-links a {
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .has-dropdown {
        width: 100%;
    }

    .dropdown-toggle {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
    }

    .dropdown-menu {
        position: static;
        top: auto;
        right: auto;
        min-width: 100%;
        margin-top: 0.25rem;
        box-shadow: none;
        border-radius: 10px;
        border-color: rgba(226, 232, 240, 0.8);
        transform: none;
        max-height: 0;
        padding: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        pointer-events: none;
        transition: max-height 0.2s ease, padding 0.2s ease;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 100px;
        padding: 0.35rem;
        pointer-events: auto;
    }

    .dropdown-menu a {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .projects-grid:has(:first-child:nth-last-child(2)) {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 2rem 1.5rem;
        min-height: 180px;
    }

    .project-icon {
        font-size: 3rem;
    }

    .project-info h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .dynamic-island {
        width: calc(100% - 1rem);
        max-width: none;
    }

    .island-logo {
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
    }

    .island-nav-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }
}

/* ===== Print Styles ===== */
@media print {
    .dynamic-island {
        display: none;
    }
}
