:root {
    --primary: #ff0055;
    --primary-glow: rgba(255, 0, 85, 0.6);
    --secondary: #00e5ff;
    --secondary-glow: rgba(0, 229, 255, 0.4);
    --gold: #ffb703;
    --bg-dark: #030306;
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-muted: #8e8e9c;
}

body { margin: 0; font-family: 'Inter', sans-serif; background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }

/* Background Orbs */
.bg-glow { position: fixed; border-radius: 50%; filter: blur(140px); z-index: -1; pointer-events: none; opacity: 0.6; }
.orb-1 { top: -10%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%); animation: float1 15s infinite alternate ease-in-out; }
.orb-2 { bottom: -10%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%); animation: float2 20s infinite alternate ease-in-out; }
@keyframes float1 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(80px, 50px) scale(1.1); } }
@keyframes float2 { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(-100px, -60px) scale(1.2); } }

.main-wrapper { min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
header { padding: 4rem 2rem 1.5rem; text-align: center; }
.glow-text { margin: 0; font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; background: linear-gradient(135deg, #fff 30%, #ffc0d3 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 4px 15px var(--primary-glow)); }
.tagline { font-size: 0.95rem; color: var(--text-muted); letter-spacing: 0.5px; margin-top: 15px; }

/* --- TYPING + GLITCH EFFECT COMBINED --- */
.owner-container { display: flex; justify-content: center; margin-top: 10px; }

.typing-wrapper {
    display: inline-block;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--primary);
    /* Typing animation takes 3 seconds, then stays at max width */
    animation: typing 3s steps(30, end) forwards, blinkCursor 0.8s step-end infinite;
    max-width: 0; /* Starts hidden */
}

@keyframes typing { from { max-width: 0; } to { max-width: 350px; } }
@keyframes blinkCursor { from, to { border-color: transparent; } 50% { border-color: var(--primary); } }

.glitch-text {
    position: relative;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-muted);
    text-transform: uppercase;
    padding-right: 5px; /* So cursor doesn't touch text */
}

.glitch-text::before, .glitch-text::after {
    content: attr(data-text);
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--bg-dark);
}
.glitch-text::before {
    left: 2px; text-shadow: -1px 0 var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px; text-shadow: -1px 0 var(--secondary);
    clip-path: polygon(0 80%, 100% 20%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim { 0% { clip-path: inset(20% 0 80% 0); } 20% { clip-path: inset(60% 0 10% 0); } 40% { clip-path: inset(40% 0 50% 0); } 60% { clip-path: inset(80% 0 5% 0); } 80% { clip-path: inset(10% 0 70% 0); } 100% { clip-path: inset(30% 0 50% 0); } }
@keyframes glitch-anim-2 { 0% { clip-path: inset(10% 0 60% 0); } 20% { clip-path: inset(30% 0 20% 0); } 40% { clip-path: inset(70% 0 10% 0); } 60% { clip-path: inset(20% 0 50% 0); } 80% { clip-path: inset(50% 0 30% 0); } 100% { clip-path: inset(5% 0 80% 0); } }

/* Layout Container */
.container { max-width: 1000px; margin: 0 auto; padding: 1.5rem; flex: 1; width: 100%; box-sizing: border-box; }

/* Buttons */
.icon-space { margin-right: 6px; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-gold { color: var(--gold) !important; }
.links-section { display: flex; justify-content: center; gap: 16px; margin-bottom: 3.5rem; flex-wrap: wrap; }
.btn { display: flex; align-items: center; justify-content: center; padding: 12px 24px; text-decoration: none; color: rgba(255, 255, 255, 0.9); background: var(--card-bg); border-radius: 8px; backdrop-filter: blur(8px); border: 1px solid var(--card-border); font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: all 0.3s; }
.btn:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.btn-hire { background: var(--primary); border-color: var(--primary); }
.btn-hire:hover { background: #ff2270; box-shadow: 0 0 20px rgba(255, 0, 85, 0.4); }
.btn-drive:hover { border-color: var(--secondary); box-shadow: 0 0 15px rgba(0, 229, 255, 0.2); }

/* Dropdown - Opens Upwards */
.dropdown-container { position: relative; display: inline-block; }
.btn-dropdown .arrow { display: inline-block; transition: transform 0.2s ease; margin-left: 6px; }
.btn-dropdown.active .arrow { transform: rotate(180deg); }
.insta-menu { display: none; position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(13, 13, 18, 0.95); border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 10px; min-width: 200px; box-shadow: 0 -10px 35px rgba(0, 0, 0, 0.6); z-index: 100; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; backdrop-filter: blur(12px); }
.insta-menu.show { display: flex; opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.insta-menu a { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,0.8); padding: 14px 20px; text-decoration: none; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, 0.03); transition: all 0.2s; }
.insta-menu a:last-child { border-bottom: none; }
.insta-menu a:hover { background: rgba(255, 0, 85, 0.1); color: var(--primary); padding-left: 24px; }

/* Grid Layout */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }

.card { background: rgba(13, 13, 18, 0.4); padding: 28px; border-radius: 14px; border: 1px solid var(--card-border); backdrop-filter: blur(10px); transition: border-color 0.3s, transform 0.3s, opacity 0.6s ease-out, transform 0.6s ease-out; }
.card:hover { border-color: rgba(255, 255, 255, 0.15); transform: translateY(-3px) !important; }

.card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.card-icon { font-size: 1.4rem; }
.card h2 { margin: 0; font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; letter-spacing: 0.5px; }

.list-item { font-size: 0.9rem; color: #b3b3c2; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); }
.list-item:last-child { border-bottom: none; }
.list-item strong { color: #fff; font-weight: 600; }
.alert-item { color: #ffb3c6; }

/* Software Arsenal Grid */
.software-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.software-item { background: rgba(255,255,255,0.03); padding: 10px; border-radius: 6px; font-size: 0.85rem; color: #ccc; display: flex; align-items: center; gap: 8px; border: 1px solid transparent; transition: 0.2s;}
.software-item:hover { background: rgba(255,255,255,0.06); border-color: var(--secondary); color: #fff;}

/* Certification Card - Full Width at Bottom */
.cert-card { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; }
.capcut-img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); object-fit: cover; }
@media(min-width: 768px) {
    .cert-card { flex-direction: row; align-items: center; justify-content: space-between; }
    .cert-content { flex: 1; padding-right: 20px; }
    .cert-image-container { flex: 1; max-width: 400px; }
}
/*extra added*/
.cert-card { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 20px; }
.cert-img { width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(255,255,255,0.1); object-fit: cover; }
@media(min-width: 768px) {
    .cert-card { flex-direction: row; align-items: center; justify-content: space-between; }
    .cert-content { flex: 1; padding-right: 20px; }
    .cert-image-container { flex: 1; max-width: 400px; }
}

/* Scroll Fade Animation Engine */
.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-fade.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Modals & Footer */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(3, 3, 6, 0.8); backdrop-filter: blur(8px); justify-content: center; align-items: center; z-index: 1000; opacity: 0; transition: opacity 0.3s ease; }
.modal.show { opacity: 1; }
.modal-content { background: #0f0f14; border: 1px solid rgba(255, 255, 255, 0.1); padding: 32px; border-radius: 16px; max-width: 450px; width: 90%; position: relative; transform: scale(0.9); transition: transform 0.3s ease; }
.modal.show .modal-content { transform: scale(1); }
.modal-content h2 { margin-top: 0; font-family: 'Syne', sans-serif; font-size: 1.5rem; color: #fff; }
.modal-content p, #modal-body { color: #b3b3c2; font-size: 0.95rem; line-height: 1.6; }
.close { position: absolute; top: 20px; right: 20px; font-size: 1.5rem; color: var(--text-muted); cursor: pointer; transition: 0.2s; }
.close:hover { color: #fff; }

footer { text-align: center; padding: 3rem 2rem 2rem; margin-top: auto; }
.footer-links { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: color 0.2s; }
.footer-links a:hover { color: var(--primary); }
.footer-links .dot { color: rgba(255, 255, 255, 0.1); font-size: 0.8rem; }
.copyright { color: #44444f; font-size: 0.75rem; margin: 0; margin-top: 8px; }
