/* --- Global Variables & Reset --- */
:root {
    --bg: #000000;
    --text: #ffffff;
    --text-muted: #888888;
    --accent: #ffffff;
    --glass-bg: rgba(30, 30, 30, 0.4);
    --glass-border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* --- Navigation & Header --- */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}

.links a:hover {
    opacity: 0.7;
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.apple-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--text);
    color: var(--bg);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: transform 0.3s;
}

.apple-btn:hover {
    transform: scale(1.05);
}

/* --- Core Layout & Glass Cards --- */
section {
    padding: 100px 2rem;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

/* --- Projects Section --- */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.project-card {
    padding: 2rem;
    transition: transform 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-icon {
    margin-bottom: 1rem;
    color: var(--accent);
}

.project-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.8rem;
    margin-right: 8px;
    color: var(--text-muted);
}

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

.apple-link {
    color: var(--accent);
    text-decoration: none;
    font-size: clamp(0.9rem, 4vw, 1.2rem); 
    display: block;
    margin-bottom: 1rem;
    overflow-wrap: break-word; 
    word-break: break-word;
}

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

.phone {
    margin-top: 2rem;
    font-size: 0.9rem !important;
    color: var(--text-muted);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-top: 1px solid var(--glass-border);
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

@media (max-width: 768px) {
    .glass-card { padding: 2rem; }
    h2 { font-size: 2rem; }
}

/* =========================================
   NEW: iOS 3-DOT RESUME MENU STYLES
   ========================================= */

.ios-menu-wrapper {
    position: relative; 
    display: inline-block;
    margin-left: 15px; 
}

/* The Clean 3-Dot Button */
.ios-menu-btn {
    background: transparent;
    color: #007aff; /* Apple System Blue */
    border: none;
    font-size: 1.5rem;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 0 5px;
    transition: transform 0.15s ease;
    outline: none;
}

/* Slight bounce when tapped */
.ios-menu-btn:active {
    transform: scale(0.85);
}

/* The Glass Dropdown Menu */
.ios-dropdown {
    position: absolute;
    top: 35px; /* Sits cleanly below the nav bar */
    right: 0;
    display: none; 
    flex-direction: column;
    width: 170px;
    padding: 8px;
    border-radius: 14px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transform-origin: top right;
}

/* The Spring-Loaded Pop Animation */
.ios-dropdown.show {
    display: flex;
    animation: popBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popBounce {
    0% { opacity: 0; transform: scale(0.6) translateY(-15px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Menu Items with SVGs */
.ios-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    text-decoration: none;
    padding: 10px 8px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s;
    border-radius: 8px;
}

.ios-item:last-child {
    border-bottom: none;
}

.ios-item:hover {
    color: #007aff;
    background: rgba(255,255,255,0.05);
    }
    
